@azure/arm-agrifood 1.0.0-beta.4 → 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 +26 -10
- 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-esm/src → dist/commonjs}/models/index.d.ts +32 -32
- package/{dist-esm/src → dist/commonjs}/models/index.d.ts.map +1 -1
- 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 -41
- 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 -41
- 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 -116
- 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 -41
- 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 -70
- 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 -27
- 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 -78
- package/dist/index.js +0 -3099
- 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 -45
- 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 -43
- 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 -44
- 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 -43
- 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 -43
- 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 -45
- 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 -45
- 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/rollup.config.js +0 -122
- 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/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
package/dist/index.js
DELETED
|
@@ -1,3099 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n["default"] = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
-
|
|
31
|
-
/*
|
|
32
|
-
* Copyright (c) Microsoft Corporation.
|
|
33
|
-
* Licensed under the MIT License.
|
|
34
|
-
*
|
|
35
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
-
*/
|
|
38
|
-
const pageMap = new WeakMap();
|
|
39
|
-
/**
|
|
40
|
-
* Given a result page from a pageable operation, returns a
|
|
41
|
-
* continuation token that can be used to begin paging from
|
|
42
|
-
* that point later.
|
|
43
|
-
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
-
* @returns The continuation token that can be passed into byPage().
|
|
45
|
-
*/
|
|
46
|
-
function getContinuationToken(page) {
|
|
47
|
-
var _a;
|
|
48
|
-
if (typeof page !== "object" || page === null) {
|
|
49
|
-
return undefined;
|
|
50
|
-
}
|
|
51
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
-
}
|
|
53
|
-
function setContinuationToken(page, continuationToken) {
|
|
54
|
-
var _a;
|
|
55
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
-
pageInfo.continuationToken = continuationToken;
|
|
60
|
-
pageMap.set(page, pageInfo);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/*
|
|
64
|
-
* Copyright (c) Microsoft Corporation.
|
|
65
|
-
* Licensed under the MIT License.
|
|
66
|
-
*
|
|
67
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
68
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
69
|
-
*/
|
|
70
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
71
|
-
exports.KnownCreatedByType = void 0;
|
|
72
|
-
(function (KnownCreatedByType) {
|
|
73
|
-
/** User */
|
|
74
|
-
KnownCreatedByType["User"] = "User";
|
|
75
|
-
/** Application */
|
|
76
|
-
KnownCreatedByType["Application"] = "Application";
|
|
77
|
-
/** ManagedIdentity */
|
|
78
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
79
|
-
/** Key */
|
|
80
|
-
KnownCreatedByType["Key"] = "Key";
|
|
81
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
82
|
-
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
83
|
-
exports.KnownProvisioningState = void 0;
|
|
84
|
-
(function (KnownProvisioningState) {
|
|
85
|
-
/** Creating */
|
|
86
|
-
KnownProvisioningState["Creating"] = "Creating";
|
|
87
|
-
/** Updating */
|
|
88
|
-
KnownProvisioningState["Updating"] = "Updating";
|
|
89
|
-
/** Deleting */
|
|
90
|
-
KnownProvisioningState["Deleting"] = "Deleting";
|
|
91
|
-
/** Succeeded */
|
|
92
|
-
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
93
|
-
/** Failed */
|
|
94
|
-
KnownProvisioningState["Failed"] = "Failed";
|
|
95
|
-
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
96
|
-
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
97
|
-
exports.KnownPublicNetworkAccess = void 0;
|
|
98
|
-
(function (KnownPublicNetworkAccess) {
|
|
99
|
-
/** Enabled */
|
|
100
|
-
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
101
|
-
/** Hybrid */
|
|
102
|
-
KnownPublicNetworkAccess["Hybrid"] = "Hybrid";
|
|
103
|
-
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
104
|
-
/** Known values of {@link PrivateEndpointServiceConnectionStatus} that the service accepts. */
|
|
105
|
-
exports.KnownPrivateEndpointServiceConnectionStatus = void 0;
|
|
106
|
-
(function (KnownPrivateEndpointServiceConnectionStatus) {
|
|
107
|
-
/** Pending */
|
|
108
|
-
KnownPrivateEndpointServiceConnectionStatus["Pending"] = "Pending";
|
|
109
|
-
/** Approved */
|
|
110
|
-
KnownPrivateEndpointServiceConnectionStatus["Approved"] = "Approved";
|
|
111
|
-
/** Rejected */
|
|
112
|
-
KnownPrivateEndpointServiceConnectionStatus["Rejected"] = "Rejected";
|
|
113
|
-
})(exports.KnownPrivateEndpointServiceConnectionStatus || (exports.KnownPrivateEndpointServiceConnectionStatus = {}));
|
|
114
|
-
/** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
|
|
115
|
-
exports.KnownPrivateEndpointConnectionProvisioningState = void 0;
|
|
116
|
-
(function (KnownPrivateEndpointConnectionProvisioningState) {
|
|
117
|
-
/** Succeeded */
|
|
118
|
-
KnownPrivateEndpointConnectionProvisioningState["Succeeded"] = "Succeeded";
|
|
119
|
-
/** Creating */
|
|
120
|
-
KnownPrivateEndpointConnectionProvisioningState["Creating"] = "Creating";
|
|
121
|
-
/** Deleting */
|
|
122
|
-
KnownPrivateEndpointConnectionProvisioningState["Deleting"] = "Deleting";
|
|
123
|
-
/** Failed */
|
|
124
|
-
KnownPrivateEndpointConnectionProvisioningState["Failed"] = "Failed";
|
|
125
|
-
})(exports.KnownPrivateEndpointConnectionProvisioningState || (exports.KnownPrivateEndpointConnectionProvisioningState = {}));
|
|
126
|
-
/** Known values of {@link CheckNameAvailabilityReason} that the service accepts. */
|
|
127
|
-
exports.KnownCheckNameAvailabilityReason = void 0;
|
|
128
|
-
(function (KnownCheckNameAvailabilityReason) {
|
|
129
|
-
/** Invalid */
|
|
130
|
-
KnownCheckNameAvailabilityReason["Invalid"] = "Invalid";
|
|
131
|
-
/** AlreadyExists */
|
|
132
|
-
KnownCheckNameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
|
|
133
|
-
})(exports.KnownCheckNameAvailabilityReason || (exports.KnownCheckNameAvailabilityReason = {}));
|
|
134
|
-
/** Known values of {@link Origin} that the service accepts. */
|
|
135
|
-
exports.KnownOrigin = void 0;
|
|
136
|
-
(function (KnownOrigin) {
|
|
137
|
-
/** User */
|
|
138
|
-
KnownOrigin["User"] = "user";
|
|
139
|
-
/** System */
|
|
140
|
-
KnownOrigin["System"] = "system";
|
|
141
|
-
/** UserSystem */
|
|
142
|
-
KnownOrigin["UserSystem"] = "user,system";
|
|
143
|
-
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
144
|
-
/** Known values of {@link ActionType} that the service accepts. */
|
|
145
|
-
exports.KnownActionType = void 0;
|
|
146
|
-
(function (KnownActionType) {
|
|
147
|
-
/** Internal */
|
|
148
|
-
KnownActionType["Internal"] = "Internal";
|
|
149
|
-
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
150
|
-
|
|
151
|
-
/*
|
|
152
|
-
* Copyright (c) Microsoft Corporation.
|
|
153
|
-
* Licensed under the MIT License.
|
|
154
|
-
*
|
|
155
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
156
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
157
|
-
*/
|
|
158
|
-
const Resource = {
|
|
159
|
-
type: {
|
|
160
|
-
name: "Composite",
|
|
161
|
-
className: "Resource",
|
|
162
|
-
modelProperties: {
|
|
163
|
-
id: {
|
|
164
|
-
serializedName: "id",
|
|
165
|
-
readOnly: true,
|
|
166
|
-
type: {
|
|
167
|
-
name: "String"
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
name: {
|
|
171
|
-
serializedName: "name",
|
|
172
|
-
readOnly: true,
|
|
173
|
-
type: {
|
|
174
|
-
name: "String"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
type: {
|
|
178
|
-
serializedName: "type",
|
|
179
|
-
readOnly: true,
|
|
180
|
-
type: {
|
|
181
|
-
name: "String"
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
systemData: {
|
|
185
|
-
serializedName: "systemData",
|
|
186
|
-
type: {
|
|
187
|
-
name: "Composite",
|
|
188
|
-
className: "SystemData"
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
const SystemData = {
|
|
195
|
-
type: {
|
|
196
|
-
name: "Composite",
|
|
197
|
-
className: "SystemData",
|
|
198
|
-
modelProperties: {
|
|
199
|
-
createdBy: {
|
|
200
|
-
serializedName: "createdBy",
|
|
201
|
-
type: {
|
|
202
|
-
name: "String"
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
createdByType: {
|
|
206
|
-
serializedName: "createdByType",
|
|
207
|
-
type: {
|
|
208
|
-
name: "String"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
createdAt: {
|
|
212
|
-
serializedName: "createdAt",
|
|
213
|
-
type: {
|
|
214
|
-
name: "DateTime"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
lastModifiedBy: {
|
|
218
|
-
serializedName: "lastModifiedBy",
|
|
219
|
-
type: {
|
|
220
|
-
name: "String"
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
lastModifiedByType: {
|
|
224
|
-
serializedName: "lastModifiedByType",
|
|
225
|
-
type: {
|
|
226
|
-
name: "String"
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
lastModifiedAt: {
|
|
230
|
-
serializedName: "lastModifiedAt",
|
|
231
|
-
type: {
|
|
232
|
-
name: "DateTime"
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
const ErrorResponse = {
|
|
239
|
-
type: {
|
|
240
|
-
name: "Composite",
|
|
241
|
-
className: "ErrorResponse",
|
|
242
|
-
modelProperties: {
|
|
243
|
-
error: {
|
|
244
|
-
serializedName: "error",
|
|
245
|
-
type: {
|
|
246
|
-
name: "Composite",
|
|
247
|
-
className: "ErrorDetail"
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
const ErrorDetail = {
|
|
254
|
-
type: {
|
|
255
|
-
name: "Composite",
|
|
256
|
-
className: "ErrorDetail",
|
|
257
|
-
modelProperties: {
|
|
258
|
-
code: {
|
|
259
|
-
serializedName: "code",
|
|
260
|
-
readOnly: true,
|
|
261
|
-
type: {
|
|
262
|
-
name: "String"
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
message: {
|
|
266
|
-
serializedName: "message",
|
|
267
|
-
readOnly: true,
|
|
268
|
-
type: {
|
|
269
|
-
name: "String"
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
target: {
|
|
273
|
-
serializedName: "target",
|
|
274
|
-
readOnly: true,
|
|
275
|
-
type: {
|
|
276
|
-
name: "String"
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
details: {
|
|
280
|
-
serializedName: "details",
|
|
281
|
-
readOnly: true,
|
|
282
|
-
type: {
|
|
283
|
-
name: "Sequence",
|
|
284
|
-
element: {
|
|
285
|
-
type: {
|
|
286
|
-
name: "Composite",
|
|
287
|
-
className: "ErrorDetail"
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
additionalInfo: {
|
|
293
|
-
serializedName: "additionalInfo",
|
|
294
|
-
readOnly: true,
|
|
295
|
-
type: {
|
|
296
|
-
name: "Sequence",
|
|
297
|
-
element: {
|
|
298
|
-
type: {
|
|
299
|
-
name: "Composite",
|
|
300
|
-
className: "ErrorAdditionalInfo"
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
const ErrorAdditionalInfo = {
|
|
309
|
-
type: {
|
|
310
|
-
name: "Composite",
|
|
311
|
-
className: "ErrorAdditionalInfo",
|
|
312
|
-
modelProperties: {
|
|
313
|
-
type: {
|
|
314
|
-
serializedName: "type",
|
|
315
|
-
readOnly: true,
|
|
316
|
-
type: {
|
|
317
|
-
name: "String"
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
info: {
|
|
321
|
-
serializedName: "info",
|
|
322
|
-
readOnly: true,
|
|
323
|
-
type: {
|
|
324
|
-
name: "Dictionary",
|
|
325
|
-
value: { type: { name: "any" } }
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
const ExtensionListResponse = {
|
|
332
|
-
type: {
|
|
333
|
-
name: "Composite",
|
|
334
|
-
className: "ExtensionListResponse",
|
|
335
|
-
modelProperties: {
|
|
336
|
-
value: {
|
|
337
|
-
serializedName: "value",
|
|
338
|
-
type: {
|
|
339
|
-
name: "Sequence",
|
|
340
|
-
element: {
|
|
341
|
-
type: {
|
|
342
|
-
name: "Composite",
|
|
343
|
-
className: "Extension"
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
nextLink: {
|
|
349
|
-
serializedName: "nextLink",
|
|
350
|
-
readOnly: true,
|
|
351
|
-
type: {
|
|
352
|
-
name: "String"
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
};
|
|
358
|
-
const FarmBeatsExtensionListResponse = {
|
|
359
|
-
type: {
|
|
360
|
-
name: "Composite",
|
|
361
|
-
className: "FarmBeatsExtensionListResponse",
|
|
362
|
-
modelProperties: {
|
|
363
|
-
value: {
|
|
364
|
-
serializedName: "value",
|
|
365
|
-
type: {
|
|
366
|
-
name: "Sequence",
|
|
367
|
-
element: {
|
|
368
|
-
type: {
|
|
369
|
-
name: "Composite",
|
|
370
|
-
className: "FarmBeatsExtension"
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
nextLink: {
|
|
376
|
-
serializedName: "nextLink",
|
|
377
|
-
readOnly: true,
|
|
378
|
-
type: {
|
|
379
|
-
name: "String"
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
};
|
|
385
|
-
const DetailedInformation = {
|
|
386
|
-
type: {
|
|
387
|
-
name: "Composite",
|
|
388
|
-
className: "DetailedInformation",
|
|
389
|
-
modelProperties: {
|
|
390
|
-
apiName: {
|
|
391
|
-
serializedName: "apiName",
|
|
392
|
-
type: {
|
|
393
|
-
name: "String"
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
|
-
customParameters: {
|
|
397
|
-
serializedName: "customParameters",
|
|
398
|
-
type: {
|
|
399
|
-
name: "Sequence",
|
|
400
|
-
element: {
|
|
401
|
-
type: {
|
|
402
|
-
name: "String"
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
},
|
|
407
|
-
platformParameters: {
|
|
408
|
-
serializedName: "platformParameters",
|
|
409
|
-
type: {
|
|
410
|
-
name: "Sequence",
|
|
411
|
-
element: {
|
|
412
|
-
type: {
|
|
413
|
-
name: "String"
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
unitsSupported: {
|
|
419
|
-
serializedName: "unitsSupported",
|
|
420
|
-
type: {
|
|
421
|
-
name: "Composite",
|
|
422
|
-
className: "UnitSystemsInfo"
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
apiInputParameters: {
|
|
426
|
-
serializedName: "apiInputParameters",
|
|
427
|
-
type: {
|
|
428
|
-
name: "Sequence",
|
|
429
|
-
element: {
|
|
430
|
-
type: {
|
|
431
|
-
name: "String"
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
};
|
|
439
|
-
const UnitSystemsInfo = {
|
|
440
|
-
type: {
|
|
441
|
-
name: "Composite",
|
|
442
|
-
className: "UnitSystemsInfo",
|
|
443
|
-
modelProperties: {
|
|
444
|
-
key: {
|
|
445
|
-
constraints: {
|
|
446
|
-
MaxLength: 100,
|
|
447
|
-
MinLength: 2
|
|
448
|
-
},
|
|
449
|
-
serializedName: "key",
|
|
450
|
-
required: true,
|
|
451
|
-
type: {
|
|
452
|
-
name: "String"
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
values: {
|
|
456
|
-
serializedName: "values",
|
|
457
|
-
required: true,
|
|
458
|
-
type: {
|
|
459
|
-
name: "Sequence",
|
|
460
|
-
element: {
|
|
461
|
-
type: {
|
|
462
|
-
name: "String"
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
const Identity = {
|
|
471
|
-
type: {
|
|
472
|
-
name: "Composite",
|
|
473
|
-
className: "Identity",
|
|
474
|
-
modelProperties: {
|
|
475
|
-
principalId: {
|
|
476
|
-
serializedName: "principalId",
|
|
477
|
-
readOnly: true,
|
|
478
|
-
type: {
|
|
479
|
-
name: "String"
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
tenantId: {
|
|
483
|
-
serializedName: "tenantId",
|
|
484
|
-
readOnly: true,
|
|
485
|
-
type: {
|
|
486
|
-
name: "String"
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
type: {
|
|
490
|
-
defaultValue: "SystemAssigned",
|
|
491
|
-
isConstant: true,
|
|
492
|
-
serializedName: "type",
|
|
493
|
-
type: {
|
|
494
|
-
name: "String"
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
const SensorIntegration = {
|
|
501
|
-
type: {
|
|
502
|
-
name: "Composite",
|
|
503
|
-
className: "SensorIntegration",
|
|
504
|
-
modelProperties: {
|
|
505
|
-
enabled: {
|
|
506
|
-
serializedName: "enabled",
|
|
507
|
-
type: {
|
|
508
|
-
name: "String"
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
provisioningState: {
|
|
512
|
-
serializedName: "provisioningState",
|
|
513
|
-
readOnly: true,
|
|
514
|
-
type: {
|
|
515
|
-
name: "String"
|
|
516
|
-
}
|
|
517
|
-
},
|
|
518
|
-
provisioningInfo: {
|
|
519
|
-
serializedName: "provisioningInfo",
|
|
520
|
-
type: {
|
|
521
|
-
name: "Composite",
|
|
522
|
-
className: "ErrorResponse"
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
const PrivateEndpoint = {
|
|
529
|
-
type: {
|
|
530
|
-
name: "Composite",
|
|
531
|
-
className: "PrivateEndpoint",
|
|
532
|
-
modelProperties: {
|
|
533
|
-
id: {
|
|
534
|
-
serializedName: "id",
|
|
535
|
-
readOnly: true,
|
|
536
|
-
type: {
|
|
537
|
-
name: "String"
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
const PrivateLinkServiceConnectionState = {
|
|
544
|
-
type: {
|
|
545
|
-
name: "Composite",
|
|
546
|
-
className: "PrivateLinkServiceConnectionState",
|
|
547
|
-
modelProperties: {
|
|
548
|
-
status: {
|
|
549
|
-
serializedName: "status",
|
|
550
|
-
type: {
|
|
551
|
-
name: "String"
|
|
552
|
-
}
|
|
553
|
-
},
|
|
554
|
-
description: {
|
|
555
|
-
serializedName: "description",
|
|
556
|
-
type: {
|
|
557
|
-
name: "String"
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
actionsRequired: {
|
|
561
|
-
serializedName: "actionsRequired",
|
|
562
|
-
type: {
|
|
563
|
-
name: "String"
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
};
|
|
569
|
-
const FarmBeatsUpdateRequestModel = {
|
|
570
|
-
type: {
|
|
571
|
-
name: "Composite",
|
|
572
|
-
className: "FarmBeatsUpdateRequestModel",
|
|
573
|
-
modelProperties: {
|
|
574
|
-
location: {
|
|
575
|
-
serializedName: "location",
|
|
576
|
-
type: {
|
|
577
|
-
name: "String"
|
|
578
|
-
}
|
|
579
|
-
},
|
|
580
|
-
identity: {
|
|
581
|
-
serializedName: "identity",
|
|
582
|
-
type: {
|
|
583
|
-
name: "Composite",
|
|
584
|
-
className: "Identity"
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
properties: {
|
|
588
|
-
serializedName: "properties",
|
|
589
|
-
type: {
|
|
590
|
-
name: "Composite",
|
|
591
|
-
className: "FarmBeatsUpdateProperties"
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
tags: {
|
|
595
|
-
serializedName: "tags",
|
|
596
|
-
type: {
|
|
597
|
-
name: "Dictionary",
|
|
598
|
-
value: { type: { name: "String" } }
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
|
-
const FarmBeatsUpdateProperties = {
|
|
605
|
-
type: {
|
|
606
|
-
name: "Composite",
|
|
607
|
-
className: "FarmBeatsUpdateProperties",
|
|
608
|
-
modelProperties: {
|
|
609
|
-
sensorIntegration: {
|
|
610
|
-
serializedName: "sensorIntegration",
|
|
611
|
-
type: {
|
|
612
|
-
name: "Composite",
|
|
613
|
-
className: "SensorIntegration"
|
|
614
|
-
}
|
|
615
|
-
},
|
|
616
|
-
publicNetworkAccess: {
|
|
617
|
-
serializedName: "publicNetworkAccess",
|
|
618
|
-
type: {
|
|
619
|
-
name: "String"
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
};
|
|
625
|
-
const FarmBeatsListResponse = {
|
|
626
|
-
type: {
|
|
627
|
-
name: "Composite",
|
|
628
|
-
className: "FarmBeatsListResponse",
|
|
629
|
-
modelProperties: {
|
|
630
|
-
value: {
|
|
631
|
-
serializedName: "value",
|
|
632
|
-
type: {
|
|
633
|
-
name: "Sequence",
|
|
634
|
-
element: {
|
|
635
|
-
type: {
|
|
636
|
-
name: "Composite",
|
|
637
|
-
className: "FarmBeats"
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
},
|
|
642
|
-
nextLink: {
|
|
643
|
-
serializedName: "nextLink",
|
|
644
|
-
readOnly: true,
|
|
645
|
-
type: {
|
|
646
|
-
name: "String"
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
};
|
|
652
|
-
const ArmAsyncOperation = {
|
|
653
|
-
type: {
|
|
654
|
-
name: "Composite",
|
|
655
|
-
className: "ArmAsyncOperation",
|
|
656
|
-
modelProperties: {
|
|
657
|
-
status: {
|
|
658
|
-
serializedName: "status",
|
|
659
|
-
type: {
|
|
660
|
-
name: "String"
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
const CheckNameAvailabilityRequest = {
|
|
667
|
-
type: {
|
|
668
|
-
name: "Composite",
|
|
669
|
-
className: "CheckNameAvailabilityRequest",
|
|
670
|
-
modelProperties: {
|
|
671
|
-
name: {
|
|
672
|
-
serializedName: "name",
|
|
673
|
-
type: {
|
|
674
|
-
name: "String"
|
|
675
|
-
}
|
|
676
|
-
},
|
|
677
|
-
type: {
|
|
678
|
-
serializedName: "type",
|
|
679
|
-
type: {
|
|
680
|
-
name: "String"
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
const CheckNameAvailabilityResponse = {
|
|
687
|
-
type: {
|
|
688
|
-
name: "Composite",
|
|
689
|
-
className: "CheckNameAvailabilityResponse",
|
|
690
|
-
modelProperties: {
|
|
691
|
-
nameAvailable: {
|
|
692
|
-
serializedName: "nameAvailable",
|
|
693
|
-
type: {
|
|
694
|
-
name: "Boolean"
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
reason: {
|
|
698
|
-
serializedName: "reason",
|
|
699
|
-
type: {
|
|
700
|
-
name: "String"
|
|
701
|
-
}
|
|
702
|
-
},
|
|
703
|
-
message: {
|
|
704
|
-
serializedName: "message",
|
|
705
|
-
type: {
|
|
706
|
-
name: "String"
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
}
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
const OperationListResult = {
|
|
713
|
-
type: {
|
|
714
|
-
name: "Composite",
|
|
715
|
-
className: "OperationListResult",
|
|
716
|
-
modelProperties: {
|
|
717
|
-
value: {
|
|
718
|
-
serializedName: "value",
|
|
719
|
-
readOnly: true,
|
|
720
|
-
type: {
|
|
721
|
-
name: "Sequence",
|
|
722
|
-
element: {
|
|
723
|
-
type: {
|
|
724
|
-
name: "Composite",
|
|
725
|
-
className: "Operation"
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
},
|
|
730
|
-
nextLink: {
|
|
731
|
-
serializedName: "nextLink",
|
|
732
|
-
readOnly: true,
|
|
733
|
-
type: {
|
|
734
|
-
name: "String"
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
const Operation = {
|
|
741
|
-
type: {
|
|
742
|
-
name: "Composite",
|
|
743
|
-
className: "Operation",
|
|
744
|
-
modelProperties: {
|
|
745
|
-
name: {
|
|
746
|
-
serializedName: "name",
|
|
747
|
-
readOnly: true,
|
|
748
|
-
type: {
|
|
749
|
-
name: "String"
|
|
750
|
-
}
|
|
751
|
-
},
|
|
752
|
-
isDataAction: {
|
|
753
|
-
serializedName: "isDataAction",
|
|
754
|
-
readOnly: true,
|
|
755
|
-
type: {
|
|
756
|
-
name: "Boolean"
|
|
757
|
-
}
|
|
758
|
-
},
|
|
759
|
-
display: {
|
|
760
|
-
serializedName: "display",
|
|
761
|
-
type: {
|
|
762
|
-
name: "Composite",
|
|
763
|
-
className: "OperationDisplay"
|
|
764
|
-
}
|
|
765
|
-
},
|
|
766
|
-
origin: {
|
|
767
|
-
serializedName: "origin",
|
|
768
|
-
readOnly: true,
|
|
769
|
-
type: {
|
|
770
|
-
name: "String"
|
|
771
|
-
}
|
|
772
|
-
},
|
|
773
|
-
actionType: {
|
|
774
|
-
serializedName: "actionType",
|
|
775
|
-
readOnly: true,
|
|
776
|
-
type: {
|
|
777
|
-
name: "String"
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
};
|
|
783
|
-
const OperationDisplay = {
|
|
784
|
-
type: {
|
|
785
|
-
name: "Composite",
|
|
786
|
-
className: "OperationDisplay",
|
|
787
|
-
modelProperties: {
|
|
788
|
-
provider: {
|
|
789
|
-
serializedName: "provider",
|
|
790
|
-
readOnly: true,
|
|
791
|
-
type: {
|
|
792
|
-
name: "String"
|
|
793
|
-
}
|
|
794
|
-
},
|
|
795
|
-
resource: {
|
|
796
|
-
serializedName: "resource",
|
|
797
|
-
readOnly: true,
|
|
798
|
-
type: {
|
|
799
|
-
name: "String"
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
operation: {
|
|
803
|
-
serializedName: "operation",
|
|
804
|
-
readOnly: true,
|
|
805
|
-
type: {
|
|
806
|
-
name: "String"
|
|
807
|
-
}
|
|
808
|
-
},
|
|
809
|
-
description: {
|
|
810
|
-
serializedName: "description",
|
|
811
|
-
readOnly: true,
|
|
812
|
-
type: {
|
|
813
|
-
name: "String"
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
};
|
|
819
|
-
const PrivateEndpointConnectionListResult = {
|
|
820
|
-
type: {
|
|
821
|
-
name: "Composite",
|
|
822
|
-
className: "PrivateEndpointConnectionListResult",
|
|
823
|
-
modelProperties: {
|
|
824
|
-
value: {
|
|
825
|
-
serializedName: "value",
|
|
826
|
-
type: {
|
|
827
|
-
name: "Sequence",
|
|
828
|
-
element: {
|
|
829
|
-
type: {
|
|
830
|
-
name: "Composite",
|
|
831
|
-
className: "PrivateEndpointConnection"
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
const PrivateLinkResourceListResult = {
|
|
840
|
-
type: {
|
|
841
|
-
name: "Composite",
|
|
842
|
-
className: "PrivateLinkResourceListResult",
|
|
843
|
-
modelProperties: {
|
|
844
|
-
value: {
|
|
845
|
-
serializedName: "value",
|
|
846
|
-
type: {
|
|
847
|
-
name: "Sequence",
|
|
848
|
-
element: {
|
|
849
|
-
type: {
|
|
850
|
-
name: "Composite",
|
|
851
|
-
className: "PrivateLinkResource"
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
};
|
|
859
|
-
const ProxyResource = {
|
|
860
|
-
type: {
|
|
861
|
-
name: "Composite",
|
|
862
|
-
className: "ProxyResource",
|
|
863
|
-
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
864
|
-
}
|
|
865
|
-
};
|
|
866
|
-
const PrivateEndpointConnection = {
|
|
867
|
-
type: {
|
|
868
|
-
name: "Composite",
|
|
869
|
-
className: "PrivateEndpointConnection",
|
|
870
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { privateEndpoint: {
|
|
871
|
-
serializedName: "properties.privateEndpoint",
|
|
872
|
-
type: {
|
|
873
|
-
name: "Composite",
|
|
874
|
-
className: "PrivateEndpoint"
|
|
875
|
-
}
|
|
876
|
-
}, privateLinkServiceConnectionState: {
|
|
877
|
-
serializedName: "properties.privateLinkServiceConnectionState",
|
|
878
|
-
type: {
|
|
879
|
-
name: "Composite",
|
|
880
|
-
className: "PrivateLinkServiceConnectionState"
|
|
881
|
-
}
|
|
882
|
-
}, provisioningState: {
|
|
883
|
-
serializedName: "properties.provisioningState",
|
|
884
|
-
readOnly: true,
|
|
885
|
-
type: {
|
|
886
|
-
name: "String"
|
|
887
|
-
}
|
|
888
|
-
} })
|
|
889
|
-
}
|
|
890
|
-
};
|
|
891
|
-
const TrackedResource = {
|
|
892
|
-
type: {
|
|
893
|
-
name: "Composite",
|
|
894
|
-
className: "TrackedResource",
|
|
895
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
896
|
-
serializedName: "tags",
|
|
897
|
-
type: {
|
|
898
|
-
name: "Dictionary",
|
|
899
|
-
value: { type: { name: "String" } }
|
|
900
|
-
}
|
|
901
|
-
}, location: {
|
|
902
|
-
serializedName: "location",
|
|
903
|
-
required: true,
|
|
904
|
-
type: {
|
|
905
|
-
name: "String"
|
|
906
|
-
}
|
|
907
|
-
} })
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
const PrivateLinkResource = {
|
|
911
|
-
type: {
|
|
912
|
-
name: "Composite",
|
|
913
|
-
className: "PrivateLinkResource",
|
|
914
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { groupId: {
|
|
915
|
-
serializedName: "properties.groupId",
|
|
916
|
-
readOnly: true,
|
|
917
|
-
type: {
|
|
918
|
-
name: "String"
|
|
919
|
-
}
|
|
920
|
-
}, requiredMembers: {
|
|
921
|
-
serializedName: "properties.requiredMembers",
|
|
922
|
-
readOnly: true,
|
|
923
|
-
type: {
|
|
924
|
-
name: "Sequence",
|
|
925
|
-
element: {
|
|
926
|
-
type: {
|
|
927
|
-
name: "String"
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
}, requiredZoneNames: {
|
|
932
|
-
serializedName: "properties.requiredZoneNames",
|
|
933
|
-
type: {
|
|
934
|
-
name: "Sequence",
|
|
935
|
-
element: {
|
|
936
|
-
type: {
|
|
937
|
-
name: "String"
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
} })
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
|
-
const Extension = {
|
|
945
|
-
type: {
|
|
946
|
-
name: "Composite",
|
|
947
|
-
className: "Extension",
|
|
948
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { eTag: {
|
|
949
|
-
serializedName: "eTag",
|
|
950
|
-
readOnly: true,
|
|
951
|
-
type: {
|
|
952
|
-
name: "String"
|
|
953
|
-
}
|
|
954
|
-
}, extensionId: {
|
|
955
|
-
constraints: {
|
|
956
|
-
Pattern: new RegExp("^[a-zA-Z]{3,50}[.][a-zA-Z]{3,100}$")
|
|
957
|
-
},
|
|
958
|
-
serializedName: "properties.extensionId",
|
|
959
|
-
readOnly: true,
|
|
960
|
-
type: {
|
|
961
|
-
name: "String"
|
|
962
|
-
}
|
|
963
|
-
}, extensionCategory: {
|
|
964
|
-
serializedName: "properties.extensionCategory",
|
|
965
|
-
readOnly: true,
|
|
966
|
-
type: {
|
|
967
|
-
name: "String"
|
|
968
|
-
}
|
|
969
|
-
}, installedExtensionVersion: {
|
|
970
|
-
constraints: {
|
|
971
|
-
Pattern: new RegExp("^([1-9]|10).\\d$")
|
|
972
|
-
},
|
|
973
|
-
serializedName: "properties.installedExtensionVersion",
|
|
974
|
-
readOnly: true,
|
|
975
|
-
type: {
|
|
976
|
-
name: "String"
|
|
977
|
-
}
|
|
978
|
-
}, extensionAuthLink: {
|
|
979
|
-
serializedName: "properties.extensionAuthLink",
|
|
980
|
-
readOnly: true,
|
|
981
|
-
type: {
|
|
982
|
-
name: "String"
|
|
983
|
-
}
|
|
984
|
-
}, extensionApiDocsLink: {
|
|
985
|
-
serializedName: "properties.extensionApiDocsLink",
|
|
986
|
-
readOnly: true,
|
|
987
|
-
type: {
|
|
988
|
-
name: "String"
|
|
989
|
-
}
|
|
990
|
-
} })
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
const FarmBeatsExtension = {
|
|
994
|
-
type: {
|
|
995
|
-
name: "Composite",
|
|
996
|
-
className: "FarmBeatsExtension",
|
|
997
|
-
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { targetResourceType: {
|
|
998
|
-
serializedName: "properties.targetResourceType",
|
|
999
|
-
readOnly: true,
|
|
1000
|
-
type: {
|
|
1001
|
-
name: "String"
|
|
1002
|
-
}
|
|
1003
|
-
}, farmBeatsExtensionId: {
|
|
1004
|
-
constraints: {
|
|
1005
|
-
Pattern: new RegExp("^[a-zA-Z]{3,50}[.][a-zA-Z]{3,100}$"),
|
|
1006
|
-
MaxLength: 100,
|
|
1007
|
-
MinLength: 2
|
|
1008
|
-
},
|
|
1009
|
-
serializedName: "properties.farmBeatsExtensionId",
|
|
1010
|
-
readOnly: true,
|
|
1011
|
-
type: {
|
|
1012
|
-
name: "String"
|
|
1013
|
-
}
|
|
1014
|
-
}, farmBeatsExtensionName: {
|
|
1015
|
-
constraints: {
|
|
1016
|
-
MaxLength: 100,
|
|
1017
|
-
MinLength: 2
|
|
1018
|
-
},
|
|
1019
|
-
serializedName: "properties.farmBeatsExtensionName",
|
|
1020
|
-
readOnly: true,
|
|
1021
|
-
type: {
|
|
1022
|
-
name: "String"
|
|
1023
|
-
}
|
|
1024
|
-
}, farmBeatsExtensionVersion: {
|
|
1025
|
-
constraints: {
|
|
1026
|
-
Pattern: new RegExp("^([1-9]|10).\\d$"),
|
|
1027
|
-
MaxLength: 100,
|
|
1028
|
-
MinLength: 2
|
|
1029
|
-
},
|
|
1030
|
-
serializedName: "properties.farmBeatsExtensionVersion",
|
|
1031
|
-
readOnly: true,
|
|
1032
|
-
type: {
|
|
1033
|
-
name: "String"
|
|
1034
|
-
}
|
|
1035
|
-
}, publisherId: {
|
|
1036
|
-
constraints: {
|
|
1037
|
-
MaxLength: 100,
|
|
1038
|
-
MinLength: 2
|
|
1039
|
-
},
|
|
1040
|
-
serializedName: "properties.publisherId",
|
|
1041
|
-
readOnly: true,
|
|
1042
|
-
type: {
|
|
1043
|
-
name: "String"
|
|
1044
|
-
}
|
|
1045
|
-
}, description: {
|
|
1046
|
-
constraints: {
|
|
1047
|
-
MaxLength: 500,
|
|
1048
|
-
MinLength: 2
|
|
1049
|
-
},
|
|
1050
|
-
serializedName: "properties.description",
|
|
1051
|
-
readOnly: true,
|
|
1052
|
-
type: {
|
|
1053
|
-
name: "String"
|
|
1054
|
-
}
|
|
1055
|
-
}, extensionCategory: {
|
|
1056
|
-
constraints: {
|
|
1057
|
-
MaxLength: 100,
|
|
1058
|
-
MinLength: 2
|
|
1059
|
-
},
|
|
1060
|
-
serializedName: "properties.extensionCategory",
|
|
1061
|
-
readOnly: true,
|
|
1062
|
-
type: {
|
|
1063
|
-
name: "String"
|
|
1064
|
-
}
|
|
1065
|
-
}, extensionAuthLink: {
|
|
1066
|
-
serializedName: "properties.extensionAuthLink",
|
|
1067
|
-
readOnly: true,
|
|
1068
|
-
type: {
|
|
1069
|
-
name: "String"
|
|
1070
|
-
}
|
|
1071
|
-
}, extensionApiDocsLink: {
|
|
1072
|
-
serializedName: "properties.extensionApiDocsLink",
|
|
1073
|
-
readOnly: true,
|
|
1074
|
-
type: {
|
|
1075
|
-
name: "String"
|
|
1076
|
-
}
|
|
1077
|
-
}, detailedInformation: {
|
|
1078
|
-
serializedName: "properties.detailedInformation",
|
|
1079
|
-
readOnly: true,
|
|
1080
|
-
type: {
|
|
1081
|
-
name: "Sequence",
|
|
1082
|
-
element: {
|
|
1083
|
-
type: {
|
|
1084
|
-
name: "Composite",
|
|
1085
|
-
className: "DetailedInformation"
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
} })
|
|
1090
|
-
}
|
|
1091
|
-
};
|
|
1092
|
-
const FarmBeats = {
|
|
1093
|
-
type: {
|
|
1094
|
-
name: "Composite",
|
|
1095
|
-
className: "FarmBeats",
|
|
1096
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
1097
|
-
serializedName: "identity",
|
|
1098
|
-
type: {
|
|
1099
|
-
name: "Composite",
|
|
1100
|
-
className: "Identity"
|
|
1101
|
-
}
|
|
1102
|
-
}, instanceUri: {
|
|
1103
|
-
serializedName: "properties.instanceUri",
|
|
1104
|
-
readOnly: true,
|
|
1105
|
-
type: {
|
|
1106
|
-
name: "String"
|
|
1107
|
-
}
|
|
1108
|
-
}, provisioningState: {
|
|
1109
|
-
serializedName: "properties.provisioningState",
|
|
1110
|
-
readOnly: true,
|
|
1111
|
-
type: {
|
|
1112
|
-
name: "String"
|
|
1113
|
-
}
|
|
1114
|
-
}, sensorIntegration: {
|
|
1115
|
-
serializedName: "properties.sensorIntegration",
|
|
1116
|
-
type: {
|
|
1117
|
-
name: "Composite",
|
|
1118
|
-
className: "SensorIntegration"
|
|
1119
|
-
}
|
|
1120
|
-
}, publicNetworkAccess: {
|
|
1121
|
-
serializedName: "properties.publicNetworkAccess",
|
|
1122
|
-
type: {
|
|
1123
|
-
name: "String"
|
|
1124
|
-
}
|
|
1125
|
-
}, privateEndpointConnections: {
|
|
1126
|
-
serializedName: "properties.privateEndpointConnections",
|
|
1127
|
-
type: {
|
|
1128
|
-
name: "Composite",
|
|
1129
|
-
className: "PrivateEndpointConnection"
|
|
1130
|
-
}
|
|
1131
|
-
} })
|
|
1132
|
-
}
|
|
1133
|
-
};
|
|
1134
|
-
const FarmBeatsModelsUpdateHeaders = {
|
|
1135
|
-
type: {
|
|
1136
|
-
name: "Composite",
|
|
1137
|
-
className: "FarmBeatsModelsUpdateHeaders",
|
|
1138
|
-
modelProperties: {
|
|
1139
|
-
location: {
|
|
1140
|
-
serializedName: "location",
|
|
1141
|
-
type: {
|
|
1142
|
-
name: "String"
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
const PrivateEndpointConnectionsDeleteHeaders = {
|
|
1149
|
-
type: {
|
|
1150
|
-
name: "Composite",
|
|
1151
|
-
className: "PrivateEndpointConnectionsDeleteHeaders",
|
|
1152
|
-
modelProperties: {
|
|
1153
|
-
location: {
|
|
1154
|
-
serializedName: "location",
|
|
1155
|
-
type: {
|
|
1156
|
-
name: "String"
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
};
|
|
1162
|
-
|
|
1163
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1164
|
-
__proto__: null,
|
|
1165
|
-
Resource: Resource,
|
|
1166
|
-
SystemData: SystemData,
|
|
1167
|
-
ErrorResponse: ErrorResponse,
|
|
1168
|
-
ErrorDetail: ErrorDetail,
|
|
1169
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1170
|
-
ExtensionListResponse: ExtensionListResponse,
|
|
1171
|
-
FarmBeatsExtensionListResponse: FarmBeatsExtensionListResponse,
|
|
1172
|
-
DetailedInformation: DetailedInformation,
|
|
1173
|
-
UnitSystemsInfo: UnitSystemsInfo,
|
|
1174
|
-
Identity: Identity,
|
|
1175
|
-
SensorIntegration: SensorIntegration,
|
|
1176
|
-
PrivateEndpoint: PrivateEndpoint,
|
|
1177
|
-
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1178
|
-
FarmBeatsUpdateRequestModel: FarmBeatsUpdateRequestModel,
|
|
1179
|
-
FarmBeatsUpdateProperties: FarmBeatsUpdateProperties,
|
|
1180
|
-
FarmBeatsListResponse: FarmBeatsListResponse,
|
|
1181
|
-
ArmAsyncOperation: ArmAsyncOperation,
|
|
1182
|
-
CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
|
|
1183
|
-
CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
|
|
1184
|
-
OperationListResult: OperationListResult,
|
|
1185
|
-
Operation: Operation,
|
|
1186
|
-
OperationDisplay: OperationDisplay,
|
|
1187
|
-
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1188
|
-
PrivateLinkResourceListResult: PrivateLinkResourceListResult,
|
|
1189
|
-
ProxyResource: ProxyResource,
|
|
1190
|
-
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1191
|
-
TrackedResource: TrackedResource,
|
|
1192
|
-
PrivateLinkResource: PrivateLinkResource,
|
|
1193
|
-
Extension: Extension,
|
|
1194
|
-
FarmBeatsExtension: FarmBeatsExtension,
|
|
1195
|
-
FarmBeats: FarmBeats,
|
|
1196
|
-
FarmBeatsModelsUpdateHeaders: FarmBeatsModelsUpdateHeaders,
|
|
1197
|
-
PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders
|
|
1198
|
-
});
|
|
1199
|
-
|
|
1200
|
-
/*
|
|
1201
|
-
* Copyright (c) Microsoft Corporation.
|
|
1202
|
-
* Licensed under the MIT License.
|
|
1203
|
-
*
|
|
1204
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1205
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1206
|
-
*/
|
|
1207
|
-
const accept = {
|
|
1208
|
-
parameterPath: "accept",
|
|
1209
|
-
mapper: {
|
|
1210
|
-
defaultValue: "application/json",
|
|
1211
|
-
isConstant: true,
|
|
1212
|
-
serializedName: "Accept",
|
|
1213
|
-
type: {
|
|
1214
|
-
name: "String"
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
};
|
|
1218
|
-
const $host = {
|
|
1219
|
-
parameterPath: "$host",
|
|
1220
|
-
mapper: {
|
|
1221
|
-
serializedName: "$host",
|
|
1222
|
-
required: true,
|
|
1223
|
-
type: {
|
|
1224
|
-
name: "String"
|
|
1225
|
-
}
|
|
1226
|
-
},
|
|
1227
|
-
skipEncoding: true
|
|
1228
|
-
};
|
|
1229
|
-
const subscriptionId = {
|
|
1230
|
-
parameterPath: "subscriptionId",
|
|
1231
|
-
mapper: {
|
|
1232
|
-
constraints: {
|
|
1233
|
-
MinLength: 1
|
|
1234
|
-
},
|
|
1235
|
-
serializedName: "subscriptionId",
|
|
1236
|
-
required: true,
|
|
1237
|
-
type: {
|
|
1238
|
-
name: "String"
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1241
|
-
};
|
|
1242
|
-
const resourceGroupName = {
|
|
1243
|
-
parameterPath: "resourceGroupName",
|
|
1244
|
-
mapper: {
|
|
1245
|
-
constraints: {
|
|
1246
|
-
MaxLength: 90,
|
|
1247
|
-
MinLength: 1
|
|
1248
|
-
},
|
|
1249
|
-
serializedName: "resourceGroupName",
|
|
1250
|
-
required: true,
|
|
1251
|
-
type: {
|
|
1252
|
-
name: "String"
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
|
-
const farmBeatsResourceName = {
|
|
1257
|
-
parameterPath: "farmBeatsResourceName",
|
|
1258
|
-
mapper: {
|
|
1259
|
-
serializedName: "farmBeatsResourceName",
|
|
1260
|
-
required: true,
|
|
1261
|
-
type: {
|
|
1262
|
-
name: "String"
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
};
|
|
1266
|
-
const extensionId = {
|
|
1267
|
-
parameterPath: "extensionId",
|
|
1268
|
-
mapper: {
|
|
1269
|
-
serializedName: "extensionId",
|
|
1270
|
-
required: true,
|
|
1271
|
-
type: {
|
|
1272
|
-
name: "String"
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
const apiVersion = {
|
|
1277
|
-
parameterPath: "apiVersion",
|
|
1278
|
-
mapper: {
|
|
1279
|
-
defaultValue: "2021-09-01-preview",
|
|
1280
|
-
isConstant: true,
|
|
1281
|
-
serializedName: "api-version",
|
|
1282
|
-
type: {
|
|
1283
|
-
name: "String"
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
|
-
const extensionIds = {
|
|
1288
|
-
parameterPath: ["options", "extensionIds"],
|
|
1289
|
-
mapper: {
|
|
1290
|
-
serializedName: "extensionIds",
|
|
1291
|
-
type: {
|
|
1292
|
-
name: "Sequence",
|
|
1293
|
-
element: {
|
|
1294
|
-
type: {
|
|
1295
|
-
name: "String"
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
},
|
|
1300
|
-
collectionFormat: "Multi"
|
|
1301
|
-
};
|
|
1302
|
-
const extensionCategories = {
|
|
1303
|
-
parameterPath: ["options", "extensionCategories"],
|
|
1304
|
-
mapper: {
|
|
1305
|
-
serializedName: "extensionCategories",
|
|
1306
|
-
type: {
|
|
1307
|
-
name: "Sequence",
|
|
1308
|
-
element: {
|
|
1309
|
-
type: {
|
|
1310
|
-
name: "String"
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
},
|
|
1315
|
-
collectionFormat: "Multi"
|
|
1316
|
-
};
|
|
1317
|
-
const maxPageSize = {
|
|
1318
|
-
parameterPath: ["options", "maxPageSize"],
|
|
1319
|
-
mapper: {
|
|
1320
|
-
defaultValue: 50,
|
|
1321
|
-
constraints: {
|
|
1322
|
-
InclusiveMaximum: 1000,
|
|
1323
|
-
InclusiveMinimum: 10
|
|
1324
|
-
},
|
|
1325
|
-
serializedName: "$maxPageSize",
|
|
1326
|
-
type: {
|
|
1327
|
-
name: "Number"
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
};
|
|
1331
|
-
const skipToken = {
|
|
1332
|
-
parameterPath: ["options", "skipToken"],
|
|
1333
|
-
mapper: {
|
|
1334
|
-
serializedName: "$skipToken",
|
|
1335
|
-
type: {
|
|
1336
|
-
name: "String"
|
|
1337
|
-
}
|
|
1338
|
-
}
|
|
1339
|
-
};
|
|
1340
|
-
const nextLink = {
|
|
1341
|
-
parameterPath: "nextLink",
|
|
1342
|
-
mapper: {
|
|
1343
|
-
serializedName: "nextLink",
|
|
1344
|
-
required: true,
|
|
1345
|
-
type: {
|
|
1346
|
-
name: "String"
|
|
1347
|
-
}
|
|
1348
|
-
},
|
|
1349
|
-
skipEncoding: true
|
|
1350
|
-
};
|
|
1351
|
-
const farmBeatsExtensionIds = {
|
|
1352
|
-
parameterPath: ["options", "farmBeatsExtensionIds"],
|
|
1353
|
-
mapper: {
|
|
1354
|
-
serializedName: "farmBeatsExtensionIds",
|
|
1355
|
-
type: {
|
|
1356
|
-
name: "Sequence",
|
|
1357
|
-
element: {
|
|
1358
|
-
type: {
|
|
1359
|
-
name: "String"
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
},
|
|
1364
|
-
collectionFormat: "Multi"
|
|
1365
|
-
};
|
|
1366
|
-
const farmBeatsExtensionNames = {
|
|
1367
|
-
parameterPath: ["options", "farmBeatsExtensionNames"],
|
|
1368
|
-
mapper: {
|
|
1369
|
-
serializedName: "farmBeatsExtensionNames",
|
|
1370
|
-
type: {
|
|
1371
|
-
name: "Sequence",
|
|
1372
|
-
element: {
|
|
1373
|
-
type: {
|
|
1374
|
-
name: "String"
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
},
|
|
1379
|
-
collectionFormat: "Multi"
|
|
1380
|
-
};
|
|
1381
|
-
const publisherIds = {
|
|
1382
|
-
parameterPath: ["options", "publisherIds"],
|
|
1383
|
-
mapper: {
|
|
1384
|
-
serializedName: "publisherIds",
|
|
1385
|
-
type: {
|
|
1386
|
-
name: "Sequence",
|
|
1387
|
-
element: {
|
|
1388
|
-
type: {
|
|
1389
|
-
name: "String"
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
},
|
|
1394
|
-
collectionFormat: "Multi"
|
|
1395
|
-
};
|
|
1396
|
-
const farmBeatsExtensionId = {
|
|
1397
|
-
parameterPath: "farmBeatsExtensionId",
|
|
1398
|
-
mapper: {
|
|
1399
|
-
constraints: {
|
|
1400
|
-
Pattern: new RegExp("^[a-zA-Z]{3,50}[.][a-zA-Z]{3,100}$")
|
|
1401
|
-
},
|
|
1402
|
-
serializedName: "farmBeatsExtensionId",
|
|
1403
|
-
required: true,
|
|
1404
|
-
type: {
|
|
1405
|
-
name: "String"
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1409
|
-
const contentType = {
|
|
1410
|
-
parameterPath: ["options", "contentType"],
|
|
1411
|
-
mapper: {
|
|
1412
|
-
defaultValue: "application/json",
|
|
1413
|
-
isConstant: true,
|
|
1414
|
-
serializedName: "Content-Type",
|
|
1415
|
-
type: {
|
|
1416
|
-
name: "String"
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
};
|
|
1420
|
-
const body = {
|
|
1421
|
-
parameterPath: "body",
|
|
1422
|
-
mapper: FarmBeats
|
|
1423
|
-
};
|
|
1424
|
-
const body1 = {
|
|
1425
|
-
parameterPath: "body",
|
|
1426
|
-
mapper: FarmBeatsUpdateRequestModel
|
|
1427
|
-
};
|
|
1428
|
-
const operationResultsId = {
|
|
1429
|
-
parameterPath: "operationResultsId",
|
|
1430
|
-
mapper: {
|
|
1431
|
-
constraints: {
|
|
1432
|
-
Pattern: new RegExp("^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$")
|
|
1433
|
-
},
|
|
1434
|
-
serializedName: "operationResultsId",
|
|
1435
|
-
required: true,
|
|
1436
|
-
type: {
|
|
1437
|
-
name: "String"
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
};
|
|
1441
|
-
const body2 = {
|
|
1442
|
-
parameterPath: "body",
|
|
1443
|
-
mapper: CheckNameAvailabilityRequest
|
|
1444
|
-
};
|
|
1445
|
-
const body3 = {
|
|
1446
|
-
parameterPath: "body",
|
|
1447
|
-
mapper: PrivateEndpointConnection
|
|
1448
|
-
};
|
|
1449
|
-
const privateEndpointConnectionName = {
|
|
1450
|
-
parameterPath: "privateEndpointConnectionName",
|
|
1451
|
-
mapper: {
|
|
1452
|
-
serializedName: "privateEndpointConnectionName",
|
|
1453
|
-
required: true,
|
|
1454
|
-
type: {
|
|
1455
|
-
name: "String"
|
|
1456
|
-
}
|
|
1457
|
-
}
|
|
1458
|
-
};
|
|
1459
|
-
const subResourceName = {
|
|
1460
|
-
parameterPath: "subResourceName",
|
|
1461
|
-
mapper: {
|
|
1462
|
-
serializedName: "subResourceName",
|
|
1463
|
-
required: true,
|
|
1464
|
-
type: {
|
|
1465
|
-
name: "String"
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
};
|
|
1469
|
-
|
|
1470
|
-
/*
|
|
1471
|
-
* Copyright (c) Microsoft Corporation.
|
|
1472
|
-
* Licensed under the MIT License.
|
|
1473
|
-
*
|
|
1474
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1475
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1476
|
-
*/
|
|
1477
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1478
|
-
/** Class containing Extensions operations. */
|
|
1479
|
-
class ExtensionsImpl {
|
|
1480
|
-
/**
|
|
1481
|
-
* Initialize a new instance of the class Extensions class.
|
|
1482
|
-
* @param client Reference to the service client
|
|
1483
|
-
*/
|
|
1484
|
-
constructor(client) {
|
|
1485
|
-
this.client = client;
|
|
1486
|
-
}
|
|
1487
|
-
/**
|
|
1488
|
-
* Get installed extensions details.
|
|
1489
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1490
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
1491
|
-
* @param options The options parameters.
|
|
1492
|
-
*/
|
|
1493
|
-
listByFarmBeats(resourceGroupName, farmBeatsResourceName, options) {
|
|
1494
|
-
const iter = this.listByFarmBeatsPagingAll(resourceGroupName, farmBeatsResourceName, options);
|
|
1495
|
-
return {
|
|
1496
|
-
next() {
|
|
1497
|
-
return iter.next();
|
|
1498
|
-
},
|
|
1499
|
-
[Symbol.asyncIterator]() {
|
|
1500
|
-
return this;
|
|
1501
|
-
},
|
|
1502
|
-
byPage: (settings) => {
|
|
1503
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1504
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1505
|
-
}
|
|
1506
|
-
return this.listByFarmBeatsPagingPage(resourceGroupName, farmBeatsResourceName, options, settings);
|
|
1507
|
-
}
|
|
1508
|
-
};
|
|
1509
|
-
}
|
|
1510
|
-
listByFarmBeatsPagingPage(resourceGroupName, farmBeatsResourceName, options, settings) {
|
|
1511
|
-
return tslib.__asyncGenerator(this, arguments, function* listByFarmBeatsPagingPage_1() {
|
|
1512
|
-
let result;
|
|
1513
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1514
|
-
if (!continuationToken) {
|
|
1515
|
-
result = yield tslib.__await(this._listByFarmBeats(resourceGroupName, farmBeatsResourceName, options));
|
|
1516
|
-
let page = result.value || [];
|
|
1517
|
-
continuationToken = result.nextLink;
|
|
1518
|
-
setContinuationToken(page, continuationToken);
|
|
1519
|
-
yield yield tslib.__await(page);
|
|
1520
|
-
}
|
|
1521
|
-
while (continuationToken) {
|
|
1522
|
-
result = yield tslib.__await(this._listByFarmBeatsNext(resourceGroupName, farmBeatsResourceName, continuationToken, options));
|
|
1523
|
-
continuationToken = result.nextLink;
|
|
1524
|
-
let page = result.value || [];
|
|
1525
|
-
setContinuationToken(page, continuationToken);
|
|
1526
|
-
yield yield tslib.__await(page);
|
|
1527
|
-
}
|
|
1528
|
-
});
|
|
1529
|
-
}
|
|
1530
|
-
listByFarmBeatsPagingAll(resourceGroupName, farmBeatsResourceName, options) {
|
|
1531
|
-
return tslib.__asyncGenerator(this, arguments, function* listByFarmBeatsPagingAll_1() {
|
|
1532
|
-
var e_1, _a;
|
|
1533
|
-
try {
|
|
1534
|
-
for (var _b = tslib.__asyncValues(this.listByFarmBeatsPagingPage(resourceGroupName, farmBeatsResourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1535
|
-
const page = _c.value;
|
|
1536
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1540
|
-
finally {
|
|
1541
|
-
try {
|
|
1542
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1543
|
-
}
|
|
1544
|
-
finally { if (e_1) throw e_1.error; }
|
|
1545
|
-
}
|
|
1546
|
-
});
|
|
1547
|
-
}
|
|
1548
|
-
/**
|
|
1549
|
-
* Install extension.
|
|
1550
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1551
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
1552
|
-
* @param extensionId Id of extension resource.
|
|
1553
|
-
* @param options The options parameters.
|
|
1554
|
-
*/
|
|
1555
|
-
create(resourceGroupName, farmBeatsResourceName, extensionId, options) {
|
|
1556
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, extensionId, options }, createOperationSpec);
|
|
1557
|
-
}
|
|
1558
|
-
/**
|
|
1559
|
-
* Get installed extension details by extension id.
|
|
1560
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1561
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
1562
|
-
* @param extensionId Id of extension resource.
|
|
1563
|
-
* @param options The options parameters.
|
|
1564
|
-
*/
|
|
1565
|
-
get(resourceGroupName, farmBeatsResourceName, extensionId, options) {
|
|
1566
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, extensionId, options }, getOperationSpec$4);
|
|
1567
|
-
}
|
|
1568
|
-
/**
|
|
1569
|
-
* Upgrade to latest extension.
|
|
1570
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1571
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
1572
|
-
* @param extensionId Id of extension resource.
|
|
1573
|
-
* @param options The options parameters.
|
|
1574
|
-
*/
|
|
1575
|
-
update(resourceGroupName, farmBeatsResourceName, extensionId, options) {
|
|
1576
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, extensionId, options }, updateOperationSpec$1);
|
|
1577
|
-
}
|
|
1578
|
-
/**
|
|
1579
|
-
* Uninstall extension.
|
|
1580
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1581
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
1582
|
-
* @param extensionId Id of extension resource.
|
|
1583
|
-
* @param options The options parameters.
|
|
1584
|
-
*/
|
|
1585
|
-
delete(resourceGroupName, farmBeatsResourceName, extensionId, options) {
|
|
1586
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, extensionId, options }, deleteOperationSpec$2);
|
|
1587
|
-
}
|
|
1588
|
-
/**
|
|
1589
|
-
* Get installed extensions details.
|
|
1590
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1591
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
1592
|
-
* @param options The options parameters.
|
|
1593
|
-
*/
|
|
1594
|
-
_listByFarmBeats(resourceGroupName, farmBeatsResourceName, options) {
|
|
1595
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, options }, listByFarmBeatsOperationSpec);
|
|
1596
|
-
}
|
|
1597
|
-
/**
|
|
1598
|
-
* ListByFarmBeatsNext
|
|
1599
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1600
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
1601
|
-
* @param nextLink The nextLink from the previous successful call to the ListByFarmBeats method.
|
|
1602
|
-
* @param options The options parameters.
|
|
1603
|
-
*/
|
|
1604
|
-
_listByFarmBeatsNext(resourceGroupName, farmBeatsResourceName, nextLink, options) {
|
|
1605
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, nextLink, options }, listByFarmBeatsNextOperationSpec);
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
// Operation Specifications
|
|
1609
|
-
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1610
|
-
const createOperationSpec = {
|
|
1611
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}",
|
|
1612
|
-
httpMethod: "PUT",
|
|
1613
|
-
responses: {
|
|
1614
|
-
201: {
|
|
1615
|
-
bodyMapper: Extension
|
|
1616
|
-
},
|
|
1617
|
-
default: {
|
|
1618
|
-
bodyMapper: ErrorResponse
|
|
1619
|
-
}
|
|
1620
|
-
},
|
|
1621
|
-
queryParameters: [apiVersion],
|
|
1622
|
-
urlParameters: [
|
|
1623
|
-
$host,
|
|
1624
|
-
subscriptionId,
|
|
1625
|
-
resourceGroupName,
|
|
1626
|
-
farmBeatsResourceName,
|
|
1627
|
-
extensionId
|
|
1628
|
-
],
|
|
1629
|
-
headerParameters: [accept],
|
|
1630
|
-
serializer: serializer$6
|
|
1631
|
-
};
|
|
1632
|
-
const getOperationSpec$4 = {
|
|
1633
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}",
|
|
1634
|
-
httpMethod: "GET",
|
|
1635
|
-
responses: {
|
|
1636
|
-
200: {
|
|
1637
|
-
bodyMapper: Extension
|
|
1638
|
-
},
|
|
1639
|
-
default: {
|
|
1640
|
-
bodyMapper: ErrorResponse
|
|
1641
|
-
}
|
|
1642
|
-
},
|
|
1643
|
-
queryParameters: [apiVersion],
|
|
1644
|
-
urlParameters: [
|
|
1645
|
-
$host,
|
|
1646
|
-
subscriptionId,
|
|
1647
|
-
resourceGroupName,
|
|
1648
|
-
farmBeatsResourceName,
|
|
1649
|
-
extensionId
|
|
1650
|
-
],
|
|
1651
|
-
headerParameters: [accept],
|
|
1652
|
-
serializer: serializer$6
|
|
1653
|
-
};
|
|
1654
|
-
const updateOperationSpec$1 = {
|
|
1655
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}",
|
|
1656
|
-
httpMethod: "PATCH",
|
|
1657
|
-
responses: {
|
|
1658
|
-
200: {
|
|
1659
|
-
bodyMapper: Extension
|
|
1660
|
-
},
|
|
1661
|
-
default: {
|
|
1662
|
-
bodyMapper: ErrorResponse
|
|
1663
|
-
}
|
|
1664
|
-
},
|
|
1665
|
-
queryParameters: [apiVersion],
|
|
1666
|
-
urlParameters: [
|
|
1667
|
-
$host,
|
|
1668
|
-
subscriptionId,
|
|
1669
|
-
resourceGroupName,
|
|
1670
|
-
farmBeatsResourceName,
|
|
1671
|
-
extensionId
|
|
1672
|
-
],
|
|
1673
|
-
headerParameters: [accept],
|
|
1674
|
-
serializer: serializer$6
|
|
1675
|
-
};
|
|
1676
|
-
const deleteOperationSpec$2 = {
|
|
1677
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions/{extensionId}",
|
|
1678
|
-
httpMethod: "DELETE",
|
|
1679
|
-
responses: {
|
|
1680
|
-
200: {},
|
|
1681
|
-
204: {},
|
|
1682
|
-
default: {
|
|
1683
|
-
bodyMapper: ErrorResponse
|
|
1684
|
-
}
|
|
1685
|
-
},
|
|
1686
|
-
queryParameters: [apiVersion],
|
|
1687
|
-
urlParameters: [
|
|
1688
|
-
$host,
|
|
1689
|
-
subscriptionId,
|
|
1690
|
-
resourceGroupName,
|
|
1691
|
-
farmBeatsResourceName,
|
|
1692
|
-
extensionId
|
|
1693
|
-
],
|
|
1694
|
-
headerParameters: [accept],
|
|
1695
|
-
serializer: serializer$6
|
|
1696
|
-
};
|
|
1697
|
-
const listByFarmBeatsOperationSpec = {
|
|
1698
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/extensions",
|
|
1699
|
-
httpMethod: "GET",
|
|
1700
|
-
responses: {
|
|
1701
|
-
200: {
|
|
1702
|
-
bodyMapper: ExtensionListResponse
|
|
1703
|
-
},
|
|
1704
|
-
default: {
|
|
1705
|
-
bodyMapper: ErrorResponse
|
|
1706
|
-
}
|
|
1707
|
-
},
|
|
1708
|
-
queryParameters: [
|
|
1709
|
-
apiVersion,
|
|
1710
|
-
extensionIds,
|
|
1711
|
-
extensionCategories,
|
|
1712
|
-
maxPageSize,
|
|
1713
|
-
skipToken
|
|
1714
|
-
],
|
|
1715
|
-
urlParameters: [
|
|
1716
|
-
$host,
|
|
1717
|
-
subscriptionId,
|
|
1718
|
-
resourceGroupName,
|
|
1719
|
-
farmBeatsResourceName
|
|
1720
|
-
],
|
|
1721
|
-
headerParameters: [accept],
|
|
1722
|
-
serializer: serializer$6
|
|
1723
|
-
};
|
|
1724
|
-
const listByFarmBeatsNextOperationSpec = {
|
|
1725
|
-
path: "{nextLink}",
|
|
1726
|
-
httpMethod: "GET",
|
|
1727
|
-
responses: {
|
|
1728
|
-
200: {
|
|
1729
|
-
bodyMapper: ExtensionListResponse
|
|
1730
|
-
},
|
|
1731
|
-
default: {
|
|
1732
|
-
bodyMapper: ErrorResponse
|
|
1733
|
-
}
|
|
1734
|
-
},
|
|
1735
|
-
queryParameters: [
|
|
1736
|
-
apiVersion,
|
|
1737
|
-
extensionIds,
|
|
1738
|
-
extensionCategories,
|
|
1739
|
-
maxPageSize,
|
|
1740
|
-
skipToken
|
|
1741
|
-
],
|
|
1742
|
-
urlParameters: [
|
|
1743
|
-
$host,
|
|
1744
|
-
subscriptionId,
|
|
1745
|
-
resourceGroupName,
|
|
1746
|
-
farmBeatsResourceName,
|
|
1747
|
-
nextLink
|
|
1748
|
-
],
|
|
1749
|
-
headerParameters: [accept],
|
|
1750
|
-
serializer: serializer$6
|
|
1751
|
-
};
|
|
1752
|
-
|
|
1753
|
-
/*
|
|
1754
|
-
* Copyright (c) Microsoft Corporation.
|
|
1755
|
-
* Licensed under the MIT License.
|
|
1756
|
-
*
|
|
1757
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1758
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1759
|
-
*/
|
|
1760
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1761
|
-
/** Class containing FarmBeatsExtensions operations. */
|
|
1762
|
-
class FarmBeatsExtensionsImpl {
|
|
1763
|
-
/**
|
|
1764
|
-
* Initialize a new instance of the class FarmBeatsExtensions class.
|
|
1765
|
-
* @param client Reference to the service client
|
|
1766
|
-
*/
|
|
1767
|
-
constructor(client) {
|
|
1768
|
-
this.client = client;
|
|
1769
|
-
}
|
|
1770
|
-
/**
|
|
1771
|
-
* Get list of farmBeats extension.
|
|
1772
|
-
* @param options The options parameters.
|
|
1773
|
-
*/
|
|
1774
|
-
list(options) {
|
|
1775
|
-
const iter = this.listPagingAll(options);
|
|
1776
|
-
return {
|
|
1777
|
-
next() {
|
|
1778
|
-
return iter.next();
|
|
1779
|
-
},
|
|
1780
|
-
[Symbol.asyncIterator]() {
|
|
1781
|
-
return this;
|
|
1782
|
-
},
|
|
1783
|
-
byPage: (settings) => {
|
|
1784
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1785
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1786
|
-
}
|
|
1787
|
-
return this.listPagingPage(options, settings);
|
|
1788
|
-
}
|
|
1789
|
-
};
|
|
1790
|
-
}
|
|
1791
|
-
listPagingPage(options, settings) {
|
|
1792
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1793
|
-
let result;
|
|
1794
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1795
|
-
if (!continuationToken) {
|
|
1796
|
-
result = yield tslib.__await(this._list(options));
|
|
1797
|
-
let page = result.value || [];
|
|
1798
|
-
continuationToken = result.nextLink;
|
|
1799
|
-
setContinuationToken(page, continuationToken);
|
|
1800
|
-
yield yield tslib.__await(page);
|
|
1801
|
-
}
|
|
1802
|
-
while (continuationToken) {
|
|
1803
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1804
|
-
continuationToken = result.nextLink;
|
|
1805
|
-
let page = result.value || [];
|
|
1806
|
-
setContinuationToken(page, continuationToken);
|
|
1807
|
-
yield yield tslib.__await(page);
|
|
1808
|
-
}
|
|
1809
|
-
});
|
|
1810
|
-
}
|
|
1811
|
-
listPagingAll(options) {
|
|
1812
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1813
|
-
var e_1, _a;
|
|
1814
|
-
try {
|
|
1815
|
-
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1816
|
-
const page = _c.value;
|
|
1817
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1821
|
-
finally {
|
|
1822
|
-
try {
|
|
1823
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1824
|
-
}
|
|
1825
|
-
finally { if (e_1) throw e_1.error; }
|
|
1826
|
-
}
|
|
1827
|
-
});
|
|
1828
|
-
}
|
|
1829
|
-
/**
|
|
1830
|
-
* Get list of farmBeats extension.
|
|
1831
|
-
* @param options The options parameters.
|
|
1832
|
-
*/
|
|
1833
|
-
_list(options) {
|
|
1834
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
1835
|
-
}
|
|
1836
|
-
/**
|
|
1837
|
-
* Get farmBeats extension.
|
|
1838
|
-
* @param farmBeatsExtensionId farmBeatsExtensionId to be queried.
|
|
1839
|
-
* @param options The options parameters.
|
|
1840
|
-
*/
|
|
1841
|
-
get(farmBeatsExtensionId, options) {
|
|
1842
|
-
return this.client.sendOperationRequest({ farmBeatsExtensionId, options }, getOperationSpec$3);
|
|
1843
|
-
}
|
|
1844
|
-
/**
|
|
1845
|
-
* ListNext
|
|
1846
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1847
|
-
* @param options The options parameters.
|
|
1848
|
-
*/
|
|
1849
|
-
_listNext(nextLink, options) {
|
|
1850
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
// Operation Specifications
|
|
1854
|
-
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1855
|
-
const listOperationSpec$1 = {
|
|
1856
|
-
path: "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions",
|
|
1857
|
-
httpMethod: "GET",
|
|
1858
|
-
responses: {
|
|
1859
|
-
200: {
|
|
1860
|
-
bodyMapper: FarmBeatsExtensionListResponse
|
|
1861
|
-
},
|
|
1862
|
-
default: {
|
|
1863
|
-
bodyMapper: ErrorResponse
|
|
1864
|
-
}
|
|
1865
|
-
},
|
|
1866
|
-
queryParameters: [
|
|
1867
|
-
apiVersion,
|
|
1868
|
-
extensionCategories,
|
|
1869
|
-
maxPageSize,
|
|
1870
|
-
farmBeatsExtensionIds,
|
|
1871
|
-
farmBeatsExtensionNames,
|
|
1872
|
-
publisherIds
|
|
1873
|
-
],
|
|
1874
|
-
urlParameters: [$host],
|
|
1875
|
-
headerParameters: [accept],
|
|
1876
|
-
serializer: serializer$5
|
|
1877
|
-
};
|
|
1878
|
-
const getOperationSpec$3 = {
|
|
1879
|
-
path: "/providers/Microsoft.AgFoodPlatform/farmBeatsExtensionDefinitions/{farmBeatsExtensionId}",
|
|
1880
|
-
httpMethod: "GET",
|
|
1881
|
-
responses: {
|
|
1882
|
-
200: {
|
|
1883
|
-
bodyMapper: FarmBeatsExtension
|
|
1884
|
-
},
|
|
1885
|
-
default: {
|
|
1886
|
-
bodyMapper: ErrorResponse
|
|
1887
|
-
}
|
|
1888
|
-
},
|
|
1889
|
-
queryParameters: [apiVersion],
|
|
1890
|
-
urlParameters: [$host, farmBeatsExtensionId],
|
|
1891
|
-
headerParameters: [accept],
|
|
1892
|
-
serializer: serializer$5
|
|
1893
|
-
};
|
|
1894
|
-
const listNextOperationSpec$1 = {
|
|
1895
|
-
path: "{nextLink}",
|
|
1896
|
-
httpMethod: "GET",
|
|
1897
|
-
responses: {
|
|
1898
|
-
200: {
|
|
1899
|
-
bodyMapper: FarmBeatsExtensionListResponse
|
|
1900
|
-
},
|
|
1901
|
-
default: {
|
|
1902
|
-
bodyMapper: ErrorResponse
|
|
1903
|
-
}
|
|
1904
|
-
},
|
|
1905
|
-
queryParameters: [
|
|
1906
|
-
apiVersion,
|
|
1907
|
-
extensionCategories,
|
|
1908
|
-
maxPageSize,
|
|
1909
|
-
farmBeatsExtensionIds,
|
|
1910
|
-
farmBeatsExtensionNames,
|
|
1911
|
-
publisherIds
|
|
1912
|
-
],
|
|
1913
|
-
urlParameters: [$host, nextLink],
|
|
1914
|
-
headerParameters: [accept],
|
|
1915
|
-
serializer: serializer$5
|
|
1916
|
-
};
|
|
1917
|
-
|
|
1918
|
-
/*
|
|
1919
|
-
* Copyright (c) Microsoft Corporation.
|
|
1920
|
-
* Licensed under the MIT License.
|
|
1921
|
-
*
|
|
1922
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1923
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1924
|
-
*/
|
|
1925
|
-
class LroImpl {
|
|
1926
|
-
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1927
|
-
this.sendOperationFn = sendOperationFn;
|
|
1928
|
-
this.args = args;
|
|
1929
|
-
this.spec = spec;
|
|
1930
|
-
this.requestPath = requestPath;
|
|
1931
|
-
this.requestMethod = requestMethod;
|
|
1932
|
-
}
|
|
1933
|
-
sendInitialRequest() {
|
|
1934
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1935
|
-
return this.sendOperationFn(this.args, this.spec);
|
|
1936
|
-
});
|
|
1937
|
-
}
|
|
1938
|
-
sendPollRequest(path) {
|
|
1939
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1940
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1941
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1942
|
-
});
|
|
1943
|
-
}
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
/*
|
|
1947
|
-
* Copyright (c) Microsoft Corporation.
|
|
1948
|
-
* Licensed under the MIT License.
|
|
1949
|
-
*
|
|
1950
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1951
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1952
|
-
*/
|
|
1953
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1954
|
-
/** Class containing FarmBeatsModels operations. */
|
|
1955
|
-
class FarmBeatsModelsImpl {
|
|
1956
|
-
/**
|
|
1957
|
-
* Initialize a new instance of the class FarmBeatsModels class.
|
|
1958
|
-
* @param client Reference to the service client
|
|
1959
|
-
*/
|
|
1960
|
-
constructor(client) {
|
|
1961
|
-
this.client = client;
|
|
1962
|
-
}
|
|
1963
|
-
/**
|
|
1964
|
-
* Lists the FarmBeats instances for a subscription.
|
|
1965
|
-
* @param options The options parameters.
|
|
1966
|
-
*/
|
|
1967
|
-
listBySubscription(options) {
|
|
1968
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
1969
|
-
return {
|
|
1970
|
-
next() {
|
|
1971
|
-
return iter.next();
|
|
1972
|
-
},
|
|
1973
|
-
[Symbol.asyncIterator]() {
|
|
1974
|
-
return this;
|
|
1975
|
-
},
|
|
1976
|
-
byPage: (settings) => {
|
|
1977
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1978
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1979
|
-
}
|
|
1980
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
|
-
}
|
|
1984
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
1985
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1986
|
-
let result;
|
|
1987
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1988
|
-
if (!continuationToken) {
|
|
1989
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
1990
|
-
let page = result.value || [];
|
|
1991
|
-
continuationToken = result.nextLink;
|
|
1992
|
-
setContinuationToken(page, continuationToken);
|
|
1993
|
-
yield yield tslib.__await(page);
|
|
1994
|
-
}
|
|
1995
|
-
while (continuationToken) {
|
|
1996
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1997
|
-
continuationToken = result.nextLink;
|
|
1998
|
-
let page = result.value || [];
|
|
1999
|
-
setContinuationToken(page, continuationToken);
|
|
2000
|
-
yield yield tslib.__await(page);
|
|
2001
|
-
}
|
|
2002
|
-
});
|
|
2003
|
-
}
|
|
2004
|
-
listBySubscriptionPagingAll(options) {
|
|
2005
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
2006
|
-
var e_1, _a;
|
|
2007
|
-
try {
|
|
2008
|
-
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2009
|
-
const page = _c.value;
|
|
2010
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2011
|
-
}
|
|
2012
|
-
}
|
|
2013
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2014
|
-
finally {
|
|
2015
|
-
try {
|
|
2016
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2017
|
-
}
|
|
2018
|
-
finally { if (e_1) throw e_1.error; }
|
|
2019
|
-
}
|
|
2020
|
-
});
|
|
2021
|
-
}
|
|
2022
|
-
/**
|
|
2023
|
-
* Lists the FarmBeats instances for a resource group.
|
|
2024
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2025
|
-
* @param options The options parameters.
|
|
2026
|
-
*/
|
|
2027
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
2028
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2029
|
-
return {
|
|
2030
|
-
next() {
|
|
2031
|
-
return iter.next();
|
|
2032
|
-
},
|
|
2033
|
-
[Symbol.asyncIterator]() {
|
|
2034
|
-
return this;
|
|
2035
|
-
},
|
|
2036
|
-
byPage: (settings) => {
|
|
2037
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2038
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2039
|
-
}
|
|
2040
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2041
|
-
}
|
|
2042
|
-
};
|
|
2043
|
-
}
|
|
2044
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2045
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2046
|
-
let result;
|
|
2047
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2048
|
-
if (!continuationToken) {
|
|
2049
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2050
|
-
let page = result.value || [];
|
|
2051
|
-
continuationToken = result.nextLink;
|
|
2052
|
-
setContinuationToken(page, continuationToken);
|
|
2053
|
-
yield yield tslib.__await(page);
|
|
2054
|
-
}
|
|
2055
|
-
while (continuationToken) {
|
|
2056
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2057
|
-
continuationToken = result.nextLink;
|
|
2058
|
-
let page = result.value || [];
|
|
2059
|
-
setContinuationToken(page, continuationToken);
|
|
2060
|
-
yield yield tslib.__await(page);
|
|
2061
|
-
}
|
|
2062
|
-
});
|
|
2063
|
-
}
|
|
2064
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2065
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2066
|
-
var e_2, _a;
|
|
2067
|
-
try {
|
|
2068
|
-
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2069
|
-
const page = _c.value;
|
|
2070
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2074
|
-
finally {
|
|
2075
|
-
try {
|
|
2076
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2077
|
-
}
|
|
2078
|
-
finally { if (e_2) throw e_2.error; }
|
|
2079
|
-
}
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
/**
|
|
2083
|
-
* Get FarmBeats resource.
|
|
2084
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2085
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2086
|
-
* @param options The options parameters.
|
|
2087
|
-
*/
|
|
2088
|
-
get(resourceGroupName, farmBeatsResourceName, options) {
|
|
2089
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, options }, getOperationSpec$2);
|
|
2090
|
-
}
|
|
2091
|
-
/**
|
|
2092
|
-
* Create or update FarmBeats resource.
|
|
2093
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2094
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2095
|
-
* @param body FarmBeats resource create or update request object.
|
|
2096
|
-
* @param options The options parameters.
|
|
2097
|
-
*/
|
|
2098
|
-
createOrUpdate(resourceGroupName, farmBeatsResourceName, body, options) {
|
|
2099
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, body, options }, createOrUpdateOperationSpec$1);
|
|
2100
|
-
}
|
|
2101
|
-
/**
|
|
2102
|
-
* Update a FarmBeats resource.
|
|
2103
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2104
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2105
|
-
* @param body Request object.
|
|
2106
|
-
* @param options The options parameters.
|
|
2107
|
-
*/
|
|
2108
|
-
beginUpdate(resourceGroupName, farmBeatsResourceName, body, options) {
|
|
2109
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2110
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2111
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2112
|
-
});
|
|
2113
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2114
|
-
var _a;
|
|
2115
|
-
let currentRawResponse = undefined;
|
|
2116
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2117
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2118
|
-
currentRawResponse = rawResponse;
|
|
2119
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2120
|
-
};
|
|
2121
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2122
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2123
|
-
return {
|
|
2124
|
-
flatResponse,
|
|
2125
|
-
rawResponse: {
|
|
2126
|
-
statusCode: currentRawResponse.status,
|
|
2127
|
-
body: currentRawResponse.parsedBody,
|
|
2128
|
-
headers: currentRawResponse.headers.toJSON()
|
|
2129
|
-
}
|
|
2130
|
-
};
|
|
2131
|
-
});
|
|
2132
|
-
const lro = new LroImpl(sendOperation, { resourceGroupName, farmBeatsResourceName, body, options }, updateOperationSpec);
|
|
2133
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
2134
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2135
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2136
|
-
lroResourceLocationConfig: "location"
|
|
2137
|
-
});
|
|
2138
|
-
yield poller.poll();
|
|
2139
|
-
return poller;
|
|
2140
|
-
});
|
|
2141
|
-
}
|
|
2142
|
-
/**
|
|
2143
|
-
* Update a FarmBeats resource.
|
|
2144
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2145
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2146
|
-
* @param body Request object.
|
|
2147
|
-
* @param options The options parameters.
|
|
2148
|
-
*/
|
|
2149
|
-
beginUpdateAndWait(resourceGroupName, farmBeatsResourceName, body, options) {
|
|
2150
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2151
|
-
const poller = yield this.beginUpdate(resourceGroupName, farmBeatsResourceName, body, options);
|
|
2152
|
-
return poller.pollUntilDone();
|
|
2153
|
-
});
|
|
2154
|
-
}
|
|
2155
|
-
/**
|
|
2156
|
-
* Delete a FarmBeats resource.
|
|
2157
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2158
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2159
|
-
* @param options The options parameters.
|
|
2160
|
-
*/
|
|
2161
|
-
delete(resourceGroupName, farmBeatsResourceName, options) {
|
|
2162
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, options }, deleteOperationSpec$1);
|
|
2163
|
-
}
|
|
2164
|
-
/**
|
|
2165
|
-
* Lists the FarmBeats instances for a subscription.
|
|
2166
|
-
* @param options The options parameters.
|
|
2167
|
-
*/
|
|
2168
|
-
_listBySubscription(options) {
|
|
2169
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
2170
|
-
}
|
|
2171
|
-
/**
|
|
2172
|
-
* Lists the FarmBeats instances for a resource group.
|
|
2173
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2174
|
-
* @param options The options parameters.
|
|
2175
|
-
*/
|
|
2176
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
2177
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2178
|
-
}
|
|
2179
|
-
/**
|
|
2180
|
-
* Get operationResults for a FarmBeats resource.
|
|
2181
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2182
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2183
|
-
* @param operationResultsId The operation results id.
|
|
2184
|
-
* @param options The options parameters.
|
|
2185
|
-
*/
|
|
2186
|
-
getOperationResult(resourceGroupName, farmBeatsResourceName, operationResultsId, options) {
|
|
2187
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, operationResultsId, options }, getOperationResultOperationSpec);
|
|
2188
|
-
}
|
|
2189
|
-
/**
|
|
2190
|
-
* ListBySubscriptionNext
|
|
2191
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
2192
|
-
* @param options The options parameters.
|
|
2193
|
-
*/
|
|
2194
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
2195
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
2196
|
-
}
|
|
2197
|
-
/**
|
|
2198
|
-
* ListByResourceGroupNext
|
|
2199
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2200
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2201
|
-
* @param options The options parameters.
|
|
2202
|
-
*/
|
|
2203
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2204
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2205
|
-
}
|
|
2206
|
-
}
|
|
2207
|
-
// Operation Specifications
|
|
2208
|
-
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2209
|
-
const getOperationSpec$2 = {
|
|
2210
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}",
|
|
2211
|
-
httpMethod: "GET",
|
|
2212
|
-
responses: {
|
|
2213
|
-
200: {
|
|
2214
|
-
bodyMapper: FarmBeats
|
|
2215
|
-
},
|
|
2216
|
-
default: {
|
|
2217
|
-
bodyMapper: ErrorResponse
|
|
2218
|
-
}
|
|
2219
|
-
},
|
|
2220
|
-
queryParameters: [apiVersion],
|
|
2221
|
-
urlParameters: [
|
|
2222
|
-
$host,
|
|
2223
|
-
subscriptionId,
|
|
2224
|
-
resourceGroupName,
|
|
2225
|
-
farmBeatsResourceName
|
|
2226
|
-
],
|
|
2227
|
-
headerParameters: [accept],
|
|
2228
|
-
serializer: serializer$4
|
|
2229
|
-
};
|
|
2230
|
-
const createOrUpdateOperationSpec$1 = {
|
|
2231
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}",
|
|
2232
|
-
httpMethod: "PUT",
|
|
2233
|
-
responses: {
|
|
2234
|
-
200: {
|
|
2235
|
-
bodyMapper: FarmBeats
|
|
2236
|
-
},
|
|
2237
|
-
201: {
|
|
2238
|
-
bodyMapper: FarmBeats
|
|
2239
|
-
},
|
|
2240
|
-
default: {
|
|
2241
|
-
bodyMapper: ErrorResponse
|
|
2242
|
-
}
|
|
2243
|
-
},
|
|
2244
|
-
requestBody: body,
|
|
2245
|
-
queryParameters: [apiVersion],
|
|
2246
|
-
urlParameters: [
|
|
2247
|
-
$host,
|
|
2248
|
-
subscriptionId,
|
|
2249
|
-
resourceGroupName,
|
|
2250
|
-
farmBeatsResourceName
|
|
2251
|
-
],
|
|
2252
|
-
headerParameters: [accept, contentType],
|
|
2253
|
-
mediaType: "json",
|
|
2254
|
-
serializer: serializer$4
|
|
2255
|
-
};
|
|
2256
|
-
const updateOperationSpec = {
|
|
2257
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}",
|
|
2258
|
-
httpMethod: "PATCH",
|
|
2259
|
-
responses: {
|
|
2260
|
-
200: {
|
|
2261
|
-
bodyMapper: FarmBeats
|
|
2262
|
-
},
|
|
2263
|
-
201: {
|
|
2264
|
-
bodyMapper: FarmBeats
|
|
2265
|
-
},
|
|
2266
|
-
202: {
|
|
2267
|
-
bodyMapper: FarmBeats
|
|
2268
|
-
},
|
|
2269
|
-
204: {
|
|
2270
|
-
bodyMapper: FarmBeats
|
|
2271
|
-
},
|
|
2272
|
-
default: {
|
|
2273
|
-
bodyMapper: ErrorResponse
|
|
2274
|
-
}
|
|
2275
|
-
},
|
|
2276
|
-
requestBody: body1,
|
|
2277
|
-
queryParameters: [apiVersion],
|
|
2278
|
-
urlParameters: [
|
|
2279
|
-
$host,
|
|
2280
|
-
subscriptionId,
|
|
2281
|
-
resourceGroupName,
|
|
2282
|
-
farmBeatsResourceName
|
|
2283
|
-
],
|
|
2284
|
-
headerParameters: [accept, contentType],
|
|
2285
|
-
mediaType: "json",
|
|
2286
|
-
serializer: serializer$4
|
|
2287
|
-
};
|
|
2288
|
-
const deleteOperationSpec$1 = {
|
|
2289
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}",
|
|
2290
|
-
httpMethod: "DELETE",
|
|
2291
|
-
responses: {
|
|
2292
|
-
200: {},
|
|
2293
|
-
204: {},
|
|
2294
|
-
default: {
|
|
2295
|
-
bodyMapper: ErrorResponse
|
|
2296
|
-
}
|
|
2297
|
-
},
|
|
2298
|
-
queryParameters: [apiVersion],
|
|
2299
|
-
urlParameters: [
|
|
2300
|
-
$host,
|
|
2301
|
-
subscriptionId,
|
|
2302
|
-
resourceGroupName,
|
|
2303
|
-
farmBeatsResourceName
|
|
2304
|
-
],
|
|
2305
|
-
headerParameters: [accept],
|
|
2306
|
-
serializer: serializer$4
|
|
2307
|
-
};
|
|
2308
|
-
const listBySubscriptionOperationSpec = {
|
|
2309
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats",
|
|
2310
|
-
httpMethod: "GET",
|
|
2311
|
-
responses: {
|
|
2312
|
-
200: {
|
|
2313
|
-
bodyMapper: FarmBeatsListResponse
|
|
2314
|
-
},
|
|
2315
|
-
default: {
|
|
2316
|
-
bodyMapper: ErrorResponse
|
|
2317
|
-
}
|
|
2318
|
-
},
|
|
2319
|
-
queryParameters: [
|
|
2320
|
-
apiVersion,
|
|
2321
|
-
maxPageSize,
|
|
2322
|
-
skipToken
|
|
2323
|
-
],
|
|
2324
|
-
urlParameters: [$host, subscriptionId],
|
|
2325
|
-
headerParameters: [accept],
|
|
2326
|
-
serializer: serializer$4
|
|
2327
|
-
};
|
|
2328
|
-
const listByResourceGroupOperationSpec = {
|
|
2329
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats",
|
|
2330
|
-
httpMethod: "GET",
|
|
2331
|
-
responses: {
|
|
2332
|
-
200: {
|
|
2333
|
-
bodyMapper: FarmBeatsListResponse
|
|
2334
|
-
},
|
|
2335
|
-
default: {
|
|
2336
|
-
bodyMapper: ErrorResponse
|
|
2337
|
-
}
|
|
2338
|
-
},
|
|
2339
|
-
queryParameters: [
|
|
2340
|
-
apiVersion,
|
|
2341
|
-
maxPageSize,
|
|
2342
|
-
skipToken
|
|
2343
|
-
],
|
|
2344
|
-
urlParameters: [
|
|
2345
|
-
$host,
|
|
2346
|
-
subscriptionId,
|
|
2347
|
-
resourceGroupName
|
|
2348
|
-
],
|
|
2349
|
-
headerParameters: [accept],
|
|
2350
|
-
serializer: serializer$4
|
|
2351
|
-
};
|
|
2352
|
-
const getOperationResultOperationSpec = {
|
|
2353
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/operationResults/{operationResultsId}",
|
|
2354
|
-
httpMethod: "GET",
|
|
2355
|
-
responses: {
|
|
2356
|
-
200: {
|
|
2357
|
-
bodyMapper: ArmAsyncOperation
|
|
2358
|
-
},
|
|
2359
|
-
default: {
|
|
2360
|
-
bodyMapper: ErrorResponse
|
|
2361
|
-
}
|
|
2362
|
-
},
|
|
2363
|
-
queryParameters: [apiVersion],
|
|
2364
|
-
urlParameters: [
|
|
2365
|
-
$host,
|
|
2366
|
-
subscriptionId,
|
|
2367
|
-
resourceGroupName,
|
|
2368
|
-
farmBeatsResourceName,
|
|
2369
|
-
operationResultsId
|
|
2370
|
-
],
|
|
2371
|
-
headerParameters: [accept],
|
|
2372
|
-
serializer: serializer$4
|
|
2373
|
-
};
|
|
2374
|
-
const listBySubscriptionNextOperationSpec = {
|
|
2375
|
-
path: "{nextLink}",
|
|
2376
|
-
httpMethod: "GET",
|
|
2377
|
-
responses: {
|
|
2378
|
-
200: {
|
|
2379
|
-
bodyMapper: FarmBeatsListResponse
|
|
2380
|
-
},
|
|
2381
|
-
default: {
|
|
2382
|
-
bodyMapper: ErrorResponse
|
|
2383
|
-
}
|
|
2384
|
-
},
|
|
2385
|
-
queryParameters: [
|
|
2386
|
-
apiVersion,
|
|
2387
|
-
maxPageSize,
|
|
2388
|
-
skipToken
|
|
2389
|
-
],
|
|
2390
|
-
urlParameters: [
|
|
2391
|
-
$host,
|
|
2392
|
-
subscriptionId,
|
|
2393
|
-
nextLink
|
|
2394
|
-
],
|
|
2395
|
-
headerParameters: [accept],
|
|
2396
|
-
serializer: serializer$4
|
|
2397
|
-
};
|
|
2398
|
-
const listByResourceGroupNextOperationSpec = {
|
|
2399
|
-
path: "{nextLink}",
|
|
2400
|
-
httpMethod: "GET",
|
|
2401
|
-
responses: {
|
|
2402
|
-
200: {
|
|
2403
|
-
bodyMapper: FarmBeatsListResponse
|
|
2404
|
-
},
|
|
2405
|
-
default: {
|
|
2406
|
-
bodyMapper: ErrorResponse
|
|
2407
|
-
}
|
|
2408
|
-
},
|
|
2409
|
-
queryParameters: [
|
|
2410
|
-
apiVersion,
|
|
2411
|
-
maxPageSize,
|
|
2412
|
-
skipToken
|
|
2413
|
-
],
|
|
2414
|
-
urlParameters: [
|
|
2415
|
-
$host,
|
|
2416
|
-
subscriptionId,
|
|
2417
|
-
resourceGroupName,
|
|
2418
|
-
nextLink
|
|
2419
|
-
],
|
|
2420
|
-
headerParameters: [accept],
|
|
2421
|
-
serializer: serializer$4
|
|
2422
|
-
};
|
|
2423
|
-
|
|
2424
|
-
/*
|
|
2425
|
-
* Copyright (c) Microsoft Corporation.
|
|
2426
|
-
* Licensed under the MIT License.
|
|
2427
|
-
*
|
|
2428
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2429
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2430
|
-
*/
|
|
2431
|
-
/** Class containing Locations operations. */
|
|
2432
|
-
class LocationsImpl {
|
|
2433
|
-
/**
|
|
2434
|
-
* Initialize a new instance of the class Locations class.
|
|
2435
|
-
* @param client Reference to the service client
|
|
2436
|
-
*/
|
|
2437
|
-
constructor(client) {
|
|
2438
|
-
this.client = client;
|
|
2439
|
-
}
|
|
2440
|
-
/**
|
|
2441
|
-
* Checks the name availability of the resource with requested resource name.
|
|
2442
|
-
* @param body NameAvailabilityRequest object.
|
|
2443
|
-
* @param options The options parameters.
|
|
2444
|
-
*/
|
|
2445
|
-
checkNameAvailability(body, options) {
|
|
2446
|
-
return this.client.sendOperationRequest({ body, options }, checkNameAvailabilityOperationSpec);
|
|
2447
|
-
}
|
|
2448
|
-
}
|
|
2449
|
-
// Operation Specifications
|
|
2450
|
-
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2451
|
-
const checkNameAvailabilityOperationSpec = {
|
|
2452
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability",
|
|
2453
|
-
httpMethod: "POST",
|
|
2454
|
-
responses: {
|
|
2455
|
-
200: {
|
|
2456
|
-
bodyMapper: CheckNameAvailabilityResponse
|
|
2457
|
-
},
|
|
2458
|
-
default: {
|
|
2459
|
-
bodyMapper: ErrorResponse
|
|
2460
|
-
}
|
|
2461
|
-
},
|
|
2462
|
-
requestBody: body2,
|
|
2463
|
-
queryParameters: [apiVersion],
|
|
2464
|
-
urlParameters: [$host, subscriptionId],
|
|
2465
|
-
headerParameters: [accept, contentType],
|
|
2466
|
-
mediaType: "json",
|
|
2467
|
-
serializer: serializer$3
|
|
2468
|
-
};
|
|
2469
|
-
|
|
2470
|
-
/*
|
|
2471
|
-
* Copyright (c) Microsoft Corporation.
|
|
2472
|
-
* Licensed under the MIT License.
|
|
2473
|
-
*
|
|
2474
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2475
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2476
|
-
*/
|
|
2477
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2478
|
-
/** Class containing Operations operations. */
|
|
2479
|
-
class OperationsImpl {
|
|
2480
|
-
/**
|
|
2481
|
-
* Initialize a new instance of the class Operations class.
|
|
2482
|
-
* @param client Reference to the service client
|
|
2483
|
-
*/
|
|
2484
|
-
constructor(client) {
|
|
2485
|
-
this.client = client;
|
|
2486
|
-
}
|
|
2487
|
-
/**
|
|
2488
|
-
* Lists the available operations of Microsoft.AgFoodPlatform resource provider.
|
|
2489
|
-
* @param options The options parameters.
|
|
2490
|
-
*/
|
|
2491
|
-
list(options) {
|
|
2492
|
-
const iter = this.listPagingAll(options);
|
|
2493
|
-
return {
|
|
2494
|
-
next() {
|
|
2495
|
-
return iter.next();
|
|
2496
|
-
},
|
|
2497
|
-
[Symbol.asyncIterator]() {
|
|
2498
|
-
return this;
|
|
2499
|
-
},
|
|
2500
|
-
byPage: (settings) => {
|
|
2501
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2502
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2503
|
-
}
|
|
2504
|
-
return this.listPagingPage(options, settings);
|
|
2505
|
-
}
|
|
2506
|
-
};
|
|
2507
|
-
}
|
|
2508
|
-
listPagingPage(options, settings) {
|
|
2509
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2510
|
-
let result;
|
|
2511
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2512
|
-
if (!continuationToken) {
|
|
2513
|
-
result = yield tslib.__await(this._list(options));
|
|
2514
|
-
let page = result.value || [];
|
|
2515
|
-
continuationToken = result.nextLink;
|
|
2516
|
-
setContinuationToken(page, continuationToken);
|
|
2517
|
-
yield yield tslib.__await(page);
|
|
2518
|
-
}
|
|
2519
|
-
while (continuationToken) {
|
|
2520
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2521
|
-
continuationToken = result.nextLink;
|
|
2522
|
-
let page = result.value || [];
|
|
2523
|
-
setContinuationToken(page, continuationToken);
|
|
2524
|
-
yield yield tslib.__await(page);
|
|
2525
|
-
}
|
|
2526
|
-
});
|
|
2527
|
-
}
|
|
2528
|
-
listPagingAll(options) {
|
|
2529
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2530
|
-
var e_1, _a;
|
|
2531
|
-
try {
|
|
2532
|
-
for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2533
|
-
const page = _c.value;
|
|
2534
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2535
|
-
}
|
|
2536
|
-
}
|
|
2537
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2538
|
-
finally {
|
|
2539
|
-
try {
|
|
2540
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2541
|
-
}
|
|
2542
|
-
finally { if (e_1) throw e_1.error; }
|
|
2543
|
-
}
|
|
2544
|
-
});
|
|
2545
|
-
}
|
|
2546
|
-
/**
|
|
2547
|
-
* Lists the available operations of Microsoft.AgFoodPlatform resource provider.
|
|
2548
|
-
* @param options The options parameters.
|
|
2549
|
-
*/
|
|
2550
|
-
_list(options) {
|
|
2551
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2552
|
-
}
|
|
2553
|
-
/**
|
|
2554
|
-
* ListNext
|
|
2555
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2556
|
-
* @param options The options parameters.
|
|
2557
|
-
*/
|
|
2558
|
-
_listNext(nextLink, options) {
|
|
2559
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
2560
|
-
}
|
|
2561
|
-
}
|
|
2562
|
-
// Operation Specifications
|
|
2563
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2564
|
-
const listOperationSpec = {
|
|
2565
|
-
path: "/providers/Microsoft.AgFoodPlatform/operations",
|
|
2566
|
-
httpMethod: "GET",
|
|
2567
|
-
responses: {
|
|
2568
|
-
200: {
|
|
2569
|
-
bodyMapper: OperationListResult
|
|
2570
|
-
},
|
|
2571
|
-
default: {
|
|
2572
|
-
bodyMapper: ErrorResponse
|
|
2573
|
-
}
|
|
2574
|
-
},
|
|
2575
|
-
queryParameters: [apiVersion],
|
|
2576
|
-
urlParameters: [$host],
|
|
2577
|
-
headerParameters: [accept],
|
|
2578
|
-
serializer: serializer$2
|
|
2579
|
-
};
|
|
2580
|
-
const listNextOperationSpec = {
|
|
2581
|
-
path: "{nextLink}",
|
|
2582
|
-
httpMethod: "GET",
|
|
2583
|
-
responses: {
|
|
2584
|
-
200: {
|
|
2585
|
-
bodyMapper: OperationListResult
|
|
2586
|
-
},
|
|
2587
|
-
default: {
|
|
2588
|
-
bodyMapper: ErrorResponse
|
|
2589
|
-
}
|
|
2590
|
-
},
|
|
2591
|
-
queryParameters: [apiVersion],
|
|
2592
|
-
urlParameters: [$host, nextLink],
|
|
2593
|
-
headerParameters: [accept],
|
|
2594
|
-
serializer: serializer$2
|
|
2595
|
-
};
|
|
2596
|
-
|
|
2597
|
-
/*
|
|
2598
|
-
* Copyright (c) Microsoft Corporation.
|
|
2599
|
-
* Licensed under the MIT License.
|
|
2600
|
-
*
|
|
2601
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2602
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2603
|
-
*/
|
|
2604
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2605
|
-
/** Class containing PrivateEndpointConnections operations. */
|
|
2606
|
-
class PrivateEndpointConnectionsImpl {
|
|
2607
|
-
/**
|
|
2608
|
-
* Initialize a new instance of the class PrivateEndpointConnections class.
|
|
2609
|
-
* @param client Reference to the service client
|
|
2610
|
-
*/
|
|
2611
|
-
constructor(client) {
|
|
2612
|
-
this.client = client;
|
|
2613
|
-
}
|
|
2614
|
-
/**
|
|
2615
|
-
* Get list of Private endpoint connections.
|
|
2616
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2617
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2618
|
-
* @param options The options parameters.
|
|
2619
|
-
*/
|
|
2620
|
-
listByResource(resourceGroupName, farmBeatsResourceName, options) {
|
|
2621
|
-
const iter = this.listByResourcePagingAll(resourceGroupName, farmBeatsResourceName, options);
|
|
2622
|
-
return {
|
|
2623
|
-
next() {
|
|
2624
|
-
return iter.next();
|
|
2625
|
-
},
|
|
2626
|
-
[Symbol.asyncIterator]() {
|
|
2627
|
-
return this;
|
|
2628
|
-
},
|
|
2629
|
-
byPage: (settings) => {
|
|
2630
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2631
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2632
|
-
}
|
|
2633
|
-
return this.listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options, settings);
|
|
2634
|
-
}
|
|
2635
|
-
};
|
|
2636
|
-
}
|
|
2637
|
-
listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options, _settings) {
|
|
2638
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
|
|
2639
|
-
let result;
|
|
2640
|
-
result = yield tslib.__await(this._listByResource(resourceGroupName, farmBeatsResourceName, options));
|
|
2641
|
-
yield yield tslib.__await(result.value || []);
|
|
2642
|
-
});
|
|
2643
|
-
}
|
|
2644
|
-
listByResourcePagingAll(resourceGroupName, farmBeatsResourceName, options) {
|
|
2645
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
|
|
2646
|
-
var e_1, _a;
|
|
2647
|
-
try {
|
|
2648
|
-
for (var _b = tslib.__asyncValues(this.listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2649
|
-
const page = _c.value;
|
|
2650
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2654
|
-
finally {
|
|
2655
|
-
try {
|
|
2656
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2657
|
-
}
|
|
2658
|
-
finally { if (e_1) throw e_1.error; }
|
|
2659
|
-
}
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
/**
|
|
2663
|
-
* Approves or Rejects a Private endpoint connection request.
|
|
2664
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2665
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2666
|
-
* @param privateEndpointConnectionName Private endpoint connection name.
|
|
2667
|
-
* @param body Request object.
|
|
2668
|
-
* @param options The options parameters.
|
|
2669
|
-
*/
|
|
2670
|
-
createOrUpdate(resourceGroupName, farmBeatsResourceName, privateEndpointConnectionName, body, options) {
|
|
2671
|
-
return this.client.sendOperationRequest({
|
|
2672
|
-
resourceGroupName,
|
|
2673
|
-
farmBeatsResourceName,
|
|
2674
|
-
privateEndpointConnectionName,
|
|
2675
|
-
body,
|
|
2676
|
-
options
|
|
2677
|
-
}, createOrUpdateOperationSpec);
|
|
2678
|
-
}
|
|
2679
|
-
/**
|
|
2680
|
-
* Get Private endpoint connection object.
|
|
2681
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2682
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2683
|
-
* @param privateEndpointConnectionName Private endpoint connection name.
|
|
2684
|
-
* @param options The options parameters.
|
|
2685
|
-
*/
|
|
2686
|
-
get(resourceGroupName, farmBeatsResourceName, privateEndpointConnectionName, options) {
|
|
2687
|
-
return this.client.sendOperationRequest({
|
|
2688
|
-
resourceGroupName,
|
|
2689
|
-
farmBeatsResourceName,
|
|
2690
|
-
privateEndpointConnectionName,
|
|
2691
|
-
options
|
|
2692
|
-
}, getOperationSpec$1);
|
|
2693
|
-
}
|
|
2694
|
-
/**
|
|
2695
|
-
* Delete Private endpoint connection request.
|
|
2696
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2697
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2698
|
-
* @param privateEndpointConnectionName Private endpoint connection name.
|
|
2699
|
-
* @param options The options parameters.
|
|
2700
|
-
*/
|
|
2701
|
-
beginDelete(resourceGroupName, farmBeatsResourceName, privateEndpointConnectionName, options) {
|
|
2702
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2703
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2704
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2705
|
-
});
|
|
2706
|
-
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2707
|
-
var _a;
|
|
2708
|
-
let currentRawResponse = undefined;
|
|
2709
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2710
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2711
|
-
currentRawResponse = rawResponse;
|
|
2712
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2713
|
-
};
|
|
2714
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2715
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2716
|
-
return {
|
|
2717
|
-
flatResponse,
|
|
2718
|
-
rawResponse: {
|
|
2719
|
-
statusCode: currentRawResponse.status,
|
|
2720
|
-
body: currentRawResponse.parsedBody,
|
|
2721
|
-
headers: currentRawResponse.headers.toJSON()
|
|
2722
|
-
}
|
|
2723
|
-
};
|
|
2724
|
-
});
|
|
2725
|
-
const lro = new LroImpl(sendOperation, {
|
|
2726
|
-
resourceGroupName,
|
|
2727
|
-
farmBeatsResourceName,
|
|
2728
|
-
privateEndpointConnectionName,
|
|
2729
|
-
options
|
|
2730
|
-
}, deleteOperationSpec);
|
|
2731
|
-
const poller = new coreLro.LroEngine(lro, {
|
|
2732
|
-
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2733
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2734
|
-
lroResourceLocationConfig: "location"
|
|
2735
|
-
});
|
|
2736
|
-
yield poller.poll();
|
|
2737
|
-
return poller;
|
|
2738
|
-
});
|
|
2739
|
-
}
|
|
2740
|
-
/**
|
|
2741
|
-
* Delete Private endpoint connection request.
|
|
2742
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2743
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2744
|
-
* @param privateEndpointConnectionName Private endpoint connection name.
|
|
2745
|
-
* @param options The options parameters.
|
|
2746
|
-
*/
|
|
2747
|
-
beginDeleteAndWait(resourceGroupName, farmBeatsResourceName, privateEndpointConnectionName, options) {
|
|
2748
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2749
|
-
const poller = yield this.beginDelete(resourceGroupName, farmBeatsResourceName, privateEndpointConnectionName, options);
|
|
2750
|
-
return poller.pollUntilDone();
|
|
2751
|
-
});
|
|
2752
|
-
}
|
|
2753
|
-
/**
|
|
2754
|
-
* Get list of Private endpoint connections.
|
|
2755
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2756
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2757
|
-
* @param options The options parameters.
|
|
2758
|
-
*/
|
|
2759
|
-
_listByResource(resourceGroupName, farmBeatsResourceName, options) {
|
|
2760
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, options }, listByResourceOperationSpec$1);
|
|
2761
|
-
}
|
|
2762
|
-
}
|
|
2763
|
-
// Operation Specifications
|
|
2764
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2765
|
-
const createOrUpdateOperationSpec = {
|
|
2766
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2767
|
-
httpMethod: "PUT",
|
|
2768
|
-
responses: {
|
|
2769
|
-
200: {
|
|
2770
|
-
bodyMapper: PrivateEndpointConnection
|
|
2771
|
-
},
|
|
2772
|
-
default: {
|
|
2773
|
-
bodyMapper: ErrorResponse
|
|
2774
|
-
}
|
|
2775
|
-
},
|
|
2776
|
-
requestBody: body3,
|
|
2777
|
-
queryParameters: [apiVersion],
|
|
2778
|
-
urlParameters: [
|
|
2779
|
-
$host,
|
|
2780
|
-
subscriptionId,
|
|
2781
|
-
resourceGroupName,
|
|
2782
|
-
farmBeatsResourceName,
|
|
2783
|
-
privateEndpointConnectionName
|
|
2784
|
-
],
|
|
2785
|
-
headerParameters: [accept, contentType],
|
|
2786
|
-
mediaType: "json",
|
|
2787
|
-
serializer: serializer$1
|
|
2788
|
-
};
|
|
2789
|
-
const getOperationSpec$1 = {
|
|
2790
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2791
|
-
httpMethod: "GET",
|
|
2792
|
-
responses: {
|
|
2793
|
-
200: {
|
|
2794
|
-
bodyMapper: PrivateEndpointConnection
|
|
2795
|
-
},
|
|
2796
|
-
404: {
|
|
2797
|
-
bodyMapper: ErrorResponse,
|
|
2798
|
-
isError: true
|
|
2799
|
-
},
|
|
2800
|
-
default: {
|
|
2801
|
-
bodyMapper: ErrorResponse
|
|
2802
|
-
}
|
|
2803
|
-
},
|
|
2804
|
-
queryParameters: [apiVersion],
|
|
2805
|
-
urlParameters: [
|
|
2806
|
-
$host,
|
|
2807
|
-
subscriptionId,
|
|
2808
|
-
resourceGroupName,
|
|
2809
|
-
farmBeatsResourceName,
|
|
2810
|
-
privateEndpointConnectionName
|
|
2811
|
-
],
|
|
2812
|
-
headerParameters: [accept],
|
|
2813
|
-
serializer: serializer$1
|
|
2814
|
-
};
|
|
2815
|
-
const deleteOperationSpec = {
|
|
2816
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
2817
|
-
httpMethod: "DELETE",
|
|
2818
|
-
responses: {
|
|
2819
|
-
200: {},
|
|
2820
|
-
201: {},
|
|
2821
|
-
202: {},
|
|
2822
|
-
204: {},
|
|
2823
|
-
default: {
|
|
2824
|
-
bodyMapper: ErrorResponse
|
|
2825
|
-
}
|
|
2826
|
-
},
|
|
2827
|
-
queryParameters: [apiVersion],
|
|
2828
|
-
urlParameters: [
|
|
2829
|
-
$host,
|
|
2830
|
-
subscriptionId,
|
|
2831
|
-
resourceGroupName,
|
|
2832
|
-
farmBeatsResourceName,
|
|
2833
|
-
privateEndpointConnectionName
|
|
2834
|
-
],
|
|
2835
|
-
headerParameters: [accept],
|
|
2836
|
-
serializer: serializer$1
|
|
2837
|
-
};
|
|
2838
|
-
const listByResourceOperationSpec$1 = {
|
|
2839
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateEndpointConnections",
|
|
2840
|
-
httpMethod: "GET",
|
|
2841
|
-
responses: {
|
|
2842
|
-
200: {
|
|
2843
|
-
bodyMapper: PrivateEndpointConnectionListResult
|
|
2844
|
-
},
|
|
2845
|
-
default: {
|
|
2846
|
-
bodyMapper: ErrorResponse
|
|
2847
|
-
}
|
|
2848
|
-
},
|
|
2849
|
-
queryParameters: [apiVersion],
|
|
2850
|
-
urlParameters: [
|
|
2851
|
-
$host,
|
|
2852
|
-
subscriptionId,
|
|
2853
|
-
resourceGroupName,
|
|
2854
|
-
farmBeatsResourceName
|
|
2855
|
-
],
|
|
2856
|
-
headerParameters: [accept],
|
|
2857
|
-
serializer: serializer$1
|
|
2858
|
-
};
|
|
2859
|
-
|
|
2860
|
-
/*
|
|
2861
|
-
* Copyright (c) Microsoft Corporation.
|
|
2862
|
-
* Licensed under the MIT License.
|
|
2863
|
-
*
|
|
2864
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2865
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2866
|
-
*/
|
|
2867
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2868
|
-
/** Class containing PrivateLinkResources operations. */
|
|
2869
|
-
class PrivateLinkResourcesImpl {
|
|
2870
|
-
/**
|
|
2871
|
-
* Initialize a new instance of the class PrivateLinkResources class.
|
|
2872
|
-
* @param client Reference to the service client
|
|
2873
|
-
*/
|
|
2874
|
-
constructor(client) {
|
|
2875
|
-
this.client = client;
|
|
2876
|
-
}
|
|
2877
|
-
/**
|
|
2878
|
-
* Get list of Private link resources.
|
|
2879
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2880
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2881
|
-
* @param options The options parameters.
|
|
2882
|
-
*/
|
|
2883
|
-
listByResource(resourceGroupName, farmBeatsResourceName, options) {
|
|
2884
|
-
const iter = this.listByResourcePagingAll(resourceGroupName, farmBeatsResourceName, options);
|
|
2885
|
-
return {
|
|
2886
|
-
next() {
|
|
2887
|
-
return iter.next();
|
|
2888
|
-
},
|
|
2889
|
-
[Symbol.asyncIterator]() {
|
|
2890
|
-
return this;
|
|
2891
|
-
},
|
|
2892
|
-
byPage: (settings) => {
|
|
2893
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2894
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2895
|
-
}
|
|
2896
|
-
return this.listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options, settings);
|
|
2897
|
-
}
|
|
2898
|
-
};
|
|
2899
|
-
}
|
|
2900
|
-
listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options, _settings) {
|
|
2901
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
|
|
2902
|
-
let result;
|
|
2903
|
-
result = yield tslib.__await(this._listByResource(resourceGroupName, farmBeatsResourceName, options));
|
|
2904
|
-
yield yield tslib.__await(result.value || []);
|
|
2905
|
-
});
|
|
2906
|
-
}
|
|
2907
|
-
listByResourcePagingAll(resourceGroupName, farmBeatsResourceName, options) {
|
|
2908
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
|
|
2909
|
-
var e_1, _a;
|
|
2910
|
-
try {
|
|
2911
|
-
for (var _b = tslib.__asyncValues(this.listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
2912
|
-
const page = _c.value;
|
|
2913
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2917
|
-
finally {
|
|
2918
|
-
try {
|
|
2919
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
2920
|
-
}
|
|
2921
|
-
finally { if (e_1) throw e_1.error; }
|
|
2922
|
-
}
|
|
2923
|
-
});
|
|
2924
|
-
}
|
|
2925
|
-
/**
|
|
2926
|
-
* Get list of Private link resources.
|
|
2927
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2928
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2929
|
-
* @param options The options parameters.
|
|
2930
|
-
*/
|
|
2931
|
-
_listByResource(resourceGroupName, farmBeatsResourceName, options) {
|
|
2932
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, options }, listByResourceOperationSpec);
|
|
2933
|
-
}
|
|
2934
|
-
/**
|
|
2935
|
-
* Get Private link resource object.
|
|
2936
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2937
|
-
* @param farmBeatsResourceName FarmBeats resource name.
|
|
2938
|
-
* @param subResourceName Sub resource name.
|
|
2939
|
-
* @param options The options parameters.
|
|
2940
|
-
*/
|
|
2941
|
-
get(resourceGroupName, farmBeatsResourceName, subResourceName, options) {
|
|
2942
|
-
return this.client.sendOperationRequest({ resourceGroupName, farmBeatsResourceName, subResourceName, options }, getOperationSpec);
|
|
2943
|
-
}
|
|
2944
|
-
}
|
|
2945
|
-
// Operation Specifications
|
|
2946
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2947
|
-
const listByResourceOperationSpec = {
|
|
2948
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateLinkResources",
|
|
2949
|
-
httpMethod: "GET",
|
|
2950
|
-
responses: {
|
|
2951
|
-
200: {
|
|
2952
|
-
bodyMapper: PrivateLinkResourceListResult
|
|
2953
|
-
},
|
|
2954
|
-
default: {
|
|
2955
|
-
bodyMapper: ErrorResponse
|
|
2956
|
-
}
|
|
2957
|
-
},
|
|
2958
|
-
queryParameters: [apiVersion],
|
|
2959
|
-
urlParameters: [
|
|
2960
|
-
$host,
|
|
2961
|
-
subscriptionId,
|
|
2962
|
-
resourceGroupName,
|
|
2963
|
-
farmBeatsResourceName
|
|
2964
|
-
],
|
|
2965
|
-
headerParameters: [accept],
|
|
2966
|
-
serializer
|
|
2967
|
-
};
|
|
2968
|
-
const getOperationSpec = {
|
|
2969
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/privateLinkResources/{subResourceName}",
|
|
2970
|
-
httpMethod: "GET",
|
|
2971
|
-
responses: {
|
|
2972
|
-
200: {
|
|
2973
|
-
bodyMapper: PrivateLinkResource
|
|
2974
|
-
},
|
|
2975
|
-
404: {
|
|
2976
|
-
bodyMapper: ErrorResponse,
|
|
2977
|
-
isError: true
|
|
2978
|
-
},
|
|
2979
|
-
default: {
|
|
2980
|
-
bodyMapper: ErrorResponse
|
|
2981
|
-
}
|
|
2982
|
-
},
|
|
2983
|
-
queryParameters: [apiVersion],
|
|
2984
|
-
urlParameters: [
|
|
2985
|
-
$host,
|
|
2986
|
-
subscriptionId,
|
|
2987
|
-
resourceGroupName,
|
|
2988
|
-
farmBeatsResourceName,
|
|
2989
|
-
subResourceName
|
|
2990
|
-
],
|
|
2991
|
-
headerParameters: [accept],
|
|
2992
|
-
serializer
|
|
2993
|
-
};
|
|
2994
|
-
|
|
2995
|
-
/*
|
|
2996
|
-
* Copyright (c) Microsoft Corporation.
|
|
2997
|
-
* Licensed under the MIT License.
|
|
2998
|
-
*
|
|
2999
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3000
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3001
|
-
*/
|
|
3002
|
-
class AgriFoodMgmtClient extends coreClient__namespace.ServiceClient {
|
|
3003
|
-
/**
|
|
3004
|
-
* Initializes a new instance of the AgriFoodMgmtClient class.
|
|
3005
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3006
|
-
* @param subscriptionId The ID of the target subscription.
|
|
3007
|
-
* @param options The parameter options
|
|
3008
|
-
*/
|
|
3009
|
-
constructor(credentials, subscriptionId, options) {
|
|
3010
|
-
var _a, _b, _c;
|
|
3011
|
-
if (credentials === undefined) {
|
|
3012
|
-
throw new Error("'credentials' cannot be null");
|
|
3013
|
-
}
|
|
3014
|
-
if (subscriptionId === undefined) {
|
|
3015
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
3016
|
-
}
|
|
3017
|
-
// Initializing default values for options
|
|
3018
|
-
if (!options) {
|
|
3019
|
-
options = {};
|
|
3020
|
-
}
|
|
3021
|
-
const defaults = {
|
|
3022
|
-
requestContentType: "application/json; charset=utf-8",
|
|
3023
|
-
credential: credentials
|
|
3024
|
-
};
|
|
3025
|
-
const packageDetails = `azsdk-js-arm-agrifood/1.0.0-beta.4`;
|
|
3026
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3027
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3028
|
-
: `${packageDetails}`;
|
|
3029
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3030
|
-
userAgentPrefix
|
|
3031
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3032
|
-
super(optionsWithDefaults);
|
|
3033
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
3034
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3035
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3036
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3037
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3038
|
-
}
|
|
3039
|
-
if (!options ||
|
|
3040
|
-
!options.pipeline ||
|
|
3041
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3042
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
3043
|
-
this.pipeline.removePolicy({
|
|
3044
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3045
|
-
});
|
|
3046
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3047
|
-
credential: credentials,
|
|
3048
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3049
|
-
challengeCallbacks: {
|
|
3050
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3051
|
-
}
|
|
3052
|
-
}));
|
|
3053
|
-
}
|
|
3054
|
-
// Parameter assignments
|
|
3055
|
-
this.subscriptionId = subscriptionId;
|
|
3056
|
-
// Assigning values to Constant parameters
|
|
3057
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
3058
|
-
this.apiVersion = options.apiVersion || "2021-09-01-preview";
|
|
3059
|
-
this.extensions = new ExtensionsImpl(this);
|
|
3060
|
-
this.farmBeatsExtensions = new FarmBeatsExtensionsImpl(this);
|
|
3061
|
-
this.farmBeatsModels = new FarmBeatsModelsImpl(this);
|
|
3062
|
-
this.locations = new LocationsImpl(this);
|
|
3063
|
-
this.operations = new OperationsImpl(this);
|
|
3064
|
-
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
3065
|
-
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
3066
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3067
|
-
}
|
|
3068
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
3069
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
3070
|
-
if (!apiVersion) {
|
|
3071
|
-
return;
|
|
3072
|
-
}
|
|
3073
|
-
const apiVersionPolicy = {
|
|
3074
|
-
name: "CustomApiVersionPolicy",
|
|
3075
|
-
sendRequest(request, next) {
|
|
3076
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3077
|
-
const param = request.url.split("?");
|
|
3078
|
-
if (param.length > 1) {
|
|
3079
|
-
const newParams = param[1].split("&").map((item) => {
|
|
3080
|
-
if (item.indexOf("api-version") > -1) {
|
|
3081
|
-
return "api-version=" + apiVersion;
|
|
3082
|
-
}
|
|
3083
|
-
else {
|
|
3084
|
-
return item;
|
|
3085
|
-
}
|
|
3086
|
-
});
|
|
3087
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
3088
|
-
}
|
|
3089
|
-
return next(request);
|
|
3090
|
-
});
|
|
3091
|
-
}
|
|
3092
|
-
};
|
|
3093
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
3094
|
-
}
|
|
3095
|
-
}
|
|
3096
|
-
|
|
3097
|
-
exports.AgriFoodMgmtClient = AgriFoodMgmtClient;
|
|
3098
|
-
exports.getContinuationToken = getContinuationToken;
|
|
3099
|
-
//# sourceMappingURL=index.js.map
|