@azure/arm-digitaltwins 3.3.1-alpha.20250115.1 → 3.3.1-alpha.20250120.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist-esm/src → dist/browser}/azureDigitalTwinsManagementClient.d.ts +2 -2
- package/dist/browser/azureDigitalTwinsManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/azureDigitalTwinsManagementClient.js +15 -18
- package/dist/browser/azureDigitalTwinsManagementClient.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/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/digitalTwins.d.ts +3 -3
- package/dist/browser/operations/digitalTwins.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/digitalTwins.js +118 -130
- package/dist/browser/operations/digitalTwins.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/digitalTwinsEndpoint.d.ts +3 -3
- package/dist/browser/operations/digitalTwinsEndpoint.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/digitalTwinsEndpoint.js +83 -91
- package/dist/browser/operations/digitalTwinsEndpoint.js.map +1 -0
- package/dist/browser/operations/index.d.ts +7 -0
- package/dist/browser/operations/index.d.ts.map +1 -0
- package/dist/browser/operations/index.js +14 -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 +3 -3
- 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 +86 -95
- 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/timeSeriesDatabaseConnections.d.ts +3 -3
- package/dist/browser/operations/timeSeriesDatabaseConnections.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/timeSeriesDatabaseConnections.js +88 -96
- package/dist/browser/operations/timeSeriesDatabaseConnections.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/digitalTwins.d.ts +1 -1
- package/dist/browser/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/digitalTwins.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/digitalTwinsEndpoint.d.ts +1 -1
- package/dist/browser/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +7 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/index.js +14 -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/timeSeriesDatabaseConnections.d.ts +1 -1
- package/dist/browser/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/timeSeriesDatabaseConnections.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/azureDigitalTwinsManagementClient.d.ts +25 -0
- package/dist/commonjs/azureDigitalTwinsManagementClient.d.ts.map +1 -0
- package/dist/commonjs/azureDigitalTwinsManagementClient.js +107 -0
- package/dist/commonjs/azureDigitalTwinsManagementClient.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-digitaltwins.d.ts → dist/commonjs/models/index.d.ts} +1014 -1438
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +205 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +46 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1192 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +22 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +202 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/digitalTwins.d.ts +119 -0
- package/dist/commonjs/operations/digitalTwins.d.ts.map +1 -0
- package/dist/commonjs/operations/digitalTwins.js +584 -0
- package/dist/commonjs/operations/digitalTwins.js.map +1 -0
- package/dist/commonjs/operations/digitalTwinsEndpoint.d.ts +81 -0
- package/dist/commonjs/operations/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist/commonjs/operations/digitalTwinsEndpoint.js +366 -0
- package/dist/commonjs/operations/digitalTwinsEndpoint.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +7 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +17 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +137 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts +63 -0
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.js +272 -0
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts +28 -0
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.js +90 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
- package/dist/commonjs/operations/timeSeriesDatabaseConnections.d.ts +81 -0
- package/dist/commonjs/operations/timeSeriesDatabaseConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/timeSeriesDatabaseConnections.js +379 -0
- package/dist/commonjs/operations/timeSeriesDatabaseConnections.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/digitalTwins.d.ts +83 -0
- package/dist/commonjs/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/digitalTwins.js +10 -0
- package/dist/commonjs/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
- package/dist/commonjs/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/digitalTwinsEndpoint.js +10 -0
- package/dist/commonjs/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +7 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +17 -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 +55 -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 +20 -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/timeSeriesDatabaseConnections.d.ts +56 -0
- package/dist/commonjs/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/timeSeriesDatabaseConnections.js +10 -0
- package/dist/commonjs/operationsInterfaces/timeSeriesDatabaseConnections.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/dist/esm/azureDigitalTwinsManagementClient.d.ts +25 -0
- package/dist/esm/azureDigitalTwinsManagementClient.d.ts.map +1 -0
- package/dist/esm/azureDigitalTwinsManagementClient.js +102 -0
- package/dist/esm/azureDigitalTwinsManagementClient.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 +1014 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +202 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +46 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1189 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +22 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +199 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/digitalTwins.d.ts +119 -0
- package/dist/esm/operations/digitalTwins.d.ts.map +1 -0
- package/dist/esm/operations/digitalTwins.js +580 -0
- package/dist/esm/operations/digitalTwins.js.map +1 -0
- package/dist/esm/operations/digitalTwinsEndpoint.d.ts +81 -0
- package/dist/esm/operations/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist/esm/operations/digitalTwinsEndpoint.js +362 -0
- package/dist/esm/operations/digitalTwinsEndpoint.js.map +1 -0
- package/dist/esm/operations/index.d.ts +7 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +14 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +133 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts +63 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.js +267 -0
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operations/privateLinkResources.d.ts +28 -0
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operations/privateLinkResources.js +85 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -0
- package/dist/esm/operations/timeSeriesDatabaseConnections.d.ts +81 -0
- package/dist/esm/operations/timeSeriesDatabaseConnections.d.ts.map +1 -0
- package/dist/esm/operations/timeSeriesDatabaseConnections.js +375 -0
- package/dist/esm/operations/timeSeriesDatabaseConnections.js.map +1 -0
- package/dist/esm/operationsInterfaces/digitalTwins.d.ts +83 -0
- package/dist/esm/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/digitalTwins.js +9 -0
- package/dist/esm/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist/esm/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
- package/dist/esm/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/digitalTwinsEndpoint.js +9 -0
- package/dist/esm/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +7 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +14 -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 +55 -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 +20 -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/timeSeriesDatabaseConnections.d.ts +56 -0
- package/dist/esm/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/timeSeriesDatabaseConnections.js +9 -0
- package/dist/esm/operationsInterfaces/timeSeriesDatabaseConnections.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/azureDigitalTwinsManagementClient.d.ts +25 -0
- package/dist/react-native/azureDigitalTwinsManagementClient.d.ts.map +1 -0
- package/dist/react-native/azureDigitalTwinsManagementClient.js +102 -0
- package/dist/react-native/azureDigitalTwinsManagementClient.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 +1014 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +202 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +46 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1189 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +22 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +199 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/digitalTwins.d.ts +119 -0
- package/dist/react-native/operations/digitalTwins.d.ts.map +1 -0
- package/dist/react-native/operations/digitalTwins.js +580 -0
- package/dist/react-native/operations/digitalTwins.js.map +1 -0
- package/dist/react-native/operations/digitalTwinsEndpoint.d.ts +81 -0
- package/dist/react-native/operations/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist/react-native/operations/digitalTwinsEndpoint.js +362 -0
- package/dist/react-native/operations/digitalTwinsEndpoint.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +7 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +14 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +133 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts +63 -0
- package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/react-native/operations/privateEndpointConnections.js +267 -0
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
- package/dist/react-native/operations/privateLinkResources.d.ts +28 -0
- package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/react-native/operations/privateLinkResources.js +85 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -0
- package/dist/react-native/operations/timeSeriesDatabaseConnections.d.ts +81 -0
- package/dist/react-native/operations/timeSeriesDatabaseConnections.d.ts.map +1 -0
- package/dist/react-native/operations/timeSeriesDatabaseConnections.js +375 -0
- package/dist/react-native/operations/timeSeriesDatabaseConnections.js.map +1 -0
- package/dist/react-native/operationsInterfaces/digitalTwins.d.ts +83 -0
- package/dist/react-native/operationsInterfaces/digitalTwins.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/digitalTwins.js +9 -0
- package/dist/react-native/operationsInterfaces/digitalTwins.js.map +1 -0
- package/dist/react-native/operationsInterfaces/digitalTwinsEndpoint.d.ts +56 -0
- package/dist/react-native/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/digitalTwinsEndpoint.js +9 -0
- package/dist/react-native/operationsInterfaces/digitalTwinsEndpoint.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +7 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +14 -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 +55 -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 +20 -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/timeSeriesDatabaseConnections.d.ts +56 -0
- package/dist/react-native/operationsInterfaces/timeSeriesDatabaseConnections.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/timeSeriesDatabaseConnections.js +9 -0
- package/dist/react-native/operationsInterfaces/timeSeriesDatabaseConnections.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 +58 -28
- package/dist/index.js +0 -3619
- 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/digitalTwinsCheckNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.js +0 -42
- package/dist-esm/samples-dev/digitalTwinsCheckNameAvailabilitySample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.js +0 -91
- package/dist-esm/samples-dev/digitalTwinsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsDeleteSample.js +0 -58
- package/dist-esm/samples-dev/digitalTwinsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.js +0 -108
- package/dist-esm/samples-dev/digitalTwinsEndpointCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.js +0 -60
- package/dist-esm/samples-dev/digitalTwinsEndpointDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.js +0 -60
- package/dist-esm/samples-dev/digitalTwinsEndpointGetSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsEndpointListSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsEndpointListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsEndpointListSample.js +0 -90
- package/dist-esm/samples-dev/digitalTwinsEndpointListSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsGetSample.js +0 -77
- package/dist-esm/samples-dev/digitalTwinsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/digitalTwinsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsListSample.js +0 -53
- package/dist-esm/samples-dev/digitalTwinsListSample.js.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/digitalTwinsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/digitalTwinsUpdateSample.js +0 -86
- package/dist-esm/samples-dev/digitalTwinsUpdateSample.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 -53
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +0 -48
- package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.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 -40
- 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 -40
- 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 -39
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +0 -40
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js +0 -39
- package/dist-esm/samples-dev/privateLinkResourcesListSample.js.map +0 -1
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.js +0 -91
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.js +0 -40
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.js +0 -40
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.js +0 -55
- package/dist-esm/samples-dev/timeSeriesDatabaseConnectionsListSample.js.map +0 -1
- package/dist-esm/src/azureDigitalTwinsManagementClient.d.ts.map +0 -1
- package/dist-esm/src/azureDigitalTwinsManagementClient.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.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/digitalTwins.d.ts.map +0 -1
- package/dist-esm/src/operations/digitalTwins.js.map +0 -1
- package/dist-esm/src/operations/digitalTwinsEndpoint.d.ts.map +0 -1
- package/dist-esm/src/operations/digitalTwinsEndpoint.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -7
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -14
- 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/timeSeriesDatabaseConnections.d.ts.map +0 -1
- package/dist-esm/src/operations/timeSeriesDatabaseConnections.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/digitalTwins.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/digitalTwins.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/digitalTwinsEndpoint.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -7
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -14
- 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/timeSeriesDatabaseConnections.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/timeSeriesDatabaseConnections.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/digitaltwins_examples.spec.d.ts +0 -4
- package/dist-esm/test/digitaltwins_examples.spec.d.ts.map +0 -1
- package/dist-esm/test/digitaltwins_examples.spec.js +0 -112
- package/dist-esm/test/digitaltwins_examples.spec.js.map +0 -1
- package/src/azureDigitalTwinsManagementClient.ts +0 -166
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -1151
- package/src/models/mappers.ts +0 -1277
- package/src/models/parameters.ts +0 -231
- package/src/operations/digitalTwins.ts +0 -784
- package/src/operations/digitalTwinsEndpoint.ts +0 -515
- package/src/operations/index.ts +0 -14
- package/src/operations/operations.ts +0 -149
- package/src/operations/privateEndpointConnections.ts +0 -388
- package/src/operations/privateLinkResources.ts +0 -116
- package/src/operations/timeSeriesDatabaseConnections.ts +0 -529
- package/src/operationsInterfaces/digitalTwins.ts +0 -164
- package/src/operationsInterfaces/digitalTwinsEndpoint.ts +0 -115
- package/src/operationsInterfaces/index.ts +0 -14
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -108
- package/src/operationsInterfaces/privateLinkResources.ts +0 -42
- package/src/operationsInterfaces/timeSeriesDatabaseConnections.ts +0 -115
- 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}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/digitalTwins.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/digitalTwinsEndpoint.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/timeSeriesDatabaseConnections.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/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing Operations operations. */
|
|
15
|
+
export class OperationsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Operations class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Lists all of the available DigitalTwins service REST API operations.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
list(options) {
|
|
28
|
+
const iter = this.listPagingAll(options);
|
|
29
|
+
return {
|
|
30
|
+
next() {
|
|
31
|
+
return iter.next();
|
|
32
|
+
},
|
|
33
|
+
[Symbol.asyncIterator]() {
|
|
34
|
+
return this;
|
|
35
|
+
},
|
|
36
|
+
byPage: (settings) => {
|
|
37
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
|
+
}
|
|
40
|
+
return this.listPagingPage(options, settings);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
listPagingPage(options, settings) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
46
|
+
let result;
|
|
47
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
48
|
+
if (!continuationToken) {
|
|
49
|
+
result = yield __await(this._list(options));
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
setContinuationToken(page, continuationToken);
|
|
53
|
+
yield yield __await(page);
|
|
54
|
+
}
|
|
55
|
+
while (continuationToken) {
|
|
56
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
setContinuationToken(page, continuationToken);
|
|
60
|
+
yield yield __await(page);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
listPagingAll(options) {
|
|
65
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
66
|
+
var _a, e_1, _b, _c;
|
|
67
|
+
try {
|
|
68
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
+
_c = _f.value;
|
|
70
|
+
_d = false;
|
|
71
|
+
const page = _c;
|
|
72
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
+
finally {
|
|
77
|
+
try {
|
|
78
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
+
}
|
|
80
|
+
finally { if (e_1) throw e_1.error; }
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Lists all of the available DigitalTwins service REST API operations.
|
|
86
|
+
* @param options The options parameters.
|
|
87
|
+
*/
|
|
88
|
+
_list(options) {
|
|
89
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* ListNext
|
|
93
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
_listNext(nextLink, options) {
|
|
97
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
// Operation Specifications
|
|
101
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
102
|
+
const listOperationSpec = {
|
|
103
|
+
path: "/providers/Microsoft.DigitalTwins/operations",
|
|
104
|
+
httpMethod: "GET",
|
|
105
|
+
responses: {
|
|
106
|
+
200: {
|
|
107
|
+
bodyMapper: Mappers.OperationListResult
|
|
108
|
+
},
|
|
109
|
+
default: {
|
|
110
|
+
bodyMapper: Mappers.ErrorResponse
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
queryParameters: [Parameters.apiVersion],
|
|
114
|
+
urlParameters: [Parameters.$host],
|
|
115
|
+
headerParameters: [Parameters.accept],
|
|
116
|
+
serializer
|
|
117
|
+
};
|
|
118
|
+
const listNextOperationSpec = {
|
|
119
|
+
path: "{nextLink}",
|
|
120
|
+
httpMethod: "GET",
|
|
121
|
+
responses: {
|
|
122
|
+
200: {
|
|
123
|
+
bodyMapper: Mappers.OperationListResult
|
|
124
|
+
},
|
|
125
|
+
default: {
|
|
126
|
+
bodyMapper: Mappers.ErrorResponse
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
130
|
+
headerParameters: [Parameters.accept],
|
|
131
|
+
serializer
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,I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Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureDigitalTwinsManagementClient } from \"../azureDigitalTwinsManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: AzureDigitalTwinsManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available DigitalTwins service REST API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available DigitalTwins service REST API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.DigitalTwins/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PrivateEndpointConnections } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient.js";
|
|
3
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
4
|
+
import { PrivateEndpointConnectionsListOptionalParams, PrivateEndpointConnectionsListResponse, PrivateEndpointConnectionsGetOptionalParams, PrivateEndpointConnectionsGetResponse, PrivateEndpointConnectionsDeleteOptionalParams, PrivateEndpointConnection, PrivateEndpointConnectionsCreateOrUpdateOptionalParams, PrivateEndpointConnectionsCreateOrUpdateResponse } from "../models/index.js";
|
|
5
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
6
|
+
export declare class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureDigitalTwinsManagementClient);
|
|
13
|
+
/**
|
|
14
|
+
* List private endpoint connection properties.
|
|
15
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
16
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(resourceGroupName: string, resourceName: string, options?: PrivateEndpointConnectionsListOptionalParams): Promise<PrivateEndpointConnectionsListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Get private endpoint connection properties for the given private endpoint.
|
|
22
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
23
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
24
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
25
|
+
* @param options The options parameters.
|
|
26
|
+
*/
|
|
27
|
+
get(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* Delete private endpoint connection with the specified name.
|
|
30
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
31
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
32
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
beginDelete(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
36
|
+
/**
|
|
37
|
+
* Delete private endpoint connection with the specified name.
|
|
38
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
39
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
40
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
beginDeleteAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Update the status of a private endpoint connection with the given name.
|
|
46
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
47
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
48
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
49
|
+
* @param privateEndpointConnection The private endpoint connection with updated properties.
|
|
50
|
+
* @param options The options parameters.
|
|
51
|
+
*/
|
|
52
|
+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>, PrivateEndpointConnectionsCreateOrUpdateResponse>>;
|
|
53
|
+
/**
|
|
54
|
+
* Update the status of a private endpoint connection with the given name.
|
|
55
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
56
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
57
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
58
|
+
* @param privateEndpointConnection The private endpoint connection with updated properties.
|
|
59
|
+
* @param options The options parameters.
|
|
60
|
+
*/
|
|
61
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse>;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=privateEndpointConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAI9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,4CAA4C,EAC5C,sCAAsC,EACtC,2CAA2C,EAC3C,qCAAqC,EACrC,8CAA8C,EAC9C,yBAAyB,EACzB,sDAAsD,EACtD,gDAAgD,EACjD,MAAM,oBAAoB,CAAC;AAE5B,8DAA8D;AAC9D,qBAAa,8BACX,YAAW,0BAA0B;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;IAOlD;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2CAA2C,GACpD,OAAO,CAAC,qCAAqC,CAAC;IAYjD;;;;;;OAMG;IACG,WAAW,CACf,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IA0DxD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;;OAOG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,gDAAgD,CAAC,EAChE,gDAAgD,CACjD,CACF;IA8DD;;;;;;;OAOG;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,sDAAsD,GAC/D,OAAO,CAAC,gDAAgD,CAAC;CAU7D"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
12
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
13
|
+
/** Class containing PrivateEndpointConnections operations. */
|
|
14
|
+
export class PrivateEndpointConnectionsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List private endpoint connection properties.
|
|
24
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
25
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(resourceGroupName, resourceName, options) {
|
|
29
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get private endpoint connection properties for the given private endpoint.
|
|
33
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
34
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
35
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
get(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
|
39
|
+
return this.client.sendOperationRequest({
|
|
40
|
+
resourceGroupName,
|
|
41
|
+
resourceName,
|
|
42
|
+
privateEndpointConnectionName,
|
|
43
|
+
options
|
|
44
|
+
}, getOperationSpec);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Delete private endpoint connection with the specified name.
|
|
48
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
49
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
50
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
async beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
|
54
|
+
const directSendOperation = async (args, spec) => {
|
|
55
|
+
return this.client.sendOperationRequest(args, spec);
|
|
56
|
+
};
|
|
57
|
+
const sendOperationFn = async (args, spec) => {
|
|
58
|
+
var _a;
|
|
59
|
+
let currentRawResponse = undefined;
|
|
60
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
61
|
+
const callback = (rawResponse, flatResponse) => {
|
|
62
|
+
currentRawResponse = rawResponse;
|
|
63
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
64
|
+
};
|
|
65
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
66
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
67
|
+
return {
|
|
68
|
+
flatResponse,
|
|
69
|
+
rawResponse: {
|
|
70
|
+
statusCode: currentRawResponse.status,
|
|
71
|
+
body: currentRawResponse.parsedBody,
|
|
72
|
+
headers: currentRawResponse.headers.toJSON()
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
const lro = createLroSpec({
|
|
77
|
+
sendOperationFn,
|
|
78
|
+
args: {
|
|
79
|
+
resourceGroupName,
|
|
80
|
+
resourceName,
|
|
81
|
+
privateEndpointConnectionName,
|
|
82
|
+
options
|
|
83
|
+
},
|
|
84
|
+
spec: deleteOperationSpec
|
|
85
|
+
});
|
|
86
|
+
const poller = await createHttpPoller(lro, {
|
|
87
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
88
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
89
|
+
});
|
|
90
|
+
await poller.poll();
|
|
91
|
+
return poller;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Delete private endpoint connection with the specified name.
|
|
95
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
96
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
97
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
98
|
+
* @param options The options parameters.
|
|
99
|
+
*/
|
|
100
|
+
async beginDeleteAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
|
101
|
+
const poller = await this.beginDelete(resourceGroupName, resourceName, privateEndpointConnectionName, options);
|
|
102
|
+
return poller.pollUntilDone();
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Update the status of a private endpoint connection with the given name.
|
|
106
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
107
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
108
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
109
|
+
* @param privateEndpointConnection The private endpoint connection with updated properties.
|
|
110
|
+
* @param options The options parameters.
|
|
111
|
+
*/
|
|
112
|
+
async beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
113
|
+
const directSendOperation = async (args, spec) => {
|
|
114
|
+
return this.client.sendOperationRequest(args, spec);
|
|
115
|
+
};
|
|
116
|
+
const sendOperationFn = async (args, spec) => {
|
|
117
|
+
var _a;
|
|
118
|
+
let currentRawResponse = undefined;
|
|
119
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
120
|
+
const callback = (rawResponse, flatResponse) => {
|
|
121
|
+
currentRawResponse = rawResponse;
|
|
122
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
123
|
+
};
|
|
124
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
125
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
126
|
+
return {
|
|
127
|
+
flatResponse,
|
|
128
|
+
rawResponse: {
|
|
129
|
+
statusCode: currentRawResponse.status,
|
|
130
|
+
body: currentRawResponse.parsedBody,
|
|
131
|
+
headers: currentRawResponse.headers.toJSON()
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
const lro = createLroSpec({
|
|
136
|
+
sendOperationFn,
|
|
137
|
+
args: {
|
|
138
|
+
resourceGroupName,
|
|
139
|
+
resourceName,
|
|
140
|
+
privateEndpointConnectionName,
|
|
141
|
+
privateEndpointConnection,
|
|
142
|
+
options
|
|
143
|
+
},
|
|
144
|
+
spec: createOrUpdateOperationSpec
|
|
145
|
+
});
|
|
146
|
+
const poller = await createHttpPoller(lro, {
|
|
147
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
148
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
149
|
+
});
|
|
150
|
+
await poller.poll();
|
|
151
|
+
return poller;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Update the status of a private endpoint connection with the given name.
|
|
155
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
156
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
157
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
158
|
+
* @param privateEndpointConnection The private endpoint connection with updated properties.
|
|
159
|
+
* @param options The options parameters.
|
|
160
|
+
*/
|
|
161
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
162
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options);
|
|
163
|
+
return poller.pollUntilDone();
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
// Operation Specifications
|
|
167
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
168
|
+
const listOperationSpec = {
|
|
169
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections",
|
|
170
|
+
httpMethod: "GET",
|
|
171
|
+
responses: {
|
|
172
|
+
200: {
|
|
173
|
+
bodyMapper: Mappers.PrivateEndpointConnectionsResponse
|
|
174
|
+
},
|
|
175
|
+
default: {
|
|
176
|
+
bodyMapper: Mappers.ErrorResponse
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
queryParameters: [Parameters.apiVersion],
|
|
180
|
+
urlParameters: [
|
|
181
|
+
Parameters.$host,
|
|
182
|
+
Parameters.subscriptionId,
|
|
183
|
+
Parameters.resourceGroupName,
|
|
184
|
+
Parameters.resourceName
|
|
185
|
+
],
|
|
186
|
+
headerParameters: [Parameters.accept],
|
|
187
|
+
serializer
|
|
188
|
+
};
|
|
189
|
+
const getOperationSpec = {
|
|
190
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
191
|
+
httpMethod: "GET",
|
|
192
|
+
responses: {
|
|
193
|
+
200: {
|
|
194
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
195
|
+
},
|
|
196
|
+
default: {
|
|
197
|
+
bodyMapper: Mappers.ErrorResponse
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
queryParameters: [Parameters.apiVersion],
|
|
201
|
+
urlParameters: [
|
|
202
|
+
Parameters.$host,
|
|
203
|
+
Parameters.subscriptionId,
|
|
204
|
+
Parameters.resourceGroupName,
|
|
205
|
+
Parameters.resourceName,
|
|
206
|
+
Parameters.privateEndpointConnectionName
|
|
207
|
+
],
|
|
208
|
+
headerParameters: [Parameters.accept],
|
|
209
|
+
serializer
|
|
210
|
+
};
|
|
211
|
+
const deleteOperationSpec = {
|
|
212
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
213
|
+
httpMethod: "DELETE",
|
|
214
|
+
responses: {
|
|
215
|
+
200: {},
|
|
216
|
+
201: {},
|
|
217
|
+
202: {},
|
|
218
|
+
204: {},
|
|
219
|
+
default: {
|
|
220
|
+
bodyMapper: Mappers.ErrorResponse
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
queryParameters: [Parameters.apiVersion],
|
|
224
|
+
urlParameters: [
|
|
225
|
+
Parameters.$host,
|
|
226
|
+
Parameters.subscriptionId,
|
|
227
|
+
Parameters.resourceGroupName,
|
|
228
|
+
Parameters.resourceName,
|
|
229
|
+
Parameters.privateEndpointConnectionName
|
|
230
|
+
],
|
|
231
|
+
headerParameters: [Parameters.accept],
|
|
232
|
+
serializer
|
|
233
|
+
};
|
|
234
|
+
const createOrUpdateOperationSpec = {
|
|
235
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
236
|
+
httpMethod: "PUT",
|
|
237
|
+
responses: {
|
|
238
|
+
200: {
|
|
239
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
240
|
+
},
|
|
241
|
+
201: {
|
|
242
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
243
|
+
},
|
|
244
|
+
202: {
|
|
245
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
246
|
+
},
|
|
247
|
+
204: {
|
|
248
|
+
bodyMapper: Mappers.PrivateEndpointConnection
|
|
249
|
+
},
|
|
250
|
+
default: {
|
|
251
|
+
bodyMapper: Mappers.ErrorResponse
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
requestBody: Parameters.privateEndpointConnection,
|
|
255
|
+
queryParameters: [Parameters.apiVersion],
|
|
256
|
+
urlParameters: [
|
|
257
|
+
Parameters.$host,
|
|
258
|
+
Parameters.subscriptionId,
|
|
259
|
+
Parameters.resourceGroupName,
|
|
260
|
+
Parameters.resourceName,
|
|
261
|
+
Parameters.privateEndpointConnectionName
|
|
262
|
+
],
|
|
263
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
264
|
+
mediaType: "json",
|
|
265
|
+
serializer
|
|
266
|
+
};
|
|
267
|
+
//# sourceMappingURL=privateEndpointConnections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAY9C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,6BAAqC,EACrC,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,6BAA6B;YAC7B,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,WAAW,CACf,iBAAyB,EACzB,YAAoB,EACpB,6BAAqC,EACrC,OAAwD;QAExD,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACf,EAAE;Y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EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EACF,qMAAqM;IACvM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,yBAAyB;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PrivateEndpointConnections } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AzureDigitalTwinsManagementClient } from \"../azureDigitalTwinsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnectionsListOptionalParams,\n PrivateEndpointConnectionsListResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsDeleteOptionalParams,\n PrivateEndpointConnection,\n PrivateEndpointConnectionsCreateOrUpdateOptionalParams,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n} from \"../models/index.js\";\n\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections {\n private readonly client: AzureDigitalTwinsManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: AzureDigitalTwinsManagementClient) {\n this.client = client;\n }\n\n /**\n * List private endpoint connection properties.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: PrivateEndpointConnectionsListOptionalParams\n ): Promise<PrivateEndpointConnectionsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get private endpoint connection properties for the given private endpoint.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete private endpoint connection with the specified name.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete private endpoint connection with the specified name.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update the status of a private endpoint connection with the given name.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param privateEndpointConnection The private endpoint connection with updated properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>,\n PrivateEndpointConnectionsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n PrivateEndpointConnectionsCreateOrUpdateResponse,\n OperationState<PrivateEndpointConnectionsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the status of a private endpoint connection with the given name.\n * @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.\n * @param resourceName The name of the DigitalTwinsInstance.\n * @param privateEndpointConnectionName The name of the private endpoint connection.\n * @param privateEndpointConnection The private endpoint connection with updated properties.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams\n ): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n resourceName,\n privateEndpointConnectionName,\n privateEndpointConnection,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionsResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.privateEndpointConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PrivateLinkResources } from "../operationsInterfaces/index.js";
|
|
2
|
+
import { AzureDigitalTwinsManagementClient } from "../azureDigitalTwinsManagementClient.js";
|
|
3
|
+
import { PrivateLinkResourcesListOptionalParams, PrivateLinkResourcesListResponse, PrivateLinkResourcesGetOptionalParams, PrivateLinkResourcesGetResponse } from "../models/index.js";
|
|
4
|
+
/** Class containing PrivateLinkResources operations. */
|
|
5
|
+
export declare class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: AzureDigitalTwinsManagementClient);
|
|
12
|
+
/**
|
|
13
|
+
* List private link resources for given Digital Twin.
|
|
14
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
15
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
list(resourceGroupName: string, resourceName: string, options?: PrivateLinkResourcesListOptionalParams): Promise<PrivateLinkResourcesListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get the specified private link resource for the given Digital Twin.
|
|
21
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
22
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
23
|
+
* @param resourceId The name of the private link resource.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
get(resourceGroupName: string, resourceName: string, resourceId: string, options?: PrivateLinkResourcesGetOptionalParams): Promise<PrivateLinkResourcesGetResponse>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=privateLinkResources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAIxE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EACL,sCAAsC,EACtC,gCAAgC,EAChC,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,oBAAoB,CAAC;AAE5B,wDAAwD;AACxD,qBAAa,wBAAyB,YAAW,oBAAoB;IACnE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;;;OAKG;IACH,IAAI,CACF,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;OAMG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;CAM5C"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers.js";
|
|
10
|
+
import * as Parameters from "../models/parameters.js";
|
|
11
|
+
/** Class containing PrivateLinkResources operations. */
|
|
12
|
+
export class PrivateLinkResourcesImpl {
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class PrivateLinkResources class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* List private link resources for given Digital Twin.
|
|
22
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
23
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(resourceGroupName, resourceName, options) {
|
|
27
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get the specified private link resource for the given Digital Twin.
|
|
31
|
+
* @param resourceGroupName The name of the resource group that contains the DigitalTwinsInstance.
|
|
32
|
+
* @param resourceName The name of the DigitalTwinsInstance.
|
|
33
|
+
* @param resourceId The name of the private link resource.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
get(resourceGroupName, resourceName, resourceId, options) {
|
|
37
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, resourceId, options }, getOperationSpec);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
// Operation Specifications
|
|
41
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
42
|
+
const listOperationSpec = {
|
|
43
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources",
|
|
44
|
+
httpMethod: "GET",
|
|
45
|
+
responses: {
|
|
46
|
+
200: {
|
|
47
|
+
bodyMapper: Mappers.GroupIdInformationResponse
|
|
48
|
+
},
|
|
49
|
+
default: {
|
|
50
|
+
bodyMapper: Mappers.ErrorResponse
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
queryParameters: [Parameters.apiVersion],
|
|
54
|
+
urlParameters: [
|
|
55
|
+
Parameters.$host,
|
|
56
|
+
Parameters.subscriptionId,
|
|
57
|
+
Parameters.resourceGroupName,
|
|
58
|
+
Parameters.resourceName
|
|
59
|
+
],
|
|
60
|
+
headerParameters: [Parameters.accept],
|
|
61
|
+
serializer
|
|
62
|
+
};
|
|
63
|
+
const getOperationSpec = {
|
|
64
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalTwins/digitalTwinsInstances/{resourceName}/privateLinkResources/{resourceId}",
|
|
65
|
+
httpMethod: "GET",
|
|
66
|
+
responses: {
|
|
67
|
+
200: {
|
|
68
|
+
bodyMapper: Mappers.GroupIdInformation
|
|
69
|
+
},
|
|
70
|
+
default: {
|
|
71
|
+
bodyMapper: Mappers.ErrorResponse
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
queryParameters: [Parameters.apiVersion],
|
|
75
|
+
urlParameters: [
|
|
76
|
+
Parameters.$host,
|
|
77
|
+
Parameters.subscriptionId,
|
|
78
|
+
Parameters.resourceGroupName,
|
|
79
|
+
Parameters.resourceName,
|
|
80
|
+
Parameters.resourceId
|
|
81
|
+
],
|
|
82
|
+
headerParameters: [Parameters.accept],
|
|
83
|
+
serializer
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=privateLinkResources.js.map
|