@azure/arm-elasticsan 1.2.0-beta.1 → 1.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/LICENSE +3 -3
- package/README.md +24 -18
- package/dist/browser/elasticSanManagement.d.ts +48 -0
- package/dist/browser/elasticSanManagement.d.ts.map +1 -0
- package/dist/browser/elasticSanManagement.js +206 -0
- package/dist/browser/elasticSanManagement.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +130 -2
- package/dist/browser/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.js +28 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts +7 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +133 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts +5 -1
- package/dist/browser/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +29 -3
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/elasticSans.d.ts +3 -3
- package/dist/browser/operations/elasticSans.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/elasticSans.js +116 -128
- package/dist/browser/operations/elasticSans.js.map +1 -0
- package/dist/browser/operations/index.d.ts +9 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +16 -0
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +2 -2
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +3 -3
- package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +88 -96
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateLinkResources.d.ts +3 -3
- package/dist/browser/operations/privateLinkResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/privateLinkResources.js +2 -2
- package/dist/browser/operations/privateLinkResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/skus.d.ts +3 -3
- package/dist/browser/operations/skus.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/skus.js +2 -2
- package/dist/browser/operations/skus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/volumeGroups.d.ts +3 -3
- package/dist/browser/operations/volumeGroups.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/volumeGroups.js +134 -140
- package/dist/browser/operations/volumeGroups.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/volumeSnapshots.d.ts +3 -3
- package/dist/browser/operations/volumeSnapshots.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/volumeSnapshots.js +91 -99
- package/dist/browser/operations/volumeSnapshots.js.map +1 -0
- package/dist/browser/operations/volumes.d.ts +151 -0
- package/dist/browser/operations/volumes.d.ts.map +1 -0
- package/dist/browser/operations/volumes.js +687 -0
- package/dist/browser/operations/volumes.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/elasticSans.d.ts +1 -1
- package/dist/browser/operationsInterfaces/elasticSans.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/elasticSans.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +9 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +16 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.d.ts +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/skus.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/volumeGroups.d.ts +1 -1
- package/dist/browser/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/volumeGroups.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/volumeSnapshots.d.ts +1 -1
- package/dist/browser/operationsInterfaces/volumeSnapshots.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/volumeSnapshots.js.map +1 -0
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/volumes.d.ts +33 -18
- package/dist/browser/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/volumes.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/elasticSanManagement.d.ts +48 -0
- package/dist/commonjs/elasticSanManagement.d.ts.map +1 -0
- package/dist/commonjs/elasticSanManagement.js +211 -0
- package/dist/commonjs/elasticSanManagement.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +24 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-elasticsan.d.ts → dist/commonjs/models/index.d.ts} +1385 -1809
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +213 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +71 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1822 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +29 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +249 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/elasticSans.d.ts +107 -0
- package/dist/commonjs/operations/elasticSans.d.ts.map +1 -0
- package/dist/commonjs/operations/elasticSans.js +538 -0
- package/dist/commonjs/operations/elasticSans.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +9 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +19 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +26 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +100 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts +73 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.js +325 -0
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts +20 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.js +58 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operations/skus.d.ts +26 -0
- package/dist/commonjs/operations/skus.d.ts.map +1 -0
- package/dist/commonjs/operations/skus.js +100 -0
- package/dist/commonjs/operations/skus.js.map +1 -0
- package/dist/commonjs/operations/volumeGroups.d.ts +99 -0
- package/dist/commonjs/operations/volumeGroups.d.ts.map +1 -0
- package/dist/commonjs/operations/volumeGroups.js +461 -0
- package/dist/commonjs/operations/volumeGroups.js.map +1 -0
- package/dist/commonjs/operations/volumeSnapshots.d.ts +89 -0
- package/dist/commonjs/operations/volumeSnapshots.d.ts.map +1 -0
- package/dist/commonjs/operations/volumeSnapshots.js +386 -0
- package/dist/commonjs/operations/volumeSnapshots.js.map +1 -0
- package/dist/commonjs/operations/volumes.d.ts +151 -0
- package/dist/commonjs/operations/volumes.d.ts.map +1 -0
- package/dist/commonjs/operations/volumes.js +691 -0
- package/dist/commonjs/operations/volumes.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/elasticSans.d.ts +71 -0
- package/dist/commonjs/operationsInterfaces/elasticSans.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/elasticSans.js +10 -0
- package/dist/commonjs/operationsInterfaces/elasticSans.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +9 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +19 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +12 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/skus.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/skus.js +10 -0
- package/dist/commonjs/operationsInterfaces/skus.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/volumeGroups.d.ts +74 -0
- package/dist/commonjs/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/volumeGroups.js +10 -0
- package/dist/commonjs/operationsInterfaces/volumeGroups.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/volumeSnapshots.d.ts +62 -0
- package/dist/commonjs/operationsInterfaces/volumeSnapshots.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/volumeSnapshots.js +10 -0
- package/dist/commonjs/operationsInterfaces/volumeSnapshots.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/volumes.d.ts +43 -1
- package/dist/commonjs/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/volumes.js +10 -0
- package/dist/commonjs/operationsInterfaces/volumes.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/elasticSanManagement.d.ts +48 -0
- package/dist/esm/elasticSanManagement.d.ts.map +1 -0
- package/dist/esm/elasticSanManagement.js +206 -0
- package/dist/esm/elasticSanManagement.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +21 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +1385 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +210 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +71 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1818 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +29 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +246 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/elasticSans.d.ts +107 -0
- package/dist/esm/operations/elasticSans.d.ts.map +1 -0
- package/dist/esm/operations/elasticSans.js +534 -0
- package/dist/esm/operations/elasticSans.js.map +1 -0
- package/dist/esm/operations/index.d.ts +9 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +16 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +26 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +96 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts +73 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.js +321 -0
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operations/privateLinkResources.d.ts +20 -0
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operations/privateLinkResources.js +53 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -0
- package/dist/esm/operations/skus.d.ts +26 -0
- package/dist/esm/operations/skus.d.ts.map +1 -0
- package/dist/esm/operations/skus.js +96 -0
- package/dist/esm/operations/skus.js.map +1 -0
- package/dist/esm/operations/volumeGroups.d.ts +99 -0
- package/dist/esm/operations/volumeGroups.d.ts.map +1 -0
- package/dist/esm/operations/volumeGroups.js +457 -0
- package/dist/esm/operations/volumeGroups.js.map +1 -0
- package/dist/esm/operations/volumeSnapshots.d.ts +89 -0
- package/dist/esm/operations/volumeSnapshots.d.ts.map +1 -0
- package/dist/esm/operations/volumeSnapshots.js +382 -0
- package/dist/esm/operations/volumeSnapshots.js.map +1 -0
- package/dist/esm/operations/volumes.d.ts +151 -0
- package/dist/esm/operations/volumes.d.ts.map +1 -0
- package/dist/esm/operations/volumes.js +687 -0
- package/dist/esm/operations/volumes.js.map +1 -0
- package/dist/esm/operationsInterfaces/elasticSans.d.ts +71 -0
- package/dist/esm/operationsInterfaces/elasticSans.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/elasticSans.js +9 -0
- package/dist/esm/operationsInterfaces/elasticSans.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +9 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +16 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +12 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/skus.d.ts +11 -0
- package/dist/esm/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/skus.js +9 -0
- package/dist/esm/operationsInterfaces/skus.js.map +1 -0
- package/dist/esm/operationsInterfaces/volumeGroups.d.ts +74 -0
- package/dist/esm/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/volumeGroups.js +9 -0
- package/dist/esm/operationsInterfaces/volumeGroups.js.map +1 -0
- package/dist/esm/operationsInterfaces/volumeSnapshots.d.ts +62 -0
- package/dist/esm/operationsInterfaces/volumeSnapshots.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/volumeSnapshots.js +9 -0
- package/dist/esm/operationsInterfaces/volumeSnapshots.js.map +1 -0
- package/dist/esm/operationsInterfaces/volumes.d.ts +124 -0
- package/dist/esm/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/volumes.js +9 -0
- package/dist/esm/operationsInterfaces/volumes.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/elasticSanManagement.d.ts +48 -0
- package/dist/react-native/elasticSanManagement.d.ts.map +1 -0
- package/dist/react-native/elasticSanManagement.js +206 -0
- package/dist/react-native/elasticSanManagement.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +21 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1385 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +210 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +71 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1818 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +29 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +246 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/elasticSans.d.ts +107 -0
- package/dist/react-native/operations/elasticSans.d.ts.map +1 -0
- package/dist/react-native/operations/elasticSans.js +534 -0
- package/dist/react-native/operations/elasticSans.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +9 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +16 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +26 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +96 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts +73 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.js +321 -0
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operations/privateLinkResources.d.ts +20 -0
- package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operations/privateLinkResources.js +53 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -0
- package/dist/react-native/operations/skus.d.ts +26 -0
- package/dist/react-native/operations/skus.d.ts.map +1 -0
- package/dist/react-native/operations/skus.js +96 -0
- package/dist/react-native/operations/skus.js.map +1 -0
- package/dist/react-native/operations/volumeGroups.d.ts +99 -0
- package/dist/react-native/operations/volumeGroups.d.ts.map +1 -0
- package/dist/react-native/operations/volumeGroups.js +457 -0
- package/dist/react-native/operations/volumeGroups.js.map +1 -0
- package/dist/react-native/operations/volumeSnapshots.d.ts +89 -0
- package/dist/react-native/operations/volumeSnapshots.d.ts.map +1 -0
- package/dist/react-native/operations/volumeSnapshots.js +382 -0
- package/dist/react-native/operations/volumeSnapshots.js.map +1 -0
- package/dist/react-native/operations/volumes.d.ts +151 -0
- package/dist/react-native/operations/volumes.d.ts.map +1 -0
- package/dist/react-native/operations/volumes.js +687 -0
- package/dist/react-native/operations/volumes.js.map +1 -0
- package/dist/react-native/operationsInterfaces/elasticSans.d.ts +71 -0
- package/dist/react-native/operationsInterfaces/elasticSans.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/elasticSans.js +9 -0
- package/dist/react-native/operationsInterfaces/elasticSans.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +9 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +16 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +12 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.js +9 -0
- package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -0
- package/dist/react-native/operationsInterfaces/skus.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/skus.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/skus.js +9 -0
- package/dist/react-native/operationsInterfaces/skus.js.map +1 -0
- package/dist/react-native/operationsInterfaces/volumeGroups.d.ts +74 -0
- package/dist/react-native/operationsInterfaces/volumeGroups.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/volumeGroups.js +9 -0
- package/dist/react-native/operationsInterfaces/volumeGroups.js.map +1 -0
- package/dist/react-native/operationsInterfaces/volumeSnapshots.d.ts +62 -0
- package/dist/react-native/operationsInterfaces/volumeSnapshots.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/volumeSnapshots.js +9 -0
- package/dist/react-native/operationsInterfaces/volumeSnapshots.js.map +1 -0
- package/dist/react-native/operationsInterfaces/volumes.d.ts +124 -0
- package/dist/react-native/operationsInterfaces/volumes.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/volumes.js +9 -0
- package/dist/react-native/operationsInterfaces/volumes.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +80 -51
- package/review/arm-elasticsan.api.md +109 -0
- package/dist/index.js +0 -4764
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/elasticSansCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/elasticSansCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/elasticSansCreateSample.js +0 -83
- package/dist-esm/samples-dev/elasticSansCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/elasticSansDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/elasticSansDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/elasticSansDeleteSample.js +0 -56
- package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/elasticSansGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/elasticSansGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/elasticSansGetSample.js +0 -56
- package/dist-esm/samples-dev/elasticSansGetSample.js.map +0 -1
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +0 -86
- package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +0 -84
- package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/elasticSansUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/elasticSansUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/elasticSansUpdateSample.js +0 -73
- package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -86
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +0 -72
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -58
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -58
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +0 -88
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +0 -56
- package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js.map +0 -1
- package/dist-esm/samples-dev/skusListSample.d.ts +0 -2
- package/dist-esm/samples-dev/skusListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/skusListSample.js +0 -86
- package/dist-esm/samples-dev/skusListSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js +0 -85
- package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +0 -58
- package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsGetSample.js +0 -58
- package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +0 -88
- package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +0 -85
- package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +0 -74
- package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +0 -60
- package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +0 -60
- package/dist-esm/samples-dev/volumeSnapshotsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +0 -92
- package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/volumesCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumesCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumesCreateSample.js +0 -68
- package/dist-esm/samples-dev/volumesCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/volumesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumesDeleteSample.js +0 -66
- package/dist-esm/samples-dev/volumesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/volumesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumesGetSample.js +0 -60
- package/dist-esm/samples-dev/volumesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +0 -90
- package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/volumesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/volumesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/volumesUpdateSample.js +0 -62
- package/dist-esm/samples-dev/volumesUpdateSample.js.map +0 -1
- package/dist-esm/src/elasticSanManagement.d.ts +0 -27
- package/dist-esm/src/elasticSanManagement.d.ts.map +0 -1
- package/dist-esm/src/elasticSanManagement.js +0 -107
- package/dist-esm/src/elasticSanManagement.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.d.ts.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/elasticSans.d.ts.map +0 -1
- package/dist-esm/src/operations/elasticSans.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -9
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -16
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
- package/dist-esm/src/operations/skus.d.ts.map +0 -1
- package/dist-esm/src/operations/skus.js.map +0 -1
- package/dist-esm/src/operations/volumeGroups.d.ts.map +0 -1
- package/dist-esm/src/operations/volumeGroups.js.map +0 -1
- package/dist-esm/src/operations/volumeSnapshots.d.ts.map +0 -1
- package/dist-esm/src/operations/volumeSnapshots.js.map +0 -1
- package/dist-esm/src/operations/volumes.d.ts.map +0 -1
- package/dist-esm/src/operations/volumes.js +0 -497
- package/dist-esm/src/operations/volumes.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/elasticSans.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -9
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -16
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/skus.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/volumeSnapshots.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/volumes.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/elasticsan_examples.spec.d.ts +0 -4
- package/dist-esm/test/elasticsan_examples.spec.d.ts.map +0 -1
- package/dist-esm/test/elasticsan_examples.spec.js +0 -134
- package/dist-esm/test/elasticsan_examples.spec.js.map +0 -1
- package/src/elasticSanManagement.ts +0 -173
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -1430
- package/src/models/mappers.ts +0 -1774
- package/src/models/parameters.ts +0 -257
- package/src/operations/elasticSans.ts +0 -711
- package/src/operations/index.ts +0 -16
- package/src/operations/operations.ts +0 -103
- package/src/operations/privateEndpointConnections.ts +0 -445
- package/src/operations/privateLinkResources.ts +0 -71
- package/src/operations/skus.ts +0 -101
- package/src/operations/volumeGroups.ts +0 -644
- package/src/operations/volumeSnapshots.ts +0 -545
- package/src/operations/volumes.ts +0 -698
- package/src/operationsInterfaces/elasticSans.ts +0 -139
- package/src/operationsInterfaces/index.ts +0 -16
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -109
- package/src/operationsInterfaces/privateLinkResources.ts +0 -27
- package/src/operationsInterfaces/skus.ts +0 -22
- package/src/operationsInterfaces/volumeGroups.ts +0 -147
- package/src/operationsInterfaces/volumeSnapshots.ts +0 -121
- package/src/operationsInterfaces/volumes.ts +0 -163
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/elasticSans.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateLinkResources.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/skus.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/volumeGroups.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/volumeSnapshots.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/volumes.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
package/dist/index.js
DELETED
|
@@ -1,4764 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(e) {
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n.default = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* Copyright (c) Microsoft Corporation.
|
|
32
|
-
* Licensed under the MIT License.
|
|
33
|
-
*
|
|
34
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
-
*/
|
|
37
|
-
const pageMap = new WeakMap();
|
|
38
|
-
/**
|
|
39
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
-
* returns a continuation token that can be used to begin paging from
|
|
41
|
-
* that point later.
|
|
42
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
43
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
44
|
-
*/
|
|
45
|
-
function getContinuationToken(page) {
|
|
46
|
-
var _a;
|
|
47
|
-
if (typeof page !== "object" || page === null) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
-
}
|
|
52
|
-
function setContinuationToken(page, continuationToken) {
|
|
53
|
-
var _a;
|
|
54
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
-
pageInfo.continuationToken = continuationToken;
|
|
59
|
-
pageMap.set(page, pageInfo);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/*
|
|
63
|
-
* Copyright (c) Microsoft Corporation.
|
|
64
|
-
* Licensed under the MIT License.
|
|
65
|
-
*
|
|
66
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
-
*/
|
|
69
|
-
/** Known values of {@link Origin} that the service accepts. */
|
|
70
|
-
exports.KnownOrigin = void 0;
|
|
71
|
-
(function (KnownOrigin) {
|
|
72
|
-
/** User */
|
|
73
|
-
KnownOrigin["User"] = "user";
|
|
74
|
-
/** System */
|
|
75
|
-
KnownOrigin["System"] = "system";
|
|
76
|
-
/** UserSystem */
|
|
77
|
-
KnownOrigin["UserSystem"] = "user,system";
|
|
78
|
-
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
79
|
-
/** Known values of {@link ActionType} that the service accepts. */
|
|
80
|
-
exports.KnownActionType = void 0;
|
|
81
|
-
(function (KnownActionType) {
|
|
82
|
-
/** Internal */
|
|
83
|
-
KnownActionType["Internal"] = "Internal";
|
|
84
|
-
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
85
|
-
/** Known values of {@link SkuName} that the service accepts. */
|
|
86
|
-
exports.KnownSkuName = void 0;
|
|
87
|
-
(function (KnownSkuName) {
|
|
88
|
-
/** Premium locally redundant storage */
|
|
89
|
-
KnownSkuName["PremiumLRS"] = "Premium_LRS";
|
|
90
|
-
/** Premium zone redundant storage */
|
|
91
|
-
KnownSkuName["PremiumZRS"] = "Premium_ZRS";
|
|
92
|
-
})(exports.KnownSkuName || (exports.KnownSkuName = {}));
|
|
93
|
-
/** Known values of {@link SkuTier} that the service accepts. */
|
|
94
|
-
exports.KnownSkuTier = void 0;
|
|
95
|
-
(function (KnownSkuTier) {
|
|
96
|
-
/** Premium Tier */
|
|
97
|
-
KnownSkuTier["Premium"] = "Premium";
|
|
98
|
-
})(exports.KnownSkuTier || (exports.KnownSkuTier = {}));
|
|
99
|
-
/** Known values of {@link ProvisioningStates} that the service accepts. */
|
|
100
|
-
exports.KnownProvisioningStates = void 0;
|
|
101
|
-
(function (KnownProvisioningStates) {
|
|
102
|
-
/** Invalid */
|
|
103
|
-
KnownProvisioningStates["Invalid"] = "Invalid";
|
|
104
|
-
/** Succeeded */
|
|
105
|
-
KnownProvisioningStates["Succeeded"] = "Succeeded";
|
|
106
|
-
/** Failed */
|
|
107
|
-
KnownProvisioningStates["Failed"] = "Failed";
|
|
108
|
-
/** Canceled */
|
|
109
|
-
KnownProvisioningStates["Canceled"] = "Canceled";
|
|
110
|
-
/** Pending */
|
|
111
|
-
KnownProvisioningStates["Pending"] = "Pending";
|
|
112
|
-
/** Creating */
|
|
113
|
-
KnownProvisioningStates["Creating"] = "Creating";
|
|
114
|
-
/** Updating */
|
|
115
|
-
KnownProvisioningStates["Updating"] = "Updating";
|
|
116
|
-
/** Deleting */
|
|
117
|
-
KnownProvisioningStates["Deleting"] = "Deleting";
|
|
118
|
-
})(exports.KnownProvisioningStates || (exports.KnownProvisioningStates = {}));
|
|
119
|
-
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
120
|
-
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
|
121
|
-
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
122
|
-
/** Pending */
|
|
123
|
-
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
124
|
-
/** Approved */
|
|
125
|
-
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
126
|
-
/** Failed */
|
|
127
|
-
KnownPrivateEndpointServiceConnectionStatus["Failed"] = "Failed";
|
|
128
|
-
/** Rejected */
|
|
129
|
-
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
130
|
-
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
131
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
132
|
-
exports.KnownCreatedByType = void 0;
|
|
133
|
-
(function (KnownCreatedByType) {
|
|
134
|
-
/** User */
|
|
135
|
-
KnownCreatedByType["User"] = "User";
|
|
136
|
-
/** Application */
|
|
137
|
-
KnownCreatedByType["Application"] = "Application";
|
|
138
|
-
/** ManagedIdentity */
|
|
139
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
140
|
-
/** Key */
|
|
141
|
-
KnownCreatedByType["Key"] = "Key";
|
|
142
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
143
|
-
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
144
|
-
exports.KnownPublicNetworkAccess = void 0;
|
|
145
|
-
(function (KnownPublicNetworkAccess) {
|
|
146
|
-
/** Enabled */
|
|
147
|
-
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
148
|
-
/** Disabled */
|
|
149
|
-
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
150
|
-
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
151
|
-
/** Known values of {@link AutoScalePolicyEnforcement} that the service accepts. */
|
|
152
|
-
exports.KnownAutoScalePolicyEnforcement = void 0;
|
|
153
|
-
(function (KnownAutoScalePolicyEnforcement) {
|
|
154
|
-
/** None */
|
|
155
|
-
KnownAutoScalePolicyEnforcement["None"] = "None";
|
|
156
|
-
/** Enabled */
|
|
157
|
-
KnownAutoScalePolicyEnforcement["Enabled"] = "Enabled";
|
|
158
|
-
/** Disabled */
|
|
159
|
-
KnownAutoScalePolicyEnforcement["Disabled"] = "Disabled";
|
|
160
|
-
})(exports.KnownAutoScalePolicyEnforcement || (exports.KnownAutoScalePolicyEnforcement = {}));
|
|
161
|
-
/** Known values of {@link IdentityType} that the service accepts. */
|
|
162
|
-
exports.KnownIdentityType = void 0;
|
|
163
|
-
(function (KnownIdentityType) {
|
|
164
|
-
/** None */
|
|
165
|
-
KnownIdentityType["None"] = "None";
|
|
166
|
-
/** SystemAssigned */
|
|
167
|
-
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
168
|
-
/** UserAssigned */
|
|
169
|
-
KnownIdentityType["UserAssigned"] = "UserAssigned";
|
|
170
|
-
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
171
|
-
/** Known values of {@link StorageTargetType} that the service accepts. */
|
|
172
|
-
exports.KnownStorageTargetType = void 0;
|
|
173
|
-
(function (KnownStorageTargetType) {
|
|
174
|
-
/** Iscsi */
|
|
175
|
-
KnownStorageTargetType["Iscsi"] = "Iscsi";
|
|
176
|
-
/** None */
|
|
177
|
-
KnownStorageTargetType["None"] = "None";
|
|
178
|
-
})(exports.KnownStorageTargetType || (exports.KnownStorageTargetType = {}));
|
|
179
|
-
/** Known values of {@link EncryptionType} that the service accepts. */
|
|
180
|
-
exports.KnownEncryptionType = void 0;
|
|
181
|
-
(function (KnownEncryptionType) {
|
|
182
|
-
/** Volume is encrypted at rest with Platform managed key. It is the default encryption type. */
|
|
183
|
-
KnownEncryptionType["EncryptionAtRestWithPlatformKey"] = "EncryptionAtRestWithPlatformKey";
|
|
184
|
-
/** Volume is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */
|
|
185
|
-
KnownEncryptionType["EncryptionAtRestWithCustomerManagedKey"] = "EncryptionAtRestWithCustomerManagedKey";
|
|
186
|
-
})(exports.KnownEncryptionType || (exports.KnownEncryptionType = {}));
|
|
187
|
-
/** Known values of {@link Action} that the service accepts. */
|
|
188
|
-
exports.KnownAction = void 0;
|
|
189
|
-
(function (KnownAction) {
|
|
190
|
-
/** Allow */
|
|
191
|
-
KnownAction["Allow"] = "Allow";
|
|
192
|
-
})(exports.KnownAction || (exports.KnownAction = {}));
|
|
193
|
-
/** Known values of {@link VolumeCreateOption} that the service accepts. */
|
|
194
|
-
exports.KnownVolumeCreateOption = void 0;
|
|
195
|
-
(function (KnownVolumeCreateOption) {
|
|
196
|
-
/** None */
|
|
197
|
-
KnownVolumeCreateOption["None"] = "None";
|
|
198
|
-
/** VolumeSnapshot */
|
|
199
|
-
KnownVolumeCreateOption["VolumeSnapshot"] = "VolumeSnapshot";
|
|
200
|
-
/** DiskSnapshot */
|
|
201
|
-
KnownVolumeCreateOption["DiskSnapshot"] = "DiskSnapshot";
|
|
202
|
-
/** Disk */
|
|
203
|
-
KnownVolumeCreateOption["Disk"] = "Disk";
|
|
204
|
-
/** DiskRestorePoint */
|
|
205
|
-
KnownVolumeCreateOption["DiskRestorePoint"] = "DiskRestorePoint";
|
|
206
|
-
})(exports.KnownVolumeCreateOption || (exports.KnownVolumeCreateOption = {}));
|
|
207
|
-
/** Known values of {@link OperationalStatus} that the service accepts. */
|
|
208
|
-
exports.KnownOperationalStatus = void 0;
|
|
209
|
-
(function (KnownOperationalStatus) {
|
|
210
|
-
/** Invalid */
|
|
211
|
-
KnownOperationalStatus["Invalid"] = "Invalid";
|
|
212
|
-
/** Unknown */
|
|
213
|
-
KnownOperationalStatus["Unknown"] = "Unknown";
|
|
214
|
-
/** Healthy */
|
|
215
|
-
KnownOperationalStatus["Healthy"] = "Healthy";
|
|
216
|
-
/** Unhealthy */
|
|
217
|
-
KnownOperationalStatus["Unhealthy"] = "Unhealthy";
|
|
218
|
-
/** Updating */
|
|
219
|
-
KnownOperationalStatus["Updating"] = "Updating";
|
|
220
|
-
/** Running */
|
|
221
|
-
KnownOperationalStatus["Running"] = "Running";
|
|
222
|
-
/** Stopped */
|
|
223
|
-
KnownOperationalStatus["Stopped"] = "Stopped";
|
|
224
|
-
/** StoppedDeallocated */
|
|
225
|
-
KnownOperationalStatus["StoppedDeallocated"] = "Stopped (deallocated)";
|
|
226
|
-
})(exports.KnownOperationalStatus || (exports.KnownOperationalStatus = {}));
|
|
227
|
-
/** Known values of {@link XMsDeleteSnapshots} that the service accepts. */
|
|
228
|
-
exports.KnownXMsDeleteSnapshots = void 0;
|
|
229
|
-
(function (KnownXMsDeleteSnapshots) {
|
|
230
|
-
/** True */
|
|
231
|
-
KnownXMsDeleteSnapshots["True"] = "true";
|
|
232
|
-
/** False */
|
|
233
|
-
KnownXMsDeleteSnapshots["False"] = "false";
|
|
234
|
-
})(exports.KnownXMsDeleteSnapshots || (exports.KnownXMsDeleteSnapshots = {}));
|
|
235
|
-
/** Known values of {@link XMsForceDelete} that the service accepts. */
|
|
236
|
-
exports.KnownXMsForceDelete = void 0;
|
|
237
|
-
(function (KnownXMsForceDelete) {
|
|
238
|
-
/** True */
|
|
239
|
-
KnownXMsForceDelete["True"] = "true";
|
|
240
|
-
/** False */
|
|
241
|
-
KnownXMsForceDelete["False"] = "false";
|
|
242
|
-
})(exports.KnownXMsForceDelete || (exports.KnownXMsForceDelete = {}));
|
|
243
|
-
|
|
244
|
-
/*
|
|
245
|
-
* Copyright (c) Microsoft Corporation.
|
|
246
|
-
* Licensed under the MIT License.
|
|
247
|
-
*
|
|
248
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
249
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
250
|
-
*/
|
|
251
|
-
const OperationListResult = {
|
|
252
|
-
type: {
|
|
253
|
-
name: "Composite",
|
|
254
|
-
className: "OperationListResult",
|
|
255
|
-
modelProperties: {
|
|
256
|
-
value: {
|
|
257
|
-
serializedName: "value",
|
|
258
|
-
readOnly: true,
|
|
259
|
-
type: {
|
|
260
|
-
name: "Sequence",
|
|
261
|
-
element: {
|
|
262
|
-
type: {
|
|
263
|
-
name: "Composite",
|
|
264
|
-
className: "Operation",
|
|
265
|
-
},
|
|
266
|
-
},
|
|
267
|
-
},
|
|
268
|
-
},
|
|
269
|
-
nextLink: {
|
|
270
|
-
serializedName: "nextLink",
|
|
271
|
-
readOnly: true,
|
|
272
|
-
type: {
|
|
273
|
-
name: "String",
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
};
|
|
279
|
-
const Operation = {
|
|
280
|
-
type: {
|
|
281
|
-
name: "Composite",
|
|
282
|
-
className: "Operation",
|
|
283
|
-
modelProperties: {
|
|
284
|
-
name: {
|
|
285
|
-
serializedName: "name",
|
|
286
|
-
readOnly: true,
|
|
287
|
-
type: {
|
|
288
|
-
name: "String",
|
|
289
|
-
},
|
|
290
|
-
},
|
|
291
|
-
isDataAction: {
|
|
292
|
-
serializedName: "isDataAction",
|
|
293
|
-
readOnly: true,
|
|
294
|
-
type: {
|
|
295
|
-
name: "Boolean",
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
display: {
|
|
299
|
-
serializedName: "display",
|
|
300
|
-
type: {
|
|
301
|
-
name: "Composite",
|
|
302
|
-
className: "OperationDisplay",
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
origin: {
|
|
306
|
-
serializedName: "origin",
|
|
307
|
-
readOnly: true,
|
|
308
|
-
type: {
|
|
309
|
-
name: "String",
|
|
310
|
-
},
|
|
311
|
-
},
|
|
312
|
-
actionType: {
|
|
313
|
-
serializedName: "actionType",
|
|
314
|
-
readOnly: true,
|
|
315
|
-
type: {
|
|
316
|
-
name: "String",
|
|
317
|
-
},
|
|
318
|
-
},
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
};
|
|
322
|
-
const OperationDisplay = {
|
|
323
|
-
type: {
|
|
324
|
-
name: "Composite",
|
|
325
|
-
className: "OperationDisplay",
|
|
326
|
-
modelProperties: {
|
|
327
|
-
provider: {
|
|
328
|
-
serializedName: "provider",
|
|
329
|
-
readOnly: true,
|
|
330
|
-
type: {
|
|
331
|
-
name: "String",
|
|
332
|
-
},
|
|
333
|
-
},
|
|
334
|
-
resource: {
|
|
335
|
-
serializedName: "resource",
|
|
336
|
-
readOnly: true,
|
|
337
|
-
type: {
|
|
338
|
-
name: "String",
|
|
339
|
-
},
|
|
340
|
-
},
|
|
341
|
-
operation: {
|
|
342
|
-
serializedName: "operation",
|
|
343
|
-
readOnly: true,
|
|
344
|
-
type: {
|
|
345
|
-
name: "String",
|
|
346
|
-
},
|
|
347
|
-
},
|
|
348
|
-
description: {
|
|
349
|
-
serializedName: "description",
|
|
350
|
-
readOnly: true,
|
|
351
|
-
type: {
|
|
352
|
-
name: "String",
|
|
353
|
-
},
|
|
354
|
-
},
|
|
355
|
-
},
|
|
356
|
-
},
|
|
357
|
-
};
|
|
358
|
-
const ErrorResponse = {
|
|
359
|
-
type: {
|
|
360
|
-
name: "Composite",
|
|
361
|
-
className: "ErrorResponse",
|
|
362
|
-
modelProperties: {
|
|
363
|
-
error: {
|
|
364
|
-
serializedName: "error",
|
|
365
|
-
type: {
|
|
366
|
-
name: "Composite",
|
|
367
|
-
className: "ErrorDetail",
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
},
|
|
371
|
-
},
|
|
372
|
-
};
|
|
373
|
-
const ErrorDetail = {
|
|
374
|
-
type: {
|
|
375
|
-
name: "Composite",
|
|
376
|
-
className: "ErrorDetail",
|
|
377
|
-
modelProperties: {
|
|
378
|
-
code: {
|
|
379
|
-
serializedName: "code",
|
|
380
|
-
readOnly: true,
|
|
381
|
-
type: {
|
|
382
|
-
name: "String",
|
|
383
|
-
},
|
|
384
|
-
},
|
|
385
|
-
message: {
|
|
386
|
-
serializedName: "message",
|
|
387
|
-
readOnly: true,
|
|
388
|
-
type: {
|
|
389
|
-
name: "String",
|
|
390
|
-
},
|
|
391
|
-
},
|
|
392
|
-
target: {
|
|
393
|
-
serializedName: "target",
|
|
394
|
-
readOnly: true,
|
|
395
|
-
type: {
|
|
396
|
-
name: "String",
|
|
397
|
-
},
|
|
398
|
-
},
|
|
399
|
-
details: {
|
|
400
|
-
serializedName: "details",
|
|
401
|
-
readOnly: true,
|
|
402
|
-
type: {
|
|
403
|
-
name: "Sequence",
|
|
404
|
-
element: {
|
|
405
|
-
type: {
|
|
406
|
-
name: "Composite",
|
|
407
|
-
className: "ErrorDetail",
|
|
408
|
-
},
|
|
409
|
-
},
|
|
410
|
-
},
|
|
411
|
-
},
|
|
412
|
-
additionalInfo: {
|
|
413
|
-
serializedName: "additionalInfo",
|
|
414
|
-
readOnly: true,
|
|
415
|
-
type: {
|
|
416
|
-
name: "Sequence",
|
|
417
|
-
element: {
|
|
418
|
-
type: {
|
|
419
|
-
name: "Composite",
|
|
420
|
-
className: "ErrorAdditionalInfo",
|
|
421
|
-
},
|
|
422
|
-
},
|
|
423
|
-
},
|
|
424
|
-
},
|
|
425
|
-
},
|
|
426
|
-
},
|
|
427
|
-
};
|
|
428
|
-
const ErrorAdditionalInfo = {
|
|
429
|
-
type: {
|
|
430
|
-
name: "Composite",
|
|
431
|
-
className: "ErrorAdditionalInfo",
|
|
432
|
-
modelProperties: {
|
|
433
|
-
type: {
|
|
434
|
-
serializedName: "type",
|
|
435
|
-
readOnly: true,
|
|
436
|
-
type: {
|
|
437
|
-
name: "String",
|
|
438
|
-
},
|
|
439
|
-
},
|
|
440
|
-
info: {
|
|
441
|
-
serializedName: "info",
|
|
442
|
-
readOnly: true,
|
|
443
|
-
type: {
|
|
444
|
-
name: "Dictionary",
|
|
445
|
-
value: { type: { name: "any" } },
|
|
446
|
-
},
|
|
447
|
-
},
|
|
448
|
-
},
|
|
449
|
-
},
|
|
450
|
-
};
|
|
451
|
-
const SkuInformationList = {
|
|
452
|
-
type: {
|
|
453
|
-
name: "Composite",
|
|
454
|
-
className: "SkuInformationList",
|
|
455
|
-
modelProperties: {
|
|
456
|
-
value: {
|
|
457
|
-
serializedName: "value",
|
|
458
|
-
readOnly: true,
|
|
459
|
-
type: {
|
|
460
|
-
name: "Sequence",
|
|
461
|
-
element: {
|
|
462
|
-
type: {
|
|
463
|
-
name: "Composite",
|
|
464
|
-
className: "SkuInformation",
|
|
465
|
-
},
|
|
466
|
-
},
|
|
467
|
-
},
|
|
468
|
-
},
|
|
469
|
-
nextLink: {
|
|
470
|
-
serializedName: "nextLink",
|
|
471
|
-
readOnly: true,
|
|
472
|
-
type: {
|
|
473
|
-
name: "String",
|
|
474
|
-
},
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
},
|
|
478
|
-
};
|
|
479
|
-
const SkuInformation = {
|
|
480
|
-
type: {
|
|
481
|
-
name: "Composite",
|
|
482
|
-
className: "SkuInformation",
|
|
483
|
-
modelProperties: {
|
|
484
|
-
name: {
|
|
485
|
-
serializedName: "name",
|
|
486
|
-
required: true,
|
|
487
|
-
type: {
|
|
488
|
-
name: "String",
|
|
489
|
-
},
|
|
490
|
-
},
|
|
491
|
-
tier: {
|
|
492
|
-
serializedName: "tier",
|
|
493
|
-
type: {
|
|
494
|
-
name: "String",
|
|
495
|
-
},
|
|
496
|
-
},
|
|
497
|
-
resourceType: {
|
|
498
|
-
serializedName: "resourceType",
|
|
499
|
-
readOnly: true,
|
|
500
|
-
type: {
|
|
501
|
-
name: "String",
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
locations: {
|
|
505
|
-
serializedName: "locations",
|
|
506
|
-
readOnly: true,
|
|
507
|
-
type: {
|
|
508
|
-
name: "Sequence",
|
|
509
|
-
element: {
|
|
510
|
-
type: {
|
|
511
|
-
name: "String",
|
|
512
|
-
},
|
|
513
|
-
},
|
|
514
|
-
},
|
|
515
|
-
},
|
|
516
|
-
locationInfo: {
|
|
517
|
-
serializedName: "locationInfo",
|
|
518
|
-
readOnly: true,
|
|
519
|
-
type: {
|
|
520
|
-
name: "Sequence",
|
|
521
|
-
element: {
|
|
522
|
-
type: {
|
|
523
|
-
name: "Composite",
|
|
524
|
-
className: "SkuLocationInfo",
|
|
525
|
-
},
|
|
526
|
-
},
|
|
527
|
-
},
|
|
528
|
-
},
|
|
529
|
-
capabilities: {
|
|
530
|
-
serializedName: "capabilities",
|
|
531
|
-
readOnly: true,
|
|
532
|
-
type: {
|
|
533
|
-
name: "Sequence",
|
|
534
|
-
element: {
|
|
535
|
-
type: {
|
|
536
|
-
name: "Composite",
|
|
537
|
-
className: "SKUCapability",
|
|
538
|
-
},
|
|
539
|
-
},
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
},
|
|
543
|
-
},
|
|
544
|
-
};
|
|
545
|
-
const SkuLocationInfo = {
|
|
546
|
-
type: {
|
|
547
|
-
name: "Composite",
|
|
548
|
-
className: "SkuLocationInfo",
|
|
549
|
-
modelProperties: {
|
|
550
|
-
location: {
|
|
551
|
-
serializedName: "location",
|
|
552
|
-
readOnly: true,
|
|
553
|
-
type: {
|
|
554
|
-
name: "String",
|
|
555
|
-
},
|
|
556
|
-
},
|
|
557
|
-
zones: {
|
|
558
|
-
serializedName: "zones",
|
|
559
|
-
readOnly: true,
|
|
560
|
-
type: {
|
|
561
|
-
name: "Sequence",
|
|
562
|
-
element: {
|
|
563
|
-
type: {
|
|
564
|
-
name: "String",
|
|
565
|
-
},
|
|
566
|
-
},
|
|
567
|
-
},
|
|
568
|
-
},
|
|
569
|
-
},
|
|
570
|
-
},
|
|
571
|
-
};
|
|
572
|
-
const SKUCapability = {
|
|
573
|
-
type: {
|
|
574
|
-
name: "Composite",
|
|
575
|
-
className: "SKUCapability",
|
|
576
|
-
modelProperties: {
|
|
577
|
-
name: {
|
|
578
|
-
serializedName: "name",
|
|
579
|
-
readOnly: true,
|
|
580
|
-
type: {
|
|
581
|
-
name: "String",
|
|
582
|
-
},
|
|
583
|
-
},
|
|
584
|
-
value: {
|
|
585
|
-
serializedName: "value",
|
|
586
|
-
readOnly: true,
|
|
587
|
-
type: {
|
|
588
|
-
name: "String",
|
|
589
|
-
},
|
|
590
|
-
},
|
|
591
|
-
},
|
|
592
|
-
},
|
|
593
|
-
};
|
|
594
|
-
const ElasticSanList = {
|
|
595
|
-
type: {
|
|
596
|
-
name: "Composite",
|
|
597
|
-
className: "ElasticSanList",
|
|
598
|
-
modelProperties: {
|
|
599
|
-
value: {
|
|
600
|
-
serializedName: "value",
|
|
601
|
-
type: {
|
|
602
|
-
name: "Sequence",
|
|
603
|
-
element: {
|
|
604
|
-
type: {
|
|
605
|
-
name: "Composite",
|
|
606
|
-
className: "ElasticSan",
|
|
607
|
-
},
|
|
608
|
-
},
|
|
609
|
-
},
|
|
610
|
-
},
|
|
611
|
-
nextLink: {
|
|
612
|
-
serializedName: "nextLink",
|
|
613
|
-
readOnly: true,
|
|
614
|
-
type: {
|
|
615
|
-
name: "String",
|
|
616
|
-
},
|
|
617
|
-
},
|
|
618
|
-
},
|
|
619
|
-
},
|
|
620
|
-
};
|
|
621
|
-
const ElasticSanProperties = {
|
|
622
|
-
type: {
|
|
623
|
-
name: "Composite",
|
|
624
|
-
className: "ElasticSanProperties",
|
|
625
|
-
modelProperties: {
|
|
626
|
-
sku: {
|
|
627
|
-
serializedName: "sku",
|
|
628
|
-
type: {
|
|
629
|
-
name: "Composite",
|
|
630
|
-
className: "Sku",
|
|
631
|
-
},
|
|
632
|
-
},
|
|
633
|
-
availabilityZones: {
|
|
634
|
-
serializedName: "availabilityZones",
|
|
635
|
-
type: {
|
|
636
|
-
name: "Sequence",
|
|
637
|
-
element: {
|
|
638
|
-
type: {
|
|
639
|
-
name: "String",
|
|
640
|
-
},
|
|
641
|
-
},
|
|
642
|
-
},
|
|
643
|
-
},
|
|
644
|
-
provisioningState: {
|
|
645
|
-
serializedName: "provisioningState",
|
|
646
|
-
readOnly: true,
|
|
647
|
-
type: {
|
|
648
|
-
name: "String",
|
|
649
|
-
},
|
|
650
|
-
},
|
|
651
|
-
baseSizeTiB: {
|
|
652
|
-
serializedName: "baseSizeTiB",
|
|
653
|
-
required: true,
|
|
654
|
-
type: {
|
|
655
|
-
name: "Number",
|
|
656
|
-
},
|
|
657
|
-
},
|
|
658
|
-
extendedCapacitySizeTiB: {
|
|
659
|
-
serializedName: "extendedCapacitySizeTiB",
|
|
660
|
-
required: true,
|
|
661
|
-
type: {
|
|
662
|
-
name: "Number",
|
|
663
|
-
},
|
|
664
|
-
},
|
|
665
|
-
totalVolumeSizeGiB: {
|
|
666
|
-
serializedName: "totalVolumeSizeGiB",
|
|
667
|
-
readOnly: true,
|
|
668
|
-
type: {
|
|
669
|
-
name: "Number",
|
|
670
|
-
},
|
|
671
|
-
},
|
|
672
|
-
volumeGroupCount: {
|
|
673
|
-
serializedName: "volumeGroupCount",
|
|
674
|
-
readOnly: true,
|
|
675
|
-
type: {
|
|
676
|
-
name: "Number",
|
|
677
|
-
},
|
|
678
|
-
},
|
|
679
|
-
totalIops: {
|
|
680
|
-
serializedName: "totalIops",
|
|
681
|
-
readOnly: true,
|
|
682
|
-
type: {
|
|
683
|
-
name: "Number",
|
|
684
|
-
},
|
|
685
|
-
},
|
|
686
|
-
totalMBps: {
|
|
687
|
-
serializedName: "totalMBps",
|
|
688
|
-
readOnly: true,
|
|
689
|
-
type: {
|
|
690
|
-
name: "Number",
|
|
691
|
-
},
|
|
692
|
-
},
|
|
693
|
-
totalSizeTiB: {
|
|
694
|
-
serializedName: "totalSizeTiB",
|
|
695
|
-
readOnly: true,
|
|
696
|
-
type: {
|
|
697
|
-
name: "Number",
|
|
698
|
-
},
|
|
699
|
-
},
|
|
700
|
-
privateEndpointConnections: {
|
|
701
|
-
serializedName: "privateEndpointConnections",
|
|
702
|
-
readOnly: true,
|
|
703
|
-
type: {
|
|
704
|
-
name: "Sequence",
|
|
705
|
-
element: {
|
|
706
|
-
type: {
|
|
707
|
-
name: "Composite",
|
|
708
|
-
className: "PrivateEndpointConnection",
|
|
709
|
-
},
|
|
710
|
-
},
|
|
711
|
-
},
|
|
712
|
-
},
|
|
713
|
-
publicNetworkAccess: {
|
|
714
|
-
serializedName: "publicNetworkAccess",
|
|
715
|
-
type: {
|
|
716
|
-
name: "String",
|
|
717
|
-
},
|
|
718
|
-
},
|
|
719
|
-
autoScaleProperties: {
|
|
720
|
-
serializedName: "autoScaleProperties",
|
|
721
|
-
type: {
|
|
722
|
-
name: "Composite",
|
|
723
|
-
className: "AutoScaleProperties",
|
|
724
|
-
},
|
|
725
|
-
},
|
|
726
|
-
},
|
|
727
|
-
},
|
|
728
|
-
};
|
|
729
|
-
const Sku = {
|
|
730
|
-
type: {
|
|
731
|
-
name: "Composite",
|
|
732
|
-
className: "Sku",
|
|
733
|
-
modelProperties: {
|
|
734
|
-
name: {
|
|
735
|
-
serializedName: "name",
|
|
736
|
-
required: true,
|
|
737
|
-
type: {
|
|
738
|
-
name: "String",
|
|
739
|
-
},
|
|
740
|
-
},
|
|
741
|
-
tier: {
|
|
742
|
-
serializedName: "tier",
|
|
743
|
-
type: {
|
|
744
|
-
name: "String",
|
|
745
|
-
},
|
|
746
|
-
},
|
|
747
|
-
},
|
|
748
|
-
},
|
|
749
|
-
};
|
|
750
|
-
const PrivateEndpointConnectionProperties = {
|
|
751
|
-
type: {
|
|
752
|
-
name: "Composite",
|
|
753
|
-
className: "PrivateEndpointConnectionProperties",
|
|
754
|
-
modelProperties: {
|
|
755
|
-
provisioningState: {
|
|
756
|
-
serializedName: "provisioningState",
|
|
757
|
-
readOnly: true,
|
|
758
|
-
type: {
|
|
759
|
-
name: "String",
|
|
760
|
-
},
|
|
761
|
-
},
|
|
762
|
-
privateEndpoint: {
|
|
763
|
-
serializedName: "privateEndpoint",
|
|
764
|
-
type: {
|
|
765
|
-
name: "Composite",
|
|
766
|
-
className: "PrivateEndpoint",
|
|
767
|
-
},
|
|
768
|
-
},
|
|
769
|
-
privateLinkServiceConnectionState: {
|
|
770
|
-
serializedName: "privateLinkServiceConnectionState",
|
|
771
|
-
type: {
|
|
772
|
-
name: "Composite",
|
|
773
|
-
className: "PrivateLinkServiceConnectionState",
|
|
774
|
-
},
|
|
775
|
-
},
|
|
776
|
-
groupIds: {
|
|
777
|
-
serializedName: "groupIds",
|
|
778
|
-
type: {
|
|
779
|
-
name: "Sequence",
|
|
780
|
-
element: {
|
|
781
|
-
type: {
|
|
782
|
-
name: "String",
|
|
783
|
-
},
|
|
784
|
-
},
|
|
785
|
-
},
|
|
786
|
-
},
|
|
787
|
-
},
|
|
788
|
-
},
|
|
789
|
-
};
|
|
790
|
-
const PrivateEndpoint = {
|
|
791
|
-
type: {
|
|
792
|
-
name: "Composite",
|
|
793
|
-
className: "PrivateEndpoint",
|
|
794
|
-
modelProperties: {
|
|
795
|
-
id: {
|
|
796
|
-
serializedName: "id",
|
|
797
|
-
readOnly: true,
|
|
798
|
-
type: {
|
|
799
|
-
name: "String",
|
|
800
|
-
},
|
|
801
|
-
},
|
|
802
|
-
},
|
|
803
|
-
},
|
|
804
|
-
};
|
|
805
|
-
const PrivateLinkServiceConnectionState = {
|
|
806
|
-
type: {
|
|
807
|
-
name: "Composite",
|
|
808
|
-
className: "PrivateLinkServiceConnectionState",
|
|
809
|
-
modelProperties: {
|
|
810
|
-
status: {
|
|
811
|
-
serializedName: "status",
|
|
812
|
-
type: {
|
|
813
|
-
name: "String",
|
|
814
|
-
},
|
|
815
|
-
},
|
|
816
|
-
description: {
|
|
817
|
-
serializedName: "description",
|
|
818
|
-
type: {
|
|
819
|
-
name: "String",
|
|
820
|
-
},
|
|
821
|
-
},
|
|
822
|
-
actionsRequired: {
|
|
823
|
-
serializedName: "actionsRequired",
|
|
824
|
-
type: {
|
|
825
|
-
name: "String",
|
|
826
|
-
},
|
|
827
|
-
},
|
|
828
|
-
},
|
|
829
|
-
},
|
|
830
|
-
};
|
|
831
|
-
const Resource = {
|
|
832
|
-
type: {
|
|
833
|
-
name: "Composite",
|
|
834
|
-
className: "Resource",
|
|
835
|
-
modelProperties: {
|
|
836
|
-
id: {
|
|
837
|
-
serializedName: "id",
|
|
838
|
-
readOnly: true,
|
|
839
|
-
type: {
|
|
840
|
-
name: "String",
|
|
841
|
-
},
|
|
842
|
-
},
|
|
843
|
-
name: {
|
|
844
|
-
serializedName: "name",
|
|
845
|
-
readOnly: true,
|
|
846
|
-
type: {
|
|
847
|
-
name: "String",
|
|
848
|
-
},
|
|
849
|
-
},
|
|
850
|
-
type: {
|
|
851
|
-
serializedName: "type",
|
|
852
|
-
readOnly: true,
|
|
853
|
-
type: {
|
|
854
|
-
name: "String",
|
|
855
|
-
},
|
|
856
|
-
},
|
|
857
|
-
systemData: {
|
|
858
|
-
serializedName: "systemData",
|
|
859
|
-
type: {
|
|
860
|
-
name: "Composite",
|
|
861
|
-
className: "SystemData",
|
|
862
|
-
},
|
|
863
|
-
},
|
|
864
|
-
},
|
|
865
|
-
},
|
|
866
|
-
};
|
|
867
|
-
const SystemData = {
|
|
868
|
-
type: {
|
|
869
|
-
name: "Composite",
|
|
870
|
-
className: "SystemData",
|
|
871
|
-
modelProperties: {
|
|
872
|
-
createdBy: {
|
|
873
|
-
serializedName: "createdBy",
|
|
874
|
-
type: {
|
|
875
|
-
name: "String",
|
|
876
|
-
},
|
|
877
|
-
},
|
|
878
|
-
createdByType: {
|
|
879
|
-
serializedName: "createdByType",
|
|
880
|
-
type: {
|
|
881
|
-
name: "String",
|
|
882
|
-
},
|
|
883
|
-
},
|
|
884
|
-
createdAt: {
|
|
885
|
-
serializedName: "createdAt",
|
|
886
|
-
type: {
|
|
887
|
-
name: "DateTime",
|
|
888
|
-
},
|
|
889
|
-
},
|
|
890
|
-
lastModifiedBy: {
|
|
891
|
-
serializedName: "lastModifiedBy",
|
|
892
|
-
type: {
|
|
893
|
-
name: "String",
|
|
894
|
-
},
|
|
895
|
-
},
|
|
896
|
-
lastModifiedByType: {
|
|
897
|
-
serializedName: "lastModifiedByType",
|
|
898
|
-
type: {
|
|
899
|
-
name: "String",
|
|
900
|
-
},
|
|
901
|
-
},
|
|
902
|
-
lastModifiedAt: {
|
|
903
|
-
serializedName: "lastModifiedAt",
|
|
904
|
-
type: {
|
|
905
|
-
name: "DateTime",
|
|
906
|
-
},
|
|
907
|
-
},
|
|
908
|
-
},
|
|
909
|
-
},
|
|
910
|
-
};
|
|
911
|
-
const AutoScaleProperties = {
|
|
912
|
-
type: {
|
|
913
|
-
name: "Composite",
|
|
914
|
-
className: "AutoScaleProperties",
|
|
915
|
-
modelProperties: {
|
|
916
|
-
scaleUpProperties: {
|
|
917
|
-
serializedName: "scaleUpProperties",
|
|
918
|
-
type: {
|
|
919
|
-
name: "Composite",
|
|
920
|
-
className: "ScaleUpProperties",
|
|
921
|
-
},
|
|
922
|
-
},
|
|
923
|
-
},
|
|
924
|
-
},
|
|
925
|
-
};
|
|
926
|
-
const ScaleUpProperties = {
|
|
927
|
-
type: {
|
|
928
|
-
name: "Composite",
|
|
929
|
-
className: "ScaleUpProperties",
|
|
930
|
-
modelProperties: {
|
|
931
|
-
unusedSizeTiB: {
|
|
932
|
-
serializedName: "unusedSizeTiB",
|
|
933
|
-
type: {
|
|
934
|
-
name: "Number",
|
|
935
|
-
},
|
|
936
|
-
},
|
|
937
|
-
increaseCapacityUnitByTiB: {
|
|
938
|
-
serializedName: "increaseCapacityUnitByTiB",
|
|
939
|
-
type: {
|
|
940
|
-
name: "Number",
|
|
941
|
-
},
|
|
942
|
-
},
|
|
943
|
-
capacityUnitScaleUpLimitTiB: {
|
|
944
|
-
serializedName: "capacityUnitScaleUpLimitTiB",
|
|
945
|
-
type: {
|
|
946
|
-
name: "Number",
|
|
947
|
-
},
|
|
948
|
-
},
|
|
949
|
-
autoScalePolicyEnforcement: {
|
|
950
|
-
serializedName: "autoScalePolicyEnforcement",
|
|
951
|
-
type: {
|
|
952
|
-
name: "String",
|
|
953
|
-
},
|
|
954
|
-
},
|
|
955
|
-
},
|
|
956
|
-
},
|
|
957
|
-
};
|
|
958
|
-
const ElasticSanUpdate = {
|
|
959
|
-
type: {
|
|
960
|
-
name: "Composite",
|
|
961
|
-
className: "ElasticSanUpdate",
|
|
962
|
-
modelProperties: {
|
|
963
|
-
properties: {
|
|
964
|
-
serializedName: "properties",
|
|
965
|
-
type: {
|
|
966
|
-
name: "Composite",
|
|
967
|
-
className: "ElasticSanUpdateProperties",
|
|
968
|
-
},
|
|
969
|
-
},
|
|
970
|
-
tags: {
|
|
971
|
-
serializedName: "tags",
|
|
972
|
-
type: {
|
|
973
|
-
name: "Dictionary",
|
|
974
|
-
value: { type: { name: "String" } },
|
|
975
|
-
},
|
|
976
|
-
},
|
|
977
|
-
},
|
|
978
|
-
},
|
|
979
|
-
};
|
|
980
|
-
const ElasticSanUpdateProperties = {
|
|
981
|
-
type: {
|
|
982
|
-
name: "Composite",
|
|
983
|
-
className: "ElasticSanUpdateProperties",
|
|
984
|
-
modelProperties: {
|
|
985
|
-
baseSizeTiB: {
|
|
986
|
-
serializedName: "baseSizeTiB",
|
|
987
|
-
type: {
|
|
988
|
-
name: "Number",
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
|
-
extendedCapacitySizeTiB: {
|
|
992
|
-
serializedName: "extendedCapacitySizeTiB",
|
|
993
|
-
type: {
|
|
994
|
-
name: "Number",
|
|
995
|
-
},
|
|
996
|
-
},
|
|
997
|
-
publicNetworkAccess: {
|
|
998
|
-
serializedName: "publicNetworkAccess",
|
|
999
|
-
type: {
|
|
1000
|
-
name: "String",
|
|
1001
|
-
},
|
|
1002
|
-
},
|
|
1003
|
-
autoScaleProperties: {
|
|
1004
|
-
serializedName: "autoScaleProperties",
|
|
1005
|
-
type: {
|
|
1006
|
-
name: "Composite",
|
|
1007
|
-
className: "AutoScaleProperties",
|
|
1008
|
-
},
|
|
1009
|
-
},
|
|
1010
|
-
},
|
|
1011
|
-
},
|
|
1012
|
-
};
|
|
1013
|
-
const VolumeGroupList = {
|
|
1014
|
-
type: {
|
|
1015
|
-
name: "Composite",
|
|
1016
|
-
className: "VolumeGroupList",
|
|
1017
|
-
modelProperties: {
|
|
1018
|
-
value: {
|
|
1019
|
-
serializedName: "value",
|
|
1020
|
-
type: {
|
|
1021
|
-
name: "Sequence",
|
|
1022
|
-
element: {
|
|
1023
|
-
type: {
|
|
1024
|
-
name: "Composite",
|
|
1025
|
-
className: "VolumeGroup",
|
|
1026
|
-
},
|
|
1027
|
-
},
|
|
1028
|
-
},
|
|
1029
|
-
},
|
|
1030
|
-
nextLink: {
|
|
1031
|
-
serializedName: "nextLink",
|
|
1032
|
-
readOnly: true,
|
|
1033
|
-
type: {
|
|
1034
|
-
name: "String",
|
|
1035
|
-
},
|
|
1036
|
-
},
|
|
1037
|
-
},
|
|
1038
|
-
},
|
|
1039
|
-
};
|
|
1040
|
-
const Identity = {
|
|
1041
|
-
type: {
|
|
1042
|
-
name: "Composite",
|
|
1043
|
-
className: "Identity",
|
|
1044
|
-
modelProperties: {
|
|
1045
|
-
principalId: {
|
|
1046
|
-
serializedName: "principalId",
|
|
1047
|
-
readOnly: true,
|
|
1048
|
-
type: {
|
|
1049
|
-
name: "String",
|
|
1050
|
-
},
|
|
1051
|
-
},
|
|
1052
|
-
tenantId: {
|
|
1053
|
-
serializedName: "tenantId",
|
|
1054
|
-
readOnly: true,
|
|
1055
|
-
type: {
|
|
1056
|
-
name: "String",
|
|
1057
|
-
},
|
|
1058
|
-
},
|
|
1059
|
-
type: {
|
|
1060
|
-
serializedName: "type",
|
|
1061
|
-
required: true,
|
|
1062
|
-
type: {
|
|
1063
|
-
name: "String",
|
|
1064
|
-
},
|
|
1065
|
-
},
|
|
1066
|
-
userAssignedIdentities: {
|
|
1067
|
-
serializedName: "userAssignedIdentities",
|
|
1068
|
-
type: {
|
|
1069
|
-
name: "Dictionary",
|
|
1070
|
-
value: {
|
|
1071
|
-
type: { name: "Composite", className: "UserAssignedIdentity" },
|
|
1072
|
-
},
|
|
1073
|
-
},
|
|
1074
|
-
},
|
|
1075
|
-
},
|
|
1076
|
-
},
|
|
1077
|
-
};
|
|
1078
|
-
const UserAssignedIdentity = {
|
|
1079
|
-
type: {
|
|
1080
|
-
name: "Composite",
|
|
1081
|
-
className: "UserAssignedIdentity",
|
|
1082
|
-
modelProperties: {
|
|
1083
|
-
principalId: {
|
|
1084
|
-
serializedName: "principalId",
|
|
1085
|
-
readOnly: true,
|
|
1086
|
-
type: {
|
|
1087
|
-
name: "String",
|
|
1088
|
-
},
|
|
1089
|
-
},
|
|
1090
|
-
clientId: {
|
|
1091
|
-
serializedName: "clientId",
|
|
1092
|
-
readOnly: true,
|
|
1093
|
-
type: {
|
|
1094
|
-
name: "String",
|
|
1095
|
-
},
|
|
1096
|
-
},
|
|
1097
|
-
},
|
|
1098
|
-
},
|
|
1099
|
-
};
|
|
1100
|
-
const VolumeGroupProperties = {
|
|
1101
|
-
type: {
|
|
1102
|
-
name: "Composite",
|
|
1103
|
-
className: "VolumeGroupProperties",
|
|
1104
|
-
modelProperties: {
|
|
1105
|
-
provisioningState: {
|
|
1106
|
-
serializedName: "provisioningState",
|
|
1107
|
-
readOnly: true,
|
|
1108
|
-
type: {
|
|
1109
|
-
name: "String",
|
|
1110
|
-
},
|
|
1111
|
-
},
|
|
1112
|
-
protocolType: {
|
|
1113
|
-
serializedName: "protocolType",
|
|
1114
|
-
type: {
|
|
1115
|
-
name: "String",
|
|
1116
|
-
},
|
|
1117
|
-
},
|
|
1118
|
-
encryption: {
|
|
1119
|
-
serializedName: "encryption",
|
|
1120
|
-
type: {
|
|
1121
|
-
name: "String",
|
|
1122
|
-
},
|
|
1123
|
-
},
|
|
1124
|
-
encryptionProperties: {
|
|
1125
|
-
serializedName: "encryptionProperties",
|
|
1126
|
-
type: {
|
|
1127
|
-
name: "Composite",
|
|
1128
|
-
className: "EncryptionProperties",
|
|
1129
|
-
},
|
|
1130
|
-
},
|
|
1131
|
-
networkAcls: {
|
|
1132
|
-
serializedName: "networkAcls",
|
|
1133
|
-
type: {
|
|
1134
|
-
name: "Composite",
|
|
1135
|
-
className: "NetworkRuleSet",
|
|
1136
|
-
},
|
|
1137
|
-
},
|
|
1138
|
-
privateEndpointConnections: {
|
|
1139
|
-
serializedName: "privateEndpointConnections",
|
|
1140
|
-
readOnly: true,
|
|
1141
|
-
type: {
|
|
1142
|
-
name: "Sequence",
|
|
1143
|
-
element: {
|
|
1144
|
-
type: {
|
|
1145
|
-
name: "Composite",
|
|
1146
|
-
className: "PrivateEndpointConnection",
|
|
1147
|
-
},
|
|
1148
|
-
},
|
|
1149
|
-
},
|
|
1150
|
-
},
|
|
1151
|
-
enforceDataIntegrityCheckForIscsi: {
|
|
1152
|
-
serializedName: "enforceDataIntegrityCheckForIscsi",
|
|
1153
|
-
type: {
|
|
1154
|
-
name: "Boolean",
|
|
1155
|
-
},
|
|
1156
|
-
},
|
|
1157
|
-
},
|
|
1158
|
-
},
|
|
1159
|
-
};
|
|
1160
|
-
const EncryptionProperties = {
|
|
1161
|
-
type: {
|
|
1162
|
-
name: "Composite",
|
|
1163
|
-
className: "EncryptionProperties",
|
|
1164
|
-
modelProperties: {
|
|
1165
|
-
keyVaultProperties: {
|
|
1166
|
-
serializedName: "keyVaultProperties",
|
|
1167
|
-
type: {
|
|
1168
|
-
name: "Composite",
|
|
1169
|
-
className: "KeyVaultProperties",
|
|
1170
|
-
},
|
|
1171
|
-
},
|
|
1172
|
-
encryptionIdentity: {
|
|
1173
|
-
serializedName: "identity",
|
|
1174
|
-
type: {
|
|
1175
|
-
name: "Composite",
|
|
1176
|
-
className: "EncryptionIdentity",
|
|
1177
|
-
},
|
|
1178
|
-
},
|
|
1179
|
-
},
|
|
1180
|
-
},
|
|
1181
|
-
};
|
|
1182
|
-
const KeyVaultProperties = {
|
|
1183
|
-
type: {
|
|
1184
|
-
name: "Composite",
|
|
1185
|
-
className: "KeyVaultProperties",
|
|
1186
|
-
modelProperties: {
|
|
1187
|
-
keyName: {
|
|
1188
|
-
serializedName: "keyName",
|
|
1189
|
-
type: {
|
|
1190
|
-
name: "String",
|
|
1191
|
-
},
|
|
1192
|
-
},
|
|
1193
|
-
keyVersion: {
|
|
1194
|
-
serializedName: "keyVersion",
|
|
1195
|
-
type: {
|
|
1196
|
-
name: "String",
|
|
1197
|
-
},
|
|
1198
|
-
},
|
|
1199
|
-
keyVaultUri: {
|
|
1200
|
-
serializedName: "keyVaultUri",
|
|
1201
|
-
type: {
|
|
1202
|
-
name: "String",
|
|
1203
|
-
},
|
|
1204
|
-
},
|
|
1205
|
-
currentVersionedKeyIdentifier: {
|
|
1206
|
-
serializedName: "currentVersionedKeyIdentifier",
|
|
1207
|
-
readOnly: true,
|
|
1208
|
-
type: {
|
|
1209
|
-
name: "String",
|
|
1210
|
-
},
|
|
1211
|
-
},
|
|
1212
|
-
lastKeyRotationTimestamp: {
|
|
1213
|
-
serializedName: "lastKeyRotationTimestamp",
|
|
1214
|
-
readOnly: true,
|
|
1215
|
-
type: {
|
|
1216
|
-
name: "DateTime",
|
|
1217
|
-
},
|
|
1218
|
-
},
|
|
1219
|
-
currentVersionedKeyExpirationTimestamp: {
|
|
1220
|
-
serializedName: "currentVersionedKeyExpirationTimestamp",
|
|
1221
|
-
readOnly: true,
|
|
1222
|
-
type: {
|
|
1223
|
-
name: "DateTime",
|
|
1224
|
-
},
|
|
1225
|
-
},
|
|
1226
|
-
},
|
|
1227
|
-
},
|
|
1228
|
-
};
|
|
1229
|
-
const EncryptionIdentity = {
|
|
1230
|
-
type: {
|
|
1231
|
-
name: "Composite",
|
|
1232
|
-
className: "EncryptionIdentity",
|
|
1233
|
-
modelProperties: {
|
|
1234
|
-
encryptionUserAssignedIdentity: {
|
|
1235
|
-
serializedName: "userAssignedIdentity",
|
|
1236
|
-
type: {
|
|
1237
|
-
name: "String",
|
|
1238
|
-
},
|
|
1239
|
-
},
|
|
1240
|
-
},
|
|
1241
|
-
},
|
|
1242
|
-
};
|
|
1243
|
-
const NetworkRuleSet = {
|
|
1244
|
-
type: {
|
|
1245
|
-
name: "Composite",
|
|
1246
|
-
className: "NetworkRuleSet",
|
|
1247
|
-
modelProperties: {
|
|
1248
|
-
virtualNetworkRules: {
|
|
1249
|
-
serializedName: "virtualNetworkRules",
|
|
1250
|
-
type: {
|
|
1251
|
-
name: "Sequence",
|
|
1252
|
-
element: {
|
|
1253
|
-
type: {
|
|
1254
|
-
name: "Composite",
|
|
1255
|
-
className: "VirtualNetworkRule",
|
|
1256
|
-
},
|
|
1257
|
-
},
|
|
1258
|
-
},
|
|
1259
|
-
},
|
|
1260
|
-
},
|
|
1261
|
-
},
|
|
1262
|
-
};
|
|
1263
|
-
const VirtualNetworkRule = {
|
|
1264
|
-
type: {
|
|
1265
|
-
name: "Composite",
|
|
1266
|
-
className: "VirtualNetworkRule",
|
|
1267
|
-
modelProperties: {
|
|
1268
|
-
virtualNetworkResourceId: {
|
|
1269
|
-
serializedName: "id",
|
|
1270
|
-
required: true,
|
|
1271
|
-
type: {
|
|
1272
|
-
name: "String",
|
|
1273
|
-
},
|
|
1274
|
-
},
|
|
1275
|
-
action: {
|
|
1276
|
-
defaultValue: "Allow",
|
|
1277
|
-
serializedName: "action",
|
|
1278
|
-
type: {
|
|
1279
|
-
name: "String",
|
|
1280
|
-
},
|
|
1281
|
-
},
|
|
1282
|
-
},
|
|
1283
|
-
},
|
|
1284
|
-
};
|
|
1285
|
-
const VolumeGroupUpdate = {
|
|
1286
|
-
type: {
|
|
1287
|
-
name: "Composite",
|
|
1288
|
-
className: "VolumeGroupUpdate",
|
|
1289
|
-
modelProperties: {
|
|
1290
|
-
identity: {
|
|
1291
|
-
serializedName: "identity",
|
|
1292
|
-
type: {
|
|
1293
|
-
name: "Composite",
|
|
1294
|
-
className: "Identity",
|
|
1295
|
-
},
|
|
1296
|
-
},
|
|
1297
|
-
properties: {
|
|
1298
|
-
serializedName: "properties",
|
|
1299
|
-
type: {
|
|
1300
|
-
name: "Composite",
|
|
1301
|
-
className: "VolumeGroupUpdateProperties",
|
|
1302
|
-
},
|
|
1303
|
-
},
|
|
1304
|
-
},
|
|
1305
|
-
},
|
|
1306
|
-
};
|
|
1307
|
-
const VolumeGroupUpdateProperties = {
|
|
1308
|
-
type: {
|
|
1309
|
-
name: "Composite",
|
|
1310
|
-
className: "VolumeGroupUpdateProperties",
|
|
1311
|
-
modelProperties: {
|
|
1312
|
-
protocolType: {
|
|
1313
|
-
serializedName: "protocolType",
|
|
1314
|
-
type: {
|
|
1315
|
-
name: "String",
|
|
1316
|
-
},
|
|
1317
|
-
},
|
|
1318
|
-
encryption: {
|
|
1319
|
-
serializedName: "encryption",
|
|
1320
|
-
type: {
|
|
1321
|
-
name: "String",
|
|
1322
|
-
},
|
|
1323
|
-
},
|
|
1324
|
-
encryptionProperties: {
|
|
1325
|
-
serializedName: "encryptionProperties",
|
|
1326
|
-
type: {
|
|
1327
|
-
name: "Composite",
|
|
1328
|
-
className: "EncryptionProperties",
|
|
1329
|
-
},
|
|
1330
|
-
},
|
|
1331
|
-
networkAcls: {
|
|
1332
|
-
serializedName: "networkAcls",
|
|
1333
|
-
type: {
|
|
1334
|
-
name: "Composite",
|
|
1335
|
-
className: "NetworkRuleSet",
|
|
1336
|
-
},
|
|
1337
|
-
},
|
|
1338
|
-
enforceDataIntegrityCheckForIscsi: {
|
|
1339
|
-
serializedName: "enforceDataIntegrityCheckForIscsi",
|
|
1340
|
-
type: {
|
|
1341
|
-
name: "Boolean",
|
|
1342
|
-
},
|
|
1343
|
-
},
|
|
1344
|
-
},
|
|
1345
|
-
},
|
|
1346
|
-
};
|
|
1347
|
-
const VolumeProperties = {
|
|
1348
|
-
type: {
|
|
1349
|
-
name: "Composite",
|
|
1350
|
-
className: "VolumeProperties",
|
|
1351
|
-
modelProperties: {
|
|
1352
|
-
volumeId: {
|
|
1353
|
-
serializedName: "volumeId",
|
|
1354
|
-
readOnly: true,
|
|
1355
|
-
type: {
|
|
1356
|
-
name: "String",
|
|
1357
|
-
},
|
|
1358
|
-
},
|
|
1359
|
-
creationData: {
|
|
1360
|
-
serializedName: "creationData",
|
|
1361
|
-
type: {
|
|
1362
|
-
name: "Composite",
|
|
1363
|
-
className: "SourceCreationData",
|
|
1364
|
-
},
|
|
1365
|
-
},
|
|
1366
|
-
sizeGiB: {
|
|
1367
|
-
serializedName: "sizeGiB",
|
|
1368
|
-
required: true,
|
|
1369
|
-
type: {
|
|
1370
|
-
name: "Number",
|
|
1371
|
-
},
|
|
1372
|
-
},
|
|
1373
|
-
storageTarget: {
|
|
1374
|
-
serializedName: "storageTarget",
|
|
1375
|
-
type: {
|
|
1376
|
-
name: "Composite",
|
|
1377
|
-
className: "IscsiTargetInfo",
|
|
1378
|
-
},
|
|
1379
|
-
},
|
|
1380
|
-
managedBy: {
|
|
1381
|
-
serializedName: "managedBy",
|
|
1382
|
-
type: {
|
|
1383
|
-
name: "Composite",
|
|
1384
|
-
className: "ManagedByInfo",
|
|
1385
|
-
},
|
|
1386
|
-
},
|
|
1387
|
-
provisioningState: {
|
|
1388
|
-
serializedName: "provisioningState",
|
|
1389
|
-
readOnly: true,
|
|
1390
|
-
type: {
|
|
1391
|
-
name: "String",
|
|
1392
|
-
},
|
|
1393
|
-
},
|
|
1394
|
-
},
|
|
1395
|
-
},
|
|
1396
|
-
};
|
|
1397
|
-
const SourceCreationData = {
|
|
1398
|
-
type: {
|
|
1399
|
-
name: "Composite",
|
|
1400
|
-
className: "SourceCreationData",
|
|
1401
|
-
modelProperties: {
|
|
1402
|
-
createSource: {
|
|
1403
|
-
serializedName: "createSource",
|
|
1404
|
-
type: {
|
|
1405
|
-
name: "String",
|
|
1406
|
-
},
|
|
1407
|
-
},
|
|
1408
|
-
sourceId: {
|
|
1409
|
-
serializedName: "sourceId",
|
|
1410
|
-
type: {
|
|
1411
|
-
name: "String",
|
|
1412
|
-
},
|
|
1413
|
-
},
|
|
1414
|
-
},
|
|
1415
|
-
},
|
|
1416
|
-
};
|
|
1417
|
-
const IscsiTargetInfo = {
|
|
1418
|
-
type: {
|
|
1419
|
-
name: "Composite",
|
|
1420
|
-
className: "IscsiTargetInfo",
|
|
1421
|
-
modelProperties: {
|
|
1422
|
-
targetIqn: {
|
|
1423
|
-
serializedName: "targetIqn",
|
|
1424
|
-
readOnly: true,
|
|
1425
|
-
type: {
|
|
1426
|
-
name: "String",
|
|
1427
|
-
},
|
|
1428
|
-
},
|
|
1429
|
-
targetPortalHostname: {
|
|
1430
|
-
serializedName: "targetPortalHostname",
|
|
1431
|
-
readOnly: true,
|
|
1432
|
-
type: {
|
|
1433
|
-
name: "String",
|
|
1434
|
-
},
|
|
1435
|
-
},
|
|
1436
|
-
targetPortalPort: {
|
|
1437
|
-
serializedName: "targetPortalPort",
|
|
1438
|
-
readOnly: true,
|
|
1439
|
-
type: {
|
|
1440
|
-
name: "Number",
|
|
1441
|
-
},
|
|
1442
|
-
},
|
|
1443
|
-
provisioningState: {
|
|
1444
|
-
serializedName: "provisioningState",
|
|
1445
|
-
readOnly: true,
|
|
1446
|
-
type: {
|
|
1447
|
-
name: "String",
|
|
1448
|
-
},
|
|
1449
|
-
},
|
|
1450
|
-
status: {
|
|
1451
|
-
serializedName: "status",
|
|
1452
|
-
type: {
|
|
1453
|
-
name: "String",
|
|
1454
|
-
},
|
|
1455
|
-
},
|
|
1456
|
-
},
|
|
1457
|
-
},
|
|
1458
|
-
};
|
|
1459
|
-
const ManagedByInfo = {
|
|
1460
|
-
type: {
|
|
1461
|
-
name: "Composite",
|
|
1462
|
-
className: "ManagedByInfo",
|
|
1463
|
-
modelProperties: {
|
|
1464
|
-
resourceId: {
|
|
1465
|
-
serializedName: "resourceId",
|
|
1466
|
-
type: {
|
|
1467
|
-
name: "String",
|
|
1468
|
-
},
|
|
1469
|
-
},
|
|
1470
|
-
},
|
|
1471
|
-
},
|
|
1472
|
-
};
|
|
1473
|
-
const VolumeUpdate = {
|
|
1474
|
-
type: {
|
|
1475
|
-
name: "Composite",
|
|
1476
|
-
className: "VolumeUpdate",
|
|
1477
|
-
modelProperties: {
|
|
1478
|
-
properties: {
|
|
1479
|
-
serializedName: "properties",
|
|
1480
|
-
type: {
|
|
1481
|
-
name: "Composite",
|
|
1482
|
-
className: "VolumeUpdateProperties",
|
|
1483
|
-
},
|
|
1484
|
-
},
|
|
1485
|
-
},
|
|
1486
|
-
},
|
|
1487
|
-
};
|
|
1488
|
-
const VolumeUpdateProperties = {
|
|
1489
|
-
type: {
|
|
1490
|
-
name: "Composite",
|
|
1491
|
-
className: "VolumeUpdateProperties",
|
|
1492
|
-
modelProperties: {
|
|
1493
|
-
sizeGiB: {
|
|
1494
|
-
serializedName: "sizeGiB",
|
|
1495
|
-
type: {
|
|
1496
|
-
name: "Number",
|
|
1497
|
-
},
|
|
1498
|
-
},
|
|
1499
|
-
managedBy: {
|
|
1500
|
-
serializedName: "managedBy",
|
|
1501
|
-
type: {
|
|
1502
|
-
name: "Composite",
|
|
1503
|
-
className: "ManagedByInfo",
|
|
1504
|
-
},
|
|
1505
|
-
},
|
|
1506
|
-
},
|
|
1507
|
-
},
|
|
1508
|
-
};
|
|
1509
|
-
const VolumeList = {
|
|
1510
|
-
type: {
|
|
1511
|
-
name: "Composite",
|
|
1512
|
-
className: "VolumeList",
|
|
1513
|
-
modelProperties: {
|
|
1514
|
-
value: {
|
|
1515
|
-
serializedName: "value",
|
|
1516
|
-
type: {
|
|
1517
|
-
name: "Sequence",
|
|
1518
|
-
element: {
|
|
1519
|
-
type: {
|
|
1520
|
-
name: "Composite",
|
|
1521
|
-
className: "Volume",
|
|
1522
|
-
},
|
|
1523
|
-
},
|
|
1524
|
-
},
|
|
1525
|
-
},
|
|
1526
|
-
nextLink: {
|
|
1527
|
-
serializedName: "nextLink",
|
|
1528
|
-
readOnly: true,
|
|
1529
|
-
type: {
|
|
1530
|
-
name: "String",
|
|
1531
|
-
},
|
|
1532
|
-
},
|
|
1533
|
-
},
|
|
1534
|
-
},
|
|
1535
|
-
};
|
|
1536
|
-
const PrivateEndpointConnectionListResult = {
|
|
1537
|
-
type: {
|
|
1538
|
-
name: "Composite",
|
|
1539
|
-
className: "PrivateEndpointConnectionListResult",
|
|
1540
|
-
modelProperties: {
|
|
1541
|
-
value: {
|
|
1542
|
-
serializedName: "value",
|
|
1543
|
-
type: {
|
|
1544
|
-
name: "Sequence",
|
|
1545
|
-
element: {
|
|
1546
|
-
type: {
|
|
1547
|
-
name: "Composite",
|
|
1548
|
-
className: "PrivateEndpointConnection",
|
|
1549
|
-
},
|
|
1550
|
-
},
|
|
1551
|
-
},
|
|
1552
|
-
},
|
|
1553
|
-
nextLink: {
|
|
1554
|
-
serializedName: "nextLink",
|
|
1555
|
-
readOnly: true,
|
|
1556
|
-
type: {
|
|
1557
|
-
name: "String",
|
|
1558
|
-
},
|
|
1559
|
-
},
|
|
1560
|
-
},
|
|
1561
|
-
},
|
|
1562
|
-
};
|
|
1563
|
-
const PrivateLinkResourceListResult = {
|
|
1564
|
-
type: {
|
|
1565
|
-
name: "Composite",
|
|
1566
|
-
className: "PrivateLinkResourceListResult",
|
|
1567
|
-
modelProperties: {
|
|
1568
|
-
value: {
|
|
1569
|
-
serializedName: "value",
|
|
1570
|
-
type: {
|
|
1571
|
-
name: "Sequence",
|
|
1572
|
-
element: {
|
|
1573
|
-
type: {
|
|
1574
|
-
name: "Composite",
|
|
1575
|
-
className: "PrivateLinkResource",
|
|
1576
|
-
},
|
|
1577
|
-
},
|
|
1578
|
-
},
|
|
1579
|
-
},
|
|
1580
|
-
nextLink: {
|
|
1581
|
-
serializedName: "nextLink",
|
|
1582
|
-
readOnly: true,
|
|
1583
|
-
type: {
|
|
1584
|
-
name: "String",
|
|
1585
|
-
},
|
|
1586
|
-
},
|
|
1587
|
-
},
|
|
1588
|
-
},
|
|
1589
|
-
};
|
|
1590
|
-
const PrivateLinkResourceProperties = {
|
|
1591
|
-
type: {
|
|
1592
|
-
name: "Composite",
|
|
1593
|
-
className: "PrivateLinkResourceProperties",
|
|
1594
|
-
modelProperties: {
|
|
1595
|
-
groupId: {
|
|
1596
|
-
serializedName: "groupId",
|
|
1597
|
-
readOnly: true,
|
|
1598
|
-
type: {
|
|
1599
|
-
name: "String",
|
|
1600
|
-
},
|
|
1601
|
-
},
|
|
1602
|
-
requiredMembers: {
|
|
1603
|
-
serializedName: "requiredMembers",
|
|
1604
|
-
readOnly: true,
|
|
1605
|
-
type: {
|
|
1606
|
-
name: "Sequence",
|
|
1607
|
-
element: {
|
|
1608
|
-
type: {
|
|
1609
|
-
name: "String",
|
|
1610
|
-
},
|
|
1611
|
-
},
|
|
1612
|
-
},
|
|
1613
|
-
},
|
|
1614
|
-
requiredZoneNames: {
|
|
1615
|
-
serializedName: "requiredZoneNames",
|
|
1616
|
-
type: {
|
|
1617
|
-
name: "Sequence",
|
|
1618
|
-
element: {
|
|
1619
|
-
type: {
|
|
1620
|
-
name: "String",
|
|
1621
|
-
},
|
|
1622
|
-
},
|
|
1623
|
-
},
|
|
1624
|
-
},
|
|
1625
|
-
},
|
|
1626
|
-
},
|
|
1627
|
-
};
|
|
1628
|
-
const SnapshotList = {
|
|
1629
|
-
type: {
|
|
1630
|
-
name: "Composite",
|
|
1631
|
-
className: "SnapshotList",
|
|
1632
|
-
modelProperties: {
|
|
1633
|
-
value: {
|
|
1634
|
-
serializedName: "value",
|
|
1635
|
-
type: {
|
|
1636
|
-
name: "Sequence",
|
|
1637
|
-
element: {
|
|
1638
|
-
type: {
|
|
1639
|
-
name: "Composite",
|
|
1640
|
-
className: "Snapshot",
|
|
1641
|
-
},
|
|
1642
|
-
},
|
|
1643
|
-
},
|
|
1644
|
-
},
|
|
1645
|
-
nextLink: {
|
|
1646
|
-
serializedName: "nextLink",
|
|
1647
|
-
readOnly: true,
|
|
1648
|
-
type: {
|
|
1649
|
-
name: "String",
|
|
1650
|
-
},
|
|
1651
|
-
},
|
|
1652
|
-
},
|
|
1653
|
-
},
|
|
1654
|
-
};
|
|
1655
|
-
const SnapshotProperties = {
|
|
1656
|
-
type: {
|
|
1657
|
-
name: "Composite",
|
|
1658
|
-
className: "SnapshotProperties",
|
|
1659
|
-
modelProperties: {
|
|
1660
|
-
creationData: {
|
|
1661
|
-
serializedName: "creationData",
|
|
1662
|
-
type: {
|
|
1663
|
-
name: "Composite",
|
|
1664
|
-
className: "SnapshotCreationData",
|
|
1665
|
-
},
|
|
1666
|
-
},
|
|
1667
|
-
provisioningState: {
|
|
1668
|
-
serializedName: "provisioningState",
|
|
1669
|
-
readOnly: true,
|
|
1670
|
-
type: {
|
|
1671
|
-
name: "String",
|
|
1672
|
-
},
|
|
1673
|
-
},
|
|
1674
|
-
sourceVolumeSizeGiB: {
|
|
1675
|
-
serializedName: "sourceVolumeSizeGiB",
|
|
1676
|
-
readOnly: true,
|
|
1677
|
-
type: {
|
|
1678
|
-
name: "Number",
|
|
1679
|
-
},
|
|
1680
|
-
},
|
|
1681
|
-
volumeName: {
|
|
1682
|
-
serializedName: "volumeName",
|
|
1683
|
-
readOnly: true,
|
|
1684
|
-
type: {
|
|
1685
|
-
name: "String",
|
|
1686
|
-
},
|
|
1687
|
-
},
|
|
1688
|
-
},
|
|
1689
|
-
},
|
|
1690
|
-
};
|
|
1691
|
-
const SnapshotCreationData = {
|
|
1692
|
-
type: {
|
|
1693
|
-
name: "Composite",
|
|
1694
|
-
className: "SnapshotCreationData",
|
|
1695
|
-
modelProperties: {
|
|
1696
|
-
sourceId: {
|
|
1697
|
-
serializedName: "sourceId",
|
|
1698
|
-
required: true,
|
|
1699
|
-
type: {
|
|
1700
|
-
name: "String",
|
|
1701
|
-
},
|
|
1702
|
-
},
|
|
1703
|
-
},
|
|
1704
|
-
},
|
|
1705
|
-
};
|
|
1706
|
-
const PrivateEndpointConnection = {
|
|
1707
|
-
type: {
|
|
1708
|
-
name: "Composite",
|
|
1709
|
-
className: "PrivateEndpointConnection",
|
|
1710
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
|
|
1711
|
-
serializedName: "properties",
|
|
1712
|
-
type: {
|
|
1713
|
-
name: "Composite",
|
|
1714
|
-
className: "PrivateEndpointConnectionProperties",
|
|
1715
|
-
},
|
|
1716
|
-
} }),
|
|
1717
|
-
},
|
|
1718
|
-
};
|
|
1719
|
-
const TrackedResource = {
|
|
1720
|
-
type: {
|
|
1721
|
-
name: "Composite",
|
|
1722
|
-
className: "TrackedResource",
|
|
1723
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1724
|
-
serializedName: "tags",
|
|
1725
|
-
type: {
|
|
1726
|
-
name: "Dictionary",
|
|
1727
|
-
value: { type: { name: "String" } },
|
|
1728
|
-
},
|
|
1729
|
-
}, location: {
|
|
1730
|
-
serializedName: "location",
|
|
1731
|
-
required: true,
|
|
1732
|
-
type: {
|
|
1733
|
-
name: "String",
|
|
1734
|
-
},
|
|
1735
|
-
} }),
|
|
1736
|
-
},
|
|
1737
|
-
};
|
|
1738
|
-
const ProxyResource = {
|
|
1739
|
-
type: {
|
|
1740
|
-
name: "Composite",
|
|
1741
|
-
className: "ProxyResource",
|
|
1742
|
-
modelProperties: Object.assign({}, Resource.type.modelProperties),
|
|
1743
|
-
},
|
|
1744
|
-
};
|
|
1745
|
-
const PrivateLinkResource = {
|
|
1746
|
-
type: {
|
|
1747
|
-
name: "Composite",
|
|
1748
|
-
className: "PrivateLinkResource",
|
|
1749
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { properties: {
|
|
1750
|
-
serializedName: "properties",
|
|
1751
|
-
type: {
|
|
1752
|
-
name: "Composite",
|
|
1753
|
-
className: "PrivateLinkResourceProperties",
|
|
1754
|
-
},
|
|
1755
|
-
} }),
|
|
1756
|
-
},
|
|
1757
|
-
};
|
|
1758
|
-
const ElasticSan = {
|
|
1759
|
-
type: {
|
|
1760
|
-
name: "Composite",
|
|
1761
|
-
className: "ElasticSan",
|
|
1762
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
|
|
1763
|
-
serializedName: "properties",
|
|
1764
|
-
type: {
|
|
1765
|
-
name: "Composite",
|
|
1766
|
-
className: "ElasticSanProperties",
|
|
1767
|
-
},
|
|
1768
|
-
} }),
|
|
1769
|
-
},
|
|
1770
|
-
};
|
|
1771
|
-
const VolumeGroup = {
|
|
1772
|
-
type: {
|
|
1773
|
-
name: "Composite",
|
|
1774
|
-
className: "VolumeGroup",
|
|
1775
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { identity: {
|
|
1776
|
-
serializedName: "identity",
|
|
1777
|
-
type: {
|
|
1778
|
-
name: "Composite",
|
|
1779
|
-
className: "Identity",
|
|
1780
|
-
},
|
|
1781
|
-
}, properties: {
|
|
1782
|
-
serializedName: "properties",
|
|
1783
|
-
type: {
|
|
1784
|
-
name: "Composite",
|
|
1785
|
-
className: "VolumeGroupProperties",
|
|
1786
|
-
},
|
|
1787
|
-
} }),
|
|
1788
|
-
},
|
|
1789
|
-
};
|
|
1790
|
-
const Volume = {
|
|
1791
|
-
type: {
|
|
1792
|
-
name: "Composite",
|
|
1793
|
-
className: "Volume",
|
|
1794
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
|
|
1795
|
-
serializedName: "properties",
|
|
1796
|
-
type: {
|
|
1797
|
-
name: "Composite",
|
|
1798
|
-
className: "VolumeProperties",
|
|
1799
|
-
},
|
|
1800
|
-
} }),
|
|
1801
|
-
},
|
|
1802
|
-
};
|
|
1803
|
-
const Snapshot = {
|
|
1804
|
-
type: {
|
|
1805
|
-
name: "Composite",
|
|
1806
|
-
className: "Snapshot",
|
|
1807
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
|
|
1808
|
-
serializedName: "properties",
|
|
1809
|
-
type: {
|
|
1810
|
-
name: "Composite",
|
|
1811
|
-
className: "SnapshotProperties",
|
|
1812
|
-
},
|
|
1813
|
-
} }),
|
|
1814
|
-
},
|
|
1815
|
-
};
|
|
1816
|
-
const ElasticSansUpdateHeaders = {
|
|
1817
|
-
type: {
|
|
1818
|
-
name: "Composite",
|
|
1819
|
-
className: "ElasticSansUpdateHeaders",
|
|
1820
|
-
modelProperties: {
|
|
1821
|
-
location: {
|
|
1822
|
-
serializedName: "location",
|
|
1823
|
-
type: {
|
|
1824
|
-
name: "String",
|
|
1825
|
-
},
|
|
1826
|
-
},
|
|
1827
|
-
},
|
|
1828
|
-
},
|
|
1829
|
-
};
|
|
1830
|
-
const ElasticSansDeleteHeaders = {
|
|
1831
|
-
type: {
|
|
1832
|
-
name: "Composite",
|
|
1833
|
-
className: "ElasticSansDeleteHeaders",
|
|
1834
|
-
modelProperties: {
|
|
1835
|
-
location: {
|
|
1836
|
-
serializedName: "location",
|
|
1837
|
-
type: {
|
|
1838
|
-
name: "String",
|
|
1839
|
-
},
|
|
1840
|
-
},
|
|
1841
|
-
},
|
|
1842
|
-
},
|
|
1843
|
-
};
|
|
1844
|
-
const VolumeGroupsUpdateHeaders = {
|
|
1845
|
-
type: {
|
|
1846
|
-
name: "Composite",
|
|
1847
|
-
className: "VolumeGroupsUpdateHeaders",
|
|
1848
|
-
modelProperties: {
|
|
1849
|
-
location: {
|
|
1850
|
-
serializedName: "location",
|
|
1851
|
-
type: {
|
|
1852
|
-
name: "String",
|
|
1853
|
-
},
|
|
1854
|
-
},
|
|
1855
|
-
},
|
|
1856
|
-
},
|
|
1857
|
-
};
|
|
1858
|
-
const VolumeGroupsDeleteHeaders = {
|
|
1859
|
-
type: {
|
|
1860
|
-
name: "Composite",
|
|
1861
|
-
className: "VolumeGroupsDeleteHeaders",
|
|
1862
|
-
modelProperties: {
|
|
1863
|
-
location: {
|
|
1864
|
-
serializedName: "location",
|
|
1865
|
-
type: {
|
|
1866
|
-
name: "String",
|
|
1867
|
-
},
|
|
1868
|
-
},
|
|
1869
|
-
},
|
|
1870
|
-
},
|
|
1871
|
-
};
|
|
1872
|
-
const VolumesUpdateHeaders = {
|
|
1873
|
-
type: {
|
|
1874
|
-
name: "Composite",
|
|
1875
|
-
className: "VolumesUpdateHeaders",
|
|
1876
|
-
modelProperties: {
|
|
1877
|
-
location: {
|
|
1878
|
-
serializedName: "location",
|
|
1879
|
-
type: {
|
|
1880
|
-
name: "String",
|
|
1881
|
-
},
|
|
1882
|
-
},
|
|
1883
|
-
},
|
|
1884
|
-
},
|
|
1885
|
-
};
|
|
1886
|
-
const VolumesDeleteHeaders = {
|
|
1887
|
-
type: {
|
|
1888
|
-
name: "Composite",
|
|
1889
|
-
className: "VolumesDeleteHeaders",
|
|
1890
|
-
modelProperties: {
|
|
1891
|
-
location: {
|
|
1892
|
-
serializedName: "location",
|
|
1893
|
-
type: {
|
|
1894
|
-
name: "String",
|
|
1895
|
-
},
|
|
1896
|
-
},
|
|
1897
|
-
},
|
|
1898
|
-
},
|
|
1899
|
-
};
|
|
1900
|
-
const PrivateEndpointConnectionsDeleteHeaders = {
|
|
1901
|
-
type: {
|
|
1902
|
-
name: "Composite",
|
|
1903
|
-
className: "PrivateEndpointConnectionsDeleteHeaders",
|
|
1904
|
-
modelProperties: {
|
|
1905
|
-
location: {
|
|
1906
|
-
serializedName: "location",
|
|
1907
|
-
type: {
|
|
1908
|
-
name: "String",
|
|
1909
|
-
},
|
|
1910
|
-
},
|
|
1911
|
-
},
|
|
1912
|
-
},
|
|
1913
|
-
};
|
|
1914
|
-
const VolumeSnapshotsDeleteHeaders = {
|
|
1915
|
-
type: {
|
|
1916
|
-
name: "Composite",
|
|
1917
|
-
className: "VolumeSnapshotsDeleteHeaders",
|
|
1918
|
-
modelProperties: {
|
|
1919
|
-
location: {
|
|
1920
|
-
serializedName: "location",
|
|
1921
|
-
type: {
|
|
1922
|
-
name: "String",
|
|
1923
|
-
},
|
|
1924
|
-
},
|
|
1925
|
-
},
|
|
1926
|
-
},
|
|
1927
|
-
};
|
|
1928
|
-
|
|
1929
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1930
|
-
__proto__: null,
|
|
1931
|
-
AutoScaleProperties: AutoScaleProperties,
|
|
1932
|
-
ElasticSan: ElasticSan,
|
|
1933
|
-
ElasticSanList: ElasticSanList,
|
|
1934
|
-
ElasticSanProperties: ElasticSanProperties,
|
|
1935
|
-
ElasticSanUpdate: ElasticSanUpdate,
|
|
1936
|
-
ElasticSanUpdateProperties: ElasticSanUpdateProperties,
|
|
1937
|
-
ElasticSansDeleteHeaders: ElasticSansDeleteHeaders,
|
|
1938
|
-
ElasticSansUpdateHeaders: ElasticSansUpdateHeaders,
|
|
1939
|
-
EncryptionIdentity: EncryptionIdentity,
|
|
1940
|
-
EncryptionProperties: EncryptionProperties,
|
|
1941
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1942
|
-
ErrorDetail: ErrorDetail,
|
|
1943
|
-
ErrorResponse: ErrorResponse,
|
|
1944
|
-
Identity: Identity,
|
|
1945
|
-
IscsiTargetInfo: IscsiTargetInfo,
|
|
1946
|
-
KeyVaultProperties: KeyVaultProperties,
|
|
1947
|
-
ManagedByInfo: ManagedByInfo,
|
|
1948
|
-
NetworkRuleSet: NetworkRuleSet,
|
|
1949
|
-
Operation: Operation,
|
|
1950
|
-
OperationDisplay: OperationDisplay,
|
|
1951
|
-
OperationListResult: OperationListResult,
|
|
1952
|
-
PrivateEndpoint: PrivateEndpoint,
|
|
1953
|
-
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1954
|
-
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1955
|
-
PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
|
|
1956
|
-
PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders,
|
|
1957
|
-
PrivateLinkResource: PrivateLinkResource,
|
|
1958
|
-
PrivateLinkResourceListResult: PrivateLinkResourceListResult,
|
|
1959
|
-
PrivateLinkResourceProperties: PrivateLinkResourceProperties,
|
|
1960
|
-
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1961
|
-
ProxyResource: ProxyResource,
|
|
1962
|
-
Resource: Resource,
|
|
1963
|
-
SKUCapability: SKUCapability,
|
|
1964
|
-
ScaleUpProperties: ScaleUpProperties,
|
|
1965
|
-
Sku: Sku,
|
|
1966
|
-
SkuInformation: SkuInformation,
|
|
1967
|
-
SkuInformationList: SkuInformationList,
|
|
1968
|
-
SkuLocationInfo: SkuLocationInfo,
|
|
1969
|
-
Snapshot: Snapshot,
|
|
1970
|
-
SnapshotCreationData: SnapshotCreationData,
|
|
1971
|
-
SnapshotList: SnapshotList,
|
|
1972
|
-
SnapshotProperties: SnapshotProperties,
|
|
1973
|
-
SourceCreationData: SourceCreationData,
|
|
1974
|
-
SystemData: SystemData,
|
|
1975
|
-
TrackedResource: TrackedResource,
|
|
1976
|
-
UserAssignedIdentity: UserAssignedIdentity,
|
|
1977
|
-
VirtualNetworkRule: VirtualNetworkRule,
|
|
1978
|
-
Volume: Volume,
|
|
1979
|
-
VolumeGroup: VolumeGroup,
|
|
1980
|
-
VolumeGroupList: VolumeGroupList,
|
|
1981
|
-
VolumeGroupProperties: VolumeGroupProperties,
|
|
1982
|
-
VolumeGroupUpdate: VolumeGroupUpdate,
|
|
1983
|
-
VolumeGroupUpdateProperties: VolumeGroupUpdateProperties,
|
|
1984
|
-
VolumeGroupsDeleteHeaders: VolumeGroupsDeleteHeaders,
|
|
1985
|
-
VolumeGroupsUpdateHeaders: VolumeGroupsUpdateHeaders,
|
|
1986
|
-
VolumeList: VolumeList,
|
|
1987
|
-
VolumeProperties: VolumeProperties,
|
|
1988
|
-
VolumeSnapshotsDeleteHeaders: VolumeSnapshotsDeleteHeaders,
|
|
1989
|
-
VolumeUpdate: VolumeUpdate,
|
|
1990
|
-
VolumeUpdateProperties: VolumeUpdateProperties,
|
|
1991
|
-
VolumesDeleteHeaders: VolumesDeleteHeaders,
|
|
1992
|
-
VolumesUpdateHeaders: VolumesUpdateHeaders
|
|
1993
|
-
});
|
|
1994
|
-
|
|
1995
|
-
/*
|
|
1996
|
-
* Copyright (c) Microsoft Corporation.
|
|
1997
|
-
* Licensed under the MIT License.
|
|
1998
|
-
*
|
|
1999
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2000
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2001
|
-
*/
|
|
2002
|
-
const accept = {
|
|
2003
|
-
parameterPath: "accept",
|
|
2004
|
-
mapper: {
|
|
2005
|
-
defaultValue: "application/json",
|
|
2006
|
-
isConstant: true,
|
|
2007
|
-
serializedName: "Accept",
|
|
2008
|
-
type: {
|
|
2009
|
-
name: "String",
|
|
2010
|
-
},
|
|
2011
|
-
},
|
|
2012
|
-
};
|
|
2013
|
-
const $host = {
|
|
2014
|
-
parameterPath: "$host",
|
|
2015
|
-
mapper: {
|
|
2016
|
-
serializedName: "$host",
|
|
2017
|
-
required: true,
|
|
2018
|
-
type: {
|
|
2019
|
-
name: "String",
|
|
2020
|
-
},
|
|
2021
|
-
},
|
|
2022
|
-
skipEncoding: true,
|
|
2023
|
-
};
|
|
2024
|
-
const apiVersion = {
|
|
2025
|
-
parameterPath: "apiVersion",
|
|
2026
|
-
mapper: {
|
|
2027
|
-
defaultValue: "2024-06-01-preview",
|
|
2028
|
-
isConstant: true,
|
|
2029
|
-
serializedName: "api-version",
|
|
2030
|
-
type: {
|
|
2031
|
-
name: "String",
|
|
2032
|
-
},
|
|
2033
|
-
},
|
|
2034
|
-
};
|
|
2035
|
-
const subscriptionId = {
|
|
2036
|
-
parameterPath: "subscriptionId",
|
|
2037
|
-
mapper: {
|
|
2038
|
-
constraints: {
|
|
2039
|
-
MinLength: 1,
|
|
2040
|
-
},
|
|
2041
|
-
serializedName: "subscriptionId",
|
|
2042
|
-
required: true,
|
|
2043
|
-
type: {
|
|
2044
|
-
name: "String",
|
|
2045
|
-
},
|
|
2046
|
-
},
|
|
2047
|
-
};
|
|
2048
|
-
const filter = {
|
|
2049
|
-
parameterPath: ["options", "filter"],
|
|
2050
|
-
mapper: {
|
|
2051
|
-
serializedName: "$filter",
|
|
2052
|
-
type: {
|
|
2053
|
-
name: "String",
|
|
2054
|
-
},
|
|
2055
|
-
},
|
|
2056
|
-
};
|
|
2057
|
-
const resourceGroupName = {
|
|
2058
|
-
parameterPath: "resourceGroupName",
|
|
2059
|
-
mapper: {
|
|
2060
|
-
constraints: {
|
|
2061
|
-
MaxLength: 90,
|
|
2062
|
-
MinLength: 1,
|
|
2063
|
-
},
|
|
2064
|
-
serializedName: "resourceGroupName",
|
|
2065
|
-
required: true,
|
|
2066
|
-
type: {
|
|
2067
|
-
name: "String",
|
|
2068
|
-
},
|
|
2069
|
-
},
|
|
2070
|
-
};
|
|
2071
|
-
const contentType = {
|
|
2072
|
-
parameterPath: ["options", "contentType"],
|
|
2073
|
-
mapper: {
|
|
2074
|
-
defaultValue: "application/json",
|
|
2075
|
-
isConstant: true,
|
|
2076
|
-
serializedName: "Content-Type",
|
|
2077
|
-
type: {
|
|
2078
|
-
name: "String",
|
|
2079
|
-
},
|
|
2080
|
-
},
|
|
2081
|
-
};
|
|
2082
|
-
const parameters = {
|
|
2083
|
-
parameterPath: "parameters",
|
|
2084
|
-
mapper: ElasticSan,
|
|
2085
|
-
};
|
|
2086
|
-
const elasticSanName = {
|
|
2087
|
-
parameterPath: "elasticSanName",
|
|
2088
|
-
mapper: {
|
|
2089
|
-
constraints: {
|
|
2090
|
-
Pattern: new RegExp("^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$"),
|
|
2091
|
-
MaxLength: 24,
|
|
2092
|
-
MinLength: 3,
|
|
2093
|
-
},
|
|
2094
|
-
serializedName: "elasticSanName",
|
|
2095
|
-
required: true,
|
|
2096
|
-
type: {
|
|
2097
|
-
name: "String",
|
|
2098
|
-
},
|
|
2099
|
-
},
|
|
2100
|
-
};
|
|
2101
|
-
const parameters1 = {
|
|
2102
|
-
parameterPath: "parameters",
|
|
2103
|
-
mapper: ElasticSanUpdate,
|
|
2104
|
-
};
|
|
2105
|
-
const nextLink = {
|
|
2106
|
-
parameterPath: "nextLink",
|
|
2107
|
-
mapper: {
|
|
2108
|
-
serializedName: "nextLink",
|
|
2109
|
-
required: true,
|
|
2110
|
-
type: {
|
|
2111
|
-
name: "String",
|
|
2112
|
-
},
|
|
2113
|
-
},
|
|
2114
|
-
skipEncoding: true,
|
|
2115
|
-
};
|
|
2116
|
-
const parameters2 = {
|
|
2117
|
-
parameterPath: "parameters",
|
|
2118
|
-
mapper: VolumeGroup,
|
|
2119
|
-
};
|
|
2120
|
-
const volumeGroupName = {
|
|
2121
|
-
parameterPath: "volumeGroupName",
|
|
2122
|
-
mapper: {
|
|
2123
|
-
constraints: {
|
|
2124
|
-
Pattern: new RegExp("^[A-Za-z0-9]+((-|_)[a-z0-9A-Z]+)*$"),
|
|
2125
|
-
MaxLength: 63,
|
|
2126
|
-
MinLength: 3,
|
|
2127
|
-
},
|
|
2128
|
-
serializedName: "volumeGroupName",
|
|
2129
|
-
required: true,
|
|
2130
|
-
type: {
|
|
2131
|
-
name: "String",
|
|
2132
|
-
},
|
|
2133
|
-
},
|
|
2134
|
-
};
|
|
2135
|
-
const parameters3 = {
|
|
2136
|
-
parameterPath: "parameters",
|
|
2137
|
-
mapper: VolumeGroupUpdate,
|
|
2138
|
-
};
|
|
2139
|
-
const parameters4 = {
|
|
2140
|
-
parameterPath: "parameters",
|
|
2141
|
-
mapper: Volume,
|
|
2142
|
-
};
|
|
2143
|
-
const volumeName = {
|
|
2144
|
-
parameterPath: "volumeName",
|
|
2145
|
-
mapper: {
|
|
2146
|
-
constraints: {
|
|
2147
|
-
Pattern: new RegExp("^[a-z0-9]+(-[a-z0-9A-Z]+)*$"),
|
|
2148
|
-
MaxLength: 63,
|
|
2149
|
-
MinLength: 3,
|
|
2150
|
-
},
|
|
2151
|
-
serializedName: "volumeName",
|
|
2152
|
-
required: true,
|
|
2153
|
-
type: {
|
|
2154
|
-
name: "String",
|
|
2155
|
-
},
|
|
2156
|
-
},
|
|
2157
|
-
};
|
|
2158
|
-
const parameters5 = {
|
|
2159
|
-
parameterPath: "parameters",
|
|
2160
|
-
mapper: VolumeUpdate,
|
|
2161
|
-
};
|
|
2162
|
-
const xMsDeleteSnapshots = {
|
|
2163
|
-
parameterPath: ["options", "xMsDeleteSnapshots"],
|
|
2164
|
-
mapper: {
|
|
2165
|
-
serializedName: "x-ms-delete-snapshots",
|
|
2166
|
-
type: {
|
|
2167
|
-
name: "String",
|
|
2168
|
-
},
|
|
2169
|
-
},
|
|
2170
|
-
};
|
|
2171
|
-
const xMsForceDelete = {
|
|
2172
|
-
parameterPath: ["options", "xMsForceDelete"],
|
|
2173
|
-
mapper: {
|
|
2174
|
-
serializedName: "x-ms-force-delete",
|
|
2175
|
-
type: {
|
|
2176
|
-
name: "String",
|
|
2177
|
-
},
|
|
2178
|
-
},
|
|
2179
|
-
};
|
|
2180
|
-
const parameters6 = {
|
|
2181
|
-
parameterPath: "parameters",
|
|
2182
|
-
mapper: PrivateEndpointConnection,
|
|
2183
|
-
};
|
|
2184
|
-
const privateEndpointConnectionName = {
|
|
2185
|
-
parameterPath: "privateEndpointConnectionName",
|
|
2186
|
-
mapper: {
|
|
2187
|
-
serializedName: "privateEndpointConnectionName",
|
|
2188
|
-
required: true,
|
|
2189
|
-
type: {
|
|
2190
|
-
name: "String",
|
|
2191
|
-
},
|
|
2192
|
-
},
|
|
2193
|
-
};
|
|
2194
|
-
const parameters7 = {
|
|
2195
|
-
parameterPath: "parameters",
|
|
2196
|
-
mapper: Snapshot,
|
|
2197
|
-
};
|
|
2198
|
-
const snapshotName = {
|
|
2199
|
-
parameterPath: "snapshotName",
|
|
2200
|
-
mapper: {
|
|
2201
|
-
constraints: {
|
|
2202
|
-
Pattern: new RegExp("^[a-z0-9]+(?:[._-][a-z0-9]+)*$"),
|
|
2203
|
-
MaxLength: 80,
|
|
2204
|
-
MinLength: 1,
|
|
2205
|
-
},
|
|
2206
|
-
serializedName: "snapshotName",
|
|
2207
|
-
required: true,
|
|
2208
|
-
type: {
|
|
2209
|
-
name: "String",
|
|
2210
|
-
},
|
|
2211
|
-
},
|
|
2212
|
-
};
|
|
2213
|
-
|
|
2214
|
-
/*
|
|
2215
|
-
* Copyright (c) Microsoft Corporation.
|
|
2216
|
-
* Licensed under the MIT License.
|
|
2217
|
-
*
|
|
2218
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2219
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2220
|
-
*/
|
|
2221
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2222
|
-
/** Class containing Operations operations. */
|
|
2223
|
-
class OperationsImpl {
|
|
2224
|
-
/**
|
|
2225
|
-
* Initialize a new instance of the class Operations class.
|
|
2226
|
-
* @param client Reference to the service client
|
|
2227
|
-
*/
|
|
2228
|
-
constructor(client) {
|
|
2229
|
-
this.client = client;
|
|
2230
|
-
}
|
|
2231
|
-
/**
|
|
2232
|
-
* Gets a list of ElasticSan operations.
|
|
2233
|
-
* @param options The options parameters.
|
|
2234
|
-
*/
|
|
2235
|
-
list(options) {
|
|
2236
|
-
const iter = this.listPagingAll(options);
|
|
2237
|
-
return {
|
|
2238
|
-
next() {
|
|
2239
|
-
return iter.next();
|
|
2240
|
-
},
|
|
2241
|
-
[Symbol.asyncIterator]() {
|
|
2242
|
-
return this;
|
|
2243
|
-
},
|
|
2244
|
-
byPage: (settings) => {
|
|
2245
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2246
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2247
|
-
}
|
|
2248
|
-
return this.listPagingPage(options, settings);
|
|
2249
|
-
},
|
|
2250
|
-
};
|
|
2251
|
-
}
|
|
2252
|
-
listPagingPage(options, _settings) {
|
|
2253
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2254
|
-
let result;
|
|
2255
|
-
result = yield tslib.__await(this._list(options));
|
|
2256
|
-
yield yield tslib.__await(result.value || []);
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
listPagingAll(options) {
|
|
2260
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2261
|
-
var _a, e_1, _b, _c;
|
|
2262
|
-
try {
|
|
2263
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2264
|
-
_c = _f.value;
|
|
2265
|
-
_d = false;
|
|
2266
|
-
const page = _c;
|
|
2267
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2271
|
-
finally {
|
|
2272
|
-
try {
|
|
2273
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2274
|
-
}
|
|
2275
|
-
finally { if (e_1) throw e_1.error; }
|
|
2276
|
-
}
|
|
2277
|
-
});
|
|
2278
|
-
}
|
|
2279
|
-
/**
|
|
2280
|
-
* Gets a list of ElasticSan operations.
|
|
2281
|
-
* @param options The options parameters.
|
|
2282
|
-
*/
|
|
2283
|
-
_list(options) {
|
|
2284
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$2);
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
// Operation Specifications
|
|
2288
|
-
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2289
|
-
const listOperationSpec$2 = {
|
|
2290
|
-
path: "/providers/Microsoft.ElasticSan/operations",
|
|
2291
|
-
httpMethod: "GET",
|
|
2292
|
-
responses: {
|
|
2293
|
-
200: {
|
|
2294
|
-
bodyMapper: OperationListResult,
|
|
2295
|
-
},
|
|
2296
|
-
default: {
|
|
2297
|
-
bodyMapper: ErrorResponse,
|
|
2298
|
-
},
|
|
2299
|
-
},
|
|
2300
|
-
queryParameters: [apiVersion],
|
|
2301
|
-
urlParameters: [$host],
|
|
2302
|
-
headerParameters: [accept],
|
|
2303
|
-
serializer: serializer$7,
|
|
2304
|
-
};
|
|
2305
|
-
|
|
2306
|
-
/*
|
|
2307
|
-
* Copyright (c) Microsoft Corporation.
|
|
2308
|
-
* Licensed under the MIT License.
|
|
2309
|
-
*
|
|
2310
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2311
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2312
|
-
*/
|
|
2313
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2314
|
-
/** Class containing Skus operations. */
|
|
2315
|
-
class SkusImpl {
|
|
2316
|
-
/**
|
|
2317
|
-
* Initialize a new instance of the class Skus class.
|
|
2318
|
-
* @param client Reference to the service client
|
|
2319
|
-
*/
|
|
2320
|
-
constructor(client) {
|
|
2321
|
-
this.client = client;
|
|
2322
|
-
}
|
|
2323
|
-
/**
|
|
2324
|
-
* List all the available Skus in the region and information related to them
|
|
2325
|
-
* @param options The options parameters.
|
|
2326
|
-
*/
|
|
2327
|
-
list(options) {
|
|
2328
|
-
const iter = this.listPagingAll(options);
|
|
2329
|
-
return {
|
|
2330
|
-
next() {
|
|
2331
|
-
return iter.next();
|
|
2332
|
-
},
|
|
2333
|
-
[Symbol.asyncIterator]() {
|
|
2334
|
-
return this;
|
|
2335
|
-
},
|
|
2336
|
-
byPage: (settings) => {
|
|
2337
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2338
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2339
|
-
}
|
|
2340
|
-
return this.listPagingPage(options, settings);
|
|
2341
|
-
},
|
|
2342
|
-
};
|
|
2343
|
-
}
|
|
2344
|
-
listPagingPage(options, _settings) {
|
|
2345
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2346
|
-
let result;
|
|
2347
|
-
result = yield tslib.__await(this._list(options));
|
|
2348
|
-
yield yield tslib.__await(result.value || []);
|
|
2349
|
-
});
|
|
2350
|
-
}
|
|
2351
|
-
listPagingAll(options) {
|
|
2352
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2353
|
-
var _a, e_1, _b, _c;
|
|
2354
|
-
try {
|
|
2355
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2356
|
-
_c = _f.value;
|
|
2357
|
-
_d = false;
|
|
2358
|
-
const page = _c;
|
|
2359
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2363
|
-
finally {
|
|
2364
|
-
try {
|
|
2365
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2366
|
-
}
|
|
2367
|
-
finally { if (e_1) throw e_1.error; }
|
|
2368
|
-
}
|
|
2369
|
-
});
|
|
2370
|
-
}
|
|
2371
|
-
/**
|
|
2372
|
-
* List all the available Skus in the region and information related to them
|
|
2373
|
-
* @param options The options parameters.
|
|
2374
|
-
*/
|
|
2375
|
-
_list(options) {
|
|
2376
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
2377
|
-
}
|
|
2378
|
-
}
|
|
2379
|
-
// Operation Specifications
|
|
2380
|
-
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2381
|
-
const listOperationSpec$1 = {
|
|
2382
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/skus",
|
|
2383
|
-
httpMethod: "GET",
|
|
2384
|
-
responses: {
|
|
2385
|
-
200: {
|
|
2386
|
-
bodyMapper: SkuInformationList,
|
|
2387
|
-
},
|
|
2388
|
-
default: {
|
|
2389
|
-
bodyMapper: ErrorResponse,
|
|
2390
|
-
},
|
|
2391
|
-
},
|
|
2392
|
-
queryParameters: [apiVersion, filter],
|
|
2393
|
-
urlParameters: [$host, subscriptionId],
|
|
2394
|
-
headerParameters: [accept],
|
|
2395
|
-
serializer: serializer$6,
|
|
2396
|
-
};
|
|
2397
|
-
|
|
2398
|
-
/*
|
|
2399
|
-
* Copyright (c) Microsoft Corporation.
|
|
2400
|
-
* Licensed under the MIT License.
|
|
2401
|
-
*
|
|
2402
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2403
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2404
|
-
*/
|
|
2405
|
-
function createLroSpec(inputs) {
|
|
2406
|
-
const { args, spec, sendOperationFn } = inputs;
|
|
2407
|
-
return {
|
|
2408
|
-
requestMethod: spec.httpMethod,
|
|
2409
|
-
requestPath: spec.path,
|
|
2410
|
-
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2411
|
-
sendPollRequest: (path, options) => {
|
|
2412
|
-
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2413
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2414
|
-
},
|
|
2415
|
-
};
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
/*
|
|
2419
|
-
* Copyright (c) Microsoft Corporation.
|
|
2420
|
-
* Licensed under the MIT License.
|
|
2421
|
-
*
|
|
2422
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2423
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2424
|
-
*/
|
|
2425
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2426
|
-
/** Class containing ElasticSans operations. */
|
|
2427
|
-
class ElasticSansImpl {
|
|
2428
|
-
/**
|
|
2429
|
-
* Initialize a new instance of the class ElasticSans class.
|
|
2430
|
-
* @param client Reference to the service client
|
|
2431
|
-
*/
|
|
2432
|
-
constructor(client) {
|
|
2433
|
-
this.client = client;
|
|
2434
|
-
}
|
|
2435
|
-
/**
|
|
2436
|
-
* Gets a list of ElasticSans in a subscription
|
|
2437
|
-
* @param options The options parameters.
|
|
2438
|
-
*/
|
|
2439
|
-
listBySubscription(options) {
|
|
2440
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
2441
|
-
return {
|
|
2442
|
-
next() {
|
|
2443
|
-
return iter.next();
|
|
2444
|
-
},
|
|
2445
|
-
[Symbol.asyncIterator]() {
|
|
2446
|
-
return this;
|
|
2447
|
-
},
|
|
2448
|
-
byPage: (settings) => {
|
|
2449
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2450
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2451
|
-
}
|
|
2452
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
2453
|
-
},
|
|
2454
|
-
};
|
|
2455
|
-
}
|
|
2456
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
2457
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2458
|
-
let result;
|
|
2459
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2460
|
-
if (!continuationToken) {
|
|
2461
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
2462
|
-
let page = result.value || [];
|
|
2463
|
-
continuationToken = result.nextLink;
|
|
2464
|
-
setContinuationToken(page, continuationToken);
|
|
2465
|
-
yield yield tslib.__await(page);
|
|
2466
|
-
}
|
|
2467
|
-
while (continuationToken) {
|
|
2468
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
2469
|
-
continuationToken = result.nextLink;
|
|
2470
|
-
let page = result.value || [];
|
|
2471
|
-
setContinuationToken(page, continuationToken);
|
|
2472
|
-
yield yield tslib.__await(page);
|
|
2473
|
-
}
|
|
2474
|
-
});
|
|
2475
|
-
}
|
|
2476
|
-
listBySubscriptionPagingAll(options) {
|
|
2477
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
2478
|
-
var _a, e_1, _b, _c;
|
|
2479
|
-
try {
|
|
2480
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2481
|
-
_c = _f.value;
|
|
2482
|
-
_d = false;
|
|
2483
|
-
const page = _c;
|
|
2484
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2485
|
-
}
|
|
2486
|
-
}
|
|
2487
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2488
|
-
finally {
|
|
2489
|
-
try {
|
|
2490
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2491
|
-
}
|
|
2492
|
-
finally { if (e_1) throw e_1.error; }
|
|
2493
|
-
}
|
|
2494
|
-
});
|
|
2495
|
-
}
|
|
2496
|
-
/**
|
|
2497
|
-
* Gets a list of ElasticSan in a resource group.
|
|
2498
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2499
|
-
* @param options The options parameters.
|
|
2500
|
-
*/
|
|
2501
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
2502
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2503
|
-
return {
|
|
2504
|
-
next() {
|
|
2505
|
-
return iter.next();
|
|
2506
|
-
},
|
|
2507
|
-
[Symbol.asyncIterator]() {
|
|
2508
|
-
return this;
|
|
2509
|
-
},
|
|
2510
|
-
byPage: (settings) => {
|
|
2511
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2512
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2513
|
-
}
|
|
2514
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2515
|
-
},
|
|
2516
|
-
};
|
|
2517
|
-
}
|
|
2518
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2519
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2520
|
-
let result;
|
|
2521
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2522
|
-
if (!continuationToken) {
|
|
2523
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2524
|
-
let page = result.value || [];
|
|
2525
|
-
continuationToken = result.nextLink;
|
|
2526
|
-
setContinuationToken(page, continuationToken);
|
|
2527
|
-
yield yield tslib.__await(page);
|
|
2528
|
-
}
|
|
2529
|
-
while (continuationToken) {
|
|
2530
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2531
|
-
continuationToken = result.nextLink;
|
|
2532
|
-
let page = result.value || [];
|
|
2533
|
-
setContinuationToken(page, continuationToken);
|
|
2534
|
-
yield yield tslib.__await(page);
|
|
2535
|
-
}
|
|
2536
|
-
});
|
|
2537
|
-
}
|
|
2538
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2539
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2540
|
-
var _a, e_2, _b, _c;
|
|
2541
|
-
try {
|
|
2542
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2543
|
-
_c = _f.value;
|
|
2544
|
-
_d = false;
|
|
2545
|
-
const page = _c;
|
|
2546
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2547
|
-
}
|
|
2548
|
-
}
|
|
2549
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2550
|
-
finally {
|
|
2551
|
-
try {
|
|
2552
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2553
|
-
}
|
|
2554
|
-
finally { if (e_2) throw e_2.error; }
|
|
2555
|
-
}
|
|
2556
|
-
});
|
|
2557
|
-
}
|
|
2558
|
-
/**
|
|
2559
|
-
* Gets a list of ElasticSans in a subscription
|
|
2560
|
-
* @param options The options parameters.
|
|
2561
|
-
*/
|
|
2562
|
-
_listBySubscription(options) {
|
|
2563
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
2564
|
-
}
|
|
2565
|
-
/**
|
|
2566
|
-
* Gets a list of ElasticSan in a resource group.
|
|
2567
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2568
|
-
* @param options The options parameters.
|
|
2569
|
-
*/
|
|
2570
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
2571
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2572
|
-
}
|
|
2573
|
-
/**
|
|
2574
|
-
* Create ElasticSan.
|
|
2575
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2576
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
2577
|
-
* @param parameters Elastic San object.
|
|
2578
|
-
* @param options The options parameters.
|
|
2579
|
-
*/
|
|
2580
|
-
beginCreate(resourceGroupName, elasticSanName, parameters, options) {
|
|
2581
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2582
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2583
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2584
|
-
});
|
|
2585
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2586
|
-
var _a;
|
|
2587
|
-
let currentRawResponse = undefined;
|
|
2588
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2589
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2590
|
-
currentRawResponse = rawResponse;
|
|
2591
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2592
|
-
};
|
|
2593
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2594
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2595
|
-
return {
|
|
2596
|
-
flatResponse,
|
|
2597
|
-
rawResponse: {
|
|
2598
|
-
statusCode: currentRawResponse.status,
|
|
2599
|
-
body: currentRawResponse.parsedBody,
|
|
2600
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2601
|
-
},
|
|
2602
|
-
};
|
|
2603
|
-
});
|
|
2604
|
-
const lro = createLroSpec({
|
|
2605
|
-
sendOperationFn,
|
|
2606
|
-
args: { resourceGroupName, elasticSanName, parameters, options },
|
|
2607
|
-
spec: createOperationSpec$4,
|
|
2608
|
-
});
|
|
2609
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2610
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2611
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2612
|
-
resourceLocationConfig: "location",
|
|
2613
|
-
});
|
|
2614
|
-
yield poller.poll();
|
|
2615
|
-
return poller;
|
|
2616
|
-
});
|
|
2617
|
-
}
|
|
2618
|
-
/**
|
|
2619
|
-
* Create ElasticSan.
|
|
2620
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2621
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
2622
|
-
* @param parameters Elastic San object.
|
|
2623
|
-
* @param options The options parameters.
|
|
2624
|
-
*/
|
|
2625
|
-
beginCreateAndWait(resourceGroupName, elasticSanName, parameters, options) {
|
|
2626
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2627
|
-
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, parameters, options);
|
|
2628
|
-
return poller.pollUntilDone();
|
|
2629
|
-
});
|
|
2630
|
-
}
|
|
2631
|
-
/**
|
|
2632
|
-
* Update a Elastic San.
|
|
2633
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2634
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
2635
|
-
* @param parameters Elastic San object.
|
|
2636
|
-
* @param options The options parameters.
|
|
2637
|
-
*/
|
|
2638
|
-
beginUpdate(resourceGroupName, elasticSanName, parameters, options) {
|
|
2639
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2640
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2641
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2642
|
-
});
|
|
2643
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2644
|
-
var _a;
|
|
2645
|
-
let currentRawResponse = undefined;
|
|
2646
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2647
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2648
|
-
currentRawResponse = rawResponse;
|
|
2649
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2650
|
-
};
|
|
2651
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2652
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2653
|
-
return {
|
|
2654
|
-
flatResponse,
|
|
2655
|
-
rawResponse: {
|
|
2656
|
-
statusCode: currentRawResponse.status,
|
|
2657
|
-
body: currentRawResponse.parsedBody,
|
|
2658
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2659
|
-
},
|
|
2660
|
-
};
|
|
2661
|
-
});
|
|
2662
|
-
const lro = createLroSpec({
|
|
2663
|
-
sendOperationFn,
|
|
2664
|
-
args: { resourceGroupName, elasticSanName, parameters, options },
|
|
2665
|
-
spec: updateOperationSpec$2,
|
|
2666
|
-
});
|
|
2667
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2668
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2669
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2670
|
-
resourceLocationConfig: "location",
|
|
2671
|
-
});
|
|
2672
|
-
yield poller.poll();
|
|
2673
|
-
return poller;
|
|
2674
|
-
});
|
|
2675
|
-
}
|
|
2676
|
-
/**
|
|
2677
|
-
* Update a Elastic San.
|
|
2678
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2679
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
2680
|
-
* @param parameters Elastic San object.
|
|
2681
|
-
* @param options The options parameters.
|
|
2682
|
-
*/
|
|
2683
|
-
beginUpdateAndWait(resourceGroupName, elasticSanName, parameters, options) {
|
|
2684
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2685
|
-
const poller = yield this.beginUpdate(resourceGroupName, elasticSanName, parameters, options);
|
|
2686
|
-
return poller.pollUntilDone();
|
|
2687
|
-
});
|
|
2688
|
-
}
|
|
2689
|
-
/**
|
|
2690
|
-
* Delete a Elastic San.
|
|
2691
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2692
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
2693
|
-
* @param options The options parameters.
|
|
2694
|
-
*/
|
|
2695
|
-
beginDelete(resourceGroupName, elasticSanName, options) {
|
|
2696
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2697
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2698
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2699
|
-
});
|
|
2700
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2701
|
-
var _a;
|
|
2702
|
-
let currentRawResponse = undefined;
|
|
2703
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2704
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2705
|
-
currentRawResponse = rawResponse;
|
|
2706
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2707
|
-
};
|
|
2708
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2709
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2710
|
-
return {
|
|
2711
|
-
flatResponse,
|
|
2712
|
-
rawResponse: {
|
|
2713
|
-
statusCode: currentRawResponse.status,
|
|
2714
|
-
body: currentRawResponse.parsedBody,
|
|
2715
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
2716
|
-
},
|
|
2717
|
-
};
|
|
2718
|
-
});
|
|
2719
|
-
const lro = createLroSpec({
|
|
2720
|
-
sendOperationFn,
|
|
2721
|
-
args: { resourceGroupName, elasticSanName, options },
|
|
2722
|
-
spec: deleteOperationSpec$4,
|
|
2723
|
-
});
|
|
2724
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2725
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2726
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2727
|
-
resourceLocationConfig: "location",
|
|
2728
|
-
});
|
|
2729
|
-
yield poller.poll();
|
|
2730
|
-
return poller;
|
|
2731
|
-
});
|
|
2732
|
-
}
|
|
2733
|
-
/**
|
|
2734
|
-
* Delete a Elastic San.
|
|
2735
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2736
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
2737
|
-
* @param options The options parameters.
|
|
2738
|
-
*/
|
|
2739
|
-
beginDeleteAndWait(resourceGroupName, elasticSanName, options) {
|
|
2740
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2741
|
-
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, options);
|
|
2742
|
-
return poller.pollUntilDone();
|
|
2743
|
-
});
|
|
2744
|
-
}
|
|
2745
|
-
/**
|
|
2746
|
-
* Get a ElasticSan.
|
|
2747
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2748
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
2749
|
-
* @param options The options parameters.
|
|
2750
|
-
*/
|
|
2751
|
-
get(resourceGroupName, elasticSanName, options) {
|
|
2752
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, getOperationSpec$4);
|
|
2753
|
-
}
|
|
2754
|
-
/**
|
|
2755
|
-
* ListBySubscriptionNext
|
|
2756
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
2757
|
-
* @param options The options parameters.
|
|
2758
|
-
*/
|
|
2759
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
2760
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
2761
|
-
}
|
|
2762
|
-
/**
|
|
2763
|
-
* ListByResourceGroupNext
|
|
2764
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2765
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2766
|
-
* @param options The options parameters.
|
|
2767
|
-
*/
|
|
2768
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2769
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
// Operation Specifications
|
|
2773
|
-
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2774
|
-
const listBySubscriptionOperationSpec = {
|
|
2775
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ElasticSan/elasticSans",
|
|
2776
|
-
httpMethod: "GET",
|
|
2777
|
-
responses: {
|
|
2778
|
-
200: {
|
|
2779
|
-
bodyMapper: ElasticSanList,
|
|
2780
|
-
},
|
|
2781
|
-
default: {
|
|
2782
|
-
bodyMapper: ErrorResponse,
|
|
2783
|
-
},
|
|
2784
|
-
},
|
|
2785
|
-
queryParameters: [apiVersion],
|
|
2786
|
-
urlParameters: [$host, subscriptionId],
|
|
2787
|
-
headerParameters: [accept],
|
|
2788
|
-
serializer: serializer$5,
|
|
2789
|
-
};
|
|
2790
|
-
const listByResourceGroupOperationSpec = {
|
|
2791
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans",
|
|
2792
|
-
httpMethod: "GET",
|
|
2793
|
-
responses: {
|
|
2794
|
-
200: {
|
|
2795
|
-
bodyMapper: ElasticSanList,
|
|
2796
|
-
},
|
|
2797
|
-
default: {
|
|
2798
|
-
bodyMapper: ErrorResponse,
|
|
2799
|
-
},
|
|
2800
|
-
},
|
|
2801
|
-
queryParameters: [apiVersion],
|
|
2802
|
-
urlParameters: [
|
|
2803
|
-
$host,
|
|
2804
|
-
subscriptionId,
|
|
2805
|
-
resourceGroupName,
|
|
2806
|
-
],
|
|
2807
|
-
headerParameters: [accept],
|
|
2808
|
-
serializer: serializer$5,
|
|
2809
|
-
};
|
|
2810
|
-
const createOperationSpec$4 = {
|
|
2811
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
2812
|
-
httpMethod: "PUT",
|
|
2813
|
-
responses: {
|
|
2814
|
-
200: {
|
|
2815
|
-
bodyMapper: ElasticSan,
|
|
2816
|
-
},
|
|
2817
|
-
201: {
|
|
2818
|
-
bodyMapper: ElasticSan,
|
|
2819
|
-
},
|
|
2820
|
-
202: {
|
|
2821
|
-
bodyMapper: ElasticSan,
|
|
2822
|
-
},
|
|
2823
|
-
204: {
|
|
2824
|
-
bodyMapper: ElasticSan,
|
|
2825
|
-
},
|
|
2826
|
-
default: {
|
|
2827
|
-
bodyMapper: ErrorResponse,
|
|
2828
|
-
},
|
|
2829
|
-
},
|
|
2830
|
-
requestBody: parameters,
|
|
2831
|
-
queryParameters: [apiVersion],
|
|
2832
|
-
urlParameters: [
|
|
2833
|
-
$host,
|
|
2834
|
-
subscriptionId,
|
|
2835
|
-
resourceGroupName,
|
|
2836
|
-
elasticSanName,
|
|
2837
|
-
],
|
|
2838
|
-
headerParameters: [accept, contentType],
|
|
2839
|
-
mediaType: "json",
|
|
2840
|
-
serializer: serializer$5,
|
|
2841
|
-
};
|
|
2842
|
-
const updateOperationSpec$2 = {
|
|
2843
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
2844
|
-
httpMethod: "PATCH",
|
|
2845
|
-
responses: {
|
|
2846
|
-
200: {
|
|
2847
|
-
bodyMapper: ElasticSan,
|
|
2848
|
-
},
|
|
2849
|
-
201: {
|
|
2850
|
-
bodyMapper: ElasticSan,
|
|
2851
|
-
},
|
|
2852
|
-
202: {
|
|
2853
|
-
bodyMapper: ElasticSan,
|
|
2854
|
-
},
|
|
2855
|
-
204: {
|
|
2856
|
-
bodyMapper: ElasticSan,
|
|
2857
|
-
},
|
|
2858
|
-
default: {
|
|
2859
|
-
bodyMapper: ErrorResponse,
|
|
2860
|
-
},
|
|
2861
|
-
},
|
|
2862
|
-
requestBody: parameters1,
|
|
2863
|
-
queryParameters: [apiVersion],
|
|
2864
|
-
urlParameters: [
|
|
2865
|
-
$host,
|
|
2866
|
-
subscriptionId,
|
|
2867
|
-
resourceGroupName,
|
|
2868
|
-
elasticSanName,
|
|
2869
|
-
],
|
|
2870
|
-
headerParameters: [accept, contentType],
|
|
2871
|
-
mediaType: "json",
|
|
2872
|
-
serializer: serializer$5,
|
|
2873
|
-
};
|
|
2874
|
-
const deleteOperationSpec$4 = {
|
|
2875
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
2876
|
-
httpMethod: "DELETE",
|
|
2877
|
-
responses: {
|
|
2878
|
-
200: {},
|
|
2879
|
-
201: {},
|
|
2880
|
-
202: {},
|
|
2881
|
-
204: {},
|
|
2882
|
-
default: {
|
|
2883
|
-
bodyMapper: ErrorResponse,
|
|
2884
|
-
},
|
|
2885
|
-
},
|
|
2886
|
-
queryParameters: [apiVersion],
|
|
2887
|
-
urlParameters: [
|
|
2888
|
-
$host,
|
|
2889
|
-
subscriptionId,
|
|
2890
|
-
resourceGroupName,
|
|
2891
|
-
elasticSanName,
|
|
2892
|
-
],
|
|
2893
|
-
headerParameters: [accept],
|
|
2894
|
-
serializer: serializer$5,
|
|
2895
|
-
};
|
|
2896
|
-
const getOperationSpec$4 = {
|
|
2897
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}",
|
|
2898
|
-
httpMethod: "GET",
|
|
2899
|
-
responses: {
|
|
2900
|
-
200: {
|
|
2901
|
-
bodyMapper: ElasticSan,
|
|
2902
|
-
},
|
|
2903
|
-
default: {
|
|
2904
|
-
bodyMapper: ErrorResponse,
|
|
2905
|
-
},
|
|
2906
|
-
},
|
|
2907
|
-
queryParameters: [apiVersion],
|
|
2908
|
-
urlParameters: [
|
|
2909
|
-
$host,
|
|
2910
|
-
subscriptionId,
|
|
2911
|
-
resourceGroupName,
|
|
2912
|
-
elasticSanName,
|
|
2913
|
-
],
|
|
2914
|
-
headerParameters: [accept],
|
|
2915
|
-
serializer: serializer$5,
|
|
2916
|
-
};
|
|
2917
|
-
const listBySubscriptionNextOperationSpec = {
|
|
2918
|
-
path: "{nextLink}",
|
|
2919
|
-
httpMethod: "GET",
|
|
2920
|
-
responses: {
|
|
2921
|
-
200: {
|
|
2922
|
-
bodyMapper: ElasticSanList,
|
|
2923
|
-
},
|
|
2924
|
-
default: {
|
|
2925
|
-
bodyMapper: ErrorResponse,
|
|
2926
|
-
},
|
|
2927
|
-
},
|
|
2928
|
-
urlParameters: [
|
|
2929
|
-
$host,
|
|
2930
|
-
subscriptionId,
|
|
2931
|
-
nextLink,
|
|
2932
|
-
],
|
|
2933
|
-
headerParameters: [accept],
|
|
2934
|
-
serializer: serializer$5,
|
|
2935
|
-
};
|
|
2936
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2937
|
-
path: "{nextLink}",
|
|
2938
|
-
httpMethod: "GET",
|
|
2939
|
-
responses: {
|
|
2940
|
-
200: {
|
|
2941
|
-
bodyMapper: ElasticSanList,
|
|
2942
|
-
},
|
|
2943
|
-
default: {
|
|
2944
|
-
bodyMapper: ErrorResponse,
|
|
2945
|
-
},
|
|
2946
|
-
},
|
|
2947
|
-
urlParameters: [
|
|
2948
|
-
$host,
|
|
2949
|
-
subscriptionId,
|
|
2950
|
-
resourceGroupName,
|
|
2951
|
-
nextLink,
|
|
2952
|
-
],
|
|
2953
|
-
headerParameters: [accept],
|
|
2954
|
-
serializer: serializer$5,
|
|
2955
|
-
};
|
|
2956
|
-
|
|
2957
|
-
/*
|
|
2958
|
-
* Copyright (c) Microsoft Corporation.
|
|
2959
|
-
* Licensed under the MIT License.
|
|
2960
|
-
*
|
|
2961
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2962
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2963
|
-
*/
|
|
2964
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2965
|
-
/** Class containing VolumeGroups operations. */
|
|
2966
|
-
class VolumeGroupsImpl {
|
|
2967
|
-
/**
|
|
2968
|
-
* Initialize a new instance of the class VolumeGroups class.
|
|
2969
|
-
* @param client Reference to the service client
|
|
2970
|
-
*/
|
|
2971
|
-
constructor(client) {
|
|
2972
|
-
this.client = client;
|
|
2973
|
-
}
|
|
2974
|
-
/**
|
|
2975
|
-
* List VolumeGroups.
|
|
2976
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2977
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
2978
|
-
* @param options The options parameters.
|
|
2979
|
-
*/
|
|
2980
|
-
listByElasticSan(resourceGroupName, elasticSanName, options) {
|
|
2981
|
-
const iter = this.listByElasticSanPagingAll(resourceGroupName, elasticSanName, options);
|
|
2982
|
-
return {
|
|
2983
|
-
next() {
|
|
2984
|
-
return iter.next();
|
|
2985
|
-
},
|
|
2986
|
-
[Symbol.asyncIterator]() {
|
|
2987
|
-
return this;
|
|
2988
|
-
},
|
|
2989
|
-
byPage: (settings) => {
|
|
2990
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2991
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2992
|
-
}
|
|
2993
|
-
return this.listByElasticSanPagingPage(resourceGroupName, elasticSanName, options, settings);
|
|
2994
|
-
},
|
|
2995
|
-
};
|
|
2996
|
-
}
|
|
2997
|
-
listByElasticSanPagingPage(resourceGroupName, elasticSanName, options, settings) {
|
|
2998
|
-
return tslib.__asyncGenerator(this, arguments, function* listByElasticSanPagingPage_1() {
|
|
2999
|
-
let result;
|
|
3000
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3001
|
-
if (!continuationToken) {
|
|
3002
|
-
result = yield tslib.__await(this._listByElasticSan(resourceGroupName, elasticSanName, options));
|
|
3003
|
-
let page = result.value || [];
|
|
3004
|
-
continuationToken = result.nextLink;
|
|
3005
|
-
setContinuationToken(page, continuationToken);
|
|
3006
|
-
yield yield tslib.__await(page);
|
|
3007
|
-
}
|
|
3008
|
-
while (continuationToken) {
|
|
3009
|
-
result = yield tslib.__await(this._listByElasticSanNext(resourceGroupName, elasticSanName, continuationToken, options));
|
|
3010
|
-
continuationToken = result.nextLink;
|
|
3011
|
-
let page = result.value || [];
|
|
3012
|
-
setContinuationToken(page, continuationToken);
|
|
3013
|
-
yield yield tslib.__await(page);
|
|
3014
|
-
}
|
|
3015
|
-
});
|
|
3016
|
-
}
|
|
3017
|
-
listByElasticSanPagingAll(resourceGroupName, elasticSanName, options) {
|
|
3018
|
-
return tslib.__asyncGenerator(this, arguments, function* listByElasticSanPagingAll_1() {
|
|
3019
|
-
var _a, e_1, _b, _c;
|
|
3020
|
-
try {
|
|
3021
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByElasticSanPagingPage(resourceGroupName, elasticSanName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3022
|
-
_c = _f.value;
|
|
3023
|
-
_d = false;
|
|
3024
|
-
const page = _c;
|
|
3025
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3026
|
-
}
|
|
3027
|
-
}
|
|
3028
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3029
|
-
finally {
|
|
3030
|
-
try {
|
|
3031
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3032
|
-
}
|
|
3033
|
-
finally { if (e_1) throw e_1.error; }
|
|
3034
|
-
}
|
|
3035
|
-
});
|
|
3036
|
-
}
|
|
3037
|
-
/**
|
|
3038
|
-
* List VolumeGroups.
|
|
3039
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3040
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3041
|
-
* @param options The options parameters.
|
|
3042
|
-
*/
|
|
3043
|
-
_listByElasticSan(resourceGroupName, elasticSanName, options) {
|
|
3044
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, listByElasticSanOperationSpec$1);
|
|
3045
|
-
}
|
|
3046
|
-
/**
|
|
3047
|
-
* Create a Volume Group.
|
|
3048
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3049
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3050
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3051
|
-
* @param parameters Volume Group object.
|
|
3052
|
-
* @param options The options parameters.
|
|
3053
|
-
*/
|
|
3054
|
-
beginCreate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
|
|
3055
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3056
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3057
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3058
|
-
});
|
|
3059
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3060
|
-
var _a;
|
|
3061
|
-
let currentRawResponse = undefined;
|
|
3062
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3063
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3064
|
-
currentRawResponse = rawResponse;
|
|
3065
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3066
|
-
};
|
|
3067
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3068
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3069
|
-
return {
|
|
3070
|
-
flatResponse,
|
|
3071
|
-
rawResponse: {
|
|
3072
|
-
statusCode: currentRawResponse.status,
|
|
3073
|
-
body: currentRawResponse.parsedBody,
|
|
3074
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3075
|
-
},
|
|
3076
|
-
};
|
|
3077
|
-
});
|
|
3078
|
-
const lro = createLroSpec({
|
|
3079
|
-
sendOperationFn,
|
|
3080
|
-
args: {
|
|
3081
|
-
resourceGroupName,
|
|
3082
|
-
elasticSanName,
|
|
3083
|
-
volumeGroupName,
|
|
3084
|
-
parameters,
|
|
3085
|
-
options,
|
|
3086
|
-
},
|
|
3087
|
-
spec: createOperationSpec$3,
|
|
3088
|
-
});
|
|
3089
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3090
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3091
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3092
|
-
resourceLocationConfig: "location",
|
|
3093
|
-
});
|
|
3094
|
-
yield poller.poll();
|
|
3095
|
-
return poller;
|
|
3096
|
-
});
|
|
3097
|
-
}
|
|
3098
|
-
/**
|
|
3099
|
-
* Create a Volume Group.
|
|
3100
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3101
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3102
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3103
|
-
* @param parameters Volume Group object.
|
|
3104
|
-
* @param options The options parameters.
|
|
3105
|
-
*/
|
|
3106
|
-
beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
|
|
3107
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3108
|
-
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options);
|
|
3109
|
-
return poller.pollUntilDone();
|
|
3110
|
-
});
|
|
3111
|
-
}
|
|
3112
|
-
/**
|
|
3113
|
-
* Update an VolumeGroup.
|
|
3114
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3115
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3116
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3117
|
-
* @param parameters Volume Group object.
|
|
3118
|
-
* @param options The options parameters.
|
|
3119
|
-
*/
|
|
3120
|
-
beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
|
|
3121
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3122
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3123
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3124
|
-
});
|
|
3125
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3126
|
-
var _a;
|
|
3127
|
-
let currentRawResponse = undefined;
|
|
3128
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3129
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3130
|
-
currentRawResponse = rawResponse;
|
|
3131
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3132
|
-
};
|
|
3133
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3134
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3135
|
-
return {
|
|
3136
|
-
flatResponse,
|
|
3137
|
-
rawResponse: {
|
|
3138
|
-
statusCode: currentRawResponse.status,
|
|
3139
|
-
body: currentRawResponse.parsedBody,
|
|
3140
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3141
|
-
},
|
|
3142
|
-
};
|
|
3143
|
-
});
|
|
3144
|
-
const lro = createLroSpec({
|
|
3145
|
-
sendOperationFn,
|
|
3146
|
-
args: {
|
|
3147
|
-
resourceGroupName,
|
|
3148
|
-
elasticSanName,
|
|
3149
|
-
volumeGroupName,
|
|
3150
|
-
parameters,
|
|
3151
|
-
options,
|
|
3152
|
-
},
|
|
3153
|
-
spec: updateOperationSpec$1,
|
|
3154
|
-
});
|
|
3155
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3156
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3157
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3158
|
-
resourceLocationConfig: "location",
|
|
3159
|
-
});
|
|
3160
|
-
yield poller.poll();
|
|
3161
|
-
return poller;
|
|
3162
|
-
});
|
|
3163
|
-
}
|
|
3164
|
-
/**
|
|
3165
|
-
* Update an VolumeGroup.
|
|
3166
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3167
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3168
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3169
|
-
* @param parameters Volume Group object.
|
|
3170
|
-
* @param options The options parameters.
|
|
3171
|
-
*/
|
|
3172
|
-
beginUpdateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters, options) {
|
|
3173
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3174
|
-
const poller = yield this.beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, parameters, options);
|
|
3175
|
-
return poller.pollUntilDone();
|
|
3176
|
-
});
|
|
3177
|
-
}
|
|
3178
|
-
/**
|
|
3179
|
-
* Delete an VolumeGroup.
|
|
3180
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3181
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3182
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3183
|
-
* @param options The options parameters.
|
|
3184
|
-
*/
|
|
3185
|
-
beginDelete(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
3186
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3187
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3188
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3189
|
-
});
|
|
3190
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3191
|
-
var _a;
|
|
3192
|
-
let currentRawResponse = undefined;
|
|
3193
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3194
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3195
|
-
currentRawResponse = rawResponse;
|
|
3196
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3197
|
-
};
|
|
3198
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3199
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3200
|
-
return {
|
|
3201
|
-
flatResponse,
|
|
3202
|
-
rawResponse: {
|
|
3203
|
-
statusCode: currentRawResponse.status,
|
|
3204
|
-
body: currentRawResponse.parsedBody,
|
|
3205
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3206
|
-
},
|
|
3207
|
-
};
|
|
3208
|
-
});
|
|
3209
|
-
const lro = createLroSpec({
|
|
3210
|
-
sendOperationFn,
|
|
3211
|
-
args: { resourceGroupName, elasticSanName, volumeGroupName, options },
|
|
3212
|
-
spec: deleteOperationSpec$3,
|
|
3213
|
-
});
|
|
3214
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3215
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3216
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3217
|
-
resourceLocationConfig: "location",
|
|
3218
|
-
});
|
|
3219
|
-
yield poller.poll();
|
|
3220
|
-
return poller;
|
|
3221
|
-
});
|
|
3222
|
-
}
|
|
3223
|
-
/**
|
|
3224
|
-
* Delete an VolumeGroup.
|
|
3225
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3226
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3227
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3228
|
-
* @param options The options parameters.
|
|
3229
|
-
*/
|
|
3230
|
-
beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
3231
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3232
|
-
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, volumeGroupName, options);
|
|
3233
|
-
return poller.pollUntilDone();
|
|
3234
|
-
});
|
|
3235
|
-
}
|
|
3236
|
-
/**
|
|
3237
|
-
* Get an VolumeGroups.
|
|
3238
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3239
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3240
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3241
|
-
* @param options The options parameters.
|
|
3242
|
-
*/
|
|
3243
|
-
get(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
3244
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, getOperationSpec$3);
|
|
3245
|
-
}
|
|
3246
|
-
/**
|
|
3247
|
-
* ListByElasticSanNext
|
|
3248
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3249
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3250
|
-
* @param nextLink The nextLink from the previous successful call to the ListByElasticSan method.
|
|
3251
|
-
* @param options The options parameters.
|
|
3252
|
-
*/
|
|
3253
|
-
_listByElasticSanNext(resourceGroupName, elasticSanName, nextLink, options) {
|
|
3254
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, nextLink, options }, listByElasticSanNextOperationSpec);
|
|
3255
|
-
}
|
|
3256
|
-
}
|
|
3257
|
-
// Operation Specifications
|
|
3258
|
-
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3259
|
-
const listByElasticSanOperationSpec$1 = {
|
|
3260
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumeGroups",
|
|
3261
|
-
httpMethod: "GET",
|
|
3262
|
-
responses: {
|
|
3263
|
-
200: {
|
|
3264
|
-
bodyMapper: VolumeGroupList,
|
|
3265
|
-
},
|
|
3266
|
-
default: {
|
|
3267
|
-
bodyMapper: ErrorResponse,
|
|
3268
|
-
},
|
|
3269
|
-
},
|
|
3270
|
-
queryParameters: [apiVersion],
|
|
3271
|
-
urlParameters: [
|
|
3272
|
-
$host,
|
|
3273
|
-
subscriptionId,
|
|
3274
|
-
resourceGroupName,
|
|
3275
|
-
elasticSanName,
|
|
3276
|
-
],
|
|
3277
|
-
headerParameters: [accept],
|
|
3278
|
-
serializer: serializer$4,
|
|
3279
|
-
};
|
|
3280
|
-
const createOperationSpec$3 = {
|
|
3281
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
3282
|
-
httpMethod: "PUT",
|
|
3283
|
-
responses: {
|
|
3284
|
-
200: {
|
|
3285
|
-
bodyMapper: VolumeGroup,
|
|
3286
|
-
},
|
|
3287
|
-
201: {
|
|
3288
|
-
bodyMapper: VolumeGroup,
|
|
3289
|
-
},
|
|
3290
|
-
202: {
|
|
3291
|
-
bodyMapper: VolumeGroup,
|
|
3292
|
-
},
|
|
3293
|
-
204: {
|
|
3294
|
-
bodyMapper: VolumeGroup,
|
|
3295
|
-
},
|
|
3296
|
-
default: {
|
|
3297
|
-
bodyMapper: ErrorResponse,
|
|
3298
|
-
},
|
|
3299
|
-
},
|
|
3300
|
-
requestBody: parameters2,
|
|
3301
|
-
queryParameters: [apiVersion],
|
|
3302
|
-
urlParameters: [
|
|
3303
|
-
$host,
|
|
3304
|
-
subscriptionId,
|
|
3305
|
-
resourceGroupName,
|
|
3306
|
-
elasticSanName,
|
|
3307
|
-
volumeGroupName,
|
|
3308
|
-
],
|
|
3309
|
-
headerParameters: [accept, contentType],
|
|
3310
|
-
mediaType: "json",
|
|
3311
|
-
serializer: serializer$4,
|
|
3312
|
-
};
|
|
3313
|
-
const updateOperationSpec$1 = {
|
|
3314
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
3315
|
-
httpMethod: "PATCH",
|
|
3316
|
-
responses: {
|
|
3317
|
-
200: {
|
|
3318
|
-
bodyMapper: VolumeGroup,
|
|
3319
|
-
},
|
|
3320
|
-
201: {
|
|
3321
|
-
bodyMapper: VolumeGroup,
|
|
3322
|
-
},
|
|
3323
|
-
202: {
|
|
3324
|
-
bodyMapper: VolumeGroup,
|
|
3325
|
-
},
|
|
3326
|
-
204: {
|
|
3327
|
-
bodyMapper: VolumeGroup,
|
|
3328
|
-
},
|
|
3329
|
-
default: {
|
|
3330
|
-
bodyMapper: ErrorResponse,
|
|
3331
|
-
},
|
|
3332
|
-
},
|
|
3333
|
-
requestBody: parameters3,
|
|
3334
|
-
queryParameters: [apiVersion],
|
|
3335
|
-
urlParameters: [
|
|
3336
|
-
$host,
|
|
3337
|
-
subscriptionId,
|
|
3338
|
-
resourceGroupName,
|
|
3339
|
-
elasticSanName,
|
|
3340
|
-
volumeGroupName,
|
|
3341
|
-
],
|
|
3342
|
-
headerParameters: [accept, contentType],
|
|
3343
|
-
mediaType: "json",
|
|
3344
|
-
serializer: serializer$4,
|
|
3345
|
-
};
|
|
3346
|
-
const deleteOperationSpec$3 = {
|
|
3347
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
3348
|
-
httpMethod: "DELETE",
|
|
3349
|
-
responses: {
|
|
3350
|
-
200: {},
|
|
3351
|
-
201: {},
|
|
3352
|
-
202: {},
|
|
3353
|
-
204: {},
|
|
3354
|
-
default: {
|
|
3355
|
-
bodyMapper: ErrorResponse,
|
|
3356
|
-
},
|
|
3357
|
-
},
|
|
3358
|
-
queryParameters: [apiVersion],
|
|
3359
|
-
urlParameters: [
|
|
3360
|
-
$host,
|
|
3361
|
-
subscriptionId,
|
|
3362
|
-
resourceGroupName,
|
|
3363
|
-
elasticSanName,
|
|
3364
|
-
volumeGroupName,
|
|
3365
|
-
],
|
|
3366
|
-
headerParameters: [accept],
|
|
3367
|
-
serializer: serializer$4,
|
|
3368
|
-
};
|
|
3369
|
-
const getOperationSpec$3 = {
|
|
3370
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}",
|
|
3371
|
-
httpMethod: "GET",
|
|
3372
|
-
responses: {
|
|
3373
|
-
200: {
|
|
3374
|
-
bodyMapper: VolumeGroup,
|
|
3375
|
-
},
|
|
3376
|
-
default: {
|
|
3377
|
-
bodyMapper: ErrorResponse,
|
|
3378
|
-
},
|
|
3379
|
-
},
|
|
3380
|
-
queryParameters: [apiVersion],
|
|
3381
|
-
urlParameters: [
|
|
3382
|
-
$host,
|
|
3383
|
-
subscriptionId,
|
|
3384
|
-
resourceGroupName,
|
|
3385
|
-
elasticSanName,
|
|
3386
|
-
volumeGroupName,
|
|
3387
|
-
],
|
|
3388
|
-
headerParameters: [accept],
|
|
3389
|
-
serializer: serializer$4,
|
|
3390
|
-
};
|
|
3391
|
-
const listByElasticSanNextOperationSpec = {
|
|
3392
|
-
path: "{nextLink}",
|
|
3393
|
-
httpMethod: "GET",
|
|
3394
|
-
responses: {
|
|
3395
|
-
200: {
|
|
3396
|
-
bodyMapper: VolumeGroupList,
|
|
3397
|
-
},
|
|
3398
|
-
default: {
|
|
3399
|
-
bodyMapper: ErrorResponse,
|
|
3400
|
-
},
|
|
3401
|
-
},
|
|
3402
|
-
urlParameters: [
|
|
3403
|
-
$host,
|
|
3404
|
-
subscriptionId,
|
|
3405
|
-
resourceGroupName,
|
|
3406
|
-
elasticSanName,
|
|
3407
|
-
nextLink,
|
|
3408
|
-
],
|
|
3409
|
-
headerParameters: [accept],
|
|
3410
|
-
serializer: serializer$4,
|
|
3411
|
-
};
|
|
3412
|
-
|
|
3413
|
-
/*
|
|
3414
|
-
* Copyright (c) Microsoft Corporation.
|
|
3415
|
-
* Licensed under the MIT License.
|
|
3416
|
-
*
|
|
3417
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3418
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3419
|
-
*/
|
|
3420
|
-
/// <reference lib="esnext.asynciterable" />
|
|
3421
|
-
/** Class containing Volumes operations. */
|
|
3422
|
-
class VolumesImpl {
|
|
3423
|
-
/**
|
|
3424
|
-
* Initialize a new instance of the class Volumes class.
|
|
3425
|
-
* @param client Reference to the service client
|
|
3426
|
-
*/
|
|
3427
|
-
constructor(client) {
|
|
3428
|
-
this.client = client;
|
|
3429
|
-
}
|
|
3430
|
-
/**
|
|
3431
|
-
* List Volumes in a VolumeGroup.
|
|
3432
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3433
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3434
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3435
|
-
* @param options The options parameters.
|
|
3436
|
-
*/
|
|
3437
|
-
listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
3438
|
-
const iter = this.listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options);
|
|
3439
|
-
return {
|
|
3440
|
-
next() {
|
|
3441
|
-
return iter.next();
|
|
3442
|
-
},
|
|
3443
|
-
[Symbol.asyncIterator]() {
|
|
3444
|
-
return this;
|
|
3445
|
-
},
|
|
3446
|
-
byPage: (settings) => {
|
|
3447
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3448
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
3449
|
-
}
|
|
3450
|
-
return this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings);
|
|
3451
|
-
},
|
|
3452
|
-
};
|
|
3453
|
-
}
|
|
3454
|
-
listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
|
|
3455
|
-
return tslib.__asyncGenerator(this, arguments, function* listByVolumeGroupPagingPage_1() {
|
|
3456
|
-
let result;
|
|
3457
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3458
|
-
if (!continuationToken) {
|
|
3459
|
-
result = yield tslib.__await(this._listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options));
|
|
3460
|
-
let page = result.value || [];
|
|
3461
|
-
continuationToken = result.nextLink;
|
|
3462
|
-
setContinuationToken(page, continuationToken);
|
|
3463
|
-
yield yield tslib.__await(page);
|
|
3464
|
-
}
|
|
3465
|
-
while (continuationToken) {
|
|
3466
|
-
result = yield tslib.__await(this._listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, continuationToken, options));
|
|
3467
|
-
continuationToken = result.nextLink;
|
|
3468
|
-
let page = result.value || [];
|
|
3469
|
-
setContinuationToken(page, continuationToken);
|
|
3470
|
-
yield yield tslib.__await(page);
|
|
3471
|
-
}
|
|
3472
|
-
});
|
|
3473
|
-
}
|
|
3474
|
-
listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
3475
|
-
return tslib.__asyncGenerator(this, arguments, function* listByVolumeGroupPagingAll_1() {
|
|
3476
|
-
var _a, e_1, _b, _c;
|
|
3477
|
-
try {
|
|
3478
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3479
|
-
_c = _f.value;
|
|
3480
|
-
_d = false;
|
|
3481
|
-
const page = _c;
|
|
3482
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3483
|
-
}
|
|
3484
|
-
}
|
|
3485
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3486
|
-
finally {
|
|
3487
|
-
try {
|
|
3488
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3489
|
-
}
|
|
3490
|
-
finally { if (e_1) throw e_1.error; }
|
|
3491
|
-
}
|
|
3492
|
-
});
|
|
3493
|
-
}
|
|
3494
|
-
/**
|
|
3495
|
-
* Create a Volume.
|
|
3496
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3497
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3498
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3499
|
-
* @param volumeName The name of the Volume.
|
|
3500
|
-
* @param parameters Volume object.
|
|
3501
|
-
* @param options The options parameters.
|
|
3502
|
-
*/
|
|
3503
|
-
beginCreate(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options) {
|
|
3504
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3505
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3506
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3507
|
-
});
|
|
3508
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3509
|
-
var _a;
|
|
3510
|
-
let currentRawResponse = undefined;
|
|
3511
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3512
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3513
|
-
currentRawResponse = rawResponse;
|
|
3514
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3515
|
-
};
|
|
3516
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3517
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3518
|
-
return {
|
|
3519
|
-
flatResponse,
|
|
3520
|
-
rawResponse: {
|
|
3521
|
-
statusCode: currentRawResponse.status,
|
|
3522
|
-
body: currentRawResponse.parsedBody,
|
|
3523
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3524
|
-
},
|
|
3525
|
-
};
|
|
3526
|
-
});
|
|
3527
|
-
const lro = createLroSpec({
|
|
3528
|
-
sendOperationFn,
|
|
3529
|
-
args: {
|
|
3530
|
-
resourceGroupName,
|
|
3531
|
-
elasticSanName,
|
|
3532
|
-
volumeGroupName,
|
|
3533
|
-
volumeName,
|
|
3534
|
-
parameters,
|
|
3535
|
-
options,
|
|
3536
|
-
},
|
|
3537
|
-
spec: createOperationSpec$2,
|
|
3538
|
-
});
|
|
3539
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3540
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3541
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3542
|
-
resourceLocationConfig: "location",
|
|
3543
|
-
});
|
|
3544
|
-
yield poller.poll();
|
|
3545
|
-
return poller;
|
|
3546
|
-
});
|
|
3547
|
-
}
|
|
3548
|
-
/**
|
|
3549
|
-
* Create a Volume.
|
|
3550
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3551
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3552
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3553
|
-
* @param volumeName The name of the Volume.
|
|
3554
|
-
* @param parameters Volume object.
|
|
3555
|
-
* @param options The options parameters.
|
|
3556
|
-
*/
|
|
3557
|
-
beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options) {
|
|
3558
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3559
|
-
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options);
|
|
3560
|
-
return poller.pollUntilDone();
|
|
3561
|
-
});
|
|
3562
|
-
}
|
|
3563
|
-
/**
|
|
3564
|
-
* Update an Volume.
|
|
3565
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3566
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3567
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3568
|
-
* @param volumeName The name of the Volume.
|
|
3569
|
-
* @param parameters Volume object.
|
|
3570
|
-
* @param options The options parameters.
|
|
3571
|
-
*/
|
|
3572
|
-
beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options) {
|
|
3573
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3574
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3575
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3576
|
-
});
|
|
3577
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3578
|
-
var _a;
|
|
3579
|
-
let currentRawResponse = undefined;
|
|
3580
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3581
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3582
|
-
currentRawResponse = rawResponse;
|
|
3583
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3584
|
-
};
|
|
3585
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3586
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3587
|
-
return {
|
|
3588
|
-
flatResponse,
|
|
3589
|
-
rawResponse: {
|
|
3590
|
-
statusCode: currentRawResponse.status,
|
|
3591
|
-
body: currentRawResponse.parsedBody,
|
|
3592
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3593
|
-
},
|
|
3594
|
-
};
|
|
3595
|
-
});
|
|
3596
|
-
const lro = createLroSpec({
|
|
3597
|
-
sendOperationFn,
|
|
3598
|
-
args: {
|
|
3599
|
-
resourceGroupName,
|
|
3600
|
-
elasticSanName,
|
|
3601
|
-
volumeGroupName,
|
|
3602
|
-
volumeName,
|
|
3603
|
-
parameters,
|
|
3604
|
-
options,
|
|
3605
|
-
},
|
|
3606
|
-
spec: updateOperationSpec,
|
|
3607
|
-
});
|
|
3608
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3609
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3610
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3611
|
-
resourceLocationConfig: "location",
|
|
3612
|
-
});
|
|
3613
|
-
yield poller.poll();
|
|
3614
|
-
return poller;
|
|
3615
|
-
});
|
|
3616
|
-
}
|
|
3617
|
-
/**
|
|
3618
|
-
* Update an Volume.
|
|
3619
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3620
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3621
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3622
|
-
* @param volumeName The name of the Volume.
|
|
3623
|
-
* @param parameters Volume object.
|
|
3624
|
-
* @param options The options parameters.
|
|
3625
|
-
*/
|
|
3626
|
-
beginUpdateAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options) {
|
|
3627
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3628
|
-
const poller = yield this.beginUpdate(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters, options);
|
|
3629
|
-
return poller.pollUntilDone();
|
|
3630
|
-
});
|
|
3631
|
-
}
|
|
3632
|
-
/**
|
|
3633
|
-
* Delete an Volume.
|
|
3634
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3635
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3636
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3637
|
-
* @param volumeName The name of the Volume.
|
|
3638
|
-
* @param options The options parameters.
|
|
3639
|
-
*/
|
|
3640
|
-
beginDelete(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options) {
|
|
3641
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3642
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3643
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3644
|
-
});
|
|
3645
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3646
|
-
var _a;
|
|
3647
|
-
let currentRawResponse = undefined;
|
|
3648
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3649
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3650
|
-
currentRawResponse = rawResponse;
|
|
3651
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3652
|
-
};
|
|
3653
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3654
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3655
|
-
return {
|
|
3656
|
-
flatResponse,
|
|
3657
|
-
rawResponse: {
|
|
3658
|
-
statusCode: currentRawResponse.status,
|
|
3659
|
-
body: currentRawResponse.parsedBody,
|
|
3660
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3661
|
-
},
|
|
3662
|
-
};
|
|
3663
|
-
});
|
|
3664
|
-
const lro = createLroSpec({
|
|
3665
|
-
sendOperationFn,
|
|
3666
|
-
args: {
|
|
3667
|
-
resourceGroupName,
|
|
3668
|
-
elasticSanName,
|
|
3669
|
-
volumeGroupName,
|
|
3670
|
-
volumeName,
|
|
3671
|
-
options,
|
|
3672
|
-
},
|
|
3673
|
-
spec: deleteOperationSpec$2,
|
|
3674
|
-
});
|
|
3675
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
3676
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
3677
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
3678
|
-
resourceLocationConfig: "location",
|
|
3679
|
-
});
|
|
3680
|
-
yield poller.poll();
|
|
3681
|
-
return poller;
|
|
3682
|
-
});
|
|
3683
|
-
}
|
|
3684
|
-
/**
|
|
3685
|
-
* Delete an Volume.
|
|
3686
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3687
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3688
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3689
|
-
* @param volumeName The name of the Volume.
|
|
3690
|
-
* @param options The options parameters.
|
|
3691
|
-
*/
|
|
3692
|
-
beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options) {
|
|
3693
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3694
|
-
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options);
|
|
3695
|
-
return poller.pollUntilDone();
|
|
3696
|
-
});
|
|
3697
|
-
}
|
|
3698
|
-
/**
|
|
3699
|
-
* Get an Volume.
|
|
3700
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3701
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3702
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3703
|
-
* @param volumeName The name of the Volume.
|
|
3704
|
-
* @param options The options parameters.
|
|
3705
|
-
*/
|
|
3706
|
-
get(resourceGroupName, elasticSanName, volumeGroupName, volumeName, options) {
|
|
3707
|
-
return this.client.sendOperationRequest({
|
|
3708
|
-
resourceGroupName,
|
|
3709
|
-
elasticSanName,
|
|
3710
|
-
volumeGroupName,
|
|
3711
|
-
volumeName,
|
|
3712
|
-
options,
|
|
3713
|
-
}, getOperationSpec$2);
|
|
3714
|
-
}
|
|
3715
|
-
/**
|
|
3716
|
-
* List Volumes in a VolumeGroup.
|
|
3717
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3718
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3719
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3720
|
-
* @param options The options parameters.
|
|
3721
|
-
*/
|
|
3722
|
-
_listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
3723
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, listByVolumeGroupOperationSpec$1);
|
|
3724
|
-
}
|
|
3725
|
-
/**
|
|
3726
|
-
* ListByVolumeGroupNext
|
|
3727
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3728
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3729
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
3730
|
-
* @param nextLink The nextLink from the previous successful call to the ListByVolumeGroup method.
|
|
3731
|
-
* @param options The options parameters.
|
|
3732
|
-
*/
|
|
3733
|
-
_listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, nextLink, options) {
|
|
3734
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, nextLink, options }, listByVolumeGroupNextOperationSpec$1);
|
|
3735
|
-
}
|
|
3736
|
-
}
|
|
3737
|
-
// Operation Specifications
|
|
3738
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3739
|
-
const createOperationSpec$2 = {
|
|
3740
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
3741
|
-
httpMethod: "PUT",
|
|
3742
|
-
responses: {
|
|
3743
|
-
200: {
|
|
3744
|
-
bodyMapper: Volume,
|
|
3745
|
-
},
|
|
3746
|
-
201: {
|
|
3747
|
-
bodyMapper: Volume,
|
|
3748
|
-
},
|
|
3749
|
-
202: {
|
|
3750
|
-
bodyMapper: Volume,
|
|
3751
|
-
},
|
|
3752
|
-
204: {
|
|
3753
|
-
bodyMapper: Volume,
|
|
3754
|
-
},
|
|
3755
|
-
default: {
|
|
3756
|
-
bodyMapper: ErrorResponse,
|
|
3757
|
-
},
|
|
3758
|
-
},
|
|
3759
|
-
requestBody: parameters4,
|
|
3760
|
-
queryParameters: [apiVersion],
|
|
3761
|
-
urlParameters: [
|
|
3762
|
-
$host,
|
|
3763
|
-
subscriptionId,
|
|
3764
|
-
resourceGroupName,
|
|
3765
|
-
elasticSanName,
|
|
3766
|
-
volumeGroupName,
|
|
3767
|
-
volumeName,
|
|
3768
|
-
],
|
|
3769
|
-
headerParameters: [accept, contentType],
|
|
3770
|
-
mediaType: "json",
|
|
3771
|
-
serializer: serializer$3,
|
|
3772
|
-
};
|
|
3773
|
-
const updateOperationSpec = {
|
|
3774
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
3775
|
-
httpMethod: "PATCH",
|
|
3776
|
-
responses: {
|
|
3777
|
-
200: {
|
|
3778
|
-
bodyMapper: Volume,
|
|
3779
|
-
},
|
|
3780
|
-
201: {
|
|
3781
|
-
bodyMapper: Volume,
|
|
3782
|
-
},
|
|
3783
|
-
202: {
|
|
3784
|
-
bodyMapper: Volume,
|
|
3785
|
-
},
|
|
3786
|
-
204: {
|
|
3787
|
-
bodyMapper: Volume,
|
|
3788
|
-
},
|
|
3789
|
-
default: {
|
|
3790
|
-
bodyMapper: ErrorResponse,
|
|
3791
|
-
},
|
|
3792
|
-
},
|
|
3793
|
-
requestBody: parameters5,
|
|
3794
|
-
queryParameters: [apiVersion],
|
|
3795
|
-
urlParameters: [
|
|
3796
|
-
$host,
|
|
3797
|
-
subscriptionId,
|
|
3798
|
-
resourceGroupName,
|
|
3799
|
-
elasticSanName,
|
|
3800
|
-
volumeGroupName,
|
|
3801
|
-
volumeName,
|
|
3802
|
-
],
|
|
3803
|
-
headerParameters: [accept, contentType],
|
|
3804
|
-
mediaType: "json",
|
|
3805
|
-
serializer: serializer$3,
|
|
3806
|
-
};
|
|
3807
|
-
const deleteOperationSpec$2 = {
|
|
3808
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
3809
|
-
httpMethod: "DELETE",
|
|
3810
|
-
responses: {
|
|
3811
|
-
200: {},
|
|
3812
|
-
201: {},
|
|
3813
|
-
202: {},
|
|
3814
|
-
204: {},
|
|
3815
|
-
default: {
|
|
3816
|
-
bodyMapper: ErrorResponse,
|
|
3817
|
-
},
|
|
3818
|
-
},
|
|
3819
|
-
queryParameters: [apiVersion],
|
|
3820
|
-
urlParameters: [
|
|
3821
|
-
$host,
|
|
3822
|
-
subscriptionId,
|
|
3823
|
-
resourceGroupName,
|
|
3824
|
-
elasticSanName,
|
|
3825
|
-
volumeGroupName,
|
|
3826
|
-
volumeName,
|
|
3827
|
-
],
|
|
3828
|
-
headerParameters: [
|
|
3829
|
-
accept,
|
|
3830
|
-
xMsDeleteSnapshots,
|
|
3831
|
-
xMsForceDelete,
|
|
3832
|
-
],
|
|
3833
|
-
serializer: serializer$3,
|
|
3834
|
-
};
|
|
3835
|
-
const getOperationSpec$2 = {
|
|
3836
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}",
|
|
3837
|
-
httpMethod: "GET",
|
|
3838
|
-
responses: {
|
|
3839
|
-
200: {
|
|
3840
|
-
bodyMapper: Volume,
|
|
3841
|
-
},
|
|
3842
|
-
default: {
|
|
3843
|
-
bodyMapper: ErrorResponse,
|
|
3844
|
-
},
|
|
3845
|
-
},
|
|
3846
|
-
queryParameters: [apiVersion],
|
|
3847
|
-
urlParameters: [
|
|
3848
|
-
$host,
|
|
3849
|
-
subscriptionId,
|
|
3850
|
-
resourceGroupName,
|
|
3851
|
-
elasticSanName,
|
|
3852
|
-
volumeGroupName,
|
|
3853
|
-
volumeName,
|
|
3854
|
-
],
|
|
3855
|
-
headerParameters: [accept],
|
|
3856
|
-
serializer: serializer$3,
|
|
3857
|
-
};
|
|
3858
|
-
const listByVolumeGroupOperationSpec$1 = {
|
|
3859
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes",
|
|
3860
|
-
httpMethod: "GET",
|
|
3861
|
-
responses: {
|
|
3862
|
-
200: {
|
|
3863
|
-
bodyMapper: VolumeList,
|
|
3864
|
-
},
|
|
3865
|
-
default: {
|
|
3866
|
-
bodyMapper: ErrorResponse,
|
|
3867
|
-
},
|
|
3868
|
-
},
|
|
3869
|
-
queryParameters: [apiVersion],
|
|
3870
|
-
urlParameters: [
|
|
3871
|
-
$host,
|
|
3872
|
-
subscriptionId,
|
|
3873
|
-
resourceGroupName,
|
|
3874
|
-
elasticSanName,
|
|
3875
|
-
volumeGroupName,
|
|
3876
|
-
],
|
|
3877
|
-
headerParameters: [accept],
|
|
3878
|
-
serializer: serializer$3,
|
|
3879
|
-
};
|
|
3880
|
-
const listByVolumeGroupNextOperationSpec$1 = {
|
|
3881
|
-
path: "{nextLink}",
|
|
3882
|
-
httpMethod: "GET",
|
|
3883
|
-
responses: {
|
|
3884
|
-
200: {
|
|
3885
|
-
bodyMapper: VolumeList,
|
|
3886
|
-
},
|
|
3887
|
-
default: {
|
|
3888
|
-
bodyMapper: ErrorResponse,
|
|
3889
|
-
},
|
|
3890
|
-
},
|
|
3891
|
-
urlParameters: [
|
|
3892
|
-
$host,
|
|
3893
|
-
subscriptionId,
|
|
3894
|
-
resourceGroupName,
|
|
3895
|
-
elasticSanName,
|
|
3896
|
-
nextLink,
|
|
3897
|
-
volumeGroupName,
|
|
3898
|
-
],
|
|
3899
|
-
headerParameters: [accept],
|
|
3900
|
-
serializer: serializer$3,
|
|
3901
|
-
};
|
|
3902
|
-
|
|
3903
|
-
/*
|
|
3904
|
-
* Copyright (c) Microsoft Corporation.
|
|
3905
|
-
* Licensed under the MIT License.
|
|
3906
|
-
*
|
|
3907
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3908
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3909
|
-
*/
|
|
3910
|
-
/// <reference lib="esnext.asynciterable" />
|
|
3911
|
-
/** Class containing PrivateEndpointConnections operations. */
|
|
3912
|
-
class PrivateEndpointConnectionsImpl {
|
|
3913
|
-
/**
|
|
3914
|
-
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
3915
|
-
* @param client Reference to the service client
|
|
3916
|
-
*/
|
|
3917
|
-
constructor(client) {
|
|
3918
|
-
this.client = client;
|
|
3919
|
-
}
|
|
3920
|
-
/**
|
|
3921
|
-
* List all Private Endpoint Connections associated with the Elastic San.
|
|
3922
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3923
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3924
|
-
* @param options The options parameters.
|
|
3925
|
-
*/
|
|
3926
|
-
list(resourceGroupName, elasticSanName, options) {
|
|
3927
|
-
const iter = this.listPagingAll(resourceGroupName, elasticSanName, options);
|
|
3928
|
-
return {
|
|
3929
|
-
next() {
|
|
3930
|
-
return iter.next();
|
|
3931
|
-
},
|
|
3932
|
-
[Symbol.asyncIterator]() {
|
|
3933
|
-
return this;
|
|
3934
|
-
},
|
|
3935
|
-
byPage: (settings) => {
|
|
3936
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3937
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
3938
|
-
}
|
|
3939
|
-
return this.listPagingPage(resourceGroupName, elasticSanName, options, settings);
|
|
3940
|
-
},
|
|
3941
|
-
};
|
|
3942
|
-
}
|
|
3943
|
-
listPagingPage(resourceGroupName, elasticSanName, options, _settings) {
|
|
3944
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3945
|
-
let result;
|
|
3946
|
-
result = yield tslib.__await(this._list(resourceGroupName, elasticSanName, options));
|
|
3947
|
-
yield yield tslib.__await(result.value || []);
|
|
3948
|
-
});
|
|
3949
|
-
}
|
|
3950
|
-
listPagingAll(resourceGroupName, elasticSanName, options) {
|
|
3951
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3952
|
-
var _a, e_1, _b, _c;
|
|
3953
|
-
try {
|
|
3954
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, elasticSanName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
3955
|
-
_c = _f.value;
|
|
3956
|
-
_d = false;
|
|
3957
|
-
const page = _c;
|
|
3958
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3959
|
-
}
|
|
3960
|
-
}
|
|
3961
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3962
|
-
finally {
|
|
3963
|
-
try {
|
|
3964
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3965
|
-
}
|
|
3966
|
-
finally { if (e_1) throw e_1.error; }
|
|
3967
|
-
}
|
|
3968
|
-
});
|
|
3969
|
-
}
|
|
3970
|
-
/**
|
|
3971
|
-
* Update the state of specified private endpoint connection associated with the Elastic San
|
|
3972
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3973
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
3974
|
-
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
3975
|
-
* @param parameters Private Endpoint Connection Approval object.
|
|
3976
|
-
* @param options The options parameters.
|
|
3977
|
-
*/
|
|
3978
|
-
beginCreate(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options) {
|
|
3979
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3980
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3981
|
-
return this.client.sendOperationRequest(args, spec);
|
|
3982
|
-
});
|
|
3983
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3984
|
-
var _a;
|
|
3985
|
-
let currentRawResponse = undefined;
|
|
3986
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
3987
|
-
const callback = (rawResponse, flatResponse) => {
|
|
3988
|
-
currentRawResponse = rawResponse;
|
|
3989
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
3990
|
-
};
|
|
3991
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
3992
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
3993
|
-
return {
|
|
3994
|
-
flatResponse,
|
|
3995
|
-
rawResponse: {
|
|
3996
|
-
statusCode: currentRawResponse.status,
|
|
3997
|
-
body: currentRawResponse.parsedBody,
|
|
3998
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
3999
|
-
},
|
|
4000
|
-
};
|
|
4001
|
-
});
|
|
4002
|
-
const lro = createLroSpec({
|
|
4003
|
-
sendOperationFn,
|
|
4004
|
-
args: {
|
|
4005
|
-
resourceGroupName,
|
|
4006
|
-
elasticSanName,
|
|
4007
|
-
privateEndpointConnectionName,
|
|
4008
|
-
parameters,
|
|
4009
|
-
options,
|
|
4010
|
-
},
|
|
4011
|
-
spec: createOperationSpec$1,
|
|
4012
|
-
});
|
|
4013
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4014
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4015
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4016
|
-
resourceLocationConfig: "location",
|
|
4017
|
-
});
|
|
4018
|
-
yield poller.poll();
|
|
4019
|
-
return poller;
|
|
4020
|
-
});
|
|
4021
|
-
}
|
|
4022
|
-
/**
|
|
4023
|
-
* Update the state of specified private endpoint connection associated with the Elastic San
|
|
4024
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4025
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4026
|
-
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
4027
|
-
* @param parameters Private Endpoint Connection Approval object.
|
|
4028
|
-
* @param options The options parameters.
|
|
4029
|
-
*/
|
|
4030
|
-
beginCreateAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options) {
|
|
4031
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4032
|
-
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters, options);
|
|
4033
|
-
return poller.pollUntilDone();
|
|
4034
|
-
});
|
|
4035
|
-
}
|
|
4036
|
-
/**
|
|
4037
|
-
* Gets the specified private endpoint connection associated with the Elastic San
|
|
4038
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4039
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4040
|
-
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
4041
|
-
* @param options The options parameters.
|
|
4042
|
-
*/
|
|
4043
|
-
get(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
|
|
4044
|
-
return this.client.sendOperationRequest({
|
|
4045
|
-
resourceGroupName,
|
|
4046
|
-
elasticSanName,
|
|
4047
|
-
privateEndpointConnectionName,
|
|
4048
|
-
options,
|
|
4049
|
-
}, getOperationSpec$1);
|
|
4050
|
-
}
|
|
4051
|
-
/**
|
|
4052
|
-
* Deletes the specified private endpoint connection associated with the Elastic San
|
|
4053
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4054
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4055
|
-
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
4056
|
-
* @param options The options parameters.
|
|
4057
|
-
*/
|
|
4058
|
-
beginDelete(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
|
|
4059
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4060
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4061
|
-
return this.client.sendOperationRequest(args, spec);
|
|
4062
|
-
});
|
|
4063
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4064
|
-
var _a;
|
|
4065
|
-
let currentRawResponse = undefined;
|
|
4066
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4067
|
-
const callback = (rawResponse, flatResponse) => {
|
|
4068
|
-
currentRawResponse = rawResponse;
|
|
4069
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4070
|
-
};
|
|
4071
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4072
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
4073
|
-
return {
|
|
4074
|
-
flatResponse,
|
|
4075
|
-
rawResponse: {
|
|
4076
|
-
statusCode: currentRawResponse.status,
|
|
4077
|
-
body: currentRawResponse.parsedBody,
|
|
4078
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
4079
|
-
},
|
|
4080
|
-
};
|
|
4081
|
-
});
|
|
4082
|
-
const lro = createLroSpec({
|
|
4083
|
-
sendOperationFn,
|
|
4084
|
-
args: {
|
|
4085
|
-
resourceGroupName,
|
|
4086
|
-
elasticSanName,
|
|
4087
|
-
privateEndpointConnectionName,
|
|
4088
|
-
options,
|
|
4089
|
-
},
|
|
4090
|
-
spec: deleteOperationSpec$1,
|
|
4091
|
-
});
|
|
4092
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4093
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4094
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4095
|
-
resourceLocationConfig: "location",
|
|
4096
|
-
});
|
|
4097
|
-
yield poller.poll();
|
|
4098
|
-
return poller;
|
|
4099
|
-
});
|
|
4100
|
-
}
|
|
4101
|
-
/**
|
|
4102
|
-
* Deletes the specified private endpoint connection associated with the Elastic San
|
|
4103
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4104
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4105
|
-
* @param privateEndpointConnectionName The name of the Private Endpoint connection.
|
|
4106
|
-
* @param options The options parameters.
|
|
4107
|
-
*/
|
|
4108
|
-
beginDeleteAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, options) {
|
|
4109
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4110
|
-
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, privateEndpointConnectionName, options);
|
|
4111
|
-
return poller.pollUntilDone();
|
|
4112
|
-
});
|
|
4113
|
-
}
|
|
4114
|
-
/**
|
|
4115
|
-
* List all Private Endpoint Connections associated with the Elastic San.
|
|
4116
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4117
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4118
|
-
* @param options The options parameters.
|
|
4119
|
-
*/
|
|
4120
|
-
_list(resourceGroupName, elasticSanName, options) {
|
|
4121
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, listOperationSpec);
|
|
4122
|
-
}
|
|
4123
|
-
}
|
|
4124
|
-
// Operation Specifications
|
|
4125
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4126
|
-
const createOperationSpec$1 = {
|
|
4127
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
4128
|
-
httpMethod: "PUT",
|
|
4129
|
-
responses: {
|
|
4130
|
-
200: {
|
|
4131
|
-
bodyMapper: PrivateEndpointConnection,
|
|
4132
|
-
},
|
|
4133
|
-
201: {
|
|
4134
|
-
bodyMapper: PrivateEndpointConnection,
|
|
4135
|
-
},
|
|
4136
|
-
202: {
|
|
4137
|
-
bodyMapper: PrivateEndpointConnection,
|
|
4138
|
-
},
|
|
4139
|
-
204: {
|
|
4140
|
-
bodyMapper: PrivateEndpointConnection,
|
|
4141
|
-
},
|
|
4142
|
-
default: {
|
|
4143
|
-
bodyMapper: ErrorResponse,
|
|
4144
|
-
},
|
|
4145
|
-
},
|
|
4146
|
-
requestBody: parameters6,
|
|
4147
|
-
queryParameters: [apiVersion],
|
|
4148
|
-
urlParameters: [
|
|
4149
|
-
$host,
|
|
4150
|
-
subscriptionId,
|
|
4151
|
-
resourceGroupName,
|
|
4152
|
-
elasticSanName,
|
|
4153
|
-
privateEndpointConnectionName,
|
|
4154
|
-
],
|
|
4155
|
-
headerParameters: [accept, contentType],
|
|
4156
|
-
mediaType: "json",
|
|
4157
|
-
serializer: serializer$2,
|
|
4158
|
-
};
|
|
4159
|
-
const getOperationSpec$1 = {
|
|
4160
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
4161
|
-
httpMethod: "GET",
|
|
4162
|
-
responses: {
|
|
4163
|
-
200: {
|
|
4164
|
-
bodyMapper: PrivateEndpointConnection,
|
|
4165
|
-
},
|
|
4166
|
-
default: {
|
|
4167
|
-
bodyMapper: ErrorResponse,
|
|
4168
|
-
},
|
|
4169
|
-
},
|
|
4170
|
-
queryParameters: [apiVersion],
|
|
4171
|
-
urlParameters: [
|
|
4172
|
-
$host,
|
|
4173
|
-
subscriptionId,
|
|
4174
|
-
resourceGroupName,
|
|
4175
|
-
elasticSanName,
|
|
4176
|
-
privateEndpointConnectionName,
|
|
4177
|
-
],
|
|
4178
|
-
headerParameters: [accept],
|
|
4179
|
-
serializer: serializer$2,
|
|
4180
|
-
};
|
|
4181
|
-
const deleteOperationSpec$1 = {
|
|
4182
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
4183
|
-
httpMethod: "DELETE",
|
|
4184
|
-
responses: {
|
|
4185
|
-
200: {},
|
|
4186
|
-
201: {},
|
|
4187
|
-
202: {},
|
|
4188
|
-
204: {},
|
|
4189
|
-
default: {
|
|
4190
|
-
bodyMapper: ErrorResponse,
|
|
4191
|
-
},
|
|
4192
|
-
},
|
|
4193
|
-
queryParameters: [apiVersion],
|
|
4194
|
-
urlParameters: [
|
|
4195
|
-
$host,
|
|
4196
|
-
subscriptionId,
|
|
4197
|
-
resourceGroupName,
|
|
4198
|
-
elasticSanName,
|
|
4199
|
-
privateEndpointConnectionName,
|
|
4200
|
-
],
|
|
4201
|
-
headerParameters: [accept],
|
|
4202
|
-
serializer: serializer$2,
|
|
4203
|
-
};
|
|
4204
|
-
const listOperationSpec = {
|
|
4205
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateEndpointConnections",
|
|
4206
|
-
httpMethod: "GET",
|
|
4207
|
-
responses: {
|
|
4208
|
-
200: {
|
|
4209
|
-
bodyMapper: PrivateEndpointConnectionListResult,
|
|
4210
|
-
},
|
|
4211
|
-
default: {
|
|
4212
|
-
bodyMapper: ErrorResponse,
|
|
4213
|
-
},
|
|
4214
|
-
},
|
|
4215
|
-
queryParameters: [apiVersion],
|
|
4216
|
-
urlParameters: [
|
|
4217
|
-
$host,
|
|
4218
|
-
subscriptionId,
|
|
4219
|
-
resourceGroupName,
|
|
4220
|
-
elasticSanName,
|
|
4221
|
-
],
|
|
4222
|
-
headerParameters: [accept],
|
|
4223
|
-
serializer: serializer$2,
|
|
4224
|
-
};
|
|
4225
|
-
|
|
4226
|
-
/*
|
|
4227
|
-
* Copyright (c) Microsoft Corporation.
|
|
4228
|
-
* Licensed under the MIT License.
|
|
4229
|
-
*
|
|
4230
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4231
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4232
|
-
*/
|
|
4233
|
-
/** Class containing PrivateLinkResources operations. */
|
|
4234
|
-
class PrivateLinkResourcesImpl {
|
|
4235
|
-
/**
|
|
4236
|
-
* Initialize a new instance of the class PrivateLinkResources class.
|
|
4237
|
-
* @param client Reference to the service client
|
|
4238
|
-
*/
|
|
4239
|
-
constructor(client) {
|
|
4240
|
-
this.client = client;
|
|
4241
|
-
}
|
|
4242
|
-
/**
|
|
4243
|
-
* Gets the private link resources that need to be created for a elastic San.
|
|
4244
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4245
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4246
|
-
* @param options The options parameters.
|
|
4247
|
-
*/
|
|
4248
|
-
listByElasticSan(resourceGroupName, elasticSanName, options) {
|
|
4249
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, options }, listByElasticSanOperationSpec);
|
|
4250
|
-
}
|
|
4251
|
-
}
|
|
4252
|
-
// Operation Specifications
|
|
4253
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4254
|
-
const listByElasticSanOperationSpec = {
|
|
4255
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/privateLinkResources",
|
|
4256
|
-
httpMethod: "GET",
|
|
4257
|
-
responses: {
|
|
4258
|
-
200: {
|
|
4259
|
-
bodyMapper: PrivateLinkResourceListResult,
|
|
4260
|
-
},
|
|
4261
|
-
default: {
|
|
4262
|
-
bodyMapper: ErrorResponse,
|
|
4263
|
-
},
|
|
4264
|
-
},
|
|
4265
|
-
queryParameters: [apiVersion],
|
|
4266
|
-
urlParameters: [
|
|
4267
|
-
$host,
|
|
4268
|
-
subscriptionId,
|
|
4269
|
-
resourceGroupName,
|
|
4270
|
-
elasticSanName,
|
|
4271
|
-
],
|
|
4272
|
-
headerParameters: [accept],
|
|
4273
|
-
serializer: serializer$1,
|
|
4274
|
-
};
|
|
4275
|
-
|
|
4276
|
-
/*
|
|
4277
|
-
* Copyright (c) Microsoft Corporation.
|
|
4278
|
-
* Licensed under the MIT License.
|
|
4279
|
-
*
|
|
4280
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4281
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4282
|
-
*/
|
|
4283
|
-
/// <reference lib="esnext.asynciterable" />
|
|
4284
|
-
/** Class containing VolumeSnapshots operations. */
|
|
4285
|
-
class VolumeSnapshotsImpl {
|
|
4286
|
-
/**
|
|
4287
|
-
* Initialize a new instance of the class VolumeSnapshots class.
|
|
4288
|
-
* @param client Reference to the service client
|
|
4289
|
-
*/
|
|
4290
|
-
constructor(client) {
|
|
4291
|
-
this.client = client;
|
|
4292
|
-
}
|
|
4293
|
-
/**
|
|
4294
|
-
* List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
4295
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4296
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4297
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
4298
|
-
* @param options The options parameters.
|
|
4299
|
-
*/
|
|
4300
|
-
listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
4301
|
-
const iter = this.listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options);
|
|
4302
|
-
return {
|
|
4303
|
-
next() {
|
|
4304
|
-
return iter.next();
|
|
4305
|
-
},
|
|
4306
|
-
[Symbol.asyncIterator]() {
|
|
4307
|
-
return this;
|
|
4308
|
-
},
|
|
4309
|
-
byPage: (settings) => {
|
|
4310
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4311
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
4312
|
-
}
|
|
4313
|
-
return this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings);
|
|
4314
|
-
},
|
|
4315
|
-
};
|
|
4316
|
-
}
|
|
4317
|
-
listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options, settings) {
|
|
4318
|
-
return tslib.__asyncGenerator(this, arguments, function* listByVolumeGroupPagingPage_1() {
|
|
4319
|
-
let result;
|
|
4320
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4321
|
-
if (!continuationToken) {
|
|
4322
|
-
result = yield tslib.__await(this._listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options));
|
|
4323
|
-
let page = result.value || [];
|
|
4324
|
-
continuationToken = result.nextLink;
|
|
4325
|
-
setContinuationToken(page, continuationToken);
|
|
4326
|
-
yield yield tslib.__await(page);
|
|
4327
|
-
}
|
|
4328
|
-
while (continuationToken) {
|
|
4329
|
-
result = yield tslib.__await(this._listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, continuationToken, options));
|
|
4330
|
-
continuationToken = result.nextLink;
|
|
4331
|
-
let page = result.value || [];
|
|
4332
|
-
setContinuationToken(page, continuationToken);
|
|
4333
|
-
yield yield tslib.__await(page);
|
|
4334
|
-
}
|
|
4335
|
-
});
|
|
4336
|
-
}
|
|
4337
|
-
listByVolumeGroupPagingAll(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
4338
|
-
return tslib.__asyncGenerator(this, arguments, function* listByVolumeGroupPagingAll_1() {
|
|
4339
|
-
var _a, e_1, _b, _c;
|
|
4340
|
-
try {
|
|
4341
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByVolumeGroupPagingPage(resourceGroupName, elasticSanName, volumeGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
4342
|
-
_c = _f.value;
|
|
4343
|
-
_d = false;
|
|
4344
|
-
const page = _c;
|
|
4345
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
4346
|
-
}
|
|
4347
|
-
}
|
|
4348
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4349
|
-
finally {
|
|
4350
|
-
try {
|
|
4351
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
4352
|
-
}
|
|
4353
|
-
finally { if (e_1) throw e_1.error; }
|
|
4354
|
-
}
|
|
4355
|
-
});
|
|
4356
|
-
}
|
|
4357
|
-
/**
|
|
4358
|
-
* List Snapshots in a VolumeGroup or List Snapshots by Volume (name) in a VolumeGroup using filter
|
|
4359
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4360
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4361
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
4362
|
-
* @param options The options parameters.
|
|
4363
|
-
*/
|
|
4364
|
-
_listByVolumeGroup(resourceGroupName, elasticSanName, volumeGroupName, options) {
|
|
4365
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, options }, listByVolumeGroupOperationSpec);
|
|
4366
|
-
}
|
|
4367
|
-
/**
|
|
4368
|
-
* Create a Volume Snapshot.
|
|
4369
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4370
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4371
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
4372
|
-
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4373
|
-
* @param parameters Snapshot object.
|
|
4374
|
-
* @param options The options parameters.
|
|
4375
|
-
*/
|
|
4376
|
-
beginCreate(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options) {
|
|
4377
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4378
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4379
|
-
return this.client.sendOperationRequest(args, spec);
|
|
4380
|
-
});
|
|
4381
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4382
|
-
var _a;
|
|
4383
|
-
let currentRawResponse = undefined;
|
|
4384
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4385
|
-
const callback = (rawResponse, flatResponse) => {
|
|
4386
|
-
currentRawResponse = rawResponse;
|
|
4387
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4388
|
-
};
|
|
4389
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4390
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
4391
|
-
return {
|
|
4392
|
-
flatResponse,
|
|
4393
|
-
rawResponse: {
|
|
4394
|
-
statusCode: currentRawResponse.status,
|
|
4395
|
-
body: currentRawResponse.parsedBody,
|
|
4396
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
4397
|
-
},
|
|
4398
|
-
};
|
|
4399
|
-
});
|
|
4400
|
-
const lro = createLroSpec({
|
|
4401
|
-
sendOperationFn,
|
|
4402
|
-
args: {
|
|
4403
|
-
resourceGroupName,
|
|
4404
|
-
elasticSanName,
|
|
4405
|
-
volumeGroupName,
|
|
4406
|
-
snapshotName,
|
|
4407
|
-
parameters,
|
|
4408
|
-
options,
|
|
4409
|
-
},
|
|
4410
|
-
spec: createOperationSpec,
|
|
4411
|
-
});
|
|
4412
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4413
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4414
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4415
|
-
resourceLocationConfig: "location",
|
|
4416
|
-
});
|
|
4417
|
-
yield poller.poll();
|
|
4418
|
-
return poller;
|
|
4419
|
-
});
|
|
4420
|
-
}
|
|
4421
|
-
/**
|
|
4422
|
-
* Create a Volume Snapshot.
|
|
4423
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4424
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4425
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
4426
|
-
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4427
|
-
* @param parameters Snapshot object.
|
|
4428
|
-
* @param options The options parameters.
|
|
4429
|
-
*/
|
|
4430
|
-
beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options) {
|
|
4431
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4432
|
-
const poller = yield this.beginCreate(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, parameters, options);
|
|
4433
|
-
return poller.pollUntilDone();
|
|
4434
|
-
});
|
|
4435
|
-
}
|
|
4436
|
-
/**
|
|
4437
|
-
* Delete a Volume Snapshot.
|
|
4438
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4439
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4440
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
4441
|
-
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4442
|
-
* @param options The options parameters.
|
|
4443
|
-
*/
|
|
4444
|
-
beginDelete(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options) {
|
|
4445
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4446
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4447
|
-
return this.client.sendOperationRequest(args, spec);
|
|
4448
|
-
});
|
|
4449
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4450
|
-
var _a;
|
|
4451
|
-
let currentRawResponse = undefined;
|
|
4452
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
4453
|
-
const callback = (rawResponse, flatResponse) => {
|
|
4454
|
-
currentRawResponse = rawResponse;
|
|
4455
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
4456
|
-
};
|
|
4457
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
4458
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
4459
|
-
return {
|
|
4460
|
-
flatResponse,
|
|
4461
|
-
rawResponse: {
|
|
4462
|
-
statusCode: currentRawResponse.status,
|
|
4463
|
-
body: currentRawResponse.parsedBody,
|
|
4464
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
4465
|
-
},
|
|
4466
|
-
};
|
|
4467
|
-
});
|
|
4468
|
-
const lro = createLroSpec({
|
|
4469
|
-
sendOperationFn,
|
|
4470
|
-
args: {
|
|
4471
|
-
resourceGroupName,
|
|
4472
|
-
elasticSanName,
|
|
4473
|
-
volumeGroupName,
|
|
4474
|
-
snapshotName,
|
|
4475
|
-
options,
|
|
4476
|
-
},
|
|
4477
|
-
spec: deleteOperationSpec,
|
|
4478
|
-
});
|
|
4479
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
4480
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
4481
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
4482
|
-
resourceLocationConfig: "location",
|
|
4483
|
-
});
|
|
4484
|
-
yield poller.poll();
|
|
4485
|
-
return poller;
|
|
4486
|
-
});
|
|
4487
|
-
}
|
|
4488
|
-
/**
|
|
4489
|
-
* Delete a Volume Snapshot.
|
|
4490
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4491
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4492
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
4493
|
-
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4494
|
-
* @param options The options parameters.
|
|
4495
|
-
*/
|
|
4496
|
-
beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options) {
|
|
4497
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4498
|
-
const poller = yield this.beginDelete(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options);
|
|
4499
|
-
return poller.pollUntilDone();
|
|
4500
|
-
});
|
|
4501
|
-
}
|
|
4502
|
-
/**
|
|
4503
|
-
* Get a Volume Snapshot.
|
|
4504
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4505
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4506
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
4507
|
-
* @param snapshotName The name of the volume snapshot within the given volume group.
|
|
4508
|
-
* @param options The options parameters.
|
|
4509
|
-
*/
|
|
4510
|
-
get(resourceGroupName, elasticSanName, volumeGroupName, snapshotName, options) {
|
|
4511
|
-
return this.client.sendOperationRequest({
|
|
4512
|
-
resourceGroupName,
|
|
4513
|
-
elasticSanName,
|
|
4514
|
-
volumeGroupName,
|
|
4515
|
-
snapshotName,
|
|
4516
|
-
options,
|
|
4517
|
-
}, getOperationSpec);
|
|
4518
|
-
}
|
|
4519
|
-
/**
|
|
4520
|
-
* ListByVolumeGroupNext
|
|
4521
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
4522
|
-
* @param elasticSanName The name of the ElasticSan.
|
|
4523
|
-
* @param volumeGroupName The name of the VolumeGroup.
|
|
4524
|
-
* @param nextLink The nextLink from the previous successful call to the ListByVolumeGroup method.
|
|
4525
|
-
* @param options The options parameters.
|
|
4526
|
-
*/
|
|
4527
|
-
_listByVolumeGroupNext(resourceGroupName, elasticSanName, volumeGroupName, nextLink, options) {
|
|
4528
|
-
return this.client.sendOperationRequest({ resourceGroupName, elasticSanName, volumeGroupName, nextLink, options }, listByVolumeGroupNextOperationSpec);
|
|
4529
|
-
}
|
|
4530
|
-
}
|
|
4531
|
-
// Operation Specifications
|
|
4532
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
4533
|
-
const listByVolumeGroupOperationSpec = {
|
|
4534
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots",
|
|
4535
|
-
httpMethod: "GET",
|
|
4536
|
-
responses: {
|
|
4537
|
-
200: {
|
|
4538
|
-
bodyMapper: SnapshotList,
|
|
4539
|
-
},
|
|
4540
|
-
default: {
|
|
4541
|
-
bodyMapper: ErrorResponse,
|
|
4542
|
-
},
|
|
4543
|
-
},
|
|
4544
|
-
queryParameters: [apiVersion, filter],
|
|
4545
|
-
urlParameters: [
|
|
4546
|
-
$host,
|
|
4547
|
-
subscriptionId,
|
|
4548
|
-
resourceGroupName,
|
|
4549
|
-
elasticSanName,
|
|
4550
|
-
volumeGroupName,
|
|
4551
|
-
],
|
|
4552
|
-
headerParameters: [accept],
|
|
4553
|
-
serializer,
|
|
4554
|
-
};
|
|
4555
|
-
const createOperationSpec = {
|
|
4556
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
4557
|
-
httpMethod: "PUT",
|
|
4558
|
-
responses: {
|
|
4559
|
-
200: {
|
|
4560
|
-
bodyMapper: Snapshot,
|
|
4561
|
-
},
|
|
4562
|
-
201: {
|
|
4563
|
-
bodyMapper: Snapshot,
|
|
4564
|
-
},
|
|
4565
|
-
202: {
|
|
4566
|
-
bodyMapper: Snapshot,
|
|
4567
|
-
},
|
|
4568
|
-
204: {
|
|
4569
|
-
bodyMapper: Snapshot,
|
|
4570
|
-
},
|
|
4571
|
-
default: {
|
|
4572
|
-
bodyMapper: ErrorResponse,
|
|
4573
|
-
},
|
|
4574
|
-
},
|
|
4575
|
-
requestBody: parameters7,
|
|
4576
|
-
queryParameters: [apiVersion],
|
|
4577
|
-
urlParameters: [
|
|
4578
|
-
$host,
|
|
4579
|
-
subscriptionId,
|
|
4580
|
-
resourceGroupName,
|
|
4581
|
-
elasticSanName,
|
|
4582
|
-
volumeGroupName,
|
|
4583
|
-
snapshotName,
|
|
4584
|
-
],
|
|
4585
|
-
headerParameters: [accept, contentType],
|
|
4586
|
-
mediaType: "json",
|
|
4587
|
-
serializer,
|
|
4588
|
-
};
|
|
4589
|
-
const deleteOperationSpec = {
|
|
4590
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
4591
|
-
httpMethod: "DELETE",
|
|
4592
|
-
responses: {
|
|
4593
|
-
200: {},
|
|
4594
|
-
201: {},
|
|
4595
|
-
202: {},
|
|
4596
|
-
204: {},
|
|
4597
|
-
default: {
|
|
4598
|
-
bodyMapper: ErrorResponse,
|
|
4599
|
-
},
|
|
4600
|
-
},
|
|
4601
|
-
queryParameters: [apiVersion],
|
|
4602
|
-
urlParameters: [
|
|
4603
|
-
$host,
|
|
4604
|
-
subscriptionId,
|
|
4605
|
-
resourceGroupName,
|
|
4606
|
-
elasticSanName,
|
|
4607
|
-
volumeGroupName,
|
|
4608
|
-
snapshotName,
|
|
4609
|
-
],
|
|
4610
|
-
headerParameters: [accept],
|
|
4611
|
-
serializer,
|
|
4612
|
-
};
|
|
4613
|
-
const getOperationSpec = {
|
|
4614
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
|
|
4615
|
-
httpMethod: "GET",
|
|
4616
|
-
responses: {
|
|
4617
|
-
200: {
|
|
4618
|
-
bodyMapper: Snapshot,
|
|
4619
|
-
},
|
|
4620
|
-
default: {
|
|
4621
|
-
bodyMapper: ErrorResponse,
|
|
4622
|
-
},
|
|
4623
|
-
},
|
|
4624
|
-
queryParameters: [apiVersion],
|
|
4625
|
-
urlParameters: [
|
|
4626
|
-
$host,
|
|
4627
|
-
subscriptionId,
|
|
4628
|
-
resourceGroupName,
|
|
4629
|
-
elasticSanName,
|
|
4630
|
-
volumeGroupName,
|
|
4631
|
-
snapshotName,
|
|
4632
|
-
],
|
|
4633
|
-
headerParameters: [accept],
|
|
4634
|
-
serializer,
|
|
4635
|
-
};
|
|
4636
|
-
const listByVolumeGroupNextOperationSpec = {
|
|
4637
|
-
path: "{nextLink}",
|
|
4638
|
-
httpMethod: "GET",
|
|
4639
|
-
responses: {
|
|
4640
|
-
200: {
|
|
4641
|
-
bodyMapper: SnapshotList,
|
|
4642
|
-
},
|
|
4643
|
-
default: {
|
|
4644
|
-
bodyMapper: ErrorResponse,
|
|
4645
|
-
},
|
|
4646
|
-
},
|
|
4647
|
-
urlParameters: [
|
|
4648
|
-
$host,
|
|
4649
|
-
subscriptionId,
|
|
4650
|
-
resourceGroupName,
|
|
4651
|
-
elasticSanName,
|
|
4652
|
-
nextLink,
|
|
4653
|
-
volumeGroupName,
|
|
4654
|
-
],
|
|
4655
|
-
headerParameters: [accept],
|
|
4656
|
-
serializer,
|
|
4657
|
-
};
|
|
4658
|
-
|
|
4659
|
-
/*
|
|
4660
|
-
* Copyright (c) Microsoft Corporation.
|
|
4661
|
-
* Licensed under the MIT License.
|
|
4662
|
-
*
|
|
4663
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
4664
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
4665
|
-
*/
|
|
4666
|
-
class ElasticSanManagement extends coreClient__namespace.ServiceClient {
|
|
4667
|
-
/**
|
|
4668
|
-
* Initializes a new instance of the ElasticSanManagement class.
|
|
4669
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
4670
|
-
* @param subscriptionId The ID of the target subscription.
|
|
4671
|
-
* @param options The parameter options
|
|
4672
|
-
*/
|
|
4673
|
-
constructor(credentials, subscriptionId, options) {
|
|
4674
|
-
var _a, _b, _c;
|
|
4675
|
-
if (credentials === undefined) {
|
|
4676
|
-
throw new Error("'credentials' cannot be null");
|
|
4677
|
-
}
|
|
4678
|
-
if (subscriptionId === undefined) {
|
|
4679
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
4680
|
-
}
|
|
4681
|
-
// Initializing default values for options
|
|
4682
|
-
if (!options) {
|
|
4683
|
-
options = {};
|
|
4684
|
-
}
|
|
4685
|
-
const defaults = {
|
|
4686
|
-
requestContentType: "application/json; charset=utf-8",
|
|
4687
|
-
credential: credentials,
|
|
4688
|
-
};
|
|
4689
|
-
const packageDetails = `azsdk-js-arm-elasticsan/1.2.0-beta.1`;
|
|
4690
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
4691
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
4692
|
-
: `${packageDetails}`;
|
|
4693
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
4694
|
-
userAgentPrefix,
|
|
4695
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
4696
|
-
super(optionsWithDefaults);
|
|
4697
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
4698
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
4699
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
4700
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
4701
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
4702
|
-
}
|
|
4703
|
-
if (!options ||
|
|
4704
|
-
!options.pipeline ||
|
|
4705
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
4706
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
4707
|
-
this.pipeline.removePolicy({
|
|
4708
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
|
|
4709
|
-
});
|
|
4710
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
4711
|
-
credential: credentials,
|
|
4712
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
4713
|
-
challengeCallbacks: {
|
|
4714
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
|
|
4715
|
-
},
|
|
4716
|
-
}));
|
|
4717
|
-
}
|
|
4718
|
-
// Parameter assignments
|
|
4719
|
-
this.subscriptionId = subscriptionId;
|
|
4720
|
-
// Assigning values to Constant parameters
|
|
4721
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
4722
|
-
this.apiVersion = options.apiVersion || "2024-06-01-preview";
|
|
4723
|
-
this.operations = new OperationsImpl(this);
|
|
4724
|
-
this.skus = new SkusImpl(this);
|
|
4725
|
-
this.elasticSans = new ElasticSansImpl(this);
|
|
4726
|
-
this.volumeGroups = new VolumeGroupsImpl(this);
|
|
4727
|
-
this.volumes = new VolumesImpl(this);
|
|
4728
|
-
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
4729
|
-
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
4730
|
-
this.volumeSnapshots = new VolumeSnapshotsImpl(this);
|
|
4731
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
4732
|
-
}
|
|
4733
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
4734
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
4735
|
-
if (!apiVersion) {
|
|
4736
|
-
return;
|
|
4737
|
-
}
|
|
4738
|
-
const apiVersionPolicy = {
|
|
4739
|
-
name: "CustomApiVersionPolicy",
|
|
4740
|
-
sendRequest(request, next) {
|
|
4741
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4742
|
-
const param = request.url.split("?");
|
|
4743
|
-
if (param.length > 1) {
|
|
4744
|
-
const newParams = param[1].split("&").map((item) => {
|
|
4745
|
-
if (item.indexOf("api-version") > -1) {
|
|
4746
|
-
return "api-version=" + apiVersion;
|
|
4747
|
-
}
|
|
4748
|
-
else {
|
|
4749
|
-
return item;
|
|
4750
|
-
}
|
|
4751
|
-
});
|
|
4752
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
4753
|
-
}
|
|
4754
|
-
return next(request);
|
|
4755
|
-
});
|
|
4756
|
-
},
|
|
4757
|
-
};
|
|
4758
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
4759
|
-
}
|
|
4760
|
-
}
|
|
4761
|
-
|
|
4762
|
-
exports.ElasticSanManagement = ElasticSanManagement;
|
|
4763
|
-
exports.getContinuationToken = getContinuationToken;
|
|
4764
|
-
//# sourceMappingURL=index.js.map
|