@azure/arm-databox 5.0.1-alpha.20241230.1 → 5.0.1-alpha.20241231.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist-esm/src → dist/browser}/dataBoxManagementClient.d.ts +2 -2
- package/dist/browser/dataBoxManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/dataBoxManagementClient.js +17 -20
- package/dist/browser/dataBoxManagementClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/jobs.d.ts +3 -3
- package/dist/browser/operations/jobs.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/jobs.js +113 -125
- package/dist/browser/operations/jobs.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +3 -3
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/service.d.ts +3 -3
- package/dist/browser/operations/service.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/service.js +3 -3
- package/dist/browser/operations/service.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +11 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/jobs.d.ts +1 -1
- package/dist/browser/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/jobs.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/service.d.ts +1 -1
- package/dist/browser/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/service.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/dataBoxManagementClient.d.ts +31 -0
- package/dist/commonjs/dataBoxManagementClient.d.ts.map +1 -0
- package/dist/commonjs/dataBoxManagementClient.js +140 -0
- package/dist/commonjs/dataBoxManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +24 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-databox.d.ts → dist/commonjs/models/index.d.ts} +2491 -2916
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +239 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +174 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +4484 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +24 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +179 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/jobs.d.ts +161 -0
- package/dist/commonjs/operations/jobs.d.ts.map +1 -0
- package/dist/commonjs/operations/jobs.js +728 -0
- package/dist/commonjs/operations/jobs.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +137 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operations/service.d.ts +83 -0
- package/dist/commonjs/operations/service.d.ts.map +1 -0
- package/dist/commonjs/operations/service.js +324 -0
- package/dist/commonjs/operations/service.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/jobs.d.ts +115 -0
- package/dist/commonjs/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/jobs.js +10 -0
- package/dist/commonjs/operationsInterfaces/jobs.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/{dist-esm/src/operations/index.js → dist/commonjs/operationsInterfaces/operations.js} +3 -4
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/service.d.ts +54 -0
- package/dist/commonjs/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/service.js +10 -0
- package/dist/commonjs/operationsInterfaces/service.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/esm/dataBoxManagementClient.d.ts +31 -0
- package/dist/esm/dataBoxManagementClient.d.ts.map +1 -0
- package/dist/esm/dataBoxManagementClient.js +135 -0
- package/dist/esm/dataBoxManagementClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +21 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +2491 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +236 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +174 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/{index.js → esm/models/mappers.js} +129 -2060
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +24 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +176 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/jobs.d.ts +161 -0
- package/dist/esm/operations/jobs.d.ts.map +1 -0
- package/dist/esm/operations/jobs.js +724 -0
- package/dist/esm/operations/jobs.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +133 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operations/service.d.ts +83 -0
- package/dist/esm/operations/service.d.ts.map +1 -0
- package/dist/esm/operations/service.js +320 -0
- package/dist/esm/operations/service.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/jobs.d.ts +115 -0
- package/dist/esm/operationsInterfaces/jobs.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/jobs.js} +2 -4
- package/dist/esm/operationsInterfaces/jobs.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/service.d.ts +54 -0
- package/dist/esm/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/service.js +9 -0
- package/dist/esm/operationsInterfaces/service.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/dataBoxManagementClient.d.ts +31 -0
- package/dist/react-native/dataBoxManagementClient.d.ts.map +1 -0
- package/dist/react-native/dataBoxManagementClient.js +135 -0
- package/dist/react-native/dataBoxManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +21 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2491 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +236 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +174 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +4479 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +24 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +176 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/jobs.d.ts +161 -0
- package/dist/react-native/operations/jobs.d.ts.map +1 -0
- package/dist/react-native/operations/jobs.js +724 -0
- package/dist/react-native/operations/jobs.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +133 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operations/service.d.ts +83 -0
- package/dist/react-native/operations/service.d.ts.map +1 -0
- package/dist/react-native/operations/service.js +320 -0
- package/dist/react-native/operations/service.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/jobs.d.ts +115 -0
- package/dist/react-native/operationsInterfaces/jobs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/jobs.js +9 -0
- package/dist/react-native/operationsInterfaces/jobs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/service.d.ts +54 -0
- package/dist/react-native/operationsInterfaces/service.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/service.js +9 -0
- package/dist/react-native/operationsInterfaces/service.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +59 -29
- 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/jobsBookShipmentPickUpSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.js +0 -43
- package/dist-esm/samples-dev/jobsBookShipmentPickUpSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsCancelSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsCancelSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsCancelSample.js +0 -39
- package/dist-esm/samples-dev/jobsCancelSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsCreateSample.js +0 -289
- package/dist-esm/samples-dev/jobsCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsDeleteSample.js +0 -38
- package/dist-esm/samples-dev/jobsDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsGetSample.js +0 -120
- package/dist-esm/samples-dev/jobsGetSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsListByResourceGroupSample.js +0 -53
- package/dist-esm/samples-dev/jobsListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsListCredentialsSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsListCredentialsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsListCredentialsSample.js +0 -54
- package/dist-esm/samples-dev/jobsListCredentialsSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsListSample.js +0 -52
- package/dist-esm/samples-dev/jobsListSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.js +0 -44
- package/dist-esm/samples-dev/jobsMarkDevicesShippedSample.js.map +0 -1
- package/dist-esm/samples-dev/jobsUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/jobsUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/jobsUpdateSample.js +0 -124
- package/dist-esm/samples-dev/jobsUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/mitigateSample.d.ts +0 -2
- package/dist-esm/samples-dev/mitigateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/mitigateSample.js +0 -44
- package/dist-esm/samples-dev/mitigateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -53
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.js +0 -59
- package/dist-esm/samples-dev/serviceListAvailableSkusByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.js +0 -44
- package/dist-esm/samples-dev/serviceRegionConfigurationByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/serviceRegionConfigurationSample.d.ts +0 -2
- package/dist-esm/samples-dev/serviceRegionConfigurationSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serviceRegionConfigurationSample.js +0 -43
- package/dist-esm/samples-dev/serviceRegionConfigurationSample.js.map +0 -1
- package/dist-esm/samples-dev/serviceValidateAddressSample.d.ts +0 -2
- package/dist-esm/samples-dev/serviceValidateAddressSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serviceValidateAddressSample.js +0 -51
- package/dist-esm/samples-dev/serviceValidateAddressSample.js.map +0 -1
- package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.js +0 -87
- package/dist-esm/samples-dev/serviceValidateInputsByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/serviceValidateInputsSample.d.ts +0 -2
- package/dist-esm/samples-dev/serviceValidateInputsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/serviceValidateInputsSample.js +0 -86
- package/dist-esm/samples-dev/serviceValidateInputsSample.js.map +0 -1
- package/dist-esm/src/dataBoxManagementClient.d.ts.map +0 -1
- package/dist-esm/src/dataBoxManagementClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/jobs.d.ts.map +0 -1
- package/dist-esm/src/operations/jobs.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/service.d.ts.map +0 -1
- package/dist-esm/src/operations/service.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/jobs.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/jobs.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/service.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/service.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/databox_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/databox_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/databox_operations_test.spec.js +0 -77
- package/dist-esm/test/databox_operations_test.spec.js.map +0 -1
- package/src/dataBoxManagementClient.ts +0 -195
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -2800
- package/src/models/mappers.ts +0 -4799
- package/src/models/parameters.ts +0 -214
- package/src/operations/jobs.ts +0 -955
- package/src/operations/operations.ts +0 -149
- package/src/operations/service.ts +0 -443
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/jobs.ts +0 -205
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/operationsInterfaces/service.ts +0 -107
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/lroImpl.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/jobs.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/service.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
- /package/{types → dist/commonjs}/tsdoc-metadata.json +0 -0
|
@@ -0,0 +1,724 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers.js";
|
|
12
|
+
import * as Parameters from "../models/parameters.js";
|
|
13
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
14
|
+
import { createLroSpec } from "../lroImpl.js";
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Class containing Jobs operations. */
|
|
17
|
+
export class JobsImpl {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize a new instance of the class Jobs class.
|
|
20
|
+
* @param client Reference to the service client
|
|
21
|
+
*/
|
|
22
|
+
constructor(client) {
|
|
23
|
+
this.client = client;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Lists all the jobs available under the subscription.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
list(options) {
|
|
30
|
+
const iter = this.listPagingAll(options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: (settings) => {
|
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
|
+
}
|
|
42
|
+
return this.listPagingPage(options, settings);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
listPagingPage(options, settings) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = yield __await(this._list(options));
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield yield __await(page);
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield yield __await(page);
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
listPagingAll(options) {
|
|
67
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
68
|
+
var _a, e_1, _b, _c;
|
|
69
|
+
try {
|
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
+
_c = _f.value;
|
|
72
|
+
_d = false;
|
|
73
|
+
const page = _c;
|
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
+
finally {
|
|
79
|
+
try {
|
|
80
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
+
}
|
|
82
|
+
finally { if (e_1) throw e_1.error; }
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Lists all the jobs available under the given resource group.
|
|
88
|
+
* @param resourceGroupName The Resource Group Name
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
92
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
93
|
+
return {
|
|
94
|
+
next() {
|
|
95
|
+
return iter.next();
|
|
96
|
+
},
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
byPage: (settings) => {
|
|
101
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
102
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
|
+
}
|
|
104
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
110
|
+
let result;
|
|
111
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
112
|
+
if (!continuationToken) {
|
|
113
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
114
|
+
let page = result.value || [];
|
|
115
|
+
continuationToken = result.nextLink;
|
|
116
|
+
setContinuationToken(page, continuationToken);
|
|
117
|
+
yield yield __await(page);
|
|
118
|
+
}
|
|
119
|
+
while (continuationToken) {
|
|
120
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
121
|
+
continuationToken = result.nextLink;
|
|
122
|
+
let page = result.value || [];
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield yield __await(page);
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
130
|
+
var _a, e_2, _b, _c;
|
|
131
|
+
try {
|
|
132
|
+
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
+
_c = _f.value;
|
|
134
|
+
_d = false;
|
|
135
|
+
const page = _c;
|
|
136
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
+
finally {
|
|
141
|
+
try {
|
|
142
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
+
}
|
|
144
|
+
finally { if (e_2) throw e_2.error; }
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* This method gets the unencrypted secrets related to the job.
|
|
150
|
+
* @param resourceGroupName The Resource Group Name
|
|
151
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
152
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
listCredentials(resourceGroupName, jobName, options) {
|
|
156
|
+
const iter = this.listCredentialsPagingAll(resourceGroupName, jobName, options);
|
|
157
|
+
return {
|
|
158
|
+
next() {
|
|
159
|
+
return iter.next();
|
|
160
|
+
},
|
|
161
|
+
[Symbol.asyncIterator]() {
|
|
162
|
+
return this;
|
|
163
|
+
},
|
|
164
|
+
byPage: (settings) => {
|
|
165
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
166
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
167
|
+
}
|
|
168
|
+
return this.listCredentialsPagingPage(resourceGroupName, jobName, options, settings);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
listCredentialsPagingPage(resourceGroupName, jobName, options, _settings) {
|
|
173
|
+
return __asyncGenerator(this, arguments, function* listCredentialsPagingPage_1() {
|
|
174
|
+
let result;
|
|
175
|
+
result = yield __await(this._listCredentials(resourceGroupName, jobName, options));
|
|
176
|
+
yield yield __await(result.value || []);
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
listCredentialsPagingAll(resourceGroupName, jobName, options) {
|
|
180
|
+
return __asyncGenerator(this, arguments, function* listCredentialsPagingAll_1() {
|
|
181
|
+
var _a, e_3, _b, _c;
|
|
182
|
+
try {
|
|
183
|
+
for (var _d = true, _e = __asyncValues(this.listCredentialsPagingPage(resourceGroupName, jobName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
184
|
+
_c = _f.value;
|
|
185
|
+
_d = false;
|
|
186
|
+
const page = _c;
|
|
187
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
191
|
+
finally {
|
|
192
|
+
try {
|
|
193
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
194
|
+
}
|
|
195
|
+
finally { if (e_3) throw e_3.error; }
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Lists all the jobs available under the subscription.
|
|
201
|
+
* @param options The options parameters.
|
|
202
|
+
*/
|
|
203
|
+
_list(options) {
|
|
204
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Request to mark devices for a given job as shipped
|
|
208
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
209
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
210
|
+
* @param resourceGroupName The Resource Group Name
|
|
211
|
+
* @param markDevicesShippedRequest Mark Devices Shipped Request
|
|
212
|
+
* @param options The options parameters.
|
|
213
|
+
*/
|
|
214
|
+
markDevicesShipped(jobName, resourceGroupName, markDevicesShippedRequest, options) {
|
|
215
|
+
return this.client.sendOperationRequest({ jobName, resourceGroupName, markDevicesShippedRequest, options }, markDevicesShippedOperationSpec);
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Lists all the jobs available under the given resource group.
|
|
219
|
+
* @param resourceGroupName The Resource Group Name
|
|
220
|
+
* @param options The options parameters.
|
|
221
|
+
*/
|
|
222
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
223
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Gets information about the specified job.
|
|
227
|
+
* @param resourceGroupName The Resource Group Name
|
|
228
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
229
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
230
|
+
* @param options The options parameters.
|
|
231
|
+
*/
|
|
232
|
+
get(resourceGroupName, jobName, options) {
|
|
233
|
+
return this.client.sendOperationRequest({ resourceGroupName, jobName, options }, getOperationSpec);
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Creates a new job with the specified parameters. Existing job cannot be updated with this API and
|
|
237
|
+
* should instead be updated with the Update job API.
|
|
238
|
+
* @param resourceGroupName The Resource Group Name
|
|
239
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
240
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
241
|
+
* @param jobResource Job details from request body.
|
|
242
|
+
* @param options The options parameters.
|
|
243
|
+
*/
|
|
244
|
+
async beginCreate(resourceGroupName, jobName, jobResource, options) {
|
|
245
|
+
const directSendOperation = async (args, spec) => {
|
|
246
|
+
return this.client.sendOperationRequest(args, spec);
|
|
247
|
+
};
|
|
248
|
+
const sendOperationFn = async (args, spec) => {
|
|
249
|
+
var _a;
|
|
250
|
+
let currentRawResponse = undefined;
|
|
251
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
252
|
+
const callback = (rawResponse, flatResponse) => {
|
|
253
|
+
currentRawResponse = rawResponse;
|
|
254
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
255
|
+
};
|
|
256
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
257
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
258
|
+
return {
|
|
259
|
+
flatResponse,
|
|
260
|
+
rawResponse: {
|
|
261
|
+
statusCode: currentRawResponse.status,
|
|
262
|
+
body: currentRawResponse.parsedBody,
|
|
263
|
+
headers: currentRawResponse.headers.toJSON()
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
const lro = createLroSpec({
|
|
268
|
+
sendOperationFn,
|
|
269
|
+
args: { resourceGroupName, jobName, jobResource, options },
|
|
270
|
+
spec: createOperationSpec
|
|
271
|
+
});
|
|
272
|
+
const poller = await createHttpPoller(lro, {
|
|
273
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
274
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
275
|
+
});
|
|
276
|
+
await poller.poll();
|
|
277
|
+
return poller;
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Creates a new job with the specified parameters. Existing job cannot be updated with this API and
|
|
281
|
+
* should instead be updated with the Update job API.
|
|
282
|
+
* @param resourceGroupName The Resource Group Name
|
|
283
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
284
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
285
|
+
* @param jobResource Job details from request body.
|
|
286
|
+
* @param options The options parameters.
|
|
287
|
+
*/
|
|
288
|
+
async beginCreateAndWait(resourceGroupName, jobName, jobResource, options) {
|
|
289
|
+
const poller = await this.beginCreate(resourceGroupName, jobName, jobResource, options);
|
|
290
|
+
return poller.pollUntilDone();
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Deletes a job.
|
|
294
|
+
* @param resourceGroupName The Resource Group Name
|
|
295
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
296
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
297
|
+
* @param options The options parameters.
|
|
298
|
+
*/
|
|
299
|
+
async beginDelete(resourceGroupName, jobName, options) {
|
|
300
|
+
const directSendOperation = async (args, spec) => {
|
|
301
|
+
return this.client.sendOperationRequest(args, spec);
|
|
302
|
+
};
|
|
303
|
+
const sendOperationFn = async (args, spec) => {
|
|
304
|
+
var _a;
|
|
305
|
+
let currentRawResponse = undefined;
|
|
306
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
307
|
+
const callback = (rawResponse, flatResponse) => {
|
|
308
|
+
currentRawResponse = rawResponse;
|
|
309
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
310
|
+
};
|
|
311
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
312
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
313
|
+
return {
|
|
314
|
+
flatResponse,
|
|
315
|
+
rawResponse: {
|
|
316
|
+
statusCode: currentRawResponse.status,
|
|
317
|
+
body: currentRawResponse.parsedBody,
|
|
318
|
+
headers: currentRawResponse.headers.toJSON()
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
const lro = createLroSpec({
|
|
323
|
+
sendOperationFn,
|
|
324
|
+
args: { resourceGroupName, jobName, options },
|
|
325
|
+
spec: deleteOperationSpec
|
|
326
|
+
});
|
|
327
|
+
const poller = await createHttpPoller(lro, {
|
|
328
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
329
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
330
|
+
});
|
|
331
|
+
await poller.poll();
|
|
332
|
+
return poller;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Deletes a job.
|
|
336
|
+
* @param resourceGroupName The Resource Group Name
|
|
337
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
338
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
339
|
+
* @param options The options parameters.
|
|
340
|
+
*/
|
|
341
|
+
async beginDeleteAndWait(resourceGroupName, jobName, options) {
|
|
342
|
+
const poller = await this.beginDelete(resourceGroupName, jobName, options);
|
|
343
|
+
return poller.pollUntilDone();
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Updates the properties of an existing job.
|
|
347
|
+
* @param resourceGroupName The Resource Group Name
|
|
348
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
349
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
350
|
+
* @param jobResourceUpdateParameter Job update parameters from request body.
|
|
351
|
+
* @param options The options parameters.
|
|
352
|
+
*/
|
|
353
|
+
async beginUpdate(resourceGroupName, jobName, jobResourceUpdateParameter, options) {
|
|
354
|
+
const directSendOperation = async (args, spec) => {
|
|
355
|
+
return this.client.sendOperationRequest(args, spec);
|
|
356
|
+
};
|
|
357
|
+
const sendOperationFn = async (args, spec) => {
|
|
358
|
+
var _a;
|
|
359
|
+
let currentRawResponse = undefined;
|
|
360
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
361
|
+
const callback = (rawResponse, flatResponse) => {
|
|
362
|
+
currentRawResponse = rawResponse;
|
|
363
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
364
|
+
};
|
|
365
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
366
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
367
|
+
return {
|
|
368
|
+
flatResponse,
|
|
369
|
+
rawResponse: {
|
|
370
|
+
statusCode: currentRawResponse.status,
|
|
371
|
+
body: currentRawResponse.parsedBody,
|
|
372
|
+
headers: currentRawResponse.headers.toJSON()
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
const lro = createLroSpec({
|
|
377
|
+
sendOperationFn,
|
|
378
|
+
args: { resourceGroupName, jobName, jobResourceUpdateParameter, options },
|
|
379
|
+
spec: updateOperationSpec
|
|
380
|
+
});
|
|
381
|
+
const poller = await createHttpPoller(lro, {
|
|
382
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
383
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
384
|
+
});
|
|
385
|
+
await poller.poll();
|
|
386
|
+
return poller;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Updates the properties of an existing job.
|
|
390
|
+
* @param resourceGroupName The Resource Group Name
|
|
391
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
392
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
393
|
+
* @param jobResourceUpdateParameter Job update parameters from request body.
|
|
394
|
+
* @param options The options parameters.
|
|
395
|
+
*/
|
|
396
|
+
async beginUpdateAndWait(resourceGroupName, jobName, jobResourceUpdateParameter, options) {
|
|
397
|
+
const poller = await this.beginUpdate(resourceGroupName, jobName, jobResourceUpdateParameter, options);
|
|
398
|
+
return poller.pollUntilDone();
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Book shipment pick up.
|
|
402
|
+
* @param resourceGroupName The Resource Group Name
|
|
403
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
404
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
405
|
+
* @param shipmentPickUpRequest Details of shipment pick up request.
|
|
406
|
+
* @param options The options parameters.
|
|
407
|
+
*/
|
|
408
|
+
bookShipmentPickUp(resourceGroupName, jobName, shipmentPickUpRequest, options) {
|
|
409
|
+
return this.client.sendOperationRequest({ resourceGroupName, jobName, shipmentPickUpRequest, options }, bookShipmentPickUpOperationSpec);
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* CancelJob.
|
|
413
|
+
* @param resourceGroupName The Resource Group Name
|
|
414
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
415
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
416
|
+
* @param cancellationReason Reason for cancellation.
|
|
417
|
+
* @param options The options parameters.
|
|
418
|
+
*/
|
|
419
|
+
cancel(resourceGroupName, jobName, cancellationReason, options) {
|
|
420
|
+
return this.client.sendOperationRequest({ resourceGroupName, jobName, cancellationReason, options }, cancelOperationSpec);
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* This method gets the unencrypted secrets related to the job.
|
|
424
|
+
* @param resourceGroupName The Resource Group Name
|
|
425
|
+
* @param jobName The name of the job Resource within the specified resource group. job names must be
|
|
426
|
+
* between 3 and 24 characters in length and use any alphanumeric and underscore only
|
|
427
|
+
* @param options The options parameters.
|
|
428
|
+
*/
|
|
429
|
+
_listCredentials(resourceGroupName, jobName, options) {
|
|
430
|
+
return this.client.sendOperationRequest({ resourceGroupName, jobName, options }, listCredentialsOperationSpec);
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* ListNext
|
|
434
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
435
|
+
* @param options The options parameters.
|
|
436
|
+
*/
|
|
437
|
+
_listNext(nextLink, options) {
|
|
438
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* ListByResourceGroupNext
|
|
442
|
+
* @param resourceGroupName The Resource Group Name
|
|
443
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
444
|
+
* @param options The options parameters.
|
|
445
|
+
*/
|
|
446
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
447
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
// Operation Specifications
|
|
451
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
452
|
+
const listOperationSpec = {
|
|
453
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs",
|
|
454
|
+
httpMethod: "GET",
|
|
455
|
+
responses: {
|
|
456
|
+
200: {
|
|
457
|
+
bodyMapper: Mappers.JobResourceList
|
|
458
|
+
},
|
|
459
|
+
default: {
|
|
460
|
+
bodyMapper: Mappers.ApiError
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
464
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
465
|
+
headerParameters: [Parameters.accept],
|
|
466
|
+
serializer
|
|
467
|
+
};
|
|
468
|
+
const markDevicesShippedOperationSpec = {
|
|
469
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/markDevicesShipped",
|
|
470
|
+
httpMethod: "POST",
|
|
471
|
+
responses: {
|
|
472
|
+
204: {},
|
|
473
|
+
default: {
|
|
474
|
+
bodyMapper: Mappers.ApiError
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
requestBody: Parameters.markDevicesShippedRequest,
|
|
478
|
+
queryParameters: [Parameters.apiVersion],
|
|
479
|
+
urlParameters: [
|
|
480
|
+
Parameters.$host,
|
|
481
|
+
Parameters.subscriptionId,
|
|
482
|
+
Parameters.jobName,
|
|
483
|
+
Parameters.resourceGroupName
|
|
484
|
+
],
|
|
485
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
486
|
+
mediaType: "json",
|
|
487
|
+
serializer
|
|
488
|
+
};
|
|
489
|
+
const listByResourceGroupOperationSpec = {
|
|
490
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs",
|
|
491
|
+
httpMethod: "GET",
|
|
492
|
+
responses: {
|
|
493
|
+
200: {
|
|
494
|
+
bodyMapper: Mappers.JobResourceList
|
|
495
|
+
},
|
|
496
|
+
default: {
|
|
497
|
+
bodyMapper: Mappers.ApiError
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
queryParameters: [Parameters.apiVersion, Parameters.skipToken],
|
|
501
|
+
urlParameters: [
|
|
502
|
+
Parameters.$host,
|
|
503
|
+
Parameters.subscriptionId,
|
|
504
|
+
Parameters.resourceGroupName
|
|
505
|
+
],
|
|
506
|
+
headerParameters: [Parameters.accept],
|
|
507
|
+
serializer
|
|
508
|
+
};
|
|
509
|
+
const getOperationSpec = {
|
|
510
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
511
|
+
httpMethod: "GET",
|
|
512
|
+
responses: {
|
|
513
|
+
200: {
|
|
514
|
+
bodyMapper: Mappers.JobResource
|
|
515
|
+
},
|
|
516
|
+
default: {
|
|
517
|
+
bodyMapper: Mappers.ApiError
|
|
518
|
+
}
|
|
519
|
+
},
|
|
520
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
521
|
+
urlParameters: [
|
|
522
|
+
Parameters.$host,
|
|
523
|
+
Parameters.subscriptionId,
|
|
524
|
+
Parameters.jobName,
|
|
525
|
+
Parameters.resourceGroupName
|
|
526
|
+
],
|
|
527
|
+
headerParameters: [Parameters.accept],
|
|
528
|
+
serializer
|
|
529
|
+
};
|
|
530
|
+
const createOperationSpec = {
|
|
531
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
532
|
+
httpMethod: "PUT",
|
|
533
|
+
responses: {
|
|
534
|
+
200: {
|
|
535
|
+
bodyMapper: Mappers.JobResource
|
|
536
|
+
},
|
|
537
|
+
201: {
|
|
538
|
+
bodyMapper: Mappers.JobResource
|
|
539
|
+
},
|
|
540
|
+
202: {
|
|
541
|
+
bodyMapper: Mappers.JobResource
|
|
542
|
+
},
|
|
543
|
+
204: {
|
|
544
|
+
bodyMapper: Mappers.JobResource
|
|
545
|
+
},
|
|
546
|
+
default: {
|
|
547
|
+
bodyMapper: Mappers.ApiError
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
requestBody: Parameters.jobResource,
|
|
551
|
+
queryParameters: [Parameters.apiVersion],
|
|
552
|
+
urlParameters: [
|
|
553
|
+
Parameters.$host,
|
|
554
|
+
Parameters.subscriptionId,
|
|
555
|
+
Parameters.jobName,
|
|
556
|
+
Parameters.resourceGroupName
|
|
557
|
+
],
|
|
558
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
559
|
+
mediaType: "json",
|
|
560
|
+
serializer
|
|
561
|
+
};
|
|
562
|
+
const deleteOperationSpec = {
|
|
563
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
564
|
+
httpMethod: "DELETE",
|
|
565
|
+
responses: {
|
|
566
|
+
200: {},
|
|
567
|
+
201: {},
|
|
568
|
+
202: {},
|
|
569
|
+
204: {},
|
|
570
|
+
default: {
|
|
571
|
+
bodyMapper: Mappers.ApiError
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
queryParameters: [Parameters.apiVersion],
|
|
575
|
+
urlParameters: [
|
|
576
|
+
Parameters.$host,
|
|
577
|
+
Parameters.subscriptionId,
|
|
578
|
+
Parameters.jobName,
|
|
579
|
+
Parameters.resourceGroupName
|
|
580
|
+
],
|
|
581
|
+
headerParameters: [Parameters.accept],
|
|
582
|
+
serializer
|
|
583
|
+
};
|
|
584
|
+
const updateOperationSpec = {
|
|
585
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}",
|
|
586
|
+
httpMethod: "PATCH",
|
|
587
|
+
responses: {
|
|
588
|
+
200: {
|
|
589
|
+
bodyMapper: Mappers.JobResource
|
|
590
|
+
},
|
|
591
|
+
201: {
|
|
592
|
+
bodyMapper: Mappers.JobResource
|
|
593
|
+
},
|
|
594
|
+
202: {
|
|
595
|
+
bodyMapper: Mappers.JobResource
|
|
596
|
+
},
|
|
597
|
+
204: {
|
|
598
|
+
bodyMapper: Mappers.JobResource
|
|
599
|
+
},
|
|
600
|
+
default: {
|
|
601
|
+
bodyMapper: Mappers.ApiError
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
requestBody: Parameters.jobResourceUpdateParameter,
|
|
605
|
+
queryParameters: [Parameters.apiVersion],
|
|
606
|
+
urlParameters: [
|
|
607
|
+
Parameters.$host,
|
|
608
|
+
Parameters.subscriptionId,
|
|
609
|
+
Parameters.jobName,
|
|
610
|
+
Parameters.resourceGroupName
|
|
611
|
+
],
|
|
612
|
+
headerParameters: [
|
|
613
|
+
Parameters.accept,
|
|
614
|
+
Parameters.contentType,
|
|
615
|
+
Parameters.ifMatch
|
|
616
|
+
],
|
|
617
|
+
mediaType: "json",
|
|
618
|
+
serializer
|
|
619
|
+
};
|
|
620
|
+
const bookShipmentPickUpOperationSpec = {
|
|
621
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/bookShipmentPickUp",
|
|
622
|
+
httpMethod: "POST",
|
|
623
|
+
responses: {
|
|
624
|
+
200: {
|
|
625
|
+
bodyMapper: Mappers.ShipmentPickUpResponse
|
|
626
|
+
},
|
|
627
|
+
default: {
|
|
628
|
+
bodyMapper: Mappers.ApiError
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
requestBody: Parameters.shipmentPickUpRequest,
|
|
632
|
+
queryParameters: [Parameters.apiVersion],
|
|
633
|
+
urlParameters: [
|
|
634
|
+
Parameters.$host,
|
|
635
|
+
Parameters.subscriptionId,
|
|
636
|
+
Parameters.jobName,
|
|
637
|
+
Parameters.resourceGroupName
|
|
638
|
+
],
|
|
639
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
640
|
+
mediaType: "json",
|
|
641
|
+
serializer
|
|
642
|
+
};
|
|
643
|
+
const cancelOperationSpec = {
|
|
644
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel",
|
|
645
|
+
httpMethod: "POST",
|
|
646
|
+
responses: {
|
|
647
|
+
204: {},
|
|
648
|
+
default: {
|
|
649
|
+
bodyMapper: Mappers.ApiError
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
requestBody: Parameters.cancellationReason,
|
|
653
|
+
queryParameters: [Parameters.apiVersion],
|
|
654
|
+
urlParameters: [
|
|
655
|
+
Parameters.$host,
|
|
656
|
+
Parameters.subscriptionId,
|
|
657
|
+
Parameters.jobName,
|
|
658
|
+
Parameters.resourceGroupName
|
|
659
|
+
],
|
|
660
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
661
|
+
mediaType: "json",
|
|
662
|
+
serializer
|
|
663
|
+
};
|
|
664
|
+
const listCredentialsOperationSpec = {
|
|
665
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials",
|
|
666
|
+
httpMethod: "POST",
|
|
667
|
+
responses: {
|
|
668
|
+
200: {
|
|
669
|
+
bodyMapper: Mappers.UnencryptedCredentialsList
|
|
670
|
+
},
|
|
671
|
+
default: {
|
|
672
|
+
bodyMapper: Mappers.ApiError
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
queryParameters: [Parameters.apiVersion],
|
|
676
|
+
urlParameters: [
|
|
677
|
+
Parameters.$host,
|
|
678
|
+
Parameters.subscriptionId,
|
|
679
|
+
Parameters.jobName,
|
|
680
|
+
Parameters.resourceGroupName
|
|
681
|
+
],
|
|
682
|
+
headerParameters: [Parameters.accept],
|
|
683
|
+
serializer
|
|
684
|
+
};
|
|
685
|
+
const listNextOperationSpec = {
|
|
686
|
+
path: "{nextLink}",
|
|
687
|
+
httpMethod: "GET",
|
|
688
|
+
responses: {
|
|
689
|
+
200: {
|
|
690
|
+
bodyMapper: Mappers.JobResourceList
|
|
691
|
+
},
|
|
692
|
+
default: {
|
|
693
|
+
bodyMapper: Mappers.ApiError
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
urlParameters: [
|
|
697
|
+
Parameters.$host,
|
|
698
|
+
Parameters.nextLink,
|
|
699
|
+
Parameters.subscriptionId
|
|
700
|
+
],
|
|
701
|
+
headerParameters: [Parameters.accept],
|
|
702
|
+
serializer
|
|
703
|
+
};
|
|
704
|
+
const listByResourceGroupNextOperationSpec = {
|
|
705
|
+
path: "{nextLink}",
|
|
706
|
+
httpMethod: "GET",
|
|
707
|
+
responses: {
|
|
708
|
+
200: {
|
|
709
|
+
bodyMapper: Mappers.JobResourceList
|
|
710
|
+
},
|
|
711
|
+
default: {
|
|
712
|
+
bodyMapper: Mappers.ApiError
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
urlParameters: [
|
|
716
|
+
Parameters.$host,
|
|
717
|
+
Parameters.nextLink,
|
|
718
|
+
Parameters.subscriptionId,
|
|
719
|
+
Parameters.resourceGroupName
|
|
720
|
+
],
|
|
721
|
+
headerParameters: [Parameters.accept],
|
|
722
|
+
serializer
|
|
723
|
+
};
|
|
724
|
+
//# sourceMappingURL=jobs.js.map
|