@azure/arm-agrifood 1.0.0-beta.5 → 1.0.0-beta.6
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 +13 -3
- package/LICENSE +4 -4
- package/README.md +26 -18
- package/{dist-esm/src → dist/commonjs}/agriFoodMgmtClient.d.ts +2 -2
- package/dist/commonjs/agriFoodMgmtClient.d.ts.map +1 -0
- package/dist/commonjs/agriFoodMgmtClient.js +123 -0
- package/dist/commonjs/agriFoodMgmtClient.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.js +37 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/dist/commonjs/models/index.js +91 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.js +1059 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.js +274 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operations/extensions.d.ts +3 -3
- package/dist/commonjs/operations/extensions.d.ts.map +1 -0
- package/dist/commonjs/operations/extensions.js +278 -0
- package/dist/commonjs/operations/extensions.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operations/farmBeatsExtensions.d.ts +3 -3
- package/dist/commonjs/operations/farmBeatsExtensions.d.ts.map +1 -0
- package/dist/commonjs/operations/farmBeatsExtensions.js +160 -0
- package/dist/commonjs/operations/farmBeatsExtensions.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operations/farmBeatsModels.d.ts +3 -3
- package/dist/commonjs/operations/farmBeatsModels.d.ts.map +1 -0
- package/dist/commonjs/operations/farmBeatsModels.js +461 -0
- package/dist/commonjs/operations/farmBeatsModels.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +8 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +18 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operations/locations.d.ts +3 -3
- package/dist/commonjs/operations/locations.d.ts.map +1 -0
- package/dist/commonjs/operations/locations.js +55 -0
- package/dist/commonjs/operations/locations.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operations/operations.d.ts +3 -3
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +122 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operations/privateEndpointConnections.d.ts +3 -3
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.js +260 -0
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operations/privateLinkResources.d.ts +3 -3
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
- package/dist/commonjs/operations/privateLinkResources.js +129 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/extensions.d.ts +1 -1
- package/dist/commonjs/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/extensions.js +10 -0
- package/dist/commonjs/operationsInterfaces/extensions.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/farmBeatsExtensions.d.ts +1 -1
- package/dist/commonjs/operationsInterfaces/farmBeatsExtensions.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/farmBeatsExtensions.js +10 -0
- package/dist/commonjs/operationsInterfaces/farmBeatsExtensions.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/farmBeatsModels.d.ts +1 -1
- package/dist/commonjs/operationsInterfaces/farmBeatsModels.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/farmBeatsModels.js +10 -0
- package/dist/commonjs/operationsInterfaces/farmBeatsModels.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +18 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/locations.d.ts +1 -1
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/locations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/locations.js +10 -0
- package/dist/commonjs/operationsInterfaces/locations.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/commonjs}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
- 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-esm/src → dist/commonjs}/operationsInterfaces/privateLinkResources.d.ts +1 -1
- 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/package.json +3 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/agriFoodMgmtClient.d.ts +26 -0
- package/dist/esm/agriFoodMgmtClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/agriFoodMgmtClient.js +36 -24
- package/dist/esm/agriFoodMgmtClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/index.js +4 -4
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +16 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/lroImpl.js +13 -9
- package/dist/esm/lroImpl.js.map +1 -0
- package/{types/arm-agrifood.d.ts → dist/esm/models/index.d.ts} +829 -1167
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +35 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/models/mappers.js +81 -37
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +26 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/models/parameters.js +1 -1
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/extensions.d.ts +70 -0
- package/dist/esm/operations/extensions.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/operations/extensions.js +26 -43
- package/dist/esm/operations/extensions.js.map +1 -0
- package/dist/esm/operations/farmBeatsExtensions.d.ts +38 -0
- package/dist/esm/operations/farmBeatsExtensions.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/operations/farmBeatsExtensions.js +26 -43
- package/dist/esm/operations/farmBeatsExtensions.js.map +1 -0
- package/dist/esm/operations/farmBeatsModels.d.ts +100 -0
- package/dist/esm/operations/farmBeatsModels.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/operations/farmBeatsModels.js +87 -120
- package/dist/esm/operations/farmBeatsModels.js.map +1 -0
- package/dist/esm/operations/index.d.ts +8 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +15 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/locations.d.ts +19 -0
- package/dist/esm/operations/locations.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/operations/locations.js +3 -2
- package/dist/esm/operations/locations.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/src → dist/esm}/operations/operations.js +26 -43
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts +64 -0
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/operations/privateEndpointConnections.js +56 -72
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operations/privateLinkResources.d.ts +38 -0
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/operations/privateLinkResources.js +12 -29
- package/dist/esm/operations/privateLinkResources.js.map +1 -0
- package/dist/esm/operationsInterfaces/extensions.d.ts +45 -0
- package/dist/esm/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/extensions.js.map +1 -0
- package/dist/esm/operationsInterfaces/farmBeatsExtensions.d.ts +17 -0
- package/dist/esm/operationsInterfaces/farmBeatsExtensions.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/farmBeatsExtensions.js.map +1 -0
- package/dist/esm/operationsInterfaces/farmBeatsModels.d.ts +64 -0
- package/dist/esm/operationsInterfaces/farmBeatsModels.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/farmBeatsModels.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +8 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +15 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/locations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/locations.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.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +47 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +21 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/privateLinkResources.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/src → dist/esm}/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -0
- package/package.json +70 -73
- package/dist/index.js +0 -3112
- 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/extensionsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsCreateSample.js +0 -32
- package/dist-esm/samples-dev/extensionsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/extensionsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsDeleteSample.js +0 -32
- package/dist-esm/samples-dev/extensionsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/extensionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsGetSample.js +0 -32
- package/dist-esm/samples-dev/extensionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.js +0 -47
- package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.js.map +0 -1
- package/dist-esm/samples-dev/extensionsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/extensionsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/extensionsUpdateSample.js +0 -32
- package/dist-esm/samples-dev/extensionsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsExtensionsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsExtensionsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsExtensionsGetSample.js +0 -30
- package/dist-esm/samples-dev/farmBeatsExtensionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsExtensionsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsExtensionsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsExtensionsListSample.js +0 -45
- package/dist-esm/samples-dev/farmBeatsExtensionsListSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsModelsCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsCreateOrUpdateSample.js +0 -35
- package/dist-esm/samples-dev/farmBeatsModelsCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsModelsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsDeleteSample.js +0 -31
- package/dist-esm/samples-dev/farmBeatsModelsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsGetOperationResultSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsModelsGetOperationResultSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsGetOperationResultSample.js +0 -32
- package/dist-esm/samples-dev/farmBeatsModelsGetOperationResultSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsModelsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsGetSample.js +0 -31
- package/dist-esm/samples-dev/farmBeatsModelsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.js +0 -46
- package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.js +0 -45
- package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/farmBeatsModelsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/farmBeatsModelsUpdateSample.js +0 -57
- package/dist-esm/samples-dev/farmBeatsModelsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +0 -53
- package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.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 -45
- 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 -38
- 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 -32
- 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 -32
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js +0 -47
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.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 -32
- package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.d.ts +0 -2
- package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.js +0 -47
- package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.js.map +0 -1
- package/dist-esm/src/agriFoodMgmtClient.d.ts.map +0 -1
- package/dist-esm/src/agriFoodMgmtClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- 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/extensions.d.ts.map +0 -1
- package/dist-esm/src/operations/extensions.js.map +0 -1
- package/dist-esm/src/operations/farmBeatsExtensions.d.ts.map +0 -1
- package/dist-esm/src/operations/farmBeatsExtensions.js.map +0 -1
- package/dist-esm/src/operations/farmBeatsModels.d.ts.map +0 -1
- package/dist-esm/src/operations/farmBeatsModels.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -8
- package/dist-esm/src/operations/index.d.ts.map +0 -1
- package/dist-esm/src/operations/index.js +0 -15
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/locations.d.ts.map +0 -1
- package/dist-esm/src/operations/locations.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/operationsInterfaces/extensions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/extensions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/farmBeatsExtensions.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/farmBeatsExtensions.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/farmBeatsModels.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/farmBeatsModels.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -15
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/locations.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/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/agriFoodMgmtClient.ts +0 -168
- package/src/index.ts +0 -13
- package/src/lroImpl.ts +0 -34
- package/src/models/index.ts +0 -943
- package/src/models/mappers.ts +0 -1090
- package/src/models/parameters.ts +0 -305
- package/src/operations/extensions.ts +0 -389
- package/src/operations/farmBeatsExtensions.ts +0 -198
- package/src/operations/farmBeatsModels.ts +0 -624
- package/src/operations/index.ts +0 -15
- package/src/operations/locations.ts +0 -68
- package/src/operations/operations.ts +0 -150
- package/src/operations/privateEndpointConnections.ts +0 -369
- package/src/operations/privateLinkResources.ts +0 -189
- package/src/operationsInterfaces/extensions.ts +0 -88
- package/src/operationsInterfaces/farmBeatsExtensions.ts +0 -36
- package/src/operationsInterfaces/farmBeatsModels.ts +0 -125
- package/src/operationsInterfaces/index.ts +0 -15
- package/src/operationsInterfaces/locations.ts +0 -26
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/privateEndpointConnections.ts +0 -89
- package/src/operationsInterfaces/privateLinkResources.ts +0 -44
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/commonjs}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/commonjs}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/commonjs}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/commonjs}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/commonjs}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/commonjs}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/commonjs}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/commonjs}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/commonjs}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/commonjs}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/esm}/models/index.js +0 -0
- /package/{dist-esm/src → dist/esm}/operationsInterfaces/extensions.js +0 -0
- /package/{dist-esm/src → dist/esm}/operationsInterfaces/farmBeatsExtensions.js +0 -0
- /package/{dist-esm/src → dist/esm}/operationsInterfaces/farmBeatsModels.js +0 -0
- /package/{dist-esm/src → dist/esm}/operationsInterfaces/locations.js +0 -0
- /package/{dist-esm/src → dist/esm}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/esm}/operationsInterfaces/privateEndpointConnections.js +0 -0
- /package/{dist-esm/src → dist/esm}/operationsInterfaces/privateLinkResources.js +0 -0
- /package/review/{arm-agrifood.api.md → arm-agrifood-node.api.md} +0 -0
|
@@ -1,150 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
-
import { Operations } from "../operationsInterfaces";
|
|
12
|
-
import * as coreClient from "@azure/core-client";
|
|
13
|
-
import * as Mappers from "../models/mappers";
|
|
14
|
-
import * as Parameters from "../models/parameters";
|
|
15
|
-
import { AgriFoodMgmtClient } from "../agriFoodMgmtClient";
|
|
16
|
-
import {
|
|
17
|
-
Operation,
|
|
18
|
-
OperationsListNextOptionalParams,
|
|
19
|
-
OperationsListOptionalParams,
|
|
20
|
-
OperationsListResponse,
|
|
21
|
-
OperationsListNextResponse
|
|
22
|
-
} from "../models";
|
|
23
|
-
|
|
24
|
-
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class containing Operations operations. */
|
|
26
|
-
export class OperationsImpl implements Operations {
|
|
27
|
-
private readonly client: AgriFoodMgmtClient;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Initialize a new instance of the class Operations class.
|
|
31
|
-
* @param client Reference to the service client
|
|
32
|
-
*/
|
|
33
|
-
constructor(client: AgriFoodMgmtClient) {
|
|
34
|
-
this.client = client;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Lists the available operations of Microsoft.AgFoodPlatform resource provider.
|
|
39
|
-
* @param options The options parameters.
|
|
40
|
-
*/
|
|
41
|
-
public list(
|
|
42
|
-
options?: OperationsListOptionalParams
|
|
43
|
-
): PagedAsyncIterableIterator<Operation> {
|
|
44
|
-
const iter = this.listPagingAll(options);
|
|
45
|
-
return {
|
|
46
|
-
next() {
|
|
47
|
-
return iter.next();
|
|
48
|
-
},
|
|
49
|
-
[Symbol.asyncIterator]() {
|
|
50
|
-
return this;
|
|
51
|
-
},
|
|
52
|
-
byPage: (settings?: PageSettings) => {
|
|
53
|
-
if (settings?.maxPageSize) {
|
|
54
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
-
}
|
|
56
|
-
return this.listPagingPage(options, settings);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
private async *listPagingPage(
|
|
62
|
-
options?: OperationsListOptionalParams,
|
|
63
|
-
settings?: PageSettings
|
|
64
|
-
): AsyncIterableIterator<Operation[]> {
|
|
65
|
-
let result: OperationsListResponse;
|
|
66
|
-
let continuationToken = settings?.continuationToken;
|
|
67
|
-
if (!continuationToken) {
|
|
68
|
-
result = await this._list(options);
|
|
69
|
-
let page = result.value || [];
|
|
70
|
-
continuationToken = result.nextLink;
|
|
71
|
-
setContinuationToken(page, continuationToken);
|
|
72
|
-
yield page;
|
|
73
|
-
}
|
|
74
|
-
while (continuationToken) {
|
|
75
|
-
result = await this._listNext(continuationToken, options);
|
|
76
|
-
continuationToken = result.nextLink;
|
|
77
|
-
let page = result.value || [];
|
|
78
|
-
setContinuationToken(page, continuationToken);
|
|
79
|
-
yield page;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
private async *listPagingAll(
|
|
84
|
-
options?: OperationsListOptionalParams
|
|
85
|
-
): AsyncIterableIterator<Operation> {
|
|
86
|
-
for await (const page of this.listPagingPage(options)) {
|
|
87
|
-
yield* page;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Lists the available operations of Microsoft.AgFoodPlatform resource provider.
|
|
93
|
-
* @param options The options parameters.
|
|
94
|
-
*/
|
|
95
|
-
private _list(
|
|
96
|
-
options?: OperationsListOptionalParams
|
|
97
|
-
): Promise<OperationsListResponse> {
|
|
98
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* ListNext
|
|
103
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
104
|
-
* @param options The options parameters.
|
|
105
|
-
*/
|
|
106
|
-
private _listNext(
|
|
107
|
-
nextLink: string,
|
|
108
|
-
options?: OperationsListNextOptionalParams
|
|
109
|
-
): Promise<OperationsListNextResponse> {
|
|
110
|
-
return this.client.sendOperationRequest(
|
|
111
|
-
{ nextLink, options },
|
|
112
|
-
listNextOperationSpec
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
// Operation Specifications
|
|
117
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
118
|
-
|
|
119
|
-
const listOperationSpec: coreClient.OperationSpec = {
|
|
120
|
-
path: "/providers/Microsoft.AgFoodPlatform/operations",
|
|
121
|
-
httpMethod: "GET",
|
|
122
|
-
responses: {
|
|
123
|
-
200: {
|
|
124
|
-
bodyMapper: Mappers.OperationListResult
|
|
125
|
-
},
|
|
126
|
-
default: {
|
|
127
|
-
bodyMapper: Mappers.ErrorResponse
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
queryParameters: [Parameters.apiVersion],
|
|
131
|
-
urlParameters: [Parameters.$host],
|
|
132
|
-
headerParameters: [Parameters.accept],
|
|
133
|
-
serializer
|
|
134
|
-
};
|
|
135
|
-
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
136
|
-
path: "{nextLink}",
|
|
137
|
-
httpMethod: "GET",
|
|
138
|
-
responses: {
|
|
139
|
-
200: {
|
|
140
|
-
bodyMapper: Mappers.OperationListResult
|
|
141
|
-
},
|
|
142
|
-
default: {
|
|
143
|
-
bodyMapper: Mappers.ErrorResponse
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
queryParameters: [Parameters.apiVersion],
|
|
147
|
-
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
148
|
-
headerParameters: [Parameters.accept],
|
|
149
|
-
serializer
|
|
150
|
-
};
|
|
@@ -1,369 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { PrivateEndpointConnections } from "../operationsInterfaces";
|
|
11
|
-
import * as coreClient from "@azure/core-client";
|
|
12
|
-
import * as Mappers from "../models/mappers";
|
|
13
|
-
import * as Parameters from "../models/parameters";
|
|
14
|
-
import { AgriFoodMgmtClient } from "../agriFoodMgmtClient";
|
|
15
|
-
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
-
import { LroImpl } from "../lroImpl";
|
|
17
|
-
import {
|
|
18
|
-
PrivateEndpointConnection,
|
|
19
|
-
PrivateEndpointConnectionsListByResourceOptionalParams,
|
|
20
|
-
PrivateEndpointConnectionsListByResourceResponse,
|
|
21
|
-
PrivateEndpointConnectionsCreateOrUpdateOptionalParams,
|
|
22
|
-
PrivateEndpointConnectionsCreateOrUpdateResponse,
|
|
23
|
-
PrivateEndpointConnectionsGetOptionalParams,
|
|
24
|
-
PrivateEndpointConnectionsGetResponse,
|
|
25
|
-
PrivateEndpointConnectionsDeleteOptionalParams
|
|
26
|
-
} from "../models";
|
|
27
|
-
|
|
28
|
-
/// <reference lib="esnext.asynciterable" />
|
|
29
|
-
/** Class containing PrivateEndpointConnections operations. */
|
|
30
|
-
export class PrivateEndpointConnectionsImpl
|
|
31
|
-
implements PrivateEndpointConnections {
|
|
32
|
-
private readonly client: AgriFoodMgmtClient;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
36
|
-
* @param client Reference to the service client
|
|
37
|
-
*/
|
|
38
|
-
constructor(client: AgriFoodMgmtClient) {
|
|
39
|
-
this.client = client;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Get list of Private endpoint connections.
|
|
44
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
45
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
46
|
-
* @param options The options parameters.
|
|
47
|
-
*/
|
|
48
|
-
public listByResource(
|
|
49
|
-
resourceGroupName: string,
|
|
50
|
-
farmBeatsResourceName: string,
|
|
51
|
-
options?: PrivateEndpointConnectionsListByResourceOptionalParams
|
|
52
|
-
): PagedAsyncIterableIterator<PrivateEndpointConnection> {
|
|
53
|
-
const iter = this.listByResourcePagingAll(
|
|
54
|
-
resourceGroupName,
|
|
55
|
-
farmBeatsResourceName,
|
|
56
|
-
options
|
|
57
|
-
);
|
|
58
|
-
return {
|
|
59
|
-
next() {
|
|
60
|
-
return iter.next();
|
|
61
|
-
},
|
|
62
|
-
[Symbol.asyncIterator]() {
|
|
63
|
-
return this;
|
|
64
|
-
},
|
|
65
|
-
byPage: (settings?: PageSettings) => {
|
|
66
|
-
if (settings?.maxPageSize) {
|
|
67
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
-
}
|
|
69
|
-
return this.listByResourcePagingPage(
|
|
70
|
-
resourceGroupName,
|
|
71
|
-
farmBeatsResourceName,
|
|
72
|
-
options,
|
|
73
|
-
settings
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
private async *listByResourcePagingPage(
|
|
80
|
-
resourceGroupName: string,
|
|
81
|
-
farmBeatsResourceName: string,
|
|
82
|
-
options?: PrivateEndpointConnectionsListByResourceOptionalParams,
|
|
83
|
-
_settings?: PageSettings
|
|
84
|
-
): AsyncIterableIterator<PrivateEndpointConnection[]> {
|
|
85
|
-
let result: PrivateEndpointConnectionsListByResourceResponse;
|
|
86
|
-
result = await this._listByResource(
|
|
87
|
-
resourceGroupName,
|
|
88
|
-
farmBeatsResourceName,
|
|
89
|
-
options
|
|
90
|
-
);
|
|
91
|
-
yield result.value || [];
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private async *listByResourcePagingAll(
|
|
95
|
-
resourceGroupName: string,
|
|
96
|
-
farmBeatsResourceName: string,
|
|
97
|
-
options?: PrivateEndpointConnectionsListByResourceOptionalParams
|
|
98
|
-
): AsyncIterableIterator<PrivateEndpointConnection> {
|
|
99
|
-
for await (const page of this.listByResourcePagingPage(
|
|
100
|
-
resourceGroupName,
|
|
101
|
-
farmBeatsResourceName,
|
|
102
|
-
options
|
|
103
|
-
)) {
|
|
104
|
-
yield* page;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Approves or Rejects a Private endpoint connection request.
|
|
110
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
111
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
112
|
-
* @param privateEndpointConnectionName Private endpoint connection name.
|
|
113
|
-
* @param body Request object.
|
|
114
|
-
* @param options The options parameters.
|
|
115
|
-
*/
|
|
116
|
-
createOrUpdate(
|
|
117
|
-
resourceGroupName: string,
|
|
118
|
-
farmBeatsResourceName: string,
|
|
119
|
-
privateEndpointConnectionName: string,
|
|
120
|
-
body: PrivateEndpointConnection,
|
|
121
|
-
options?: PrivateEndpointConnectionsCreateOrUpdateOptionalParams
|
|
122
|
-
): Promise<PrivateEndpointConnectionsCreateOrUpdateResponse> {
|
|
123
|
-
return this.client.sendOperationRequest(
|
|
124
|
-
{
|
|
125
|
-
resourceGroupName,
|
|
126
|
-
farmBeatsResourceName,
|
|
127
|
-
privateEndpointConnectionName,
|
|
128
|
-
body,
|
|
129
|
-
options
|
|
130
|
-
},
|
|
131
|
-
createOrUpdateOperationSpec
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Get Private endpoint connection object.
|
|
137
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
138
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
139
|
-
* @param privateEndpointConnectionName Private endpoint connection name.
|
|
140
|
-
* @param options The options parameters.
|
|
141
|
-
*/
|
|
142
|
-
get(
|
|
143
|
-
resourceGroupName: string,
|
|
144
|
-
farmBeatsResourceName: string,
|
|
145
|
-
privateEndpointConnectionName: string,
|
|
146
|
-
options?: PrivateEndpointConnectionsGetOptionalParams
|
|
147
|
-
): Promise<PrivateEndpointConnectionsGetResponse> {
|
|
148
|
-
return this.client.sendOperationRequest(
|
|
149
|
-
{
|
|
150
|
-
resourceGroupName,
|
|
151
|
-
farmBeatsResourceName,
|
|
152
|
-
privateEndpointConnectionName,
|
|
153
|
-
options
|
|
154
|
-
},
|
|
155
|
-
getOperationSpec
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Delete Private endpoint connection request.
|
|
161
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
162
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
163
|
-
* @param privateEndpointConnectionName Private endpoint connection name.
|
|
164
|
-
* @param options The options parameters.
|
|
165
|
-
*/
|
|
166
|
-
async beginDelete(
|
|
167
|
-
resourceGroupName: string,
|
|
168
|
-
farmBeatsResourceName: string,
|
|
169
|
-
privateEndpointConnectionName: string,
|
|
170
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
171
|
-
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
172
|
-
const directSendOperation = async (
|
|
173
|
-
args: coreClient.OperationArguments,
|
|
174
|
-
spec: coreClient.OperationSpec
|
|
175
|
-
): Promise<void> => {
|
|
176
|
-
return this.client.sendOperationRequest(args, spec);
|
|
177
|
-
};
|
|
178
|
-
const sendOperation = async (
|
|
179
|
-
args: coreClient.OperationArguments,
|
|
180
|
-
spec: coreClient.OperationSpec
|
|
181
|
-
) => {
|
|
182
|
-
let currentRawResponse:
|
|
183
|
-
| coreClient.FullOperationResponse
|
|
184
|
-
| undefined = undefined;
|
|
185
|
-
const providedCallback = args.options?.onResponse;
|
|
186
|
-
const callback: coreClient.RawResponseCallback = (
|
|
187
|
-
rawResponse: coreClient.FullOperationResponse,
|
|
188
|
-
flatResponse: unknown
|
|
189
|
-
) => {
|
|
190
|
-
currentRawResponse = rawResponse;
|
|
191
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
192
|
-
};
|
|
193
|
-
const updatedArgs = {
|
|
194
|
-
...args,
|
|
195
|
-
options: {
|
|
196
|
-
...args.options,
|
|
197
|
-
onResponse: callback
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
201
|
-
return {
|
|
202
|
-
flatResponse,
|
|
203
|
-
rawResponse: {
|
|
204
|
-
statusCode: currentRawResponse!.status,
|
|
205
|
-
body: currentRawResponse!.parsedBody,
|
|
206
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
const lro = new LroImpl(
|
|
212
|
-
sendOperation,
|
|
213
|
-
{
|
|
214
|
-
resourceGroupName,
|
|
215
|
-
farmBeatsResourceName,
|
|
216
|
-
privateEndpointConnectionName,
|
|
217
|
-
options
|
|
218
|
-
},
|
|
219
|
-
deleteOperationSpec
|
|
220
|
-
);
|
|
221
|
-
const poller = new LroEngine(lro, {
|
|
222
|
-
resumeFrom: options?.resumeFrom,
|
|
223
|
-
intervalInMs: options?.updateIntervalInMs,
|
|
224
|
-
lroResourceLocationConfig: "location"
|
|
225
|
-
});
|
|
226
|
-
await poller.poll();
|
|
227
|
-
return poller;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Delete Private endpoint connection request.
|
|
232
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
233
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
234
|
-
* @param privateEndpointConnectionName Private endpoint connection name.
|
|
235
|
-
* @param options The options parameters.
|
|
236
|
-
*/
|
|
237
|
-
async beginDeleteAndWait(
|
|
238
|
-
resourceGroupName: string,
|
|
239
|
-
farmBeatsResourceName: string,
|
|
240
|
-
privateEndpointConnectionName: string,
|
|
241
|
-
options?: PrivateEndpointConnectionsDeleteOptionalParams
|
|
242
|
-
): Promise<void> {
|
|
243
|
-
const poller = await this.beginDelete(
|
|
244
|
-
resourceGroupName,
|
|
245
|
-
farmBeatsResourceName,
|
|
246
|
-
privateEndpointConnectionName,
|
|
247
|
-
options
|
|
248
|
-
);
|
|
249
|
-
return poller.pollUntilDone();
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Get list of Private endpoint connections.
|
|
254
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
255
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
256
|
-
* @param options The options parameters.
|
|
257
|
-
*/
|
|
258
|
-
private _listByResource(
|
|
259
|
-
resourceGroupName: string,
|
|
260
|
-
farmBeatsResourceName: string,
|
|
261
|
-
options?: PrivateEndpointConnectionsListByResourceOptionalParams
|
|
262
|
-
): Promise<PrivateEndpointConnectionsListByResourceResponse> {
|
|
263
|
-
return this.client.sendOperationRequest(
|
|
264
|
-
{ resourceGroupName, farmBeatsResourceName, options },
|
|
265
|
-
listByResourceOperationSpec
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
// Operation Specifications
|
|
270
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
271
|
-
|
|
272
|
-
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
273
|
-
path:
|
|
274
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
275
|
-
httpMethod: "PUT",
|
|
276
|
-
responses: {
|
|
277
|
-
200: {
|
|
278
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
279
|
-
},
|
|
280
|
-
default: {
|
|
281
|
-
bodyMapper: Mappers.ErrorResponse
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
requestBody: Parameters.body3,
|
|
285
|
-
queryParameters: [Parameters.apiVersion],
|
|
286
|
-
urlParameters: [
|
|
287
|
-
Parameters.$host,
|
|
288
|
-
Parameters.subscriptionId,
|
|
289
|
-
Parameters.resourceGroupName,
|
|
290
|
-
Parameters.farmBeatsResourceName,
|
|
291
|
-
Parameters.privateEndpointConnectionName
|
|
292
|
-
],
|
|
293
|
-
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
294
|
-
mediaType: "json",
|
|
295
|
-
serializer
|
|
296
|
-
};
|
|
297
|
-
const getOperationSpec: coreClient.OperationSpec = {
|
|
298
|
-
path:
|
|
299
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
300
|
-
httpMethod: "GET",
|
|
301
|
-
responses: {
|
|
302
|
-
200: {
|
|
303
|
-
bodyMapper: Mappers.PrivateEndpointConnection
|
|
304
|
-
},
|
|
305
|
-
404: {
|
|
306
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
307
|
-
isError: true
|
|
308
|
-
},
|
|
309
|
-
default: {
|
|
310
|
-
bodyMapper: Mappers.ErrorResponse
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
queryParameters: [Parameters.apiVersion],
|
|
314
|
-
urlParameters: [
|
|
315
|
-
Parameters.$host,
|
|
316
|
-
Parameters.subscriptionId,
|
|
317
|
-
Parameters.resourceGroupName,
|
|
318
|
-
Parameters.farmBeatsResourceName,
|
|
319
|
-
Parameters.privateEndpointConnectionName
|
|
320
|
-
],
|
|
321
|
-
headerParameters: [Parameters.accept],
|
|
322
|
-
serializer
|
|
323
|
-
};
|
|
324
|
-
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
325
|
-
path:
|
|
326
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
327
|
-
httpMethod: "DELETE",
|
|
328
|
-
responses: {
|
|
329
|
-
200: {},
|
|
330
|
-
201: {},
|
|
331
|
-
202: {},
|
|
332
|
-
204: {},
|
|
333
|
-
default: {
|
|
334
|
-
bodyMapper: Mappers.ErrorResponse
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
queryParameters: [Parameters.apiVersion],
|
|
338
|
-
urlParameters: [
|
|
339
|
-
Parameters.$host,
|
|
340
|
-
Parameters.subscriptionId,
|
|
341
|
-
Parameters.resourceGroupName,
|
|
342
|
-
Parameters.farmBeatsResourceName,
|
|
343
|
-
Parameters.privateEndpointConnectionName
|
|
344
|
-
],
|
|
345
|
-
headerParameters: [Parameters.accept],
|
|
346
|
-
serializer
|
|
347
|
-
};
|
|
348
|
-
const listByResourceOperationSpec: coreClient.OperationSpec = {
|
|
349
|
-
path:
|
|
350
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateEndpointConnections",
|
|
351
|
-
httpMethod: "GET",
|
|
352
|
-
responses: {
|
|
353
|
-
200: {
|
|
354
|
-
bodyMapper: Mappers.PrivateEndpointConnectionListResult
|
|
355
|
-
},
|
|
356
|
-
default: {
|
|
357
|
-
bodyMapper: Mappers.ErrorResponse
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
queryParameters: [Parameters.apiVersion],
|
|
361
|
-
urlParameters: [
|
|
362
|
-
Parameters.$host,
|
|
363
|
-
Parameters.subscriptionId,
|
|
364
|
-
Parameters.resourceGroupName,
|
|
365
|
-
Parameters.farmBeatsResourceName
|
|
366
|
-
],
|
|
367
|
-
headerParameters: [Parameters.accept],
|
|
368
|
-
serializer
|
|
369
|
-
};
|
|
@@ -1,189 +0,0 @@
|
|
|
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
|
-
|
|
9
|
-
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
-
import { PrivateLinkResources } from "../operationsInterfaces";
|
|
11
|
-
import * as coreClient from "@azure/core-client";
|
|
12
|
-
import * as Mappers from "../models/mappers";
|
|
13
|
-
import * as Parameters from "../models/parameters";
|
|
14
|
-
import { AgriFoodMgmtClient } from "../agriFoodMgmtClient";
|
|
15
|
-
import {
|
|
16
|
-
PrivateLinkResource,
|
|
17
|
-
PrivateLinkResourcesListByResourceOptionalParams,
|
|
18
|
-
PrivateLinkResourcesListByResourceResponse,
|
|
19
|
-
PrivateLinkResourcesGetOptionalParams,
|
|
20
|
-
PrivateLinkResourcesGetResponse
|
|
21
|
-
} from "../models";
|
|
22
|
-
|
|
23
|
-
/// <reference lib="esnext.asynciterable" />
|
|
24
|
-
/** Class containing PrivateLinkResources operations. */
|
|
25
|
-
export class PrivateLinkResourcesImpl implements PrivateLinkResources {
|
|
26
|
-
private readonly client: AgriFoodMgmtClient;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Initialize a new instance of the class PrivateLinkResources class.
|
|
30
|
-
* @param client Reference to the service client
|
|
31
|
-
*/
|
|
32
|
-
constructor(client: AgriFoodMgmtClient) {
|
|
33
|
-
this.client = client;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Get list of Private link resources.
|
|
38
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
40
|
-
* @param options The options parameters.
|
|
41
|
-
*/
|
|
42
|
-
public listByResource(
|
|
43
|
-
resourceGroupName: string,
|
|
44
|
-
farmBeatsResourceName: string,
|
|
45
|
-
options?: PrivateLinkResourcesListByResourceOptionalParams
|
|
46
|
-
): PagedAsyncIterableIterator<PrivateLinkResource> {
|
|
47
|
-
const iter = this.listByResourcePagingAll(
|
|
48
|
-
resourceGroupName,
|
|
49
|
-
farmBeatsResourceName,
|
|
50
|
-
options
|
|
51
|
-
);
|
|
52
|
-
return {
|
|
53
|
-
next() {
|
|
54
|
-
return iter.next();
|
|
55
|
-
},
|
|
56
|
-
[Symbol.asyncIterator]() {
|
|
57
|
-
return this;
|
|
58
|
-
},
|
|
59
|
-
byPage: (settings?: PageSettings) => {
|
|
60
|
-
if (settings?.maxPageSize) {
|
|
61
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
62
|
-
}
|
|
63
|
-
return this.listByResourcePagingPage(
|
|
64
|
-
resourceGroupName,
|
|
65
|
-
farmBeatsResourceName,
|
|
66
|
-
options,
|
|
67
|
-
settings
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
private async *listByResourcePagingPage(
|
|
74
|
-
resourceGroupName: string,
|
|
75
|
-
farmBeatsResourceName: string,
|
|
76
|
-
options?: PrivateLinkResourcesListByResourceOptionalParams,
|
|
77
|
-
_settings?: PageSettings
|
|
78
|
-
): AsyncIterableIterator<PrivateLinkResource[]> {
|
|
79
|
-
let result: PrivateLinkResourcesListByResourceResponse;
|
|
80
|
-
result = await this._listByResource(
|
|
81
|
-
resourceGroupName,
|
|
82
|
-
farmBeatsResourceName,
|
|
83
|
-
options
|
|
84
|
-
);
|
|
85
|
-
yield result.value || [];
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private async *listByResourcePagingAll(
|
|
89
|
-
resourceGroupName: string,
|
|
90
|
-
farmBeatsResourceName: string,
|
|
91
|
-
options?: PrivateLinkResourcesListByResourceOptionalParams
|
|
92
|
-
): AsyncIterableIterator<PrivateLinkResource> {
|
|
93
|
-
for await (const page of this.listByResourcePagingPage(
|
|
94
|
-
resourceGroupName,
|
|
95
|
-
farmBeatsResourceName,
|
|
96
|
-
options
|
|
97
|
-
)) {
|
|
98
|
-
yield* page;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Get list of Private link resources.
|
|
104
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
105
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
106
|
-
* @param options The options parameters.
|
|
107
|
-
*/
|
|
108
|
-
private _listByResource(
|
|
109
|
-
resourceGroupName: string,
|
|
110
|
-
farmBeatsResourceName: string,
|
|
111
|
-
options?: PrivateLinkResourcesListByResourceOptionalParams
|
|
112
|
-
): Promise<PrivateLinkResourcesListByResourceResponse> {
|
|
113
|
-
return this.client.sendOperationRequest(
|
|
114
|
-
{ resourceGroupName, farmBeatsResourceName, options },
|
|
115
|
-
listByResourceOperationSpec
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Get Private link resource object.
|
|
121
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
122
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
123
|
-
* @param subResourceName Sub resource name.
|
|
124
|
-
* @param options The options parameters.
|
|
125
|
-
*/
|
|
126
|
-
get(
|
|
127
|
-
resourceGroupName: string,
|
|
128
|
-
farmBeatsResourceName: string,
|
|
129
|
-
subResourceName: string,
|
|
130
|
-
options?: PrivateLinkResourcesGetOptionalParams
|
|
131
|
-
): Promise<PrivateLinkResourcesGetResponse> {
|
|
132
|
-
return this.client.sendOperationRequest(
|
|
133
|
-
{ resourceGroupName, farmBeatsResourceName, subResourceName, options },
|
|
134
|
-
getOperationSpec
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
// Operation Specifications
|
|
139
|
-
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
140
|
-
|
|
141
|
-
const listByResourceOperationSpec: coreClient.OperationSpec = {
|
|
142
|
-
path:
|
|
143
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateLinkResources",
|
|
144
|
-
httpMethod: "GET",
|
|
145
|
-
responses: {
|
|
146
|
-
200: {
|
|
147
|
-
bodyMapper: Mappers.PrivateLinkResourceListResult
|
|
148
|
-
},
|
|
149
|
-
default: {
|
|
150
|
-
bodyMapper: Mappers.ErrorResponse
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
queryParameters: [Parameters.apiVersion],
|
|
154
|
-
urlParameters: [
|
|
155
|
-
Parameters.$host,
|
|
156
|
-
Parameters.subscriptionId,
|
|
157
|
-
Parameters.resourceGroupName,
|
|
158
|
-
Parameters.farmBeatsResourceName
|
|
159
|
-
],
|
|
160
|
-
headerParameters: [Parameters.accept],
|
|
161
|
-
serializer
|
|
162
|
-
};
|
|
163
|
-
const getOperationSpec: coreClient.OperationSpec = {
|
|
164
|
-
path:
|
|
165
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateLinkResources/{subResourceName}",
|
|
166
|
-
httpMethod: "GET",
|
|
167
|
-
responses: {
|
|
168
|
-
200: {
|
|
169
|
-
bodyMapper: Mappers.PrivateLinkResource
|
|
170
|
-
},
|
|
171
|
-
404: {
|
|
172
|
-
bodyMapper: Mappers.ErrorResponse,
|
|
173
|
-
isError: true
|
|
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.farmBeatsResourceName,
|
|
185
|
-
Parameters.subResourceName
|
|
186
|
-
],
|
|
187
|
-
headerParameters: [Parameters.accept],
|
|
188
|
-
serializer
|
|
189
|
-
};
|