@azure/arm-oracledatabase 2.0.0-alpha.20250619.1 → 2.0.0-alpha.20250722.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/api/autonomousDatabaseBackups/operations.js +50 -21
- package/dist/browser/api/autonomousDatabaseBackups/operations.js.map +1 -1
- package/dist/browser/api/autonomousDatabaseCharacterSets/operations.js +16 -6
- package/dist/browser/api/autonomousDatabaseCharacterSets/operations.js.map +1 -1
- package/dist/browser/api/autonomousDatabaseNationalCharacterSets/operations.js +16 -6
- package/dist/browser/api/autonomousDatabaseNationalCharacterSets/operations.js.map +1 -1
- package/dist/browser/api/autonomousDatabaseVersions/operations.js +16 -6
- package/dist/browser/api/autonomousDatabaseVersions/operations.js.map +1 -1
- package/dist/browser/api/autonomousDatabases/operations.js +126 -52
- package/dist/browser/api/autonomousDatabases/operations.js.map +1 -1
- package/dist/browser/api/cloudExadataInfrastructures/operations.js +68 -29
- package/dist/browser/api/cloudExadataInfrastructures/operations.js.map +1 -1
- package/dist/browser/api/cloudVmClusters/operations.js +92 -37
- package/dist/browser/api/cloudVmClusters/operations.js.map +1 -1
- package/dist/browser/api/dbNodes/operations.js +28 -11
- package/dist/browser/api/dbNodes/operations.js.map +1 -1
- package/dist/browser/api/dbServers/operations.js +16 -6
- package/dist/browser/api/dbServers/operations.js.map +1 -1
- package/dist/browser/api/dbSystemShapes/operations.js +17 -7
- package/dist/browser/api/dbSystemShapes/operations.js.map +1 -1
- package/dist/browser/api/dnsPrivateViews/operations.js +16 -6
- package/dist/browser/api/dnsPrivateViews/operations.js.map +1 -1
- package/dist/browser/api/dnsPrivateZones/operations.js +16 -6
- package/dist/browser/api/dnsPrivateZones/operations.js.map +1 -1
- package/dist/browser/api/exadbVmClusters/operations.js +70 -29
- package/dist/browser/api/exadbVmClusters/operations.js.map +1 -1
- package/dist/browser/api/exascaleDbNodes/operations.js +28 -11
- package/dist/browser/api/exascaleDbNodes/operations.js.map +1 -1
- package/dist/browser/api/exascaleDbStorageVaults/operations.js +58 -24
- package/dist/browser/api/exascaleDbStorageVaults/operations.js.map +1 -1
- package/dist/browser/api/flexComponents/operations.js +17 -7
- package/dist/browser/api/flexComponents/operations.js.map +1 -1
- package/dist/browser/api/giMinorVersions/operations.js +18 -8
- package/dist/browser/api/giMinorVersions/operations.js.map +1 -1
- package/dist/browser/api/giVersions/operations.js +18 -8
- package/dist/browser/api/giVersions/operations.js.map +1 -1
- package/dist/browser/api/operations/operations.js +8 -3
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/oracleDatabaseManagementContext.js +16 -10
- package/dist/browser/api/oracleDatabaseManagementContext.js.map +1 -1
- package/dist/browser/api/oracleSubscriptions/operations.js +92 -41
- package/dist/browser/api/oracleSubscriptions/operations.js.map +1 -1
- package/dist/browser/api/systemVersions/operations.js +16 -6
- package/dist/browser/api/systemVersions/operations.js.map +1 -1
- package/dist/browser/api/virtualNetworkAddresses/operations.js +38 -16
- package/dist/browser/api/virtualNetworkAddresses/operations.js.map +1 -1
- package/dist/browser/classic/autonomousDatabaseBackups/index.js +3 -1
- package/dist/browser/classic/autonomousDatabaseBackups/index.js.map +1 -1
- package/dist/browser/classic/autonomousDatabaseCharacterSets/index.js +3 -1
- package/dist/browser/classic/autonomousDatabaseCharacterSets/index.js.map +1 -1
- package/dist/browser/classic/autonomousDatabaseNationalCharacterSets/index.js +3 -1
- package/dist/browser/classic/autonomousDatabaseNationalCharacterSets/index.js.map +1 -1
- package/dist/browser/classic/autonomousDatabaseVersions/index.js +3 -1
- package/dist/browser/classic/autonomousDatabaseVersions/index.js.map +1 -1
- package/dist/browser/classic/autonomousDatabases/index.js +3 -1
- package/dist/browser/classic/autonomousDatabases/index.js.map +1 -1
- package/dist/browser/classic/cloudExadataInfrastructures/index.js +3 -1
- package/dist/browser/classic/cloudExadataInfrastructures/index.js.map +1 -1
- package/dist/browser/classic/cloudVmClusters/index.js +3 -1
- package/dist/browser/classic/cloudVmClusters/index.js.map +1 -1
- package/dist/browser/classic/dbNodes/index.js +3 -1
- package/dist/browser/classic/dbNodes/index.js.map +1 -1
- package/dist/browser/classic/dbServers/index.js +3 -1
- package/dist/browser/classic/dbServers/index.js.map +1 -1
- package/dist/browser/classic/dbSystemShapes/index.js +3 -1
- package/dist/browser/classic/dbSystemShapes/index.js.map +1 -1
- package/dist/browser/classic/dnsPrivateViews/index.js +3 -1
- package/dist/browser/classic/dnsPrivateViews/index.js.map +1 -1
- package/dist/browser/classic/dnsPrivateZones/index.js +3 -1
- package/dist/browser/classic/dnsPrivateZones/index.js.map +1 -1
- package/dist/browser/classic/exadbVmClusters/index.js +3 -1
- package/dist/browser/classic/exadbVmClusters/index.js.map +1 -1
- package/dist/browser/classic/exascaleDbNodes/index.js +3 -1
- package/dist/browser/classic/exascaleDbNodes/index.js.map +1 -1
- package/dist/browser/classic/exascaleDbStorageVaults/index.js +3 -1
- package/dist/browser/classic/exascaleDbStorageVaults/index.js.map +1 -1
- package/dist/browser/classic/flexComponents/index.js +3 -1
- package/dist/browser/classic/flexComponents/index.js.map +1 -1
- package/dist/browser/classic/giMinorVersions/index.js +3 -1
- package/dist/browser/classic/giMinorVersions/index.js.map +1 -1
- package/dist/browser/classic/giVersions/index.js +3 -1
- package/dist/browser/classic/giVersions/index.js.map +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/oracleSubscriptions/index.js +3 -1
- package/dist/browser/classic/oracleSubscriptions/index.js.map +1 -1
- package/dist/browser/classic/systemVersions/index.js +3 -1
- package/dist/browser/classic/systemVersions/index.js.map +1 -1
- package/dist/browser/classic/virtualNetworkAddresses/index.js +3 -1
- package/dist/browser/classic/virtualNetworkAddresses/index.js.map +1 -1
- package/dist/browser/oracleDatabaseManagementClient.js +52 -3
- package/dist/browser/oracleDatabaseManagementClient.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +11 -13
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +14 -11
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +3 -3
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/autonomousDatabaseBackups/operations.js +50 -21
- package/dist/commonjs/api/autonomousDatabaseBackups/operations.js.map +1 -1
- package/dist/commonjs/api/autonomousDatabaseCharacterSets/operations.js +16 -6
- package/dist/commonjs/api/autonomousDatabaseCharacterSets/operations.js.map +1 -1
- package/dist/commonjs/api/autonomousDatabaseNationalCharacterSets/operations.js +16 -6
- package/dist/commonjs/api/autonomousDatabaseNationalCharacterSets/operations.js.map +1 -1
- package/dist/commonjs/api/autonomousDatabaseVersions/operations.js +16 -6
- package/dist/commonjs/api/autonomousDatabaseVersions/operations.js.map +1 -1
- package/dist/commonjs/api/autonomousDatabases/operations.js +126 -52
- package/dist/commonjs/api/autonomousDatabases/operations.js.map +1 -1
- package/dist/commonjs/api/cloudExadataInfrastructures/operations.js +68 -29
- package/dist/commonjs/api/cloudExadataInfrastructures/operations.js.map +1 -1
- package/dist/commonjs/api/cloudVmClusters/operations.js +92 -37
- package/dist/commonjs/api/cloudVmClusters/operations.js.map +1 -1
- package/dist/commonjs/api/dbNodes/operations.js +28 -11
- package/dist/commonjs/api/dbNodes/operations.js.map +1 -1
- package/dist/commonjs/api/dbServers/operations.js +16 -6
- package/dist/commonjs/api/dbServers/operations.js.map +1 -1
- package/dist/commonjs/api/dbSystemShapes/operations.js +17 -7
- package/dist/commonjs/api/dbSystemShapes/operations.js.map +1 -1
- package/dist/commonjs/api/dnsPrivateViews/operations.js +16 -6
- package/dist/commonjs/api/dnsPrivateViews/operations.js.map +1 -1
- package/dist/commonjs/api/dnsPrivateZones/operations.js +16 -6
- package/dist/commonjs/api/dnsPrivateZones/operations.js.map +1 -1
- package/dist/commonjs/api/exadbVmClusters/operations.js +70 -29
- package/dist/commonjs/api/exadbVmClusters/operations.js.map +1 -1
- package/dist/commonjs/api/exascaleDbNodes/operations.js +28 -11
- package/dist/commonjs/api/exascaleDbNodes/operations.js.map +1 -1
- package/dist/commonjs/api/exascaleDbStorageVaults/operations.js +58 -24
- package/dist/commonjs/api/exascaleDbStorageVaults/operations.js.map +1 -1
- package/dist/commonjs/api/flexComponents/operations.js +17 -7
- package/dist/commonjs/api/flexComponents/operations.js.map +1 -1
- package/dist/commonjs/api/giMinorVersions/operations.js +18 -8
- package/dist/commonjs/api/giMinorVersions/operations.js.map +1 -1
- package/dist/commonjs/api/giVersions/operations.js +18 -8
- package/dist/commonjs/api/giVersions/operations.js.map +1 -1
- package/dist/commonjs/api/operations/operations.js +8 -3
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/oracleDatabaseManagementContext.js +16 -10
- package/dist/commonjs/api/oracleDatabaseManagementContext.js.map +1 -1
- package/dist/commonjs/api/oracleSubscriptions/operations.js +92 -41
- package/dist/commonjs/api/oracleSubscriptions/operations.js.map +1 -1
- package/dist/commonjs/api/systemVersions/operations.js +16 -6
- package/dist/commonjs/api/systemVersions/operations.js.map +1 -1
- package/dist/commonjs/api/virtualNetworkAddresses/operations.js +38 -16
- package/dist/commonjs/api/virtualNetworkAddresses/operations.js.map +1 -1
- package/dist/commonjs/classic/autonomousDatabaseBackups/index.js +3 -1
- package/dist/commonjs/classic/autonomousDatabaseBackups/index.js.map +1 -1
- package/dist/commonjs/classic/autonomousDatabaseCharacterSets/index.js +3 -1
- package/dist/commonjs/classic/autonomousDatabaseCharacterSets/index.js.map +1 -1
- package/dist/commonjs/classic/autonomousDatabaseNationalCharacterSets/index.js +3 -1
- package/dist/commonjs/classic/autonomousDatabaseNationalCharacterSets/index.js.map +1 -1
- package/dist/commonjs/classic/autonomousDatabaseVersions/index.js +3 -1
- package/dist/commonjs/classic/autonomousDatabaseVersions/index.js.map +1 -1
- package/dist/commonjs/classic/autonomousDatabases/index.js +3 -1
- package/dist/commonjs/classic/autonomousDatabases/index.js.map +1 -1
- package/dist/commonjs/classic/cloudExadataInfrastructures/index.js +3 -1
- package/dist/commonjs/classic/cloudExadataInfrastructures/index.js.map +1 -1
- package/dist/commonjs/classic/cloudVmClusters/index.js +3 -1
- package/dist/commonjs/classic/cloudVmClusters/index.js.map +1 -1
- package/dist/commonjs/classic/dbNodes/index.js +3 -1
- package/dist/commonjs/classic/dbNodes/index.js.map +1 -1
- package/dist/commonjs/classic/dbServers/index.js +3 -1
- package/dist/commonjs/classic/dbServers/index.js.map +1 -1
- package/dist/commonjs/classic/dbSystemShapes/index.js +3 -1
- package/dist/commonjs/classic/dbSystemShapes/index.js.map +1 -1
- package/dist/commonjs/classic/dnsPrivateViews/index.js +3 -1
- package/dist/commonjs/classic/dnsPrivateViews/index.js.map +1 -1
- package/dist/commonjs/classic/dnsPrivateZones/index.js +3 -1
- package/dist/commonjs/classic/dnsPrivateZones/index.js.map +1 -1
- package/dist/commonjs/classic/exadbVmClusters/index.js +3 -1
- package/dist/commonjs/classic/exadbVmClusters/index.js.map +1 -1
- package/dist/commonjs/classic/exascaleDbNodes/index.js +3 -1
- package/dist/commonjs/classic/exascaleDbNodes/index.js.map +1 -1
- package/dist/commonjs/classic/exascaleDbStorageVaults/index.js +3 -1
- package/dist/commonjs/classic/exascaleDbStorageVaults/index.js.map +1 -1
- package/dist/commonjs/classic/flexComponents/index.js +3 -1
- package/dist/commonjs/classic/flexComponents/index.js.map +1 -1
- package/dist/commonjs/classic/giMinorVersions/index.js +3 -1
- package/dist/commonjs/classic/giMinorVersions/index.js.map +1 -1
- package/dist/commonjs/classic/giVersions/index.js +3 -1
- package/dist/commonjs/classic/giVersions/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/oracleSubscriptions/index.js +3 -1
- package/dist/commonjs/classic/oracleSubscriptions/index.js.map +1 -1
- package/dist/commonjs/classic/systemVersions/index.js +3 -1
- package/dist/commonjs/classic/systemVersions/index.js.map +1 -1
- package/dist/commonjs/classic/virtualNetworkAddresses/index.js +3 -1
- package/dist/commonjs/classic/virtualNetworkAddresses/index.js.map +1 -1
- package/dist/commonjs/oracleDatabaseManagementClient.js +52 -3
- package/dist/commonjs/oracleDatabaseManagementClient.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +11 -13
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +3 -3
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/autonomousDatabaseBackups/operations.js +50 -21
- package/dist/esm/api/autonomousDatabaseBackups/operations.js.map +1 -1
- package/dist/esm/api/autonomousDatabaseCharacterSets/operations.js +16 -6
- package/dist/esm/api/autonomousDatabaseCharacterSets/operations.js.map +1 -1
- package/dist/esm/api/autonomousDatabaseNationalCharacterSets/operations.js +16 -6
- package/dist/esm/api/autonomousDatabaseNationalCharacterSets/operations.js.map +1 -1
- package/dist/esm/api/autonomousDatabaseVersions/operations.js +16 -6
- package/dist/esm/api/autonomousDatabaseVersions/operations.js.map +1 -1
- package/dist/esm/api/autonomousDatabases/operations.js +126 -52
- package/dist/esm/api/autonomousDatabases/operations.js.map +1 -1
- package/dist/esm/api/cloudExadataInfrastructures/operations.js +68 -29
- package/dist/esm/api/cloudExadataInfrastructures/operations.js.map +1 -1
- package/dist/esm/api/cloudVmClusters/operations.js +92 -37
- package/dist/esm/api/cloudVmClusters/operations.js.map +1 -1
- package/dist/esm/api/dbNodes/operations.js +28 -11
- package/dist/esm/api/dbNodes/operations.js.map +1 -1
- package/dist/esm/api/dbServers/operations.js +16 -6
- package/dist/esm/api/dbServers/operations.js.map +1 -1
- package/dist/esm/api/dbSystemShapes/operations.js +17 -7
- package/dist/esm/api/dbSystemShapes/operations.js.map +1 -1
- package/dist/esm/api/dnsPrivateViews/operations.js +16 -6
- package/dist/esm/api/dnsPrivateViews/operations.js.map +1 -1
- package/dist/esm/api/dnsPrivateZones/operations.js +16 -6
- package/dist/esm/api/dnsPrivateZones/operations.js.map +1 -1
- package/dist/esm/api/exadbVmClusters/operations.js +70 -29
- package/dist/esm/api/exadbVmClusters/operations.js.map +1 -1
- package/dist/esm/api/exascaleDbNodes/operations.js +28 -11
- package/dist/esm/api/exascaleDbNodes/operations.js.map +1 -1
- package/dist/esm/api/exascaleDbStorageVaults/operations.js +58 -24
- package/dist/esm/api/exascaleDbStorageVaults/operations.js.map +1 -1
- package/dist/esm/api/flexComponents/operations.js +17 -7
- package/dist/esm/api/flexComponents/operations.js.map +1 -1
- package/dist/esm/api/giMinorVersions/operations.js +18 -8
- package/dist/esm/api/giMinorVersions/operations.js.map +1 -1
- package/dist/esm/api/giVersions/operations.js +18 -8
- package/dist/esm/api/giVersions/operations.js.map +1 -1
- package/dist/esm/api/operations/operations.js +8 -3
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/oracleDatabaseManagementContext.js +16 -10
- package/dist/esm/api/oracleDatabaseManagementContext.js.map +1 -1
- package/dist/esm/api/oracleSubscriptions/operations.js +92 -41
- package/dist/esm/api/oracleSubscriptions/operations.js.map +1 -1
- package/dist/esm/api/systemVersions/operations.js +16 -6
- package/dist/esm/api/systemVersions/operations.js.map +1 -1
- package/dist/esm/api/virtualNetworkAddresses/operations.js +38 -16
- package/dist/esm/api/virtualNetworkAddresses/operations.js.map +1 -1
- package/dist/esm/classic/autonomousDatabaseBackups/index.js +3 -1
- package/dist/esm/classic/autonomousDatabaseBackups/index.js.map +1 -1
- package/dist/esm/classic/autonomousDatabaseCharacterSets/index.js +3 -1
- package/dist/esm/classic/autonomousDatabaseCharacterSets/index.js.map +1 -1
- package/dist/esm/classic/autonomousDatabaseNationalCharacterSets/index.js +3 -1
- package/dist/esm/classic/autonomousDatabaseNationalCharacterSets/index.js.map +1 -1
- package/dist/esm/classic/autonomousDatabaseVersions/index.js +3 -1
- package/dist/esm/classic/autonomousDatabaseVersions/index.js.map +1 -1
- package/dist/esm/classic/autonomousDatabases/index.js +3 -1
- package/dist/esm/classic/autonomousDatabases/index.js.map +1 -1
- package/dist/esm/classic/cloudExadataInfrastructures/index.js +3 -1
- package/dist/esm/classic/cloudExadataInfrastructures/index.js.map +1 -1
- package/dist/esm/classic/cloudVmClusters/index.js +3 -1
- package/dist/esm/classic/cloudVmClusters/index.js.map +1 -1
- package/dist/esm/classic/dbNodes/index.js +3 -1
- package/dist/esm/classic/dbNodes/index.js.map +1 -1
- package/dist/esm/classic/dbServers/index.js +3 -1
- package/dist/esm/classic/dbServers/index.js.map +1 -1
- package/dist/esm/classic/dbSystemShapes/index.js +3 -1
- package/dist/esm/classic/dbSystemShapes/index.js.map +1 -1
- package/dist/esm/classic/dnsPrivateViews/index.js +3 -1
- package/dist/esm/classic/dnsPrivateViews/index.js.map +1 -1
- package/dist/esm/classic/dnsPrivateZones/index.js +3 -1
- package/dist/esm/classic/dnsPrivateZones/index.js.map +1 -1
- package/dist/esm/classic/exadbVmClusters/index.js +3 -1
- package/dist/esm/classic/exadbVmClusters/index.js.map +1 -1
- package/dist/esm/classic/exascaleDbNodes/index.js +3 -1
- package/dist/esm/classic/exascaleDbNodes/index.js.map +1 -1
- package/dist/esm/classic/exascaleDbStorageVaults/index.js +3 -1
- package/dist/esm/classic/exascaleDbStorageVaults/index.js.map +1 -1
- package/dist/esm/classic/flexComponents/index.js +3 -1
- package/dist/esm/classic/flexComponents/index.js.map +1 -1
- package/dist/esm/classic/giMinorVersions/index.js +3 -1
- package/dist/esm/classic/giMinorVersions/index.js.map +1 -1
- package/dist/esm/classic/giVersions/index.js +3 -1
- package/dist/esm/classic/giVersions/index.js.map +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/oracleSubscriptions/index.js +3 -1
- package/dist/esm/classic/oracleSubscriptions/index.js.map +1 -1
- package/dist/esm/classic/systemVersions/index.js +3 -1
- package/dist/esm/classic/systemVersions/index.js.map +1 -1
- package/dist/esm/classic/virtualNetworkAddresses/index.js +3 -1
- package/dist/esm/classic/virtualNetworkAddresses/index.js.map +1 -1
- package/dist/esm/oracleDatabaseManagementClient.js +52 -3
- package/dist/esm/oracleDatabaseManagementClient.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +11 -13
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +14 -11
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +3 -3
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/autonomousDatabaseBackups/operations.js +50 -21
- package/dist/react-native/api/autonomousDatabaseBackups/operations.js.map +1 -1
- package/dist/react-native/api/autonomousDatabaseCharacterSets/operations.js +16 -6
- package/dist/react-native/api/autonomousDatabaseCharacterSets/operations.js.map +1 -1
- package/dist/react-native/api/autonomousDatabaseNationalCharacterSets/operations.js +16 -6
- package/dist/react-native/api/autonomousDatabaseNationalCharacterSets/operations.js.map +1 -1
- package/dist/react-native/api/autonomousDatabaseVersions/operations.js +16 -6
- package/dist/react-native/api/autonomousDatabaseVersions/operations.js.map +1 -1
- package/dist/react-native/api/autonomousDatabases/operations.js +126 -52
- package/dist/react-native/api/autonomousDatabases/operations.js.map +1 -1
- package/dist/react-native/api/cloudExadataInfrastructures/operations.js +68 -29
- package/dist/react-native/api/cloudExadataInfrastructures/operations.js.map +1 -1
- package/dist/react-native/api/cloudVmClusters/operations.js +92 -37
- package/dist/react-native/api/cloudVmClusters/operations.js.map +1 -1
- package/dist/react-native/api/dbNodes/operations.js +28 -11
- package/dist/react-native/api/dbNodes/operations.js.map +1 -1
- package/dist/react-native/api/dbServers/operations.js +16 -6
- package/dist/react-native/api/dbServers/operations.js.map +1 -1
- package/dist/react-native/api/dbSystemShapes/operations.js +17 -7
- package/dist/react-native/api/dbSystemShapes/operations.js.map +1 -1
- package/dist/react-native/api/dnsPrivateViews/operations.js +16 -6
- package/dist/react-native/api/dnsPrivateViews/operations.js.map +1 -1
- package/dist/react-native/api/dnsPrivateZones/operations.js +16 -6
- package/dist/react-native/api/dnsPrivateZones/operations.js.map +1 -1
- package/dist/react-native/api/exadbVmClusters/operations.js +70 -29
- package/dist/react-native/api/exadbVmClusters/operations.js.map +1 -1
- package/dist/react-native/api/exascaleDbNodes/operations.js +28 -11
- package/dist/react-native/api/exascaleDbNodes/operations.js.map +1 -1
- package/dist/react-native/api/exascaleDbStorageVaults/operations.js +58 -24
- package/dist/react-native/api/exascaleDbStorageVaults/operations.js.map +1 -1
- package/dist/react-native/api/flexComponents/operations.js +17 -7
- package/dist/react-native/api/flexComponents/operations.js.map +1 -1
- package/dist/react-native/api/giMinorVersions/operations.js +18 -8
- package/dist/react-native/api/giMinorVersions/operations.js.map +1 -1
- package/dist/react-native/api/giVersions/operations.js +18 -8
- package/dist/react-native/api/giVersions/operations.js.map +1 -1
- package/dist/react-native/api/operations/operations.js +8 -3
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/oracleDatabaseManagementContext.js +16 -10
- package/dist/react-native/api/oracleDatabaseManagementContext.js.map +1 -1
- package/dist/react-native/api/oracleSubscriptions/operations.js +92 -41
- package/dist/react-native/api/oracleSubscriptions/operations.js.map +1 -1
- package/dist/react-native/api/systemVersions/operations.js +16 -6
- package/dist/react-native/api/systemVersions/operations.js.map +1 -1
- package/dist/react-native/api/virtualNetworkAddresses/operations.js +38 -16
- package/dist/react-native/api/virtualNetworkAddresses/operations.js.map +1 -1
- package/dist/react-native/classic/autonomousDatabaseBackups/index.js +3 -1
- package/dist/react-native/classic/autonomousDatabaseBackups/index.js.map +1 -1
- package/dist/react-native/classic/autonomousDatabaseCharacterSets/index.js +3 -1
- package/dist/react-native/classic/autonomousDatabaseCharacterSets/index.js.map +1 -1
- package/dist/react-native/classic/autonomousDatabaseNationalCharacterSets/index.js +3 -1
- package/dist/react-native/classic/autonomousDatabaseNationalCharacterSets/index.js.map +1 -1
- package/dist/react-native/classic/autonomousDatabaseVersions/index.js +3 -1
- package/dist/react-native/classic/autonomousDatabaseVersions/index.js.map +1 -1
- package/dist/react-native/classic/autonomousDatabases/index.js +3 -1
- package/dist/react-native/classic/autonomousDatabases/index.js.map +1 -1
- package/dist/react-native/classic/cloudExadataInfrastructures/index.js +3 -1
- package/dist/react-native/classic/cloudExadataInfrastructures/index.js.map +1 -1
- package/dist/react-native/classic/cloudVmClusters/index.js +3 -1
- package/dist/react-native/classic/cloudVmClusters/index.js.map +1 -1
- package/dist/react-native/classic/dbNodes/index.js +3 -1
- package/dist/react-native/classic/dbNodes/index.js.map +1 -1
- package/dist/react-native/classic/dbServers/index.js +3 -1
- package/dist/react-native/classic/dbServers/index.js.map +1 -1
- package/dist/react-native/classic/dbSystemShapes/index.js +3 -1
- package/dist/react-native/classic/dbSystemShapes/index.js.map +1 -1
- package/dist/react-native/classic/dnsPrivateViews/index.js +3 -1
- package/dist/react-native/classic/dnsPrivateViews/index.js.map +1 -1
- package/dist/react-native/classic/dnsPrivateZones/index.js +3 -1
- package/dist/react-native/classic/dnsPrivateZones/index.js.map +1 -1
- package/dist/react-native/classic/exadbVmClusters/index.js +3 -1
- package/dist/react-native/classic/exadbVmClusters/index.js.map +1 -1
- package/dist/react-native/classic/exascaleDbNodes/index.js +3 -1
- package/dist/react-native/classic/exascaleDbNodes/index.js.map +1 -1
- package/dist/react-native/classic/exascaleDbStorageVaults/index.js +3 -1
- package/dist/react-native/classic/exascaleDbStorageVaults/index.js.map +1 -1
- package/dist/react-native/classic/flexComponents/index.js +3 -1
- package/dist/react-native/classic/flexComponents/index.js.map +1 -1
- package/dist/react-native/classic/giMinorVersions/index.js +3 -1
- package/dist/react-native/classic/giMinorVersions/index.js.map +1 -1
- package/dist/react-native/classic/giVersions/index.js +3 -1
- package/dist/react-native/classic/giVersions/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/oracleSubscriptions/index.js +3 -1
- package/dist/react-native/classic/oracleSubscriptions/index.js.map +1 -1
- package/dist/react-native/classic/systemVersions/index.js +3 -1
- package/dist/react-native/classic/systemVersions/index.js.map +1 -1
- package/dist/react-native/classic/virtualNetworkAddresses/index.js +3 -1
- package/dist/react-native/classic/virtualNetworkAddresses/index.js.map +1 -1
- package/dist/react-native/oracleDatabaseManagementClient.js +52 -3
- package/dist/react-native/oracleDatabaseManagementClient.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +11 -13
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +3 -3
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-oracledatabase-api-autonomousDatabaseBackups.api.md → arm-oracledatabase-api-autonomousDatabaseBackups-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-autonomousDatabaseCharacterSets.api.md → arm-oracledatabase-api-autonomousDatabaseCharacterSets-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-autonomousDatabaseNationalCharacterSets.api.md → arm-oracledatabase-api-autonomousDatabaseNationalCharacterSets-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-autonomousDatabaseVersions.api.md → arm-oracledatabase-api-autonomousDatabaseVersions-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-autonomousDatabases.api.md → arm-oracledatabase-api-autonomousDatabases-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-cloudExadataInfrastructures.api.md → arm-oracledatabase-api-cloudExadataInfrastructures-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-cloudVmClusters.api.md → arm-oracledatabase-api-cloudVmClusters-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-dbNodes.api.md → arm-oracledatabase-api-dbNodes-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-dbServers.api.md → arm-oracledatabase-api-dbServers-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-dbSystemShapes.api.md → arm-oracledatabase-api-dbSystemShapes-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-dnsPrivateViews.api.md → arm-oracledatabase-api-dnsPrivateViews-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-dnsPrivateZones.api.md → arm-oracledatabase-api-dnsPrivateZones-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-exadbVmClusters.api.md → arm-oracledatabase-api-exadbVmClusters-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-exascaleDbNodes.api.md → arm-oracledatabase-api-exascaleDbNodes-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-exascaleDbStorageVaults.api.md → arm-oracledatabase-api-exascaleDbStorageVaults-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-flexComponents.api.md → arm-oracledatabase-api-flexComponents-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-giMinorVersions.api.md → arm-oracledatabase-api-giMinorVersions-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-giVersions.api.md → arm-oracledatabase-api-giVersions-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api.api.md → arm-oracledatabase-api-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-operations.api.md → arm-oracledatabase-api-operations-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-oracleSubscriptions.api.md → arm-oracledatabase-api-oracleSubscriptions-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-systemVersions.api.md → arm-oracledatabase-api-systemVersions-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-api-virtualNetworkAddresses.api.md → arm-oracledatabase-api-virtualNetworkAddresses-node.api.md} +0 -0
- /package/review/{arm-oracledatabase-models.api.md → arm-oracledatabase-models-node.api.md} +0 -0
- /package/review/{arm-oracledatabase.api.md → arm-oracledatabase-node.api.md} +0 -0
|
@@ -8,16 +8,21 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
8
8
|
export function _listByParentSend(context, resourceGroupName, autonomousdatabasename, options = {
|
|
9
9
|
requestOptions: {},
|
|
10
10
|
}) {
|
|
11
|
-
var _a, _b;
|
|
12
11
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups{?api%2Dversion}", {
|
|
13
12
|
subscriptionId: context.subscriptionId,
|
|
14
13
|
resourceGroupName: resourceGroupName,
|
|
15
14
|
autonomousdatabasename: autonomousdatabasename,
|
|
16
15
|
"api%2Dversion": context.apiVersion,
|
|
17
16
|
}, {
|
|
18
|
-
allowReserved:
|
|
17
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
18
|
+
});
|
|
19
|
+
return context.path(path).get({
|
|
20
|
+
...operationOptionsToRequestParameters(options),
|
|
21
|
+
headers: {
|
|
22
|
+
accept: "application/json",
|
|
23
|
+
...options.requestOptions?.headers,
|
|
24
|
+
},
|
|
19
25
|
});
|
|
20
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
21
26
|
}
|
|
22
27
|
export async function _listByParentDeserialize(result) {
|
|
23
28
|
const expectedStatuses = ["200"];
|
|
@@ -37,7 +42,6 @@ export function listByParent(context, resourceGroupName, autonomousdatabasename,
|
|
|
37
42
|
export function _updateSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, properties, options = {
|
|
38
43
|
requestOptions: {},
|
|
39
44
|
}) {
|
|
40
|
-
var _a, _b;
|
|
41
45
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}", {
|
|
42
46
|
subscriptionId: context.subscriptionId,
|
|
43
47
|
resourceGroupName: resourceGroupName,
|
|
@@ -45,9 +49,17 @@ export function _updateSend(context, resourceGroupName, autonomousdatabasename,
|
|
|
45
49
|
adbbackupid: adbbackupid,
|
|
46
50
|
"api%2Dversion": context.apiVersion,
|
|
47
51
|
}, {
|
|
48
|
-
allowReserved:
|
|
52
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
53
|
+
});
|
|
54
|
+
return context.path(path).patch({
|
|
55
|
+
...operationOptionsToRequestParameters(options),
|
|
56
|
+
contentType: "application/json",
|
|
57
|
+
headers: {
|
|
58
|
+
accept: "application/json",
|
|
59
|
+
...options.requestOptions?.headers,
|
|
60
|
+
},
|
|
61
|
+
body: autonomousDatabaseBackupUpdateSerializer(properties),
|
|
49
62
|
});
|
|
50
|
-
return context.path(path).patch(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: autonomousDatabaseBackupUpdateSerializer(properties) }));
|
|
51
63
|
}
|
|
52
64
|
export async function _updateDeserialize(result) {
|
|
53
65
|
const expectedStatuses = ["200", "202"];
|
|
@@ -63,8 +75,8 @@ export function update(context, resourceGroupName, autonomousdatabasename, adbba
|
|
|
63
75
|
requestOptions: {},
|
|
64
76
|
}) {
|
|
65
77
|
return getLongRunningPoller(context, _updateDeserialize, ["200", "202"], {
|
|
66
|
-
updateIntervalInMs: options
|
|
67
|
-
abortSignal: options
|
|
78
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
79
|
+
abortSignal: options?.abortSignal,
|
|
68
80
|
getInitialResponse: () => _updateSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, properties, options),
|
|
69
81
|
resourceLocationConfig: "location",
|
|
70
82
|
});
|
|
@@ -72,7 +84,6 @@ export function update(context, resourceGroupName, autonomousdatabasename, adbba
|
|
|
72
84
|
export function _$deleteSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, options = {
|
|
73
85
|
requestOptions: {},
|
|
74
86
|
}) {
|
|
75
|
-
var _a, _b;
|
|
76
87
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}", {
|
|
77
88
|
subscriptionId: context.subscriptionId,
|
|
78
89
|
resourceGroupName: resourceGroupName,
|
|
@@ -80,9 +91,15 @@ export function _$deleteSend(context, resourceGroupName, autonomousdatabasename,
|
|
|
80
91
|
adbbackupid: adbbackupid,
|
|
81
92
|
"api%2Dversion": context.apiVersion,
|
|
82
93
|
}, {
|
|
83
|
-
allowReserved:
|
|
94
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
95
|
+
});
|
|
96
|
+
return context.path(path).delete({
|
|
97
|
+
...operationOptionsToRequestParameters(options),
|
|
98
|
+
headers: {
|
|
99
|
+
accept: "application/json",
|
|
100
|
+
...options.requestOptions?.headers,
|
|
101
|
+
},
|
|
84
102
|
});
|
|
85
|
-
return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
86
103
|
}
|
|
87
104
|
export async function _$deleteDeserialize(result) {
|
|
88
105
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -103,14 +120,13 @@ export function $delete(context, resourceGroupName, autonomousdatabasename, adbb
|
|
|
103
120
|
requestOptions: {},
|
|
104
121
|
}) {
|
|
105
122
|
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
106
|
-
updateIntervalInMs: options
|
|
107
|
-
abortSignal: options
|
|
123
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
124
|
+
abortSignal: options?.abortSignal,
|
|
108
125
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, options),
|
|
109
126
|
resourceLocationConfig: "location",
|
|
110
127
|
});
|
|
111
128
|
}
|
|
112
129
|
export function _getSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, options = { requestOptions: {} }) {
|
|
113
|
-
var _a, _b;
|
|
114
130
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}", {
|
|
115
131
|
subscriptionId: context.subscriptionId,
|
|
116
132
|
resourceGroupName: resourceGroupName,
|
|
@@ -118,9 +134,15 @@ export function _getSend(context, resourceGroupName, autonomousdatabasename, adb
|
|
|
118
134
|
adbbackupid: adbbackupid,
|
|
119
135
|
"api%2Dversion": context.apiVersion,
|
|
120
136
|
}, {
|
|
121
|
-
allowReserved:
|
|
137
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
138
|
+
});
|
|
139
|
+
return context.path(path).get({
|
|
140
|
+
...operationOptionsToRequestParameters(options),
|
|
141
|
+
headers: {
|
|
142
|
+
accept: "application/json",
|
|
143
|
+
...options.requestOptions?.headers,
|
|
144
|
+
},
|
|
122
145
|
});
|
|
123
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
124
146
|
}
|
|
125
147
|
export async function _getDeserialize(result) {
|
|
126
148
|
const expectedStatuses = ["200"];
|
|
@@ -139,7 +161,6 @@ export async function get(context, resourceGroupName, autonomousdatabasename, ad
|
|
|
139
161
|
export function _createOrUpdateSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, resource, options = {
|
|
140
162
|
requestOptions: {},
|
|
141
163
|
}) {
|
|
142
|
-
var _a, _b;
|
|
143
164
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}", {
|
|
144
165
|
subscriptionId: context.subscriptionId,
|
|
145
166
|
resourceGroupName: resourceGroupName,
|
|
@@ -147,9 +168,17 @@ export function _createOrUpdateSend(context, resourceGroupName, autonomousdataba
|
|
|
147
168
|
adbbackupid: adbbackupid,
|
|
148
169
|
"api%2Dversion": context.apiVersion,
|
|
149
170
|
}, {
|
|
150
|
-
allowReserved:
|
|
171
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
172
|
+
});
|
|
173
|
+
return context.path(path).put({
|
|
174
|
+
...operationOptionsToRequestParameters(options),
|
|
175
|
+
contentType: "application/json",
|
|
176
|
+
headers: {
|
|
177
|
+
accept: "application/json",
|
|
178
|
+
...options.requestOptions?.headers,
|
|
179
|
+
},
|
|
180
|
+
body: autonomousDatabaseBackupSerializer(resource),
|
|
151
181
|
});
|
|
152
|
-
return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: autonomousDatabaseBackupSerializer(resource) }));
|
|
153
182
|
}
|
|
154
183
|
export async function _createOrUpdateDeserialize(result) {
|
|
155
184
|
const expectedStatuses = ["200", "201"];
|
|
@@ -165,8 +194,8 @@ export function createOrUpdate(context, resourceGroupName, autonomousdatabasenam
|
|
|
165
194
|
requestOptions: {},
|
|
166
195
|
}) {
|
|
167
196
|
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201"], {
|
|
168
|
-
updateIntervalInMs: options
|
|
169
|
-
abortSignal: options
|
|
197
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
198
|
+
abortSignal: options?.abortSignal,
|
|
170
199
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, resource, options),
|
|
171
200
|
resourceLocationConfig: "azure-async-operation",
|
|
172
201
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/autonomousDatabaseBackups/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAClC,oCAAoC,EAEpC,wCAAwC,EAExC,+CAA+C,GAChD,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,iBAAiB,CAC/B,OAAe,EACf,iBAAyB,EACzB,sBAA8B,EAC9B,UAA+D;IAC7D,cAAc,EAAE,EAAE;CACnB;;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,qLAAqL,EACrL;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,sBAAsB,EAAE,sBAAsB;QAC9C,eAAe,EAAE,OAAO,CAAC,UAAU;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R;QACH,sBAAsB,EAAE,uBAAuB;KAChD,CAAmF,CAAC;AACvF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OracleDatabaseManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n AutonomousDatabaseBackup,\n autonomousDatabaseBackupSerializer,\n autonomousDatabaseBackupDeserializer,\n AutonomousDatabaseBackupUpdate,\n autonomousDatabaseBackupUpdateSerializer,\n _AutonomousDatabaseBackupListResult,\n _autonomousDatabaseBackupListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n AutonomousDatabaseBackupsListByParentOptionalParams,\n AutonomousDatabaseBackupsUpdateOptionalParams,\n AutonomousDatabaseBackupsDeleteOptionalParams,\n AutonomousDatabaseBackupsGetOptionalParams,\n AutonomousDatabaseBackupsCreateOrUpdateOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listByParentSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n options: AutonomousDatabaseBackupsListByParentOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByParentDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AutonomousDatabaseBackupListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _autonomousDatabaseBackupListResultDeserializer(result.body);\n}\n\n/** List AutonomousDatabaseBackup resources by AutonomousDatabase */\nexport function listByParent(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n options: AutonomousDatabaseBackupsListByParentOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<AutonomousDatabaseBackup> {\n return buildPagedAsyncIterator(\n context,\n () => _listByParentSend(context, resourceGroupName, autonomousdatabasename, options),\n _listByParentDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n properties: AutonomousDatabaseBackupUpdate,\n options: AutonomousDatabaseBackupsUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n adbbackupid: adbbackupid,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: autonomousDatabaseBackupUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<AutonomousDatabaseBackup> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDatabaseBackupDeserializer(result.body);\n}\n\n/** Update a AutonomousDatabaseBackup */\nexport function update(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n properties: AutonomousDatabaseBackupUpdate,\n options: AutonomousDatabaseBackupsUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<AutonomousDatabaseBackup>, AutonomousDatabaseBackup> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(\n context,\n resourceGroupName,\n autonomousdatabasename,\n adbbackupid,\n properties,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<AutonomousDatabaseBackup>, AutonomousDatabaseBackup>;\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n options: AutonomousDatabaseBackupsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n adbbackupid: adbbackupid,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a AutonomousDatabaseBackup */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n options: AutonomousDatabaseBackupsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n options: AutonomousDatabaseBackupsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n adbbackupid: adbbackupid,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<AutonomousDatabaseBackup> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDatabaseBackupDeserializer(result.body);\n}\n\n/** Get a AutonomousDatabaseBackup */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n options: AutonomousDatabaseBackupsGetOptionalParams = { requestOptions: {} },\n): Promise<AutonomousDatabaseBackup> {\n const result = await _getSend(\n context,\n resourceGroupName,\n autonomousdatabasename,\n adbbackupid,\n options,\n );\n return _getDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n resource: AutonomousDatabaseBackup,\n options: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n adbbackupid: adbbackupid,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: autonomousDatabaseBackupSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<AutonomousDatabaseBackup> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDatabaseBackupDeserializer(result.body);\n}\n\n/** Create a AutonomousDatabaseBackup */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n resource: AutonomousDatabaseBackup,\n options: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<AutonomousDatabaseBackup>, AutonomousDatabaseBackup> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(\n context,\n resourceGroupName,\n autonomousdatabasename,\n adbbackupid,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<AutonomousDatabaseBackup>, AutonomousDatabaseBackup>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/autonomousDatabaseBackups/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAClC,oCAAoC,EAEpC,wCAAwC,EAExC,+CAA+C,GAChD,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,iBAAiB,CAC/B,OAAe,EACf,iBAAyB,EACzB,sBAA8B,EAC9B,UAA+D;IAC7D,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,qLAAqL,EACrL;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,sBAAsB,EAAE,sBAAsB;QAC9C,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC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AC/B,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;QACD,IAAI,EAAE,kCAAkC,CAAC,QAAQ,CAAC;KACnD,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,oCAAoC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC3D,CAAC;AAED,wCAAwC;AACxC,MAAM,UAAU,cAAc,CAC5B,OAAe,EACf,iBAAyB,EACzB,sBAA8B,EAC9B,WAAmB,EACnB,QAAkC,EAClC,UAAiE;IAC/D,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,oBAAoB,CAAC,OAAO,EAAE,0BAA0B,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;QAC/E,kBAAkB,EAAE,OAAO,EAAE,kBAAkB;QAC/C,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,kBAAkB,EAAE,GAAG,EAAE,CACvB,mBAAmB,CACjB,OAAO,EACP,iBAAiB,EACjB,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,OAAO,CACR;QACH,sBAAsB,EAAE,uBAAuB;KAChD,CAAmF,CAAC;AACvF,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OracleDatabaseManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n AutonomousDatabaseBackup,\n autonomousDatabaseBackupSerializer,\n autonomousDatabaseBackupDeserializer,\n AutonomousDatabaseBackupUpdate,\n autonomousDatabaseBackupUpdateSerializer,\n _AutonomousDatabaseBackupListResult,\n _autonomousDatabaseBackupListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n AutonomousDatabaseBackupsListByParentOptionalParams,\n AutonomousDatabaseBackupsUpdateOptionalParams,\n AutonomousDatabaseBackupsDeleteOptionalParams,\n AutonomousDatabaseBackupsGetOptionalParams,\n AutonomousDatabaseBackupsCreateOrUpdateOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _listByParentSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n options: AutonomousDatabaseBackupsListByParentOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByParentDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AutonomousDatabaseBackupListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _autonomousDatabaseBackupListResultDeserializer(result.body);\n}\n\n/** List AutonomousDatabaseBackup resources by AutonomousDatabase */\nexport function listByParent(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n options: AutonomousDatabaseBackupsListByParentOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<AutonomousDatabaseBackup> {\n return buildPagedAsyncIterator(\n context,\n () => _listByParentSend(context, resourceGroupName, autonomousdatabasename, options),\n _listByParentDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n properties: AutonomousDatabaseBackupUpdate,\n options: AutonomousDatabaseBackupsUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n adbbackupid: adbbackupid,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: autonomousDatabaseBackupUpdateSerializer(properties),\n });\n}\n\nexport async function _updateDeserialize(\n result: PathUncheckedResponse,\n): Promise<AutonomousDatabaseBackup> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDatabaseBackupDeserializer(result.body);\n}\n\n/** Update a AutonomousDatabaseBackup */\nexport function update(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n properties: AutonomousDatabaseBackupUpdate,\n options: AutonomousDatabaseBackupsUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<AutonomousDatabaseBackup>, AutonomousDatabaseBackup> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(\n context,\n resourceGroupName,\n autonomousdatabasename,\n adbbackupid,\n properties,\n options,\n ),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<AutonomousDatabaseBackup>, AutonomousDatabaseBackup>;\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n options: AutonomousDatabaseBackupsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n adbbackupid: adbbackupid,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Delete a AutonomousDatabaseBackup */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n options: AutonomousDatabaseBackupsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, autonomousdatabasename, adbbackupid, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n options: AutonomousDatabaseBackupsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n adbbackupid: adbbackupid,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<AutonomousDatabaseBackup> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDatabaseBackupDeserializer(result.body);\n}\n\n/** Get a AutonomousDatabaseBackup */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n options: AutonomousDatabaseBackupsGetOptionalParams = { requestOptions: {} },\n): Promise<AutonomousDatabaseBackup> {\n const result = await _getSend(\n context,\n resourceGroupName,\n autonomousdatabasename,\n adbbackupid,\n options,\n );\n return _getDeserialize(result);\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n resource: AutonomousDatabaseBackup,\n options: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n autonomousdatabasename: autonomousdatabasename,\n adbbackupid: adbbackupid,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: autonomousDatabaseBackupSerializer(resource),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<AutonomousDatabaseBackup> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDatabaseBackupDeserializer(result.body);\n}\n\n/** Create a AutonomousDatabaseBackup */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n autonomousdatabasename: string,\n adbbackupid: string,\n resource: AutonomousDatabaseBackup,\n options: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<AutonomousDatabaseBackup>, AutonomousDatabaseBackup> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(\n context,\n resourceGroupName,\n autonomousdatabasename,\n adbbackupid,\n resource,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<AutonomousDatabaseBackup>, AutonomousDatabaseBackup>;\n}\n"]}
|
|
@@ -7,15 +7,20 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _listByLocationSend(context, location, options = {
|
|
8
8
|
requestOptions: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseCharacterSets{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
location: location,
|
|
14
13
|
"api%2Dversion": context.apiVersion,
|
|
15
14
|
}, {
|
|
16
|
-
allowReserved:
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).get({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
headers: {
|
|
20
|
+
accept: "application/json",
|
|
21
|
+
...options.requestOptions?.headers,
|
|
22
|
+
},
|
|
17
23
|
});
|
|
18
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
19
24
|
}
|
|
20
25
|
export async function _listByLocationDeserialize(result) {
|
|
21
26
|
const expectedStatuses = ["200"];
|
|
@@ -35,16 +40,21 @@ export function listByLocation(context, location, options = {
|
|
|
35
40
|
export function _getSend(context, location, adbscharsetname, options = {
|
|
36
41
|
requestOptions: {},
|
|
37
42
|
}) {
|
|
38
|
-
var _a, _b;
|
|
39
43
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseCharacterSets/{adbscharsetname}{?api%2Dversion}", {
|
|
40
44
|
subscriptionId: context.subscriptionId,
|
|
41
45
|
location: location,
|
|
42
46
|
adbscharsetname: adbscharsetname,
|
|
43
47
|
"api%2Dversion": context.apiVersion,
|
|
44
48
|
}, {
|
|
45
|
-
allowReserved:
|
|
49
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
50
|
+
});
|
|
51
|
+
return context.path(path).get({
|
|
52
|
+
...operationOptionsToRequestParameters(options),
|
|
53
|
+
headers: {
|
|
54
|
+
accept: "application/json",
|
|
55
|
+
...options.requestOptions?.headers,
|
|
56
|
+
},
|
|
46
57
|
});
|
|
47
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
48
58
|
}
|
|
49
59
|
export async function _getDeserialize(result) {
|
|
50
60
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/autonomousDatabaseCharacterSets/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,0CAA0C,EAE1C,qDAAqD,GACtD,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,QAAgB,EAChB,UAAuE;IACrE,cAAc,EAAE,EAAE;CACnB
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["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KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,0CAA0C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAED,2CAA2C;AAC3C,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,eAAuB,EACvB,UAA4D;IAC1D,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC;IAC3E,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OracleDatabaseManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n AutonomousDatabaseCharacterSet,\n autonomousDatabaseCharacterSetDeserializer,\n _AutonomousDatabaseCharacterSetListResult,\n _autonomousDatabaseCharacterSetListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n AutonomousDatabaseCharacterSetsListByLocationOptionalParams,\n AutonomousDatabaseCharacterSetsGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listByLocationSend(\n context: Client,\n location: string,\n options: AutonomousDatabaseCharacterSetsListByLocationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseCharacterSets{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByLocationDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AutonomousDatabaseCharacterSetListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _autonomousDatabaseCharacterSetListResultDeserializer(result.body);\n}\n\n/** List AutonomousDatabaseCharacterSet resources by SubscriptionLocationResource */\nexport function listByLocation(\n context: Client,\n location: string,\n options: AutonomousDatabaseCharacterSetsListByLocationOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<AutonomousDatabaseCharacterSet> {\n return buildPagedAsyncIterator(\n context,\n () => _listByLocationSend(context, location, options),\n _listByLocationDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n adbscharsetname: string,\n options: AutonomousDatabaseCharacterSetsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseCharacterSets/{adbscharsetname}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n adbscharsetname: adbscharsetname,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<AutonomousDatabaseCharacterSet> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDatabaseCharacterSetDeserializer(result.body);\n}\n\n/** Get a AutonomousDatabaseCharacterSet */\nexport async function get(\n context: Client,\n location: string,\n adbscharsetname: string,\n options: AutonomousDatabaseCharacterSetsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<AutonomousDatabaseCharacterSet> {\n const result = await _getSend(context, location, adbscharsetname, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -7,15 +7,20 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _listByLocationSend(context, location, options = {
|
|
8
8
|
requestOptions: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseNationalCharacterSets{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
location: location,
|
|
14
13
|
"api%2Dversion": context.apiVersion,
|
|
15
14
|
}, {
|
|
16
|
-
allowReserved:
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).get({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
headers: {
|
|
20
|
+
accept: "application/json",
|
|
21
|
+
...options.requestOptions?.headers,
|
|
22
|
+
},
|
|
17
23
|
});
|
|
18
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
19
24
|
}
|
|
20
25
|
export async function _listByLocationDeserialize(result) {
|
|
21
26
|
const expectedStatuses = ["200"];
|
|
@@ -35,16 +40,21 @@ export function listByLocation(context, location, options = {
|
|
|
35
40
|
export function _getSend(context, location, adbsncharsetname, options = {
|
|
36
41
|
requestOptions: {},
|
|
37
42
|
}) {
|
|
38
|
-
var _a, _b;
|
|
39
43
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseNationalCharacterSets/{adbsncharsetname}{?api%2Dversion}", {
|
|
40
44
|
subscriptionId: context.subscriptionId,
|
|
41
45
|
location: location,
|
|
42
46
|
adbsncharsetname: adbsncharsetname,
|
|
43
47
|
"api%2Dversion": context.apiVersion,
|
|
44
48
|
}, {
|
|
45
|
-
allowReserved:
|
|
49
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
50
|
+
});
|
|
51
|
+
return context.path(path).get({
|
|
52
|
+
...operationOptionsToRequestParameters(options),
|
|
53
|
+
headers: {
|
|
54
|
+
accept: "application/json",
|
|
55
|
+
...options.requestOptions?.headers,
|
|
56
|
+
},
|
|
46
57
|
});
|
|
47
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
48
58
|
}
|
|
49
59
|
export async function _getDeserialize(result) {
|
|
50
60
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/autonomousDatabaseNationalCharacterSets/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,kDAAkD,EAElD,6DAA6D,GAC9D,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,QAAgB,EAChB,UAA+E;IAC7E,cAAc,EAAE,EAAE;CACnB
|
|
1
|
+
{"version":3,"file":"operations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AAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,kDAAkD,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,CAAC;AAED,mDAAmD;AACnD,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,gBAAwB,EACxB,UAAoE;IAClE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC5E,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OracleDatabaseManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n AutonomousDatabaseNationalCharacterSet,\n autonomousDatabaseNationalCharacterSetDeserializer,\n _AutonomousDatabaseNationalCharacterSetListResult,\n _autonomousDatabaseNationalCharacterSetListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams,\n AutonomousDatabaseNationalCharacterSetsGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listByLocationSend(\n context: Client,\n location: string,\n options: AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseNationalCharacterSets{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByLocationDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AutonomousDatabaseNationalCharacterSetListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _autonomousDatabaseNationalCharacterSetListResultDeserializer(result.body);\n}\n\n/** List AutonomousDatabaseNationalCharacterSet resources by SubscriptionLocationResource */\nexport function listByLocation(\n context: Client,\n location: string,\n options: AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<AutonomousDatabaseNationalCharacterSet> {\n return buildPagedAsyncIterator(\n context,\n () => _listByLocationSend(context, location, options),\n _listByLocationDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n adbsncharsetname: string,\n options: AutonomousDatabaseNationalCharacterSetsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseNationalCharacterSets/{adbsncharsetname}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n adbsncharsetname: adbsncharsetname,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<AutonomousDatabaseNationalCharacterSet> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDatabaseNationalCharacterSetDeserializer(result.body);\n}\n\n/** Get a AutonomousDatabaseNationalCharacterSet */\nexport async function get(\n context: Client,\n location: string,\n adbsncharsetname: string,\n options: AutonomousDatabaseNationalCharacterSetsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<AutonomousDatabaseNationalCharacterSet> {\n const result = await _getSend(context, location, adbsncharsetname, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -7,15 +7,20 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _listByLocationSend(context, location, options = {
|
|
8
8
|
requestOptions: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDbVersions{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
location: location,
|
|
14
13
|
"api%2Dversion": context.apiVersion,
|
|
15
14
|
}, {
|
|
16
|
-
allowReserved:
|
|
15
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
+
});
|
|
17
|
+
return context.path(path).get({
|
|
18
|
+
...operationOptionsToRequestParameters(options),
|
|
19
|
+
headers: {
|
|
20
|
+
accept: "application/json",
|
|
21
|
+
...options.requestOptions?.headers,
|
|
22
|
+
},
|
|
17
23
|
});
|
|
18
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
19
24
|
}
|
|
20
25
|
export async function _listByLocationDeserialize(result) {
|
|
21
26
|
const expectedStatuses = ["200"];
|
|
@@ -33,16 +38,21 @@ export function listByLocation(context, location, options = {
|
|
|
33
38
|
return buildPagedAsyncIterator(context, () => _listByLocationSend(context, location, options), _listByLocationDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
34
39
|
}
|
|
35
40
|
export function _getSend(context, location, autonomousdbversionsname, options = { requestOptions: {} }) {
|
|
36
|
-
var _a, _b;
|
|
37
41
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDbVersions/{autonomousdbversionsname}{?api%2Dversion}", {
|
|
38
42
|
subscriptionId: context.subscriptionId,
|
|
39
43
|
location: location,
|
|
40
44
|
autonomousdbversionsname: autonomousdbversionsname,
|
|
41
45
|
"api%2Dversion": context.apiVersion,
|
|
42
46
|
}, {
|
|
43
|
-
allowReserved:
|
|
47
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
48
|
+
});
|
|
49
|
+
return context.path(path).get({
|
|
50
|
+
...operationOptionsToRequestParameters(options),
|
|
51
|
+
headers: {
|
|
52
|
+
accept: "application/json",
|
|
53
|
+
...options.requestOptions?.headers,
|
|
54
|
+
},
|
|
44
55
|
});
|
|
45
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
46
56
|
}
|
|
47
57
|
export async function _getDeserialize(result) {
|
|
48
58
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/autonomousDatabaseVersions/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,+BAA+B,EAE/B,0CAA0C,GAC3C,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,QAAgB,EAChB,UAAkE;IAChE,cAAc,EAAE,EAAE;CACnB
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/autonomousDatabaseVersions/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,+BAA+B,EAE/B,0CAA0C,GAC3C,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,QAAgB,EAChB,UAAkE;IAChE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,qHAAqH,EACrH;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,QAAQ,EAAE,QAAQ;QAClB,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,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AA6B;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,+BAA+B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACtD,CAAC;AAED,gCAAgC;AAChC,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,QAAgB,EAChB,wBAAgC,EAChC,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE7E,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,wBAAwB,EAAE,OAAO,CAAC,CAAC;IACpF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OracleDatabaseManagementContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n AutonomousDbVersion,\n autonomousDbVersionDeserializer,\n _AutonomousDbVersionListResult,\n _autonomousDbVersionListResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n AutonomousDatabaseVersionsListByLocationOptionalParams,\n AutonomousDatabaseVersionsGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listByLocationSend(\n context: Client,\n location: string,\n options: AutonomousDatabaseVersionsListByLocationOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDbVersions{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByLocationDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AutonomousDbVersionListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _autonomousDbVersionListResultDeserializer(result.body);\n}\n\n/** List AutonomousDbVersion resources by SubscriptionLocationResource */\nexport function listByLocation(\n context: Client,\n location: string,\n options: AutonomousDatabaseVersionsListByLocationOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<AutonomousDbVersion> {\n return buildPagedAsyncIterator(\n context,\n () => _listByLocationSend(context, location, options),\n _listByLocationDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getSend(\n context: Client,\n location: string,\n autonomousdbversionsname: string,\n options: AutonomousDatabaseVersionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDbVersions/{autonomousdbversionsname}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n location: location,\n autonomousdbversionsname: autonomousdbversionsname,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<AutonomousDbVersion> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return autonomousDbVersionDeserializer(result.body);\n}\n\n/** Get a AutonomousDbVersion */\nexport async function get(\n context: Client,\n location: string,\n autonomousdbversionsname: string,\n options: AutonomousDatabaseVersionsGetOptionalParams = { requestOptions: {} },\n): Promise<AutonomousDbVersion> {\n const result = await _getSend(context, location, autonomousdbversionsname, options);\n return _getDeserialize(result);\n}\n"]}
|