refresh-17 (#21721)
* refresh-17 * update * update * update * update * update * update
This commit is contained in:
Родитель
b28bb499a1
Коммит
f266018d6a
|
@ -13465,61 +13465,63 @@ packages:
|
|||
dev: false
|
||||
|
||||
file:projects/arm-storsimple1200series.tgz:
|
||||
resolution: {integrity: sha512-TZZuKxi3xhIZ/QS7+RjHDXwp6okSob6JAH5wulGFghIrr68av+Gpg7t0F74pRMJnuJW0sum4DOWApYBIXh4fsg==, tarball: file:projects/arm-storsimple1200series.tgz}
|
||||
resolution: {integrity: sha512-4i6/ej3CllI76b/6RKdVxdDPL26KzuCxdZOEC7V+aEiTCtsVV7RpjzKMhQOdIWNZDnD78mVSIiRoSsxVVPHDPA==, tarball: file:projects/arm-storsimple1200series.tgz}
|
||||
name: '@rush-temp/arm-storsimple1200series'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@azure-tools/test-recorder': 1.0.2
|
||||
'@azure/identity': 2.0.4
|
||||
'@microsoft/api-extractor': 7.18.11
|
||||
'@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
|
||||
'@rollup/plugin-json': 4.1.0_rollup@1.32.1
|
||||
'@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
|
||||
'@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
|
||||
'@rollup/plugin-commonjs': 21.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-json': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 13.2.1_rollup@2.70.2
|
||||
cross-env: 7.0.3
|
||||
mkdirp: 1.0.4
|
||||
mocha: 7.2.0
|
||||
rimraf: 3.0.2
|
||||
rollup: 1.32.1
|
||||
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
|
||||
rollup: 2.70.2
|
||||
rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.2
|
||||
tslib: 2.4.0
|
||||
typescript: 4.2.4
|
||||
uglify-js: 3.15.4
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- debug
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
file:projects/arm-storsimple8000series.tgz:
|
||||
resolution: {integrity: sha512-4Kv3CbqQQbNf2p5Hq2uwf1ntihJVCBHO7EQ1xroolXugNsne7T0QUatRYmhfJa73uk2LN+vodioldONcuFAuPg==, tarball: file:projects/arm-storsimple8000series.tgz}
|
||||
resolution: {integrity: sha512-XeD99HOxEDwjqYvidw6AjzLaRkgCXvGJkFJmryW7rnIXg/7pcmSPfu5sJUMfDbt0sRh/gLAJh+A6Bo0yWvKY5A==, tarball: file:projects/arm-storsimple8000series.tgz}
|
||||
name: '@rush-temp/arm-storsimple8000series'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@azure-tools/test-recorder': 1.0.2
|
||||
'@azure/identity': 2.0.4
|
||||
'@microsoft/api-extractor': 7.18.11
|
||||
'@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
|
||||
'@rollup/plugin-json': 4.1.0_rollup@1.32.1
|
||||
'@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
|
||||
'@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
|
||||
'@rollup/plugin-commonjs': 21.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-json': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 13.2.1_rollup@2.70.2
|
||||
cross-env: 7.0.3
|
||||
mkdirp: 1.0.4
|
||||
mocha: 7.2.0
|
||||
rimraf: 3.0.2
|
||||
rollup: 1.32.1
|
||||
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
|
||||
rollup: 2.70.2
|
||||
rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.2
|
||||
tslib: 2.4.0
|
||||
typescript: 4.2.4
|
||||
uglify-js: 3.15.4
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- debug
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
file:projects/arm-streamanalytics.tgz:
|
||||
resolution: {integrity: sha512-ROvUPTWvb5sLo3UgP4N8nETc6irAl1egcX9n6MCMa826+G1cWfWo6Y5nNdVF+lXjQrb022OvQw/VjaKnCz8Klg==, tarball: file:projects/arm-streamanalytics.tgz}
|
||||
resolution: {integrity: sha512-MF6D0d9IIIHU1IU1nGhjwOtjNtIyIT+ti+R8xjgZwAWjAQtQMvFRHLxngZwbdtqbI5U5xNBVxxjRLauQrErhdQ==, tarball: file:projects/arm-streamanalytics.tgz}
|
||||
name: '@rush-temp/arm-streamanalytics'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
|
@ -13528,18 +13530,19 @@ packages:
|
|||
'@microsoft/api-extractor': 7.18.11
|
||||
'@rollup/plugin-commonjs': 21.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-json': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 3.0.1_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 8.4.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 13.2.1_rollup@2.70.2
|
||||
cross-env: 7.0.3
|
||||
mkdirp: 1.0.4
|
||||
mocha: 7.2.0
|
||||
rimraf: 3.0.2
|
||||
rollup: 2.70.2
|
||||
rollup-plugin-sourcemaps: 0.4.2_rollup@2.70.2
|
||||
rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.2
|
||||
tslib: 2.4.0
|
||||
typescript: 4.2.4
|
||||
uglify-js: 3.15.4
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- debug
|
||||
- encoding
|
||||
- supports-color
|
||||
|
@ -13574,54 +13577,56 @@ packages:
|
|||
dev: false
|
||||
|
||||
file:projects/arm-subscriptions.tgz:
|
||||
resolution: {integrity: sha512-g7WDz18wbJLEl9aqcH4xaMmlCkiMHsKd4tUucZewS1Q5Cm5qWy8CL0UWh9PjTTQl6nQi1xEm7zX7+4prHYxR/A==, tarball: file:projects/arm-subscriptions.tgz}
|
||||
resolution: {integrity: sha512-VY1+MYOKFtHZX6Pi9GiDv+NA09OubHR8oYDeKz7OdPu4aP9xUAcI6FF7WprbAVyHGbB3qsnU2gtEma7bYzuWjA==, tarball: file:projects/arm-subscriptions.tgz}
|
||||
name: '@rush-temp/arm-subscriptions'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@azure-tools/test-recorder': 1.0.2
|
||||
'@azure/identity': 2.0.4
|
||||
'@microsoft/api-extractor': 7.18.11
|
||||
'@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
|
||||
'@rollup/plugin-json': 4.1.0_rollup@1.32.1
|
||||
'@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
|
||||
'@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
|
||||
'@rollup/plugin-commonjs': 21.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-json': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 13.2.1_rollup@2.70.2
|
||||
cross-env: 7.0.3
|
||||
mkdirp: 1.0.4
|
||||
mocha: 7.2.0
|
||||
rimraf: 3.0.2
|
||||
rollup: 1.32.1
|
||||
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
|
||||
rollup: 2.70.2
|
||||
rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.2
|
||||
tslib: 2.4.0
|
||||
typescript: 4.2.4
|
||||
uglify-js: 3.15.4
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- debug
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
file:projects/arm-support.tgz:
|
||||
resolution: {integrity: sha512-IUdjkIkvtLD8mA9bxxDLN7O6gEjy7xEGa8Cd18BYeQjMsB1hRkSMEHzoqk98NSFMm08EX1Dr4fOr2WQMgOcHvQ==, tarball: file:projects/arm-support.tgz}
|
||||
resolution: {integrity: sha512-GX5QAE0uXgpLjh0qgHHZ/yXWaic5TjnlXwnVdA5LYMtMHVK84KQEI8JOyBEQbQi1/26kAKYkWPrATfvaeZbxcw==, tarball: file:projects/arm-support.tgz}
|
||||
name: '@rush-temp/arm-support'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@azure-tools/test-recorder': 1.0.2
|
||||
'@azure/identity': 2.0.4
|
||||
'@microsoft/api-extractor': 7.18.11
|
||||
'@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
|
||||
'@rollup/plugin-json': 4.1.0_rollup@1.32.1
|
||||
'@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
|
||||
'@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
|
||||
'@rollup/plugin-commonjs': 21.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-json': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 13.2.1_rollup@2.70.2
|
||||
cross-env: 7.0.3
|
||||
mkdirp: 1.0.4
|
||||
mocha: 7.2.0
|
||||
rimraf: 3.0.2
|
||||
rollup: 1.32.1
|
||||
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
|
||||
rollup: 2.70.2
|
||||
rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.2
|
||||
tslib: 2.4.0
|
||||
typescript: 4.2.4
|
||||
uglify-js: 3.15.4
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- debug
|
||||
- encoding
|
||||
- supports-color
|
||||
|
@ -13684,54 +13689,56 @@ packages:
|
|||
dev: false
|
||||
|
||||
file:projects/arm-timeseriesinsights.tgz:
|
||||
resolution: {integrity: sha512-VevHHcFHXEGNemr3b4Elw+24nJsZqUNCOQOel0pwbqm1Dk4HSeDRwukATrw67RUHH0b323mtDlWhQNfxAJApbA==, tarball: file:projects/arm-timeseriesinsights.tgz}
|
||||
resolution: {integrity: sha512-AVnyRYDaZ+pLhNyr4HDTr1GrL671V5hZHaKl27OT1zEH0+JPSAOfJ9OHtsh9DSvSSZo3p9G9xEzpG2HfdE97hw==, tarball: file:projects/arm-timeseriesinsights.tgz}
|
||||
name: '@rush-temp/arm-timeseriesinsights'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@azure-tools/test-recorder': 1.0.2
|
||||
'@azure/identity': 2.0.4
|
||||
'@microsoft/api-extractor': 7.18.11
|
||||
'@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
|
||||
'@rollup/plugin-json': 4.1.0_rollup@1.32.1
|
||||
'@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
|
||||
'@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
|
||||
'@rollup/plugin-commonjs': 21.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-json': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 13.2.1_rollup@2.70.2
|
||||
cross-env: 7.0.3
|
||||
mkdirp: 1.0.4
|
||||
mocha: 7.2.0
|
||||
rimraf: 3.0.2
|
||||
rollup: 1.32.1
|
||||
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
|
||||
rollup: 2.70.2
|
||||
rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.2
|
||||
tslib: 2.4.0
|
||||
typescript: 4.2.4
|
||||
uglify-js: 3.15.4
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- debug
|
||||
- encoding
|
||||
- supports-color
|
||||
dev: false
|
||||
|
||||
file:projects/arm-trafficmanager.tgz:
|
||||
resolution: {integrity: sha512-LSoqkgZova/T39XUlQRdgIPERDEkvZk4RUoX5Z+KHcZlYigTS+XKWvqnDOY2TWa+EV/VdLJLk2Orwh+ig2Swsw==, tarball: file:projects/arm-trafficmanager.tgz}
|
||||
resolution: {integrity: sha512-6y1fl69SVMhSOcK8+cBmbssQZ46TJhai1xik4pzygoERr4q06GvDFAbA3J3ukw4es3sGmdMHbDX9RWZxLdnH9Q==, tarball: file:projects/arm-trafficmanager.tgz}
|
||||
name: '@rush-temp/arm-trafficmanager'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@azure-tools/test-recorder': 1.0.2
|
||||
'@azure/identity': 2.0.4
|
||||
'@microsoft/api-extractor': 7.18.11
|
||||
'@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
|
||||
'@rollup/plugin-json': 4.1.0_rollup@1.32.1
|
||||
'@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
|
||||
'@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
|
||||
'@rollup/plugin-commonjs': 21.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-json': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 13.2.1_rollup@2.70.2
|
||||
cross-env: 7.0.3
|
||||
mkdirp: 1.0.4
|
||||
mocha: 7.2.0
|
||||
rimraf: 3.0.2
|
||||
rollup: 1.32.1
|
||||
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
|
||||
rollup: 2.70.2
|
||||
rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.2
|
||||
tslib: 2.4.0
|
||||
typescript: 4.2.4
|
||||
uglify-js: 3.15.4
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- debug
|
||||
- encoding
|
||||
- supports-color
|
||||
|
@ -13765,27 +13772,28 @@ packages:
|
|||
dev: false
|
||||
|
||||
file:projects/arm-visualstudio.tgz:
|
||||
resolution: {integrity: sha512-uNItc53gBKTSt44jG4RoPQCSwNkb6gpJ469JB6drlKhHZngv6cWjTZauTy1ZkKzhjXAZzywTLTFqVWh8WyP0pQ==, tarball: file:projects/arm-visualstudio.tgz}
|
||||
resolution: {integrity: sha512-HbImcffqHoeNeqdV2CquzajCcnSpPIejiLkYm8feC7Mr+pRPVpYdbEwBCaL8DhiCrVQjbmMujSY6R13zwVNomA==, tarball: file:projects/arm-visualstudio.tgz}
|
||||
name: '@rush-temp/arm-visualstudio'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
'@azure-tools/test-recorder': 1.0.2
|
||||
'@azure/identity': 2.0.4
|
||||
'@microsoft/api-extractor': 7.18.11
|
||||
'@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
|
||||
'@rollup/plugin-json': 4.1.0_rollup@1.32.1
|
||||
'@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
|
||||
'@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
|
||||
'@rollup/plugin-commonjs': 21.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-json': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-multi-entry': 4.1.0_rollup@2.70.2
|
||||
'@rollup/plugin-node-resolve': 13.2.1_rollup@2.70.2
|
||||
cross-env: 7.0.3
|
||||
mkdirp: 1.0.4
|
||||
mocha: 7.2.0
|
||||
rimraf: 3.0.2
|
||||
rollup: 1.32.1
|
||||
rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
|
||||
rollup: 2.70.2
|
||||
rollup-plugin-sourcemaps: 0.6.3_rollup@2.70.2
|
||||
tslib: 2.4.0
|
||||
typescript: 4.2.4
|
||||
uglify-js: 3.15.4
|
||||
transitivePeerDependencies:
|
||||
- '@types/node'
|
||||
- debug
|
||||
- encoding
|
||||
- supports-color
|
||||
|
|
|
@ -15,3 +15,4 @@ https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-con
|
|||
https://docs.microsoft.com/javascript/api/@azure/arm-azureadexternalidentities
|
||||
https://docs.microsoft.com/javascript/api/@azure/arm-azureadexternalidentities?view=azure-node-preview
|
||||
https://docs.microsoft.com/javascript/api/@azure/arm-scvmm?view=azure-node-preview
|
||||
https://docs.microsoft.com/en-us/rest/api/index
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
# Release History
|
||||
|
||||
## 2.0.1 (2022-05-05)
|
||||
|
||||
**Features**
|
||||
|
||||
- Bug fix
|
||||
|
||||
## 2.0.0 (2022-01-21)
|
||||
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 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.
|
|
@ -16,6 +16,8 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
|
|||
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
||||
- 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].
|
||||
|
@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
|
|||
```javascript
|
||||
const { StorSimpleManagementClient } = require("@azure/arm-storsimple1200series");
|
||||
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 StorSimpleManagementClient(new DefaultAzureCredential(), subscriptionId);
|
||||
|
||||
// For client-side applications running in the browser, use this code instead:
|
||||
// const credential = new InteractiveBrowserCredential({
|
||||
// tenantId: "<YOUR_TENANT_ID>",
|
||||
// clientId: "<YOUR_CLIENT_ID>"
|
||||
// });
|
||||
// const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
|
||||
"readme": "specification/storSimple1200Series/resource-manager/readme.md",
|
||||
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/storSimple1200Series/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true",
|
||||
"commit": "d600759c3516b61a7c353bc8682bccbab85a6f65",
|
||||
"readme": "specification\\storsimple1200series\\resource-manager\\readme.md",
|
||||
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storsimple1200series\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true",
|
||||
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
|
||||
"use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
|
||||
}
|
||||
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
|
||||
"use": "@autorest/typescript@6.0.0-alpha.19.20220408.1"
|
||||
}
|
||||
|
|
|
@ -1,18 +1,31 @@
|
|||
{
|
||||
"$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" },
|
||||
"docModel": {
|
||||
"enabled": true
|
||||
},
|
||||
"apiReport": {
|
||||
"enabled": true,
|
||||
"reportFolder": "./review"
|
||||
},
|
||||
"dtsRollup": {
|
||||
"enabled": true,
|
||||
"untrimmedFilePath": "",
|
||||
"publicTrimmedFilePath": "./types/arm-storsimple1200series.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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
"sdk-type": "mgmt",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "A generated SDK for StorSimpleManagementClient.",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
|
@ -11,9 +11,9 @@
|
|||
"@azure/core-lro": "^2.2.0",
|
||||
"@azure/abort-controller": "^1.0.0",
|
||||
"@azure/core-paging": "^1.2.0",
|
||||
"@azure/core-client": "^1.0.0",
|
||||
"@azure/core-client": "^1.5.0",
|
||||
"@azure/core-auth": "^1.3.0",
|
||||
"@azure/core-rest-pipeline": "^1.1.0",
|
||||
"@azure/core-rest-pipeline": "^1.8.0",
|
||||
"tslib": "^2.2.0"
|
||||
},
|
||||
"keywords": [
|
||||
|
@ -29,13 +29,13 @@
|
|||
"types": "./types/arm-storsimple1200series.d.ts",
|
||||
"devDependencies": {
|
||||
"@microsoft/api-extractor": "7.18.11",
|
||||
"@rollup/plugin-commonjs": "11.0.2",
|
||||
"@rollup/plugin-json": "^4.0.0",
|
||||
"@rollup/plugin-multi-entry": "^3.0.0",
|
||||
"@rollup/plugin-node-resolve": "^8.0.0",
|
||||
"@rollup/plugin-commonjs": "^21.0.1",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-multi-entry": "^4.1.0",
|
||||
"@rollup/plugin-node-resolve": "^13.1.3",
|
||||
"mkdirp": "^1.0.4",
|
||||
"rollup": "^1.16.3",
|
||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||
"rollup": "^2.66.1",
|
||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||
"typescript": "~4.2.0",
|
||||
"uglify-js": "^3.4.9",
|
||||
"rimraf": "^3.0.0",
|
||||
|
@ -101,7 +101,7 @@
|
|||
"//metadata": {
|
||||
"constantPaths": [
|
||||
{
|
||||
"path": "src/StorSimpleManagementClient.ts",
|
||||
"path": "src/storSimpleManagementClient.ts",
|
||||
"prefix": "packageDetails"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
|
|||
|
||||
import nodeBuiltins from "builtin-modules";
|
||||
|
||||
/**
|
||||
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
||||
*
|
||||
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
||||
* __exportStar downleveled helper function to declare its exports which confuses
|
||||
* rollup's automatic discovery mechanism.
|
||||
*
|
||||
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
||||
*/
|
||||
export function openTelemetryCommonJs() {
|
||||
const namedExports = {};
|
||||
|
||||
for (const key of [
|
||||
"@opentelemetry/api",
|
||||
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
||||
]) {
|
||||
namedExports[key] = [
|
||||
"SpanKind",
|
||||
"TraceFlags",
|
||||
"getSpan",
|
||||
"setSpan",
|
||||
"SpanStatusCode",
|
||||
"getSpanContext",
|
||||
"setSpanContext"
|
||||
];
|
||||
}
|
||||
|
||||
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
||||
|
||||
for (const version of releasedOpenTelemetryVersions) {
|
||||
namedExports[
|
||||
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
||||
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
||||
] = [
|
||||
"SpanKind",
|
||||
"TraceFlags",
|
||||
"getSpan",
|
||||
"setSpan",
|
||||
"StatusCode",
|
||||
"CanonicalCode",
|
||||
"getSpanContext",
|
||||
"setSpanContext"
|
||||
];
|
||||
}
|
||||
|
||||
return namedExports;
|
||||
}
|
||||
|
||||
// #region Warning Handler
|
||||
|
||||
/**
|
||||
* A function that can determine whether a rollupwarning should be ignored. If
|
||||
* A function that can determine whether a rollup warning should be ignored. If
|
||||
* the function returns `true`, then the warning will not be displayed.
|
||||
*/
|
||||
|
||||
function ignoreNiseSinonEvalWarnings(warning) {
|
||||
function ignoreNiseSinonEval(warning) {
|
||||
return (
|
||||
warning.code === "EVAL" &&
|
||||
warning.id &&
|
||||
|
@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
|
|||
);
|
||||
}
|
||||
|
||||
function ignoreChaiCircularDependencyWarnings(warning) {
|
||||
function ignoreChaiCircularDependency(warning) {
|
||||
return (
|
||||
warning.code === "CIRCULAR_DEPENDENCY" &&
|
||||
warning.importer && warning.importer.includes("node_modules/chai") === true
|
||||
);
|
||||
}
|
||||
|
||||
const warningInhibitors = [
|
||||
ignoreChaiCircularDependencyWarnings,
|
||||
ignoreNiseSinonEvalWarnings
|
||||
];
|
||||
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
||||
|
||||
/**
|
||||
* Construct a warning handler for the shared rollup configuration
|
||||
|
@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
|
|||
nodeResolve({
|
||||
mainFields: ["module", "browser"]
|
||||
}),
|
||||
cjs({
|
||||
namedExports: {
|
||||
// Chai's strange internal architecture makes it impossible to statically
|
||||
// analyze its exports.
|
||||
chai: [
|
||||
"version",
|
||||
"use",
|
||||
"util",
|
||||
"config",
|
||||
"expect",
|
||||
"should",
|
||||
"assert"
|
||||
],
|
||||
...openTelemetryCommonJs()
|
||||
}
|
||||
}),
|
||||
cjs(),
|
||||
json(),
|
||||
sourcemaps()
|
||||
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
||||
|
@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
|
|||
],
|
||||
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
||||
preserveSymlinks: false,
|
||||
plugins: [sourcemaps(), nodeResolve(), cjs()]
|
||||
plugins: [sourcemaps(), nodeResolve()]
|
||||
};
|
||||
|
||||
const config = [baseConfig];
|
||||
|
|
|
@ -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 {
|
||||
AccessControlRecord,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or Updates an access control record.
|
||||
*
|
||||
* @summary Creates or Updates an access control record.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsCreateOrUpdate.json
|
||||
*/
|
||||
async function accessControlRecordsCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const accessControlRecordName = "AcrForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const accessControlRecord: AccessControlRecord = {
|
||||
name: "AcrForSDKTest",
|
||||
initiatorName: "iqn.2017-06.com.contoso:ForTest"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.accessControlRecords.beginCreateOrUpdateAndWait(
|
||||
accessControlRecordName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
accessControlRecord
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
accessControlRecordsCreateOrUpdate().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the access control record.
|
||||
*
|
||||
* @summary Deletes the access control record.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsDelete.json
|
||||
*/
|
||||
async function accessControlRecordsDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const accessControlRecordName = "AcrForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.accessControlRecords.beginDeleteAndWait(
|
||||
accessControlRecordName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
accessControlRecordsDelete().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified access control record name.
|
||||
*
|
||||
* @summary Returns the properties of the specified access control record name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsGet.json
|
||||
*/
|
||||
async function accessControlRecordsGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const accessControlRecordName = "AcrForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.accessControlRecords.get(
|
||||
accessControlRecordName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
accessControlRecordsGet().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the access control records in a manager.
|
||||
*
|
||||
* @summary Retrieves all the access control records in a manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AccessControlRecordsListByManager.json
|
||||
*/
|
||||
async function accessControlRecordsListByManager() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.accessControlRecords.listByManager(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
accessControlRecordsListByManager().catch(console.error);
|
|
@ -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 {
|
||||
ClearAlertRequest,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Clear the alerts.
|
||||
*
|
||||
* @summary Clear the alerts.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsClear.json
|
||||
*/
|
||||
async function alertsClear() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest4";
|
||||
const request: ClearAlertRequest = {
|
||||
alerts: [
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hManagerForSDKTest4/devices/is2-hlmdhdgu1et/alerts/a1f3a945-74dc-4387-bf17-a4f226374833"
|
||||
]
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.alerts.clear(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
request
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
alertsClear().catch(console.error);
|
|
@ -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 {
|
||||
AlertsListByManagerOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the alerts in a manager.
|
||||
*
|
||||
* @summary Retrieves all the alerts in a manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsListByManager.json
|
||||
*/
|
||||
async function alertsListByManager() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest4";
|
||||
const filter = "status eq 'Active' and severity eq 'Critical'";
|
||||
const options: AlertsListByManagerOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.alerts.listByManager(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
alertsListByManager().catch(console.error);
|
|
@ -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 {
|
||||
SendTestAlertEmailRequest,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Sends a test alert email.
|
||||
*
|
||||
* @summary Sends a test alert email.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/AlertsSendTestEmail.json
|
||||
*/
|
||||
async function alertsSendTestEmail() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "is2-hlmdhdgu1et";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest4";
|
||||
const request: SendTestAlertEmailRequest = {
|
||||
emailList: ["testemailid@contoso.com"]
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.alerts.sendTestEmail(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
request
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
alertsSendTestEmail().catch(console.error);
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to List of AvailableProviderOperations
|
||||
*
|
||||
* @summary List of AvailableProviderOperations
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/OperationsList.json
|
||||
*/
|
||||
async function operationsList() {
|
||||
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.availableProviderOperationsOperations.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
operationsList().catch(console.error);
|
|
@ -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 {
|
||||
BackupScheduleGroup,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or Updates the backup schedule Group.
|
||||
*
|
||||
* @summary Creates or Updates the backup schedule Group.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsCreateOrUpdate.json
|
||||
*/
|
||||
async function backupScheduleGroupsCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const scheduleGroupName = "BackupSchGroupForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const scheduleGroup: BackupScheduleGroup = {
|
||||
name: "BackupSchGroupForSDKTest",
|
||||
startTime: { hour: 17, minute: 38 }
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.backupScheduleGroups.beginCreateOrUpdateAndWait(
|
||||
deviceName,
|
||||
scheduleGroupName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
scheduleGroup
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
backupScheduleGroupsCreateOrUpdate().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the backup schedule group.
|
||||
*
|
||||
* @summary Deletes the backup schedule group.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsDelete.json
|
||||
*/
|
||||
async function backupScheduleGroupsDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-DMNJB2PET0";
|
||||
const scheduleGroupName = "BackupSchGroupForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.backupScheduleGroups.beginDeleteAndWait(
|
||||
deviceName,
|
||||
scheduleGroupName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
backupScheduleGroupsDelete().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified backup schedule group name.
|
||||
*
|
||||
* @summary Returns the properties of the specified backup schedule group name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsGet.json
|
||||
*/
|
||||
async function backupScheduleGroupsGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const scheduleGroupName = "BackupSchGroupForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.backupScheduleGroups.get(
|
||||
deviceName,
|
||||
scheduleGroupName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
backupScheduleGroupsGet().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the backup schedule groups in a device.
|
||||
*
|
||||
* @summary Retrieves all the backup schedule groups in a device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupScheduleGroupsListByDevice.json
|
||||
*/
|
||||
async function backupScheduleGroupsListByDevice() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-0NZI14MDTF";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.backupScheduleGroups.listByDevice(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
backupScheduleGroupsListByDevice().catch(console.error);
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import {
|
||||
CloneRequest,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Clones the given backup element to a new disk or share with given details.
|
||||
*
|
||||
* @summary Clones the given backup element to a new disk or share with given details.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsClone.json
|
||||
*/
|
||||
async function backupsClone() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const backupName = "58d33025-e837-41cc-b15f-7c85ced64aab";
|
||||
const elementName = "2304968f-91af-4f59-8b79-31e321eee40e";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const cloneRequest: CloneRequest = {
|
||||
newEndpointName: "ClonedTieredFileShareForSDKTest",
|
||||
share: {
|
||||
name: "TieredFileShareForSDKTest",
|
||||
description: "Restore file Share",
|
||||
adminUser: "HSDK-4XY4FI2IVGStorSimpleAdmin",
|
||||
dataPolicy: "Tiered",
|
||||
monitoringStatus: "Enabled",
|
||||
provisionedCapacityInBytes: 536870912000,
|
||||
shareStatus: "Online"
|
||||
},
|
||||
targetAccessPointId:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/fileServers/HSDK-4XY4FI2IVG",
|
||||
targetDeviceId:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.backups.beginCloneAndWait(
|
||||
deviceName,
|
||||
backupName,
|
||||
elementName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
cloneRequest
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
backupsClone().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the backup.
|
||||
*
|
||||
* @summary Deletes the backup.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsDelete.json
|
||||
*/
|
||||
async function backupsDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const backupName = "315c3461-96ad-41bf-af0b-3a8be5113203";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.backups.beginDeleteAndWait(
|
||||
deviceName,
|
||||
backupName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
backupsDelete().catch(console.error);
|
|
@ -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 {
|
||||
BackupsListByDeviceOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the backups in a device. Can be used to get the backups for failover also.
|
||||
*
|
||||
* @summary Retrieves all the backups in a device. Can be used to get the backups for failover also.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsListByDevice.json
|
||||
*/
|
||||
async function backupsListByDevice() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter = "initiatedBy eq 'Manual'";
|
||||
const options: BackupsListByDeviceOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.backups.listByDevice(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
backupsListByDevice().catch(console.error);
|
|
@ -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 {
|
||||
BackupsListByManagerOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the backups in a manager.
|
||||
*
|
||||
* @summary Retrieves all the backups in a manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/BackupsListByManager.json
|
||||
*/
|
||||
async function backupsListByManager() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter =
|
||||
"createdTime ge '2018-08-10T17:30:03Z' and createdTime le '2018-08-14T17:30:03Z' and initiatedBy eq 'Manual'";
|
||||
const options: BackupsListByManagerOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.backups.listByManager(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
backupsListByManager().catch(console.error);
|
|
@ -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 {
|
||||
ChapSettings,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the chap setting.
|
||||
*
|
||||
* @summary Creates or updates the chap setting.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsCreateOrUpdate.json
|
||||
*/
|
||||
async function chapSettingsCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-WSJQERQW3F";
|
||||
const chapUserName = "ChapSettingForSDK";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const chapSetting: ChapSettings = {
|
||||
name: "ChapSettingForSDK",
|
||||
password: {
|
||||
encryptionAlgorithm: "RSAES_PKCS1_v_1_5",
|
||||
encryptionCertificateThumbprint:
|
||||
"D73DB57C4CDD6761E159F8D1E8A7D759424983FD",
|
||||
value: "<value>"
|
||||
}
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.chapSettingsOperations.beginCreateOrUpdateAndWait(
|
||||
deviceName,
|
||||
chapUserName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
chapSetting
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
chapSettingsCreateOrUpdate().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the chap setting.
|
||||
*
|
||||
* @summary Deletes the chap setting.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsDelete.json
|
||||
*/
|
||||
async function chapSettingsDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-WSJQERQW3F";
|
||||
const chapUserName = "ChapSettingForSDKForDelete";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.chapSettingsOperations.beginDeleteAndWait(
|
||||
deviceName,
|
||||
chapUserName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
chapSettingsDelete().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified chap setting name.
|
||||
*
|
||||
* @summary Returns the properties of the specified chap setting name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsGet.json
|
||||
*/
|
||||
async function chapSettingsGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-WSJQERQW3F";
|
||||
const chapUserName = "ChapSettingForSDK";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.chapSettingsOperations.get(
|
||||
deviceName,
|
||||
chapUserName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
chapSettingsGet().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the chap settings in a device.
|
||||
*
|
||||
* @summary Retrieves all the chap settings in a device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ChapSettingsListByDevice.json
|
||||
*/
|
||||
async function chapSettingsListByDevice() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-0NZI14MDTF";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.chapSettingsOperations.listByDevice(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
chapSettingsListByDevice().catch(console.error);
|
|
@ -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 {
|
||||
AlertSettings,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the alert settings
|
||||
*
|
||||
* @summary Creates or updates the alert settings
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateAlertSettings.json
|
||||
*/
|
||||
async function devicesCreateOrUpdateAlertSettings() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-T4ZA3EAJFR";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const alertSettings: AlertSettings = {
|
||||
name: "default",
|
||||
additionalRecipientEmailList: ["testuser@abc.com"],
|
||||
alertNotificationCulture: "en-US",
|
||||
emailNotification: "Enabled",
|
||||
notificationToServiceOwners: "Disabled"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginCreateOrUpdateAlertSettingsAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
alertSettings
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesCreateOrUpdateAlertSettings().catch(console.error);
|
|
@ -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 {
|
||||
SecuritySettings,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the security settings.
|
||||
*
|
||||
* @summary Creates or updates the security settings.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesCreateOrUpdateSecuritySettings.json
|
||||
*/
|
||||
async function devicesCreateOrUpdateSecuritySettings() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-T4ZA3EAJFR";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const securitySettings: SecuritySettings = {
|
||||
deviceAdminPassword: {
|
||||
encryptionAlgorithm: "RSAES_PKCS1_v_1_5",
|
||||
encryptionCertificateThumbprint:
|
||||
"D73DB57C4CDD6761E159F8D1E8A7D759424983FD",
|
||||
value: "<value>"
|
||||
}
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginCreateOrUpdateSecuritySettingsAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
securitySettings
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesCreateOrUpdateSecuritySettings().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deactivates the device.
|
||||
*
|
||||
* @summary Deactivates the device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDeactivate.json
|
||||
*/
|
||||
async function devicesDeactivate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "SDK-DELETE";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "ManagerForDeleteOperation";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginDeactivateAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesDeactivate().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the device.
|
||||
*
|
||||
* @summary Deletes the device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDelete.json
|
||||
*/
|
||||
async function devicesDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "SDK-DELETE";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "ManagerForDeleteOperation";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginDeleteAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesDelete().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Downloads updates on the device.
|
||||
*
|
||||
* @summary Downloads updates on the device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesDownloadUpdates.json
|
||||
*/
|
||||
async function devicesDownloadUpdates() {
|
||||
const subscriptionId = "4385cf00-2d3a-425a-832f-f4285b1c9dce";
|
||||
const deviceName = "sugattdeviceforSDK";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "ManagerForSDKTest1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginDownloadUpdatesAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesDownloadUpdates().catch(console.error);
|
|
@ -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 {
|
||||
FailoverRequest,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Fails over the device to another device.
|
||||
*
|
||||
* @summary Fails over the device to another device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesFailover.json
|
||||
*/
|
||||
async function devicesFailover() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-0NZI14MDTF";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const failoverRequest: FailoverRequest = {
|
||||
accesspointIds: [
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-0NZI14MDTF/iscsiServers/HSDK-0NZI14MDTF"
|
||||
],
|
||||
keepSourceDevice: true,
|
||||
skipValidation: true,
|
||||
targetDeviceId:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-UGU4PITWNI"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginFailoverAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
failoverRequest
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesFailover().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the alert settings of the specified device name.
|
||||
*
|
||||
* @summary Returns the alert settings of the specified device name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGetAlertSettings.json
|
||||
*/
|
||||
async function devicesGetAlertSettings() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-T4ZA3EAJFR";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.getAlertSettings(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesGetAlertSettings().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the network settings of the specified device name.
|
||||
*
|
||||
* @summary Returns the network settings of the specified device name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGetNetworkSettings.json
|
||||
*/
|
||||
async function devicesGetNetworkSettings() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-T4ZA3EAJFR";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.getNetworkSettings(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesGetNetworkSettings().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified device name.
|
||||
*
|
||||
* @summary Returns the properties of the specified device name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGet.json
|
||||
*/
|
||||
async function devicesGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-ARCSX4MVKZ";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.get(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesGet().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the time settings of the specified device name.
|
||||
*
|
||||
* @summary Returns the time settings of the specified device name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGetTimeSettings.json
|
||||
*/
|
||||
async function devicesGetTimeSettings() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-T4ZA3EAJFR";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.getTimeSettings(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesGetTimeSettings().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the update summary of the specified device name.
|
||||
*
|
||||
* @summary Returns the update summary of the specified device name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesGetUpdateSummary.json
|
||||
*/
|
||||
async function devicesGetUpdateSummary() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HBVT-02X525X2W0";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest4";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.getUpdateSummary(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesGetUpdateSummary().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Installs the updates on the device.
|
||||
*
|
||||
* @summary Installs the updates on the device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesInstallUpdates.json
|
||||
*/
|
||||
async function devicesInstallUpdates() {
|
||||
const subscriptionId = "4385cf00-2d3a-425a-832f-f4285b1c9dce";
|
||||
const deviceName = "sugattdeviceforSDK";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "ManagerForSDKTest1";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginInstallUpdatesAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesInstallUpdates().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the devices in a manager.
|
||||
*
|
||||
* @summary Retrieves all the devices in a manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesListByManager.json
|
||||
*/
|
||||
async function devicesListByManager() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.devices.listByManager(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
devicesListByManager().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the devices which can be used as failover targets for the given device.
|
||||
*
|
||||
* @summary Retrieves all the devices which can be used as failover targets for the given device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesListFailoverTarget.json
|
||||
*/
|
||||
async function devicesListFailoverTarget() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.devices.listFailoverTarget(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
devicesListFailoverTarget().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves metric definition of all metrics aggregated at device.
|
||||
*
|
||||
* @summary Retrieves metric definition of all metrics aggregated at device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesListMetricDefinition.json
|
||||
*/
|
||||
async function devicesListMetricDefinition() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.devices.listMetricDefinition(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
devicesListMetricDefinition().catch(console.error);
|
|
@ -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 {
|
||||
DevicesListMetricsOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves the device metrics.
|
||||
*
|
||||
* @summary Retrieves the device metrics.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesListMetrics.json
|
||||
*/
|
||||
async function devicesListMetrics() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter =
|
||||
"startTime ge '2018-08-10T18:30:00Z' and endTime le '2018-08-11T18:30:00Z'";
|
||||
const options: DevicesListMetricsOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.devices.listMetrics(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
devicesListMetrics().catch(console.error);
|
|
@ -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 {
|
||||
DevicePatch,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Patches the device.
|
||||
*
|
||||
* @summary Patches the device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesPatch.json
|
||||
*/
|
||||
async function devicesPatch() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const devicePatch: DevicePatch = {
|
||||
deviceDescription: "NewDescription8/14/2018 2:30:34 PM"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginPatchAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
devicePatch
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesPatch().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Scans for updates on the device.
|
||||
*
|
||||
* @summary Scans for updates on the device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/DevicesScanForUpdates.json
|
||||
*/
|
||||
async function devicesScanForUpdates() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HBVT-02X525X2W0";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest4";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.devices.beginScanForUpdatesAndWait(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
devicesScanForUpdates().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Backup the file server now.
|
||||
*
|
||||
* @summary Backup the file server now.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersBackupNow.json
|
||||
*/
|
||||
async function fileServersBackupNow() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const fileServerName = "HSDK-4XY4FI2IVG";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.fileServers.beginBackupNowAndWait(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fileServersBackupNow().catch(console.error);
|
|
@ -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 {
|
||||
FileServer,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the file server.
|
||||
*
|
||||
* @summary Creates or updates the file server.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersCreateOrUpdate.json
|
||||
*/
|
||||
async function fileServersCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const fileServerName = "HSDK-4XY4FI2IVG";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const fileServer: FileServer = {
|
||||
name: "HSDK-4XY4FI2IVG",
|
||||
description: "Demo FileServer for SDK Test",
|
||||
backupScheduleGroupId:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/hsdk-4xy4fi2ivg/backupScheduleGroups/BackupSchGroupForSDKTest",
|
||||
domainName: "fareast.corp.microsoft.com",
|
||||
storageDomainId:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/sd-fs-HSDK-4XY4FI2IVG"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.fileServers.beginCreateOrUpdateAndWait(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
fileServer
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fileServersCreateOrUpdate().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the file server.
|
||||
*
|
||||
* @summary Deletes the file server.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersDelete.json
|
||||
*/
|
||||
async function fileServersDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-DMNJB2PET0";
|
||||
const fileServerName = "HSDK-DMNJB2PET0";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.fileServers.beginDeleteAndWait(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fileServersDelete().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified file server name.
|
||||
*
|
||||
* @summary Returns the properties of the specified file server name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersGet.json
|
||||
*/
|
||||
async function fileServersGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const fileServerName = "HSDK-4XY4FI2IVG";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.fileServers.get(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fileServersGet().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the file servers in a device.
|
||||
*
|
||||
* @summary Retrieves all the file servers in a device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersListByDevice.json
|
||||
*/
|
||||
async function fileServersListByDevice() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-DMNJB2PET0";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileServers.listByDevice(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
fileServersListByDevice().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the file servers in a manager.
|
||||
*
|
||||
* @summary Retrieves all the file servers in a manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersListByManager.json
|
||||
*/
|
||||
async function fileServersListByManager() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileServers.listByManager(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
fileServersListByManager().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves metric definitions of all metrics aggregated at the file server.
|
||||
*
|
||||
* @summary Retrieves metric definitions of all metrics aggregated at the file server.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersListMetricDefinition.json
|
||||
*/
|
||||
async function fileServersListMetricDefinition() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-DMNJB2PET0";
|
||||
const fileServerName = "HSDK-DMNJB2PET0";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileServers.listMetricDefinition(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
fileServersListMetricDefinition().catch(console.error);
|
|
@ -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 {
|
||||
FileServersListMetricsOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the file server metrics.
|
||||
*
|
||||
* @summary Gets the file server metrics.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileServersListMetrics.json
|
||||
*/
|
||||
async function fileServersListMetrics() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-DMNJB2PET0";
|
||||
const fileServerName = "HSDK-DMNJB2PET0";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter =
|
||||
"startTime ge '2018-08-10T18:30:00Z' and endTime le '2018-08-11T18:30:00Z'";
|
||||
const options: FileServersListMetricsOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileServers.listMetrics(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
fileServersListMetrics().catch(console.error);
|
|
@ -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 {
|
||||
FileShare,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the file share.
|
||||
*
|
||||
* @summary Creates or updates the file share.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesCreateOrUpdate.json
|
||||
*/
|
||||
async function fileSharesCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const fileServerName = "HSDK-4XY4FI2IVG";
|
||||
const shareName = "Auto-TestFileShare1";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const fileShare: FileShare = {
|
||||
name: "Auto-TestFileShare1",
|
||||
description: "Demo FileShare for SDK Test Tiered",
|
||||
adminUser: "fareastidcdlslb",
|
||||
dataPolicy: "Tiered",
|
||||
monitoringStatus: "Enabled",
|
||||
provisionedCapacityInBytes: 536870912000,
|
||||
shareStatus: "Online"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.fileShares.beginCreateOrUpdateAndWait(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
shareName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
fileShare
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fileSharesCreateOrUpdate().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the file share.
|
||||
*
|
||||
* @summary Deletes the file share.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesDelete.json
|
||||
*/
|
||||
async function fileSharesDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-DMNJB2PET0";
|
||||
const fileServerName = "HSDK-DMNJB2PET0";
|
||||
const shareName = "Auto-TestFileShare2";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.fileShares.beginDeleteAndWait(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
shareName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fileSharesDelete().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified file share name.
|
||||
*
|
||||
* @summary Returns the properties of the specified file share name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesGet.json
|
||||
*/
|
||||
async function fileSharesGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const fileServerName = "HSDK-4XY4FI2IVG";
|
||||
const shareName = "Auto-TestFileShare1";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.fileShares.get(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
shareName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
fileSharesGet().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the file shares in a device.
|
||||
*
|
||||
* @summary Retrieves all the file shares in a device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesListByDevice.json
|
||||
*/
|
||||
async function fileSharesListByDevice() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-4XY4FI2IVG";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileShares.listByDevice(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
fileSharesListByDevice().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the file shares in a file server.
|
||||
*
|
||||
* @summary Retrieves all the file shares in a file server.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesListByFileServer.json
|
||||
*/
|
||||
async function fileSharesListByFileServer() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-ARCSX4MVKZ";
|
||||
const fileServerName = "HSDK-ARCSX4MVKZ";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileShares.listByFileServer(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
fileSharesListByFileServer().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves metric definitions of all metrics aggregated at the file share.
|
||||
*
|
||||
* @summary Retrieves metric definitions of all metrics aggregated at the file share.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesListMetricDefinition.json
|
||||
*/
|
||||
async function fileSharesListMetricDefinition() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-DMNJB2PET0";
|
||||
const fileServerName = "HSDK-DMNJB2PET0";
|
||||
const shareName = "Auto-TestFileShare2";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileShares.listMetricDefinition(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
shareName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
fileSharesListMetricDefinition().catch(console.error);
|
|
@ -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 {
|
||||
FileSharesListMetricsOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the file share metrics
|
||||
*
|
||||
* @summary Gets the file share metrics
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/FileSharesListMetrics.json
|
||||
*/
|
||||
async function fileSharesListMetrics() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-DMNJB2PET0";
|
||||
const fileServerName = "HSDK-DMNJB2PET0";
|
||||
const shareName = "Auto-TestFileShare2";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter =
|
||||
"startTime ge '2018-08-10T18:30:00Z' and endTime le '2018-08-11T18:30:00Z'";
|
||||
const options: FileSharesListMetricsOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.fileShares.listMetrics(
|
||||
deviceName,
|
||||
fileServerName,
|
||||
shareName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
fileSharesListMetrics().catch(console.error);
|
|
@ -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 {
|
||||
IscsiDisk,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the iSCSI disk.
|
||||
*
|
||||
* @summary Creates or updates the iSCSI disk.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksCreateOrUpdate.json
|
||||
*/
|
||||
async function iscsiDisksCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-0NZI14MDTF";
|
||||
const iscsiServerName = "HSDK-0NZI14MDTF";
|
||||
const diskName = "Auto-TestIscsiDisk1";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const iscsiDisk: IscsiDisk = {
|
||||
name: "Auto-TestIscsiDisk1",
|
||||
description: "Demo IscsiDisk for SDK Test Tiered",
|
||||
accessControlRecords: [],
|
||||
dataPolicy: "Tiered",
|
||||
diskStatus: "Online",
|
||||
monitoringStatus: "Enabled",
|
||||
provisionedCapacityInBytes: 536870912000
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.iscsiDisks.beginCreateOrUpdateAndWait(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
diskName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
iscsiDisk
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
iscsiDisksCreateOrUpdate().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the iSCSI disk.
|
||||
*
|
||||
* @summary Deletes the iSCSI disk.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksDelete.json
|
||||
*/
|
||||
async function iscsiDisksDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const iscsiServerName = "HSDK-UGU4PITWNI";
|
||||
const diskName = "ClonedTieredIscsiDiskForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.iscsiDisks.beginDeleteAndWait(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
diskName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
iscsiDisksDelete().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified iSCSI disk name.
|
||||
*
|
||||
* @summary Returns the properties of the specified iSCSI disk name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksGet.json
|
||||
*/
|
||||
async function iscsiDisksGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-0NZI14MDTF";
|
||||
const iscsiServerName = "HSDK-0NZI14MDTF";
|
||||
const diskName = "Auto-TestIscsiDisk1";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.iscsiDisks.get(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
diskName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
iscsiDisksGet().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the iSCSI disks in a device.
|
||||
*
|
||||
* @summary Retrieves all the iSCSI disks in a device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksListByDevice.json
|
||||
*/
|
||||
async function iscsiDisksListByDevice() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-0NZI14MDTF";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.iscsiDisks.listByDevice(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
iscsiDisksListByDevice().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the disks in a iSCSI server.
|
||||
*
|
||||
* @summary Retrieves all the disks in a iSCSI server.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksListByIscsiServer.json
|
||||
*/
|
||||
async function iscsiDisksListByIscsiServer() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-0NZI14MDTF";
|
||||
const iscsiServerName = "HSDK-0NZI14MDTF";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.iscsiDisks.listByIscsiServer(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
iscsiDisksListByIscsiServer().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves metric definitions for all metric aggregated at the iSCSI disk.
|
||||
*
|
||||
* @summary Retrieves metric definitions for all metric aggregated at the iSCSI disk.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksListMetricDefinition.json
|
||||
*/
|
||||
async function iscsiDisksListMetricDefinition() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-WSJQERQW3F";
|
||||
const iscsiServerName = "HSDK-WSJQERQW3F";
|
||||
const diskName = "TieredIscsiDiskForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.iscsiDisks.listMetricDefinition(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
diskName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
iscsiDisksListMetricDefinition().catch(console.error);
|
|
@ -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 {
|
||||
IscsiDisksListMetricsOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the iSCSI disk metrics
|
||||
*
|
||||
* @summary Gets the iSCSI disk metrics
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiDisksListMetrics.json
|
||||
*/
|
||||
async function iscsiDisksListMetrics() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-WSJQERQW3F";
|
||||
const iscsiServerName = "HSDK-WSJQERQW3F";
|
||||
const diskName = "TieredIscsiDiskForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter =
|
||||
"startTime ge '2018-08-10T18:30:00Z' and endTime le '2018-08-11T18:30:00Z'";
|
||||
const options: IscsiDisksListMetricsOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.iscsiDisks.listMetrics(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
diskName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
iscsiDisksListMetrics().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Backup the iSCSI server now.
|
||||
*
|
||||
* @summary Backup the iSCSI server now.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersBackupNow.json
|
||||
*/
|
||||
async function iscsiServersBackupNow() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-0NZI14MDTF";
|
||||
const iscsiServerName = "HSDK-0NZI14MDTF";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.iscsiServers.beginBackupNowAndWait(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
iscsiServersBackupNow().catch(console.error);
|
|
@ -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 {
|
||||
IscsiServer,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the iSCSI server.
|
||||
*
|
||||
* @summary Creates or updates the iSCSI server.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersCreateOrUpdate.json
|
||||
*/
|
||||
async function iscsiServersCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-WSJQERQW3F";
|
||||
const iscsiServerName = "HSDK-WSJQERQW3F";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const iscsiServer: IscsiServer = {
|
||||
name: "HSDK-WSJQERQW3F",
|
||||
type: "Microsoft.StorSimple/managers/devices/iscsiServers",
|
||||
backupScheduleGroupId:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/backupScheduleGroups/Default-HSDK-WSJQERQW3F-BackupScheduleGroup",
|
||||
chapId:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/chapSettings/ChapSettingForSDK",
|
||||
id:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/devices/HSDK-WSJQERQW3F/iscsiServers/HSDK-WSJQERQW3F",
|
||||
reverseChapId: "",
|
||||
storageDomainId:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageDomains/Default-HSDK-WSJQERQW3F-StorageDomain"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.iscsiServers.beginCreateOrUpdateAndWait(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
iscsiServer
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
iscsiServersCreateOrUpdate().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the iSCSI server.
|
||||
*
|
||||
* @summary Deletes the iSCSI server.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersDelete.json
|
||||
*/
|
||||
async function iscsiServersDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const iscsiServerName = "HSDK-UGU4PITWNI";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.iscsiServers.beginDeleteAndWait(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
iscsiServersDelete().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified iSCSI server name.
|
||||
*
|
||||
* @summary Returns the properties of the specified iSCSI server name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersGet.json
|
||||
*/
|
||||
async function iscsiServersGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-WSJQERQW3F";
|
||||
const iscsiServerName = "HSDK-WSJQERQW3F";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.iscsiServers.get(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
iscsiServersGet().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the iSCSI in a device.
|
||||
*
|
||||
* @summary Retrieves all the iSCSI in a device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersListByDevice.json
|
||||
*/
|
||||
async function iscsiServersListByDevice() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.iscsiServers.listByDevice(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
iscsiServersListByDevice().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the iSCSI servers in a manager.
|
||||
*
|
||||
* @summary Retrieves all the iSCSI servers in a manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersListByManager.json
|
||||
*/
|
||||
async function iscsiServersListByManager() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.iscsiServers.listByManager(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
iscsiServersListByManager().catch(console.error);
|
|
@ -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 { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves metric definitions for all metrics aggregated at iSCSI server.
|
||||
*
|
||||
* @summary Retrieves metric definitions for all metrics aggregated at iSCSI server.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersListMetricDefinition.json
|
||||
*/
|
||||
async function iscsiServersListMetricDefinition() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const iscsiServerName = "HSDK-UGU4PITWNI";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.iscsiServers.listMetricDefinition(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
iscsiServersListMetricDefinition().catch(console.error);
|
|
@ -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 {
|
||||
IscsiServersListMetricsOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the iSCSI server metrics
|
||||
*
|
||||
* @summary Gets the iSCSI server metrics
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/IscsiServersListMetrics.json
|
||||
*/
|
||||
async function iscsiServersListMetrics() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-UGU4PITWNI";
|
||||
const iscsiServerName = "HSDK-UGU4PITWNI";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter =
|
||||
"startTime ge '2018-08-10T18:30:00Z' and endTime le '2018-08-11T18:30:00Z'";
|
||||
const options: IscsiServersListMetricsOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.iscsiServers.listMetrics(
|
||||
deviceName,
|
||||
iscsiServerName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
iscsiServersListMetrics().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified job name.
|
||||
*
|
||||
* @summary Returns the properties of the specified job name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/JobsGet.json
|
||||
*/
|
||||
async function jobsGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-ARCSX4MVKZ";
|
||||
const jobName = "06c7ee19-35a2-4248-bf1b-408009b31b63";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.jobs.get(
|
||||
deviceName,
|
||||
jobName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
jobsGet().catch(console.error);
|
|
@ -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 {
|
||||
JobsListByDeviceOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the jobs in a device.
|
||||
*
|
||||
* @summary Retrieves all the jobs in a device.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/JobsListByDevice.json
|
||||
*/
|
||||
async function jobsListByDevice() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const deviceName = "HSDK-ARCSX4MVKZ";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter = "jobType eq 'Backup'";
|
||||
const options: JobsListByDeviceOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.jobs.listByDevice(
|
||||
deviceName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
jobsListByDevice().catch(console.error);
|
|
@ -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 {
|
||||
JobsListByManagerOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the jobs in a manager.
|
||||
*
|
||||
* @summary Retrieves all the jobs in a manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/JobsListByManager.json
|
||||
*/
|
||||
async function jobsListByManager() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter = "jobType eq 'Backup'";
|
||||
const options: JobsListByManagerOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.jobs.listByManager(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
jobsListByManager().catch(console.error);
|
|
@ -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 {
|
||||
ManagerExtendedInfo,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates the extended info of the manager.
|
||||
*
|
||||
* @summary Creates the extended info of the manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersCreateExtendedInfo.json
|
||||
*/
|
||||
async function managersCreateExtendedInfo() {
|
||||
const subscriptionId = "4385cf00-2d3a-425a-832f-f4285b1c9dce";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "ManagerForSDKTest2";
|
||||
const managerExtendedInfo: ManagerExtendedInfo = {
|
||||
name: "vaultExtendedInfo",
|
||||
type: "Microsoft.StorSimple/Managers/extendedInformation",
|
||||
algorithm: "SHA256",
|
||||
etag: "6531d5d7-3ced-4f78-83b6-804368f2ca0c",
|
||||
id:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hManagerForSDKTestextendedInformation/vaultExtendedInfo",
|
||||
integrityKey: "e6501980-7efe-4602-bb0e-3cb9a08a6003"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.createExtendedInfo(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
managerExtendedInfo
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersCreateExtendedInfo().catch(console.error);
|
|
@ -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 {
|
||||
Manager,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the manager.
|
||||
*
|
||||
* @summary Creates or updates the manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersCreateOrUpdate.json
|
||||
*/
|
||||
async function managersCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest";
|
||||
const manager: Manager = {
|
||||
name: "hManagerForSDKTest",
|
||||
cisIntrinsicSettings: { type: "HelsinkiV1" },
|
||||
location: "westus",
|
||||
sku: { name: "Standard" }
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.createOrUpdate(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
manager
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersCreateOrUpdate().catch(console.error);
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the extended info of the manager.
|
||||
*
|
||||
* @summary Deletes the extended info of the manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDeleteExtendedInfo.json
|
||||
*/
|
||||
async function managersDeleteExtendedInfo() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.deleteExtendedInfo(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersDeleteExtendedInfo().catch(console.error);
|
|
@ -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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the manager.
|
||||
*
|
||||
* @summary Deletes the manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersDelete.json
|
||||
*/
|
||||
async function managersDelete() {
|
||||
const subscriptionId = "4385cf00-2d3a-425a-832f-f4285b1c9dce";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "ManagerForSDKTest2";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.delete(resourceGroupName, managerName);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersDelete().catch(console.error);
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the symmetric encryption key of the manager.
|
||||
*
|
||||
* @summary Returns the symmetric encryption key of the manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersGetEncryptionKey.json
|
||||
*/
|
||||
async function managersGetEncryptionKey() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.getEncryptionKey(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersGetEncryptionKey().catch(console.error);
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the encryption settings of the manager.
|
||||
*
|
||||
* @summary Returns the encryption settings of the manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersGetEncryptionSettings.json
|
||||
*/
|
||||
async function managersGetEncryptionSettings() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.getEncryptionSettings(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersGetEncryptionSettings().catch(console.error);
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the extended information of the specified manager name.
|
||||
*
|
||||
* @summary Returns the extended information of the specified manager name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersGetExtendedInfo.json
|
||||
*/
|
||||
async function managersGetExtendedInfo() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.getExtendedInfo(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersGetExtendedInfo().catch(console.error);
|
|
@ -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.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified manager name.
|
||||
*
|
||||
* @summary Returns the properties of the specified manager name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersGet.json
|
||||
*/
|
||||
async function managersGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.get(resourceGroupName, managerName);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersGet().catch(console.error);
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the managers in a resource group.
|
||||
*
|
||||
* @summary Retrieves all the managers in a resource group.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersListByResourceGroup.json
|
||||
*/
|
||||
async function managersListByResourceGroup() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.managers.listByResourceGroup(
|
||||
resourceGroupName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
managersListByResourceGroup().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves metric definition of all metrics aggregated at manager.
|
||||
*
|
||||
* @summary Retrieves metric definition of all metrics aggregated at manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersListMetricDefinition.json
|
||||
*/
|
||||
async function managersListMetricDefinition() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.managers.listMetricDefinition(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
managersListMetricDefinition().catch(console.error);
|
|
@ -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 {
|
||||
ManagersListMetricsOptionalParams,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Gets the manager metrics
|
||||
*
|
||||
* @summary Gets the manager metrics
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersListMetrics.json
|
||||
*/
|
||||
async function managersListMetrics() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const filter =
|
||||
"startTime ge '2018-08-04T18:30:00Z' and endTime le '2018-08-11T18:30:00Z'";
|
||||
const options: ManagersListMetricsOptionalParams = { filter };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.managers.listMetrics(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
options
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
managersListMetrics().catch(console.error);
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Copyright (c) Microsoft Corporation.
|
||||
* Licensed under the MIT License.
|
||||
*
|
||||
* Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
*/
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the managers in a subscription.
|
||||
*
|
||||
* @summary Retrieves all the managers in a subscription.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersList.json
|
||||
*/
|
||||
async function managersList() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.managers.list()) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
managersList().catch(console.error);
|
|
@ -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 {
|
||||
ManagerExtendedInfo,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Updates the extended info of the manager.
|
||||
*
|
||||
* @summary Updates the extended info of the manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersUpdateExtendedInfo.json
|
||||
*/
|
||||
async function managersUpdateExtendedInfo() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hManagerForSDKTest";
|
||||
const ifMatch = "6531d5d7-3ced-4f78-83b6-804368f2ca0c";
|
||||
const managerExtendedInfo: ManagerExtendedInfo = {
|
||||
name: "vaultExtendedInfo",
|
||||
type: "Microsoft.StorSimple/Managers/extendedInformation",
|
||||
algorithm: "SHA256",
|
||||
etag: "6531d5d7-3ced-4f78-83b6-804368f2ca0c",
|
||||
id:
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/Managers/hManagerForSDKTestextendedInformation/vaultExtendedInfo",
|
||||
integrityKey: "e6501980-7efe-4602-bb0e-3cb9a08a6003"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.updateExtendedInfo(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
ifMatch,
|
||||
managerExtendedInfo
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersUpdateExtendedInfo().catch(console.error);
|
|
@ -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 {
|
||||
ManagerPatch,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Updates the StorSimple Manager.
|
||||
*
|
||||
* @summary Updates the StorSimple Manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersUpdate.json
|
||||
*/
|
||||
async function managersUpdate() {
|
||||
const subscriptionId = "4385cf00-2d3a-425a-832f-f4285b1c9dce";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "ManagerForSDKTest2";
|
||||
const parameters: ManagerPatch = { tags: { tagName: "ForSDKTest" } };
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.update(
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
parameters
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersUpdate().catch(console.error);
|
|
@ -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 {
|
||||
UploadCertificateRequest,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Upload Vault Cred Certificate.
|
||||
Returns UploadCertificateResponse
|
||||
*
|
||||
* @summary Upload Vault Cred Certificate.
|
||||
Returns UploadCertificateResponse
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/ManagersUploadRegistrationCertificate.json
|
||||
*/
|
||||
async function managersUploadRegistrationCertificate() {
|
||||
const subscriptionId = "4385cf00-2d3a-425a-832f-f4285b1c9dce";
|
||||
const certificateName = "windows";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "ManagerForSDKTest2";
|
||||
const uploadCertificateRequestrequest: UploadCertificateRequest = {
|
||||
authType: "AzureActiveDirectory",
|
||||
certificate:
|
||||
"MIIC3TCCAcWgAwIBAgIQEr0bAWD6wJtA4LIbZ9NtgzANBgkqhkiG9w0BAQUFADAeMRwwGgYDVQQDExNXaW5kb3dzIEF6dXJlIFRvb2xzMB4XDTE4MDkxMDE1MzY0MFoXDTE4MDkxMzE1NDY0MFowHjEcMBoGA1UEAxMTV2luZG93cyBBenVyZSBUb29sczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANUsKkz2Z4fECKMyNeLb9v3pr1XF4dVe+MITDtgphjl81ng190Y0IHgCVnh4YjfplUSpMk/1xii0rI5AAPwoz3ze2qRPtnwCiTaoVLkUe6knNRPzrRvVXHB81J0/14MO0lwdByHhdccRcVJZPLt5724t4aQny82v2AayJdDDkBBWNlpcqPy6n3sygP00THMPP0O3sFqy924eHqoDj3qSw79/meaZBJt9S5odPuFoskxjHuI4lM6BmK1Ql7p8Wo9/GhTOIoMz81orKPHRDleLjutwL4mb6NnhI5rfT/MxnHD6m82c4YYqiZC3XiTyJWVCkWkp7PK92OdRp6FA87rdKDMCAwEAAaMXMBUwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADggEBAIYlezVU68TuEblkn06vM5dfzSmHKJOQgW61nDlLnyKrmSJtzKZLCAswTE2VyJHwKNdZgW15coJFINjWBLWcLr0/GjNV4u3Z+UL3NhBFQd5xuMtKsIhuoscKtyk0JHQXpBvHNmOUCobfQfOBQfTVC7kmyWdtlGztFUVxD28s6S5gMb1FEWWN68NOOJ3/ZhaTbUEM54yw8Hk8/f0L/Zn/7BYHUyWWA3KStAaYn89C/ZFF+952ark2VaKGIjBRQzgrJEIR8dI4r46I3DoEfzGPESKvQPvVLhOX84RG0PLPOtnRbHBVew1Nh3HE9kgCubkPKK+NPWE9IHZPoRmOTWBe+zU=",
|
||||
contractVersion: "V2012_12"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.managers.uploadRegistrationCertificate(
|
||||
certificateName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
uploadCertificateRequestrequest
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
managersUploadRegistrationCertificate().catch(console.error);
|
|
@ -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 {
|
||||
StorageAccountCredential,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the storage account credential
|
||||
*
|
||||
* @summary Creates or updates the storage account credential
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsCreateOrUpdate.json
|
||||
*/
|
||||
async function storageAccountCredentialsCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const credentialName = "DummySacForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const storageAccount: StorageAccountCredential = {
|
||||
name: "DummySacForSDKTest",
|
||||
accessKey: {
|
||||
encryptionAlgorithm: "RSAES_PKCS1_v_1_5",
|
||||
encryptionCertificateThumbprint:
|
||||
"D73DB57C4CDD6761E159F8D1E8A7D759424983FD",
|
||||
value:
|
||||
"Ev1tm0QBmpGGm4a58GkqLqx8veJEEgQtg5K3Jizpmy7JdSv9dlcRwk59THw6KIdMDlEHcS8mPyneBtOEQsh4wkcFB7qrmQz+KsRAyIhEm6bwPEm3qN8+aDDzNcXn/6vu/sqV0AP7zit9/s7SxXGxjKrz4zKnOy16/DbzRRmUHNO+HO6JUM0cUfHXTX0mEecbsXqBq0A8IEG8z+bJgXX1EhoGkzE6yVsObm4S1AcKrLiwWjqmSLji5Q8gGO+y4KTTmC3p45h5GHHXjJyOccHhySWDAffxnTzUD/sOoh+aD2VkAYrL3DdnkVzhAdfcZfVI4soONx7tYMloZIVsfW1M2Q=="
|
||||
},
|
||||
cloudType: "Azure",
|
||||
enableSSL: "Enabled",
|
||||
endPoint: "blob.core.windows.net",
|
||||
location: "West US",
|
||||
login: "SacForSDKTest"
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.storageAccountCredentials.beginCreateOrUpdateAndWait(
|
||||
credentialName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
storageAccount
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
storageAccountCredentialsCreateOrUpdate().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Deletes the storage account credential
|
||||
*
|
||||
* @summary Deletes the storage account credential
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsDelete.json
|
||||
*/
|
||||
async function storageAccountCredentialsDelete() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const credentialName = "DummySacForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.storageAccountCredentials.beginDeleteAndWait(
|
||||
credentialName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
storageAccountCredentialsDelete().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Returns the properties of the specified storage account credential name.
|
||||
*
|
||||
* @summary Returns the properties of the specified storage account credential name.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsGet.json
|
||||
*/
|
||||
async function storageAccountCredentialsGet() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const credentialName = "SacForSDKTest";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.storageAccountCredentials.get(
|
||||
credentialName,
|
||||
resourceGroupName,
|
||||
managerName
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
storageAccountCredentialsGet().catch(console.error);
|
|
@ -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.
|
||||
import { StorSimpleManagementClient } from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Retrieves all the storage account credentials in a manager.
|
||||
*
|
||||
* @summary Retrieves all the storage account credentials in a manager.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageAccountCredentialsListByManager.json
|
||||
*/
|
||||
async function storageAccountCredentialsListByManager() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const resArray = new Array();
|
||||
for await (let item of client.storageAccountCredentials.listByManager(
|
||||
resourceGroupName,
|
||||
managerName
|
||||
)) {
|
||||
resArray.push(item);
|
||||
}
|
||||
console.log(resArray);
|
||||
}
|
||||
|
||||
storageAccountCredentialsListByManager().catch(console.error);
|
|
@ -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 {
|
||||
StorageDomain,
|
||||
StorSimpleManagementClient
|
||||
} from "@azure/arm-storsimple1200series";
|
||||
import { DefaultAzureCredential } from "@azure/identity";
|
||||
|
||||
/**
|
||||
* This sample demonstrates how to Creates or updates the storage domain.
|
||||
*
|
||||
* @summary Creates or updates the storage domain.
|
||||
* x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/StorageDomainsCreateOrUpdate.json
|
||||
*/
|
||||
async function storageDomainsCreateOrUpdate() {
|
||||
const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
|
||||
const storageDomainName = "sd-fs-HSDK-4XY4FI2IVG";
|
||||
const resourceGroupName = "ResourceGroupForSDKTest";
|
||||
const managerName = "hAzureSDKOperations";
|
||||
const storageDomain: StorageDomain = {
|
||||
name: "sd-fs-HSDK-4XY4FI2IVG",
|
||||
encryptionStatus: "Disabled",
|
||||
storageAccountCredentialIds: [
|
||||
"/subscriptions/9eb689cd-7243-43b4-b6f6-5c65cb296641/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.StorSimple/managers/hAzureSDKOperations/storageAccountCredentials/sacforsdktest"
|
||||
]
|
||||
};
|
||||
const credential = new DefaultAzureCredential();
|
||||
const client = new StorSimpleManagementClient(credential, subscriptionId);
|
||||
const result = await client.storageDomains.beginCreateOrUpdateAndWait(
|
||||
storageDomainName,
|
||||
resourceGroupName,
|
||||
managerName,
|
||||
storageDomain
|
||||
);
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
storageDomainsCreateOrUpdate().catch(console.error);
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче