From 8e50feabf93c8ea3f46cf8e48fe5d60254f0873b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 27 Aug 2024 23:10:23 +0000 Subject: [PATCH] CodeGen from PR 3489 in test-repo-billy/azure-rest-api-specs Merge 81cbcc6683dbdde803b169be5c34bee0ea7ea90d into 2b91022c223ed3618c268c750f831b76fe0f4fb5 --- .../arm-oracledatabase/CHANGELOG.md | 17 - sdk/oracledatabase/arm-oracledatabase/LICENSE | 21 - .../arm-oracledatabase/README.md | 109 - .../arm-oracledatabase/_meta.json | 8 - .../arm-oracledatabase/api-extractor.json | 31 - .../arm-oracledatabase/assets.json | 6 - .../arm-oracledatabase/package.json | 118 - .../review/arm-oracledatabase.api.md | 2639 -------- .../arm-oracledatabase/sample.env | 4 - ...mousDatabaseBackupsCreateOrUpdateSample.ts | 91 - .../autonomousDatabaseBackupsDeleteSample.ts | 70 - .../autonomousDatabaseBackupsGetSample.ts | 70 - ...seBackupsListByAutonomousDatabaseSample.ts | 72 - .../autonomousDatabaseBackupsUpdateSample.ts | 77 - ...utonomousDatabaseCharacterSetsGetSample.ts | 42 - ...tabaseCharacterSetsListByLocationSample.ts | 43 - ...sDatabaseNationalCharacterSetsGetSample.ts | 42 - ...tionalCharacterSetsListByLocationSample.ts | 43 - .../autonomousDatabaseVersionsGetSample.ts | 42 - ...ousDatabaseVersionsListByLocationSample.ts | 43 - ...autonomousDatabasesCreateOrUpdateSample.ts | 199 - .../autonomousDatabasesDeleteSample.ts | 43 - .../autonomousDatabasesFailoverSample.ts | 73 - ...autonomousDatabasesGenerateWalletSample.ts | 52 - .../autonomousDatabasesGetSample.ts | 66 - ...omousDatabasesListByResourceGroupSample.ts | 44 - ...nomousDatabasesListBySubscriptionSample.ts | 40 - .../autonomousDatabasesRestoreSample.ts | 77 - .../autonomousDatabasesShrinkSample.ts | 43 - .../autonomousDatabasesSwitchoverSample.ts | 73 - .../autonomousDatabasesUpdateSample.ts | 48 - ...InfrastructuresAddStorageCapacitySample.ts | 44 - ...dataInfrastructuresCreateOrUpdateSample.ts | 59 - ...cloudExadataInfrastructuresDeleteSample.ts | 43 - .../cloudExadataInfrastructuresGetSample.ts | 43 - ...nfrastructuresListByResourceGroupSample.ts | 44 - ...InfrastructuresListBySubscriptionSample.ts | 40 - ...cloudExadataInfrastructuresUpdateSample.ts | 48 - .../cloudVMClustersAddVmsSample.ts | 48 - .../cloudVMClustersCreateOrUpdateSample.ts | 91 - .../cloudVMClustersDeleteSample.ts | 43 - .../samples-dev/cloudVMClustersGetSample.ts | 43 - ...loudVMClustersListByResourceGroupSample.ts | 44 - ...cloudVMClustersListBySubscriptionSample.ts | 40 - ...dVMClustersListPrivateIPAddressesSample.ts | 51 - .../cloudVMClustersRemoveVmsSample.ts | 48 - .../cloudVMClustersUpdateSample.ts | 48 - .../samples-dev/dbNodesActionSample.ts | 77 - .../samples-dev/dbNodesGetSample.ts | 45 - .../dbNodesListByCloudVMClusterSample.ts | 46 - .../samples-dev/dbServersGetSample.ts | 45 - ...sListByCloudExadataInfrastructureSample.ts | 46 - .../samples-dev/dbSystemShapesGetSample.ts | 39 - .../dbSystemShapesListByLocationSample.ts | 41 - .../samples-dev/dnsPrivateViewsGetSample.ts | 39 - .../dnsPrivateViewsListByLocationSample.ts | 41 - .../samples-dev/dnsPrivateZonesGetSample.ts | 39 - .../dnsPrivateZonesListByLocationSample.ts | 41 - .../samples-dev/giVersionsGetSample.ts | 39 - .../giVersionsListByLocationSample.ts | 41 - .../samples-dev/operationsListSample.ts | 40 - ...oracleSubscriptionsCreateOrUpdateSample.ts | 51 - .../oracleSubscriptionsDeleteSample.ts | 37 - .../oracleSubscriptionsGetSample.ts | 37 - ...eSubscriptionsListActivationLinksSample.ts | 38 - ...leSubscriptionsListBySubscriptionSample.ts | 40 - ...scriptionsListCloudAccountDetailsSample.ts | 38 - ...ptionsListSaasSubscriptionDetailsSample.ts | 38 - .../oracleSubscriptionsUpdateSample.ts | 42 - .../samples-dev/systemVersionsGetSample.ts | 58 - .../systemVersionsListByLocationSample.ts | 62 - ...ualNetworkAddressesCreateOrUpdateSample.ts | 53 - .../virtualNetworkAddressesDeleteSample.ts | 45 - .../virtualNetworkAddressesGetSample.ts | 45 - ...workAddressesListByCloudVMClusterSample.ts | 46 - .../samples/v1/javascript/README.md | 180 - ...mousDatabaseBackupsCreateOrUpdateSample.js | 80 - .../autonomousDatabaseBackupsDeleteSample.js | 64 - .../autonomousDatabaseBackupsGetSample.js | 64 - ...seBackupsListByAutonomousDatabaseSample.js | 66 - .../autonomousDatabaseBackupsUpdateSample.js | 68 - ...utonomousDatabaseCharacterSetsGetSample.js | 36 - ...tabaseCharacterSetsListByLocationSample.js | 38 - ...sDatabaseNationalCharacterSetsGetSample.js | 39 - ...tionalCharacterSetsListByLocationSample.js | 38 - .../autonomousDatabaseVersionsGetSample.js | 36 - ...ousDatabaseVersionsListByLocationSample.js | 38 - ...autonomousDatabasesCreateOrUpdateSample.js | 186 - .../autonomousDatabasesDeleteSample.js | 39 - .../autonomousDatabasesFailoverSample.js | 64 - ...autonomousDatabasesGenerateWalletSample.js | 45 - .../autonomousDatabasesGetSample.js | 54 - ...omousDatabasesListByResourceGroupSample.js | 38 - ...nomousDatabasesListBySubscriptionSample.js | 37 - .../autonomousDatabasesRestoreSample.js | 68 - .../autonomousDatabasesShrinkSample.js | 39 - .../autonomousDatabasesSwitchoverSample.js | 64 - .../autonomousDatabasesUpdateSample.js | 41 - ...InfrastructuresAddStorageCapacitySample.js | 39 - ...dataInfrastructuresCreateOrUpdateSample.js | 51 - ...cloudExadataInfrastructuresDeleteSample.js | 39 - .../cloudExadataInfrastructuresGetSample.js | 39 - ...nfrastructuresListByResourceGroupSample.js | 40 - ...InfrastructuresListBySubscriptionSample.js | 37 - ...cloudExadataInfrastructuresUpdateSample.js | 41 - .../javascript/cloudVMClustersAddVmsSample.js | 41 - .../cloudVMClustersCreateOrUpdateSample.js | 84 - .../javascript/cloudVMClustersDeleteSample.js | 39 - .../v1/javascript/cloudVMClustersGetSample.js | 36 - ...loudVMClustersListByResourceGroupSample.js | 38 - ...cloudVMClustersListBySubscriptionSample.js | 37 - ...dVMClustersListPrivateIPAddressesSample.js | 44 - .../cloudVMClustersRemoveVmsSample.js | 41 - .../javascript/cloudVMClustersUpdateSample.js | 41 - .../v1/javascript/dbNodesActionSample.js | 68 - .../samples/v1/javascript/dbNodesGetSample.js | 37 - .../dbNodesListByCloudVMClusterSample.js | 42 - .../v1/javascript/dbServersGetSample.js | 41 - ...sListByCloudExadataInfrastructureSample.js | 42 - .../v1/javascript/dbSystemShapesGetSample.js | 36 - .../dbSystemShapesListByLocationSample.js | 38 - .../v1/javascript/dnsPrivateViewsGetSample.js | 36 - .../dnsPrivateViewsListByLocationSample.js | 38 - .../v1/javascript/dnsPrivateZonesGetSample.js | 36 - .../dnsPrivateZonesListByLocationSample.js | 38 - .../v1/javascript/giVersionsGetSample.js | 36 - .../giVersionsListByLocationSample.js | 38 - .../v1/javascript/operationsListSample.js | 37 - ...oracleSubscriptionsCreateOrUpdateSample.js | 44 - .../oracleSubscriptionsDeleteSample.js | 34 - .../oracleSubscriptionsGetSample.js | 34 - ...eSubscriptionsListActivationLinksSample.js | 34 - ...leSubscriptionsListBySubscriptionSample.js | 37 - ...scriptionsListCloudAccountDetailsSample.js | 34 - ...ptionsListSaasSubscriptionDetailsSample.js | 34 - .../oracleSubscriptionsUpdateSample.js | 35 - .../samples/v1/javascript/package.json | 32 - .../samples/v1/javascript/sample.env | 4 - .../v1/javascript/systemVersionsGetSample.js | 54 - .../systemVersionsListByLocationSample.js | 58 - ...ualNetworkAddressesCreateOrUpdateSample.js | 45 - .../virtualNetworkAddressesDeleteSample.js | 41 - .../virtualNetworkAddressesGetSample.js | 41 - ...workAddressesListByCloudVMClusterSample.js | 42 - .../samples/v1/typescript/README.md | 193 - .../samples/v1/typescript/package.json | 41 - .../samples/v1/typescript/sample.env | 4 - ...mousDatabaseBackupsCreateOrUpdateSample.ts | 91 - .../autonomousDatabaseBackupsDeleteSample.ts | 70 - .../src/autonomousDatabaseBackupsGetSample.ts | 70 - ...seBackupsListByAutonomousDatabaseSample.ts | 72 - .../autonomousDatabaseBackupsUpdateSample.ts | 77 - ...utonomousDatabaseCharacterSetsGetSample.ts | 42 - ...tabaseCharacterSetsListByLocationSample.ts | 43 - ...sDatabaseNationalCharacterSetsGetSample.ts | 42 - ...tionalCharacterSetsListByLocationSample.ts | 43 - .../autonomousDatabaseVersionsGetSample.ts | 42 - ...ousDatabaseVersionsListByLocationSample.ts | 43 - ...autonomousDatabasesCreateOrUpdateSample.ts | 199 - .../src/autonomousDatabasesDeleteSample.ts | 43 - .../src/autonomousDatabasesFailoverSample.ts | 73 - ...autonomousDatabasesGenerateWalletSample.ts | 52 - .../src/autonomousDatabasesGetSample.ts | 66 - ...omousDatabasesListByResourceGroupSample.ts | 44 - ...nomousDatabasesListBySubscriptionSample.ts | 40 - .../src/autonomousDatabasesRestoreSample.ts | 77 - .../src/autonomousDatabasesShrinkSample.ts | 43 - .../autonomousDatabasesSwitchoverSample.ts | 73 - .../src/autonomousDatabasesUpdateSample.ts | 48 - ...InfrastructuresAddStorageCapacitySample.ts | 44 - ...dataInfrastructuresCreateOrUpdateSample.ts | 59 - ...cloudExadataInfrastructuresDeleteSample.ts | 43 - .../cloudExadataInfrastructuresGetSample.ts | 43 - ...nfrastructuresListByResourceGroupSample.ts | 44 - ...InfrastructuresListBySubscriptionSample.ts | 40 - ...cloudExadataInfrastructuresUpdateSample.ts | 48 - .../src/cloudVMClustersAddVmsSample.ts | 48 - .../cloudVMClustersCreateOrUpdateSample.ts | 91 - .../src/cloudVMClustersDeleteSample.ts | 43 - .../src/cloudVMClustersGetSample.ts | 43 - ...loudVMClustersListByResourceGroupSample.ts | 44 - ...cloudVMClustersListBySubscriptionSample.ts | 40 - ...dVMClustersListPrivateIPAddressesSample.ts | 51 - .../src/cloudVMClustersRemoveVmsSample.ts | 48 - .../src/cloudVMClustersUpdateSample.ts | 48 - .../v1/typescript/src/dbNodesActionSample.ts | 77 - .../v1/typescript/src/dbNodesGetSample.ts | 45 - .../src/dbNodesListByCloudVMClusterSample.ts | 46 - .../v1/typescript/src/dbServersGetSample.ts | 45 - ...sListByCloudExadataInfrastructureSample.ts | 46 - .../typescript/src/dbSystemShapesGetSample.ts | 39 - .../src/dbSystemShapesListByLocationSample.ts | 41 - .../src/dnsPrivateViewsGetSample.ts | 39 - .../dnsPrivateViewsListByLocationSample.ts | 41 - .../src/dnsPrivateZonesGetSample.ts | 39 - .../dnsPrivateZonesListByLocationSample.ts | 41 - .../v1/typescript/src/giVersionsGetSample.ts | 39 - .../src/giVersionsListByLocationSample.ts | 41 - .../v1/typescript/src/operationsListSample.ts | 40 - ...oracleSubscriptionsCreateOrUpdateSample.ts | 51 - .../src/oracleSubscriptionsDeleteSample.ts | 37 - .../src/oracleSubscriptionsGetSample.ts | 37 - ...eSubscriptionsListActivationLinksSample.ts | 38 - ...leSubscriptionsListBySubscriptionSample.ts | 40 - ...scriptionsListCloudAccountDetailsSample.ts | 38 - ...ptionsListSaasSubscriptionDetailsSample.ts | 38 - .../src/oracleSubscriptionsUpdateSample.ts | 42 - .../typescript/src/systemVersionsGetSample.ts | 58 - .../src/systemVersionsListByLocationSample.ts | 62 - ...ualNetworkAddressesCreateOrUpdateSample.ts | 53 - .../virtualNetworkAddressesDeleteSample.ts | 45 - .../src/virtualNetworkAddressesGetSample.ts | 45 - ...workAddressesListByCloudVMClusterSample.ts | 46 - .../samples/v1/typescript/tsconfig.json | 17 - .../arm-oracledatabase/src/index.ts | 13 - .../arm-oracledatabase/src/lroImpl.ts | 42 - .../arm-oracledatabase/src/models/index.ts | 4608 ------------- .../arm-oracledatabase/src/models/mappers.ts | 5971 ----------------- .../src/models/parameters.ts | 437 -- .../operations/autonomousDatabaseBackups.ts | 664 -- .../autonomousDatabaseCharacterSets.ts | 215 - ...autonomousDatabaseNationalCharacterSets.ts | 215 - .../operations/autonomousDatabaseVersions.ts | 215 - .../src/operations/autonomousDatabases.ts | 1284 ---- .../operations/cloudExadataInfrastructures.ts | 862 --- .../src/operations/cloudVmClusters.ts | 1042 --- .../src/operations/dbNodes.ts | 392 -- .../src/operations/dbServers.ts | 252 - .../src/operations/dbSystemShapes.ts | 213 - .../src/operations/dnsPrivateViews.ts | 213 - .../src/operations/dnsPrivateZones.ts | 213 - .../src/operations/giVersions.ts | 213 - .../src/operations/index.ts | 25 - .../src/operations/operations.ts | 149 - .../src/operations/oracleSubscriptions.ts | 833 --- .../src/operations/systemVersions.ts | 213 - .../src/operations/virtualNetworkAddresses.ts | 529 -- .../autonomousDatabaseBackups.ts | 153 - .../autonomousDatabaseCharacterSets.ts | 40 - ...autonomousDatabaseNationalCharacterSets.ts | 40 - .../autonomousDatabaseVersions.ts | 40 - .../autonomousDatabases.ts | 291 - .../cloudExadataInfrastructures.ts | 174 - .../operationsInterfaces/cloudVmClusters.ts | 228 - .../src/operationsInterfaces/dbNodes.ts | 83 - .../src/operationsInterfaces/dbServers.ts | 44 - .../operationsInterfaces/dbSystemShapes.ts | 40 - .../operationsInterfaces/dnsPrivateViews.ts | 40 - .../operationsInterfaces/dnsPrivateZones.ts | 40 - .../src/operationsInterfaces/giVersions.ts | 40 - .../src/operationsInterfaces/index.ts | 25 - .../src/operationsInterfaces/operations.ts | 22 - .../oracleSubscriptions.ts | 170 - .../operationsInterfaces/systemVersions.ts | 40 - .../virtualNetworkAddresses.ts | 115 - .../src/oracleDatabaseManagementClient.ts | 213 - .../arm-oracledatabase/src/pagingHelper.ts | 39 - .../oracledatabase_operations_test.spec.ts | 69 - .../arm-oracledatabase/tsconfig.json | 33 - .../arm-oracledatabase/tsp-location.yaml | 4 + 260 files changed, 4 insertions(+), 34113 deletions(-) delete mode 100644 sdk/oracledatabase/arm-oracledatabase/CHANGELOG.md delete mode 100644 sdk/oracledatabase/arm-oracledatabase/LICENSE delete mode 100644 sdk/oracledatabase/arm-oracledatabase/README.md delete mode 100644 sdk/oracledatabase/arm-oracledatabase/_meta.json delete mode 100644 sdk/oracledatabase/arm-oracledatabase/api-extractor.json delete mode 100644 sdk/oracledatabase/arm-oracledatabase/assets.json delete mode 100644 sdk/oracledatabase/arm-oracledatabase/package.json delete mode 100644 sdk/oracledatabase/arm-oracledatabase/review/arm-oracledatabase.api.md delete mode 100644 sdk/oracledatabase/arm-oracledatabase/sample.env delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseCharacterSetsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseCharacterSetsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseNationalCharacterSetsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseVersionsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseVersionsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesFailoverSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesGenerateWalletSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesListByResourceGroupSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesListBySubscriptionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesRestoreSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesShrinkSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesSwitchoverSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresAddStorageCapacitySample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresListByResourceGroupSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresListBySubscriptionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersAddVmsSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListByResourceGroupSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListBySubscriptionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListPrivateIPAddressesSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersRemoveVmsSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesActionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesListByCloudVMClusterSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dbServersGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dbServersListByCloudExadataInfrastructureSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dbSystemShapesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dbSystemShapesListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateViewsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateViewsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateZonesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateZonesListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/giVersionsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/giVersionsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/operationsListSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListActivationLinksSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListBySubscriptionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListCloudAccountDetailsSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/systemVersionsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/systemVersionsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesListByCloudVMClusterSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/README.md delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsCreateOrUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsDeleteSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsListByAutonomousDatabaseSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsListByLocationSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsListByLocationSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsListByLocationSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesCreateOrUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesDeleteSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesFailoverSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGenerateWalletSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListByResourceGroupSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListBySubscriptionSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesRestoreSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesShrinkSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesSwitchoverSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresAddStorageCapacitySample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresCreateOrUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresDeleteSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListByResourceGroupSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListBySubscriptionSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersAddVmsSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersCreateOrUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersDeleteSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListByResourceGroupSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListBySubscriptionSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListPrivateIPAddressesSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersRemoveVmsSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesActionSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesListByCloudVMClusterSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersListByCloudExadataInfrastructureSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesListByLocationSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsListByLocationSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesListByLocationSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsListByLocationSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/operationsListSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsCreateOrUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsDeleteSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListActivationLinksSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListBySubscriptionSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListCloudAccountDetailsSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListSaasSubscriptionDetailsSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/package.json delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/sample.env delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsListByLocationSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesCreateOrUpdateSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesDeleteSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesGetSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesListByCloudVMClusterSample.js delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/README.md delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/package.json delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/sample.env delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesFailoverSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGenerateWalletSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListByResourceGroupSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListBySubscriptionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesRestoreSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesShrinkSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesSwitchoverSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresAddStorageCapacitySample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListByResourceGroupSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListBySubscriptionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersAddVmsSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListByResourceGroupSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListBySubscriptionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListPrivateIPAddressesSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersRemoveVmsSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesActionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesListByCloudVMClusterSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersListByCloudExadataInfrastructureSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/operationsListSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListActivationLinksSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListBySubscriptionSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListCloudAccountDetailsSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsListByLocationSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesCreateOrUpdateSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesDeleteSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesGetSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesListByCloudVMClusterSample.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/tsconfig.json delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/index.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/lroImpl.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/models/index.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/models/mappers.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/models/parameters.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseBackups.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseCharacterSets.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseNationalCharacterSets.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseVersions.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabases.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/cloudExadataInfrastructures.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/cloudVmClusters.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/dbNodes.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/dbServers.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/dbSystemShapes.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/dnsPrivateViews.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/dnsPrivateZones.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/giVersions.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/index.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/operations.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/oracleSubscriptions.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/systemVersions.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operations/virtualNetworkAddresses.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseBackups.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseCharacterSets.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseNationalCharacterSets.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseVersions.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabases.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/cloudExadataInfrastructures.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/cloudVmClusters.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbNodes.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbServers.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbSystemShapes.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dnsPrivateViews.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dnsPrivateZones.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/giVersions.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/index.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/operations.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/oracleSubscriptions.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/systemVersions.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/virtualNetworkAddresses.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/oracleDatabaseManagementClient.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/src/pagingHelper.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/test/oracledatabase_operations_test.spec.ts delete mode 100644 sdk/oracledatabase/arm-oracledatabase/tsconfig.json create mode 100644 sdk/oracledatabase/arm-oracledatabase/tsp-location.yaml diff --git a/sdk/oracledatabase/arm-oracledatabase/CHANGELOG.md b/sdk/oracledatabase/arm-oracledatabase/CHANGELOG.md deleted file mode 100644 index 8641360377cd..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/CHANGELOG.md +++ /dev/null @@ -1,17 +0,0 @@ -# Release History - -## 1.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 1.0.0 (2024-06-25) - -### Features Added - -The package of @azure/arm-oracledatabase is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/oracledatabase/arm-oracledatabase/LICENSE b/sdk/oracledatabase/arm-oracledatabase/LICENSE deleted file mode 100644 index 7d5934740965..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2024 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/sdk/oracledatabase/arm-oracledatabase/README.md b/sdk/oracledatabase/arm-oracledatabase/README.md deleted file mode 100644 index 6d127b3c18f8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/README.md +++ /dev/null @@ -1,109 +0,0 @@ -# Azure OracleDatabaseManagement client library for JavaScript - -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure OracleDatabaseManagement client. - - - -[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/oracledatabase/arm-oracledatabase) | -[Package (NPM)](https://www.npmjs.com/package/@azure/arm-oracledatabase) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-oracledatabase) | -[Samples](https://github.com/Azure-Samples/azure-samples-js-management) - -## Getting started - -### Currently supported environments - -- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) -- Latest versions of Safari, Chrome, Edge and Firefox. - -See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. - -### Prerequisites - -- An [Azure subscription][azure_sub]. - -### Install the `@azure/arm-oracledatabase` package - -Install the Azure OracleDatabaseManagement client library for JavaScript with `npm`: - -```bash -npm install @azure/arm-oracledatabase -``` - -### Create and authenticate a `OracleDatabaseManagementClient` - -To create a client object to access the Azure OracleDatabaseManagement API, you will need the `endpoint` of your Azure OracleDatabaseManagement resource and a `credential`. The Azure OracleDatabaseManagement client can use Azure Active Directory credentials to authenticate. -You can find the endpoint for your Azure OracleDatabaseManagement resource in the [Azure Portal][azure_portal]. - -You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token). - -To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package: - -```bash -npm install @azure/identity -``` - -You will also need to **register a new AAD application and grant access to Azure OracleDatabaseManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. - -For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). - -```javascript -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details. - -const subscriptionId = "00000000-0000-0000-0000-000000000000"; -const client = new OracleDatabaseManagementClient(new DefaultAzureCredential(), subscriptionId); - -// For client-side applications running in the browser, use this code instead: -// const credential = new InteractiveBrowserCredential({ -// tenantId: "", -// clientId: "" -// }); -// const client = new OracleDatabaseManagementClient(credential, subscriptionId); -``` - - -### JavaScript Bundle -To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). - -## Key concepts - -### OracleDatabaseManagementClient - -`OracleDatabaseManagementClient` is the primary interface for developers using the Azure OracleDatabaseManagement client library. Explore the methods on this client object to understand the different features of the Azure OracleDatabaseManagement service that you can access. - -## Troubleshooting - -### Logging - -Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`: - -```javascript -const { setLogLevel } = require("@azure/logger"); -setLogLevel("info"); -``` - -For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger). - -## Next steps - -Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library. - -## Contributing - -If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. - -## Related projects - -- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Foracledatabase%2Farm-oracledatabase%2FREADME.png) - -[azure_cli]: https://docs.microsoft.com/cli/azure -[azure_sub]: https://azure.microsoft.com/free/ -[azure_sub]: https://azure.microsoft.com/free/ -[azure_portal]: https://portal.azure.com -[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity -[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential diff --git a/sdk/oracledatabase/arm-oracledatabase/_meta.json b/sdk/oracledatabase/arm-oracledatabase/_meta.json deleted file mode 100644 index c8592aab8e2e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/_meta.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "commit": "3aef2f96202eec656fca4abc4df0fbfe10b89ac0", - "readme": "specification/oracle/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\oracle\\resource-manager\\readme.md --use=@autorest/typescript@6.0.23 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.11", - "use": "@autorest/typescript@6.0.23" -} \ No newline at end of file diff --git a/sdk/oracledatabase/arm-oracledatabase/api-extractor.json b/sdk/oracledatabase/arm-oracledatabase/api-extractor.json deleted file mode 100644 index c13055204a6d..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/api-extractor.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { - "enabled": true - }, - "apiReport": { - "enabled": true, - "reportFolder": "./review" - }, - "dtsRollup": { - "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/arm-oracledatabase.d.ts" - }, - "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, - "extractorMessageReporting": { - "ae-missing-release-tag": { - "logLevel": "none" - }, - "ae-unresolved-link": { - "logLevel": "none" - } - } - } -} \ No newline at end of file diff --git a/sdk/oracledatabase/arm-oracledatabase/assets.json b/sdk/oracledatabase/arm-oracledatabase/assets.json deleted file mode 100644 index 7fbb24cf3878..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/oracledatabase/arm-oracledatabase", - "Tag": "js/oracledatabase/arm-oracledatabase_9c72623c8b" -} diff --git a/sdk/oracledatabase/arm-oracledatabase/package.json b/sdk/oracledatabase/arm-oracledatabase/package.json deleted file mode 100644 index 0ead9c87defc..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/package.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "name": "@azure/arm-oracledatabase", - "sdk-type": "mgmt", - "author": "Microsoft Corporation", - "description": "A generated SDK for OracleDatabaseManagementClient.", - "version": "1.0.1", - "engines": { - "node": ">=18.0.0" - }, - "dependencies": { - "@azure/core-lro": "^2.5.4", - "@azure/abort-controller": "^1.0.0", - "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.6.0", - "@azure/core-rest-pipeline": "^1.14.0", - "tslib": "^2.2.0" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "license": "MIT", - "main": "./dist/index.js", - "module": "./dist-esm/src/index.js", - "types": "./types/arm-oracledatabase.d.ts", - "devDependencies": { - "@microsoft/api-extractor": "^7.31.1", - "mkdirp": "^3.0.1", - "typescript": "~5.5.3", - "uglify-js": "^3.4.9", - "rimraf": "^5.0.0", - "dotenv": "^16.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", - "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.1.0", - "mocha": "^10.0.0", - "@types/mocha": "^10.0.0", - "tsx": "^4.7.1", - "@types/chai": "^4.2.8", - "chai": "^4.2.0", - "cross-env": "^7.0.2", - "@types/node": "^18.0.0", - "ts-node": "^10.0.0" - }, - "repository": { - "type": "git", - "url": "https://github.com/Azure/azure-sdk-for-js.git" - }, - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "files": [ - "dist/**/*.js", - "dist/**/*.js.map", - "dist/**/*.d.ts", - "dist/**/*.d.ts.map", - "dist-esm/**/*.js", - "dist-esm/**/*.js.map", - "dist-esm/**/*.d.ts", - "dist-esm/**/*.d.ts.map", - "src/**/*.ts", - "README.md", - "LICENSE", - "tsconfig.json", - "review/*", - "CHANGELOG.md", - "types/*" - ], - "scripts": { - "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "prepack": "npm run build", - "pack": "npm pack 2>&1", - "extract-api": "dev-tool run extract-api", - "lint": "echo skipped", - "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", - "build:node": "echo skipped", - "build:browser": "echo skipped", - "build:test": "echo skipped", - "build:samples": "echo skipped.", - "check-format": "echo skipped", - "execute:samples": "echo skipped", - "format": "echo skipped", - "test": "npm run integration-test", - "test:node": "echo skipped", - "test:browser": "echo skipped", - "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", - "unit-test:browser": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "integration-test:browser": "echo skipped" - }, - "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/oracleDatabaseManagementClient.ts", - "prefix": "packageDetails" - } - ] - }, - "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/oracledatabase/arm-oracledatabase", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-oracledatabase?view=azure-node-preview" - } -} diff --git a/sdk/oracledatabase/arm-oracledatabase/review/arm-oracledatabase.api.md b/sdk/oracledatabase/arm-oracledatabase/review/arm-oracledatabase.api.md deleted file mode 100644 index 52e722889a94..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/review/arm-oracledatabase.api.md +++ /dev/null @@ -1,2639 +0,0 @@ -## API Report File for "@azure/arm-oracledatabase" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -import * as coreAuth from '@azure/core-auth'; -import * as coreClient from '@azure/core-client'; -import { OperationState } from '@azure/core-lro'; -import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { SimplePollerLike } from '@azure/core-lro'; - -// @public -export type ActionType = string; - -// @public -export interface ActivationLinks { - readonly existingCloudAccountActivationLink?: string; - readonly newCloudAccountActivationLink?: string; -} - -// @public -export interface AddRemoveDbNode { - dbServers: string[]; -} - -// @public -export interface AllConnectionStringType { - high?: string; - low?: string; - medium?: string; -} - -// @public -export interface ApexDetailsType { - apexVersion?: string; - ordsVersion?: string; -} - -// @public -export interface AutonomousDatabase extends TrackedResource { - properties?: AutonomousDatabaseBasePropertiesUnion; -} - -// @public -export interface AutonomousDatabaseBackup extends ProxyResource { - properties?: AutonomousDatabaseBackupProperties; -} - -// @public -export type AutonomousDatabaseBackupLifecycleState = string; - -// @public -export interface AutonomousDatabaseBackupListResult { - nextLink?: string; - value: AutonomousDatabaseBackup[]; -} - -// @public -export interface AutonomousDatabaseBackupProperties { - readonly autonomousDatabaseOcid?: string; - readonly backupType?: AutonomousDatabaseBackupType; - readonly databaseSizeInTbs?: number; - readonly dbVersion?: string; - displayName?: string; - readonly isAutomatic?: boolean; - readonly isRestorable?: boolean; - readonly lifecycleDetails?: string; - readonly lifecycleState?: AutonomousDatabaseBackupLifecycleState; - readonly ocid?: string; - readonly provisioningState?: AzureResourceProvisioningState; - retentionPeriodInDays?: number; - readonly sizeInTbs?: number; - readonly timeAvailableTil?: Date; - readonly timeEnded?: string; - readonly timeStarted?: string; -} - -// @public -export interface AutonomousDatabaseBackups { - beginCreateOrUpdate(resourceGroupName: string, autonomousdatabasename: string, adbbackupid: string, resource: AutonomousDatabaseBackup, options?: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams): Promise, AutonomousDatabaseBackupsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, autonomousdatabasename: string, adbbackupid: string, resource: AutonomousDatabaseBackup, options?: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, autonomousdatabasename: string, adbbackupid: string, options?: AutonomousDatabaseBackupsDeleteOptionalParams): Promise, AutonomousDatabaseBackupsDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, autonomousdatabasename: string, adbbackupid: string, options?: AutonomousDatabaseBackupsDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, autonomousdatabasename: string, adbbackupid: string, properties: AutonomousDatabaseBackupUpdate, options?: AutonomousDatabaseBackupsUpdateOptionalParams): Promise, AutonomousDatabaseBackupsUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, autonomousdatabasename: string, adbbackupid: string, properties: AutonomousDatabaseBackupUpdate, options?: AutonomousDatabaseBackupsUpdateOptionalParams): Promise; - get(resourceGroupName: string, autonomousdatabasename: string, adbbackupid: string, options?: AutonomousDatabaseBackupsGetOptionalParams): Promise; - listByAutonomousDatabase(resourceGroupName: string, autonomousdatabasename: string, options?: AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AutonomousDatabaseBackupsCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface AutonomousDatabaseBackupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabaseBackupsCreateOrUpdateResponse = AutonomousDatabaseBackup; - -// @public -export interface AutonomousDatabaseBackupsDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface AutonomousDatabaseBackupsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabaseBackupsDeleteResponse = AutonomousDatabaseBackupsDeleteHeaders; - -// @public -export interface AutonomousDatabaseBackupsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseBackupsGetResponse = AutonomousDatabaseBackup; - -// @public -export interface AutonomousDatabaseBackupsListByAutonomousDatabaseNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseBackupsListByAutonomousDatabaseNextResponse = AutonomousDatabaseBackupListResult; - -// @public -export interface AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseBackupsListByAutonomousDatabaseResponse = AutonomousDatabaseBackupListResult; - -// @public -export interface AutonomousDatabaseBackupsUpdateHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface AutonomousDatabaseBackupsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabaseBackupsUpdateResponse = AutonomousDatabaseBackup; - -// @public -export type AutonomousDatabaseBackupType = string; - -// @public -export interface AutonomousDatabaseBackupUpdate { - properties?: AutonomousDatabaseBackupUpdateProperties; -} - -// @public -export interface AutonomousDatabaseBackupUpdateProperties { - retentionPeriodInDays?: number; -} - -// @public -export interface AutonomousDatabaseBaseProperties { - readonly actualUsedDataStorageSizeInTbs?: number; - adminPassword?: string; - readonly allocatedStorageSizeInTbs?: number; - readonly apexDetails?: ApexDetailsType; - autonomousDatabaseId?: string; - autonomousMaintenanceScheduleType?: AutonomousMaintenanceScheduleType; - readonly availableUpgradeVersions?: string[]; - backupRetentionPeriodInDays?: number; - characterSet?: string; - computeCount?: number; - computeModel?: ComputeModel; - readonly connectionStrings?: ConnectionStringType; - readonly connectionUrls?: ConnectionUrlType; - cpuCoreCount?: number; - customerContacts?: CustomerContact[]; - databaseEdition?: DatabaseEditionType; - dataBaseType: "Clone" | "Regular"; - readonly dataSafeStatus?: DataSafeStatusType; - dataStorageSizeInGbs?: number; - dataStorageSizeInTbs?: number; - dbVersion?: string; - dbWorkload?: WorkloadType; - displayName?: string; - readonly failedDataRecoveryInSeconds?: number; - readonly inMemoryAreaInGbs?: number; - isAutoScalingEnabled?: boolean; - isAutoScalingForStorageEnabled?: boolean; - isLocalDataGuardEnabled?: boolean; - isMtlsConnectionRequired?: boolean; - readonly isPreview?: boolean; - isPreviewVersionWithServiceTermsAccepted?: boolean; - readonly isRemoteDataGuardEnabled?: boolean; - licenseModel?: LicenseModel; - readonly lifecycleDetails?: string; - readonly lifecycleState?: AutonomousDatabaseLifecycleState; - localAdgAutoFailoverMaxDataLossLimit?: number; - readonly localDisasterRecoveryType?: DisasterRecoveryType; - readonly localStandbyDb?: AutonomousDatabaseStandbySummary; - longTermBackupSchedule?: LongTermBackUpScheduleDetails; - readonly memoryPerOracleComputeUnitInGbs?: number; - ncharacterSet?: string; - readonly nextLongTermBackupTimeStamp?: Date; - readonly ocid?: string; - readonly ociUrl?: string; - openMode?: OpenModeType; - readonly operationsInsightsStatus?: OperationsInsightsStatusType; - peerDbId?: string; - readonly peerDbIds?: string[]; - permissionLevel?: PermissionLevelType; - readonly privateEndpoint?: string; - privateEndpointIp?: string; - privateEndpointLabel?: string; - readonly provisionableCpus?: number[]; - readonly provisioningState?: AzureResourceProvisioningState; - role?: RoleType; - scheduledOperations?: ScheduledOperationsType; - readonly serviceConsoleUrl?: string; - readonly sqlWebDeveloperUrl?: string; - subnetId?: string; - readonly supportedRegionsToCloneTo?: string[]; - readonly timeCreated?: Date; - readonly timeDataGuardRoleChanged?: string; - readonly timeDeletionOfFreeAutonomousDatabase?: string; - readonly timeLocalDataGuardEnabled?: string; - readonly timeMaintenanceBegin?: Date; - readonly timeMaintenanceEnd?: Date; - readonly timeOfLastFailover?: string; - readonly timeOfLastRefresh?: string; - readonly timeOfLastRefreshPoint?: string; - readonly timeOfLastSwitchover?: string; - readonly timeReclamationOfFreeAutonomousDatabase?: string; - readonly usedDataStorageSizeInGbs?: number; - readonly usedDataStorageSizeInTbs?: number; - vnetId?: string; - whitelistedIps?: string[]; -} - -// @public (undocumented) -export type AutonomousDatabaseBasePropertiesUnion = AutonomousDatabaseBaseProperties | AutonomousDatabaseCloneProperties | AutonomousDatabaseProperties; - -// @public -export interface AutonomousDatabaseCharacterSet extends ProxyResource { - properties?: AutonomousDatabaseCharacterSetProperties; -} - -// @public -export interface AutonomousDatabaseCharacterSetListResult { - nextLink?: string; - value: AutonomousDatabaseCharacterSet[]; -} - -// @public -export interface AutonomousDatabaseCharacterSetProperties { - readonly characterSet: string; -} - -// @public -export interface AutonomousDatabaseCharacterSets { - get(location: string, adbscharsetname: string, options?: AutonomousDatabaseCharacterSetsGetOptionalParams): Promise; - listByLocation(location: string, options?: AutonomousDatabaseCharacterSetsListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AutonomousDatabaseCharacterSetsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseCharacterSetsGetResponse = AutonomousDatabaseCharacterSet; - -// @public -export interface AutonomousDatabaseCharacterSetsListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseCharacterSetsListByLocationNextResponse = AutonomousDatabaseCharacterSetListResult; - -// @public -export interface AutonomousDatabaseCharacterSetsListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseCharacterSetsListByLocationResponse = AutonomousDatabaseCharacterSetListResult; - -// @public -export interface AutonomousDatabaseCloneProperties extends AutonomousDatabaseBaseProperties { - cloneType: CloneType; - dataBaseType: "Clone"; - readonly isReconnectCloneEnabled?: boolean; - readonly isRefreshableClone?: boolean; - refreshableModel?: RefreshableModelType; - readonly refreshableStatus?: RefreshableStatusType; - source?: SourceType; - sourceId: string; - timeUntilReconnectCloneEnabled?: string; -} - -// @public -export type AutonomousDatabaseLifecycleState = string; - -// @public -export interface AutonomousDatabaseListResult { - nextLink?: string; - value: AutonomousDatabase[]; -} - -// @public -export interface AutonomousDatabaseNationalCharacterSet extends ProxyResource { - properties?: AutonomousDatabaseNationalCharacterSetProperties; -} - -// @public -export interface AutonomousDatabaseNationalCharacterSetListResult { - nextLink?: string; - value: AutonomousDatabaseNationalCharacterSet[]; -} - -// @public -export interface AutonomousDatabaseNationalCharacterSetProperties { - readonly characterSet: string; -} - -// @public -export interface AutonomousDatabaseNationalCharacterSets { - get(location: string, adbsncharsetname: string, options?: AutonomousDatabaseNationalCharacterSetsGetOptionalParams): Promise; - listByLocation(location: string, options?: AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AutonomousDatabaseNationalCharacterSetsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseNationalCharacterSetsGetResponse = AutonomousDatabaseNationalCharacterSet; - -// @public -export interface AutonomousDatabaseNationalCharacterSetsListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseNationalCharacterSetsListByLocationNextResponse = AutonomousDatabaseNationalCharacterSetListResult; - -// @public -export interface AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseNationalCharacterSetsListByLocationResponse = AutonomousDatabaseNationalCharacterSetListResult; - -// @public -export interface AutonomousDatabaseProperties extends AutonomousDatabaseBaseProperties { - dataBaseType: "Regular"; -} - -// @public -export interface AutonomousDatabases { - beginCreateOrUpdate(resourceGroupName: string, autonomousdatabasename: string, resource: AutonomousDatabase, options?: AutonomousDatabasesCreateOrUpdateOptionalParams): Promise, AutonomousDatabasesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, autonomousdatabasename: string, resource: AutonomousDatabase, options?: AutonomousDatabasesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, autonomousdatabasename: string, options?: AutonomousDatabasesDeleteOptionalParams): Promise, AutonomousDatabasesDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, autonomousdatabasename: string, options?: AutonomousDatabasesDeleteOptionalParams): Promise; - beginFailover(resourceGroupName: string, autonomousdatabasename: string, body: PeerDbDetails, options?: AutonomousDatabasesFailoverOptionalParams): Promise, AutonomousDatabasesFailoverResponse>>; - beginFailoverAndWait(resourceGroupName: string, autonomousdatabasename: string, body: PeerDbDetails, options?: AutonomousDatabasesFailoverOptionalParams): Promise; - beginRestore(resourceGroupName: string, autonomousdatabasename: string, body: RestoreAutonomousDatabaseDetails, options?: AutonomousDatabasesRestoreOptionalParams): Promise, AutonomousDatabasesRestoreResponse>>; - beginRestoreAndWait(resourceGroupName: string, autonomousdatabasename: string, body: RestoreAutonomousDatabaseDetails, options?: AutonomousDatabasesRestoreOptionalParams): Promise; - beginShrink(resourceGroupName: string, autonomousdatabasename: string, options?: AutonomousDatabasesShrinkOptionalParams): Promise, AutonomousDatabasesShrinkResponse>>; - beginShrinkAndWait(resourceGroupName: string, autonomousdatabasename: string, options?: AutonomousDatabasesShrinkOptionalParams): Promise; - beginSwitchover(resourceGroupName: string, autonomousdatabasename: string, body: PeerDbDetails, options?: AutonomousDatabasesSwitchoverOptionalParams): Promise, AutonomousDatabasesSwitchoverResponse>>; - beginSwitchoverAndWait(resourceGroupName: string, autonomousdatabasename: string, body: PeerDbDetails, options?: AutonomousDatabasesSwitchoverOptionalParams): Promise; - beginUpdate(resourceGroupName: string, autonomousdatabasename: string, properties: AutonomousDatabaseUpdate, options?: AutonomousDatabasesUpdateOptionalParams): Promise, AutonomousDatabasesUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, autonomousdatabasename: string, properties: AutonomousDatabaseUpdate, options?: AutonomousDatabasesUpdateOptionalParams): Promise; - generateWallet(resourceGroupName: string, autonomousdatabasename: string, body: GenerateAutonomousDatabaseWalletDetails, options?: AutonomousDatabasesGenerateWalletOptionalParams): Promise; - get(resourceGroupName: string, autonomousdatabasename: string, options?: AutonomousDatabasesGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: AutonomousDatabasesListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: AutonomousDatabasesListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AutonomousDatabasesCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface AutonomousDatabasesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabasesCreateOrUpdateResponse = AutonomousDatabase; - -// @public -export interface AutonomousDatabasesDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface AutonomousDatabasesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabasesDeleteResponse = AutonomousDatabasesDeleteHeaders; - -// @public -export interface AutonomousDatabasesFailoverHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface AutonomousDatabasesFailoverOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabasesFailoverResponse = AutonomousDatabase; - -// @public -export interface AutonomousDatabasesGenerateWalletOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabasesGenerateWalletResponse = AutonomousDatabaseWalletFile; - -// @public -export interface AutonomousDatabasesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabasesGetResponse = AutonomousDatabase; - -// @public -export interface AutonomousDatabasesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabasesListByResourceGroupNextResponse = AutonomousDatabaseListResult; - -// @public -export interface AutonomousDatabasesListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabasesListByResourceGroupResponse = AutonomousDatabaseListResult; - -// @public -export interface AutonomousDatabasesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabasesListBySubscriptionNextResponse = AutonomousDatabaseListResult; - -// @public -export interface AutonomousDatabasesListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabasesListBySubscriptionResponse = AutonomousDatabaseListResult; - -// @public -export interface AutonomousDatabasesRestoreHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface AutonomousDatabasesRestoreOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabasesRestoreResponse = AutonomousDatabase; - -// @public -export interface AutonomousDatabasesShrinkHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface AutonomousDatabasesShrinkOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabasesShrinkResponse = AutonomousDatabase; - -// @public -export interface AutonomousDatabasesSwitchoverHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface AutonomousDatabasesSwitchoverOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabasesSwitchoverResponse = AutonomousDatabase; - -// @public -export interface AutonomousDatabaseStandbySummary { - lagTimeInSeconds?: number; - lifecycleDetails?: string; - lifecycleState?: AutonomousDatabaseLifecycleState; - timeDataGuardRoleChanged?: string; - timeDisasterRecoveryRoleChanged?: string; -} - -// @public -export interface AutonomousDatabasesUpdateHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface AutonomousDatabasesUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type AutonomousDatabasesUpdateResponse = AutonomousDatabase; - -// @public -export interface AutonomousDatabaseUpdate { - properties?: AutonomousDatabaseUpdateProperties; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface AutonomousDatabaseUpdateProperties { - adminPassword?: string; - autonomousMaintenanceScheduleType?: AutonomousMaintenanceScheduleType; - backupRetentionPeriodInDays?: number; - computeCount?: number; - cpuCoreCount?: number; - customerContacts?: CustomerContact[]; - databaseEdition?: DatabaseEditionType; - dataStorageSizeInGbs?: number; - dataStorageSizeInTbs?: number; - displayName?: string; - isAutoScalingEnabled?: boolean; - isAutoScalingForStorageEnabled?: boolean; - isLocalDataGuardEnabled?: boolean; - isMtlsConnectionRequired?: boolean; - licenseModel?: LicenseModel; - localAdgAutoFailoverMaxDataLossLimit?: number; - longTermBackupSchedule?: LongTermBackUpScheduleDetails; - openMode?: OpenModeType; - peerDbId?: string; - permissionLevel?: PermissionLevelType; - role?: RoleType; - scheduledOperations?: ScheduledOperationsTypeUpdate; - whitelistedIps?: string[]; -} - -// @public -export interface AutonomousDatabaseVersions { - get(location: string, autonomousdbversionsname: string, options?: AutonomousDatabaseVersionsGetOptionalParams): Promise; - listByLocation(location: string, options?: AutonomousDatabaseVersionsListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AutonomousDatabaseVersionsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseVersionsGetResponse = AutonomousDbVersion; - -// @public -export interface AutonomousDatabaseVersionsListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseVersionsListByLocationNextResponse = AutonomousDbVersionListResult; - -// @public -export interface AutonomousDatabaseVersionsListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AutonomousDatabaseVersionsListByLocationResponse = AutonomousDbVersionListResult; - -// @public -export interface AutonomousDatabaseWalletFile { - walletFiles: string; -} - -// @public -export interface AutonomousDbVersion extends ProxyResource { - properties?: AutonomousDbVersionProperties; -} - -// @public -export interface AutonomousDbVersionListResult { - nextLink?: string; - value: AutonomousDbVersion[]; -} - -// @public -export interface AutonomousDbVersionProperties { - readonly dbWorkload?: WorkloadType; - readonly isDefaultForFree?: boolean; - readonly isDefaultForPaid?: boolean; - readonly isFreeTierEnabled?: boolean; - readonly isPaidEnabled?: boolean; - readonly version: string; -} - -// @public -export type AutonomousMaintenanceScheduleType = string; - -// @public -export type AzureResourceProvisioningState = string; - -// @public -export type CloneType = string; - -// @public -export interface CloudAccountDetails { - readonly cloudAccountHomeRegion?: string; - readonly cloudAccountName?: string; -} - -// @public -export type CloudAccountProvisioningState = string; - -// @public -export interface CloudExadataInfrastructure extends TrackedResource { - properties?: CloudExadataInfrastructureProperties; - zones: string[]; -} - -// @public -export type CloudExadataInfrastructureLifecycleState = string; - -// @public -export interface CloudExadataInfrastructureListResult { - nextLink?: string; - value: CloudExadataInfrastructure[]; -} - -// @public -export interface CloudExadataInfrastructureProperties { - readonly activatedStorageCount?: number; - readonly additionalStorageCount?: number; - readonly availableStorageSizeInGbs?: number; - computeCount?: number; - readonly cpuCount?: number; - customerContacts?: CustomerContact[]; - readonly dataStorageSizeInTbs?: number; - readonly dbNodeStorageSizeInGbs?: number; - readonly dbServerVersion?: string; - displayName: string; - readonly estimatedPatchingTime?: EstimatedPatchingTime; - readonly lastMaintenanceRunId?: string; - readonly lifecycleDetails?: string; - readonly lifecycleState?: CloudExadataInfrastructureLifecycleState; - maintenanceWindow?: MaintenanceWindow; - readonly maxCpuCount?: number; - readonly maxDataStorageInTbs?: number; - readonly maxDbNodeStorageSizeInGbs?: number; - readonly maxMemoryInGbs?: number; - readonly memorySizeInGbs?: number; - readonly monthlyDbServerVersion?: string; - readonly monthlyStorageServerVersion?: string; - readonly nextMaintenanceRunId?: string; - readonly ocid?: string; - readonly ociUrl?: string; - readonly provisioningState?: AzureResourceProvisioningState; - shape: string; - storageCount?: number; - readonly storageServerVersion?: string; - readonly timeCreated?: string; - readonly totalStorageSizeInGbs?: number; -} - -// @public -export interface CloudExadataInfrastructures { - beginAddStorageCapacity(resourceGroupName: string, cloudexadatainfrastructurename: string, options?: CloudExadataInfrastructuresAddStorageCapacityOptionalParams): Promise, CloudExadataInfrastructuresAddStorageCapacityResponse>>; - beginAddStorageCapacityAndWait(resourceGroupName: string, cloudexadatainfrastructurename: string, options?: CloudExadataInfrastructuresAddStorageCapacityOptionalParams): Promise; - beginCreateOrUpdate(resourceGroupName: string, cloudexadatainfrastructurename: string, resource: CloudExadataInfrastructure, options?: CloudExadataInfrastructuresCreateOrUpdateOptionalParams): Promise, CloudExadataInfrastructuresCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, cloudexadatainfrastructurename: string, resource: CloudExadataInfrastructure, options?: CloudExadataInfrastructuresCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, cloudexadatainfrastructurename: string, options?: CloudExadataInfrastructuresDeleteOptionalParams): Promise, CloudExadataInfrastructuresDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, cloudexadatainfrastructurename: string, options?: CloudExadataInfrastructuresDeleteOptionalParams): Promise; - beginUpdate(resourceGroupName: string, cloudexadatainfrastructurename: string, properties: CloudExadataInfrastructureUpdate, options?: CloudExadataInfrastructuresUpdateOptionalParams): Promise, CloudExadataInfrastructuresUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, cloudexadatainfrastructurename: string, properties: CloudExadataInfrastructureUpdate, options?: CloudExadataInfrastructuresUpdateOptionalParams): Promise; - get(resourceGroupName: string, cloudexadatainfrastructurename: string, options?: CloudExadataInfrastructuresGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: CloudExadataInfrastructuresListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: CloudExadataInfrastructuresListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface CloudExadataInfrastructuresAddStorageCapacityHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface CloudExadataInfrastructuresAddStorageCapacityOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudExadataInfrastructuresAddStorageCapacityResponse = CloudExadataInfrastructure; - -// @public -export interface CloudExadataInfrastructuresCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface CloudExadataInfrastructuresCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudExadataInfrastructuresCreateOrUpdateResponse = CloudExadataInfrastructure; - -// @public -export interface CloudExadataInfrastructuresDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface CloudExadataInfrastructuresDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudExadataInfrastructuresDeleteResponse = CloudExadataInfrastructuresDeleteHeaders; - -// @public -export interface CloudExadataInfrastructuresGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudExadataInfrastructuresGetResponse = CloudExadataInfrastructure; - -// @public -export interface CloudExadataInfrastructuresListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudExadataInfrastructuresListByResourceGroupNextResponse = CloudExadataInfrastructureListResult; - -// @public -export interface CloudExadataInfrastructuresListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudExadataInfrastructuresListByResourceGroupResponse = CloudExadataInfrastructureListResult; - -// @public -export interface CloudExadataInfrastructuresListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudExadataInfrastructuresListBySubscriptionNextResponse = CloudExadataInfrastructureListResult; - -// @public -export interface CloudExadataInfrastructuresListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudExadataInfrastructuresListBySubscriptionResponse = CloudExadataInfrastructureListResult; - -// @public -export interface CloudExadataInfrastructuresUpdateHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface CloudExadataInfrastructuresUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudExadataInfrastructuresUpdateResponse = CloudExadataInfrastructure; - -// @public -export interface CloudExadataInfrastructureUpdate { - properties?: CloudExadataInfrastructureUpdateProperties; - tags?: { - [propertyName: string]: string; - }; - zones?: string[]; -} - -// @public -export interface CloudExadataInfrastructureUpdateProperties { - computeCount?: number; - customerContacts?: CustomerContact[]; - displayName?: string; - maintenanceWindow?: MaintenanceWindow; - storageCount?: number; -} - -// @public -export interface CloudVmCluster extends TrackedResource { - properties?: CloudVmClusterProperties; -} - -// @public -export type CloudVmClusterLifecycleState = string; - -// @public -export interface CloudVmClusterListResult { - nextLink?: string; - value: CloudVmCluster[]; -} - -// @public -export interface CloudVmClusterProperties { - backupSubnetCidr?: string; - cloudExadataInfrastructureId: string; - clusterName?: string; - readonly compartmentId?: string; - computeNodes?: string[]; - cpuCoreCount: number; - dataCollectionOptions?: DataCollectionOptions; - dataStoragePercentage?: number; - dataStorageSizeInTbs?: number; - dbNodeStorageSizeInGbs?: number; - dbServers?: string[]; - readonly diskRedundancy?: DiskRedundancy; - displayName: string; - domain?: string; - giVersion: string; - hostname: string; - readonly iormConfigCache?: ExadataIormConfig; - isLocalBackupEnabled?: boolean; - isSparseDiskgroupEnabled?: boolean; - readonly lastUpdateHistoryEntryId?: string; - licenseModel?: LicenseModel; - readonly lifecycleDetails?: string; - readonly lifecycleState?: CloudVmClusterLifecycleState; - readonly listenerPort?: number; - memorySizeInGbs?: number; - readonly nodeCount?: number; - nsgCidrs?: NsgCidr[]; - readonly nsgUrl?: string; - readonly ocid?: string; - readonly ociUrl?: string; - ocpuCount?: number; - readonly provisioningState?: AzureResourceProvisioningState; - readonly scanDnsName?: string; - readonly scanDnsRecordId?: string; - readonly scanIpIds?: string[]; - scanListenerPortTcp?: number; - scanListenerPortTcpSsl?: number; - readonly shape?: string; - sshPublicKeys: string[]; - storageSizeInGbs?: number; - subnetId: string; - readonly subnetOcid?: string; - systemVersion?: string; - readonly timeCreated?: Date; - timeZone?: string; - readonly vipIds?: string[]; - vnetId: string; - zoneId?: string; -} - -// @public -export interface CloudVmClusters { - beginAddVms(resourceGroupName: string, cloudvmclustername: string, body: AddRemoveDbNode, options?: CloudVmClustersAddVmsOptionalParams): Promise, CloudVmClustersAddVmsResponse>>; - beginAddVmsAndWait(resourceGroupName: string, cloudvmclustername: string, body: AddRemoveDbNode, options?: CloudVmClustersAddVmsOptionalParams): Promise; - beginCreateOrUpdate(resourceGroupName: string, cloudvmclustername: string, resource: CloudVmCluster, options?: CloudVmClustersCreateOrUpdateOptionalParams): Promise, CloudVmClustersCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, cloudvmclustername: string, resource: CloudVmCluster, options?: CloudVmClustersCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, cloudvmclustername: string, options?: CloudVmClustersDeleteOptionalParams): Promise, CloudVmClustersDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, cloudvmclustername: string, options?: CloudVmClustersDeleteOptionalParams): Promise; - beginRemoveVms(resourceGroupName: string, cloudvmclustername: string, body: AddRemoveDbNode, options?: CloudVmClustersRemoveVmsOptionalParams): Promise, CloudVmClustersRemoveVmsResponse>>; - beginRemoveVmsAndWait(resourceGroupName: string, cloudvmclustername: string, body: AddRemoveDbNode, options?: CloudVmClustersRemoveVmsOptionalParams): Promise; - beginUpdate(resourceGroupName: string, cloudvmclustername: string, properties: CloudVmClusterUpdate, options?: CloudVmClustersUpdateOptionalParams): Promise, CloudVmClustersUpdateResponse>>; - beginUpdateAndWait(resourceGroupName: string, cloudvmclustername: string, properties: CloudVmClusterUpdate, options?: CloudVmClustersUpdateOptionalParams): Promise; - get(resourceGroupName: string, cloudvmclustername: string, options?: CloudVmClustersGetOptionalParams): Promise; - listByResourceGroup(resourceGroupName: string, options?: CloudVmClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator; - listBySubscription(options?: CloudVmClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator; - listPrivateIpAddresses(resourceGroupName: string, cloudvmclustername: string, body: PrivateIpAddressesFilter, options?: CloudVmClustersListPrivateIpAddressesOptionalParams): Promise; -} - -// @public -export interface CloudVmClustersAddVmsHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface CloudVmClustersAddVmsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudVmClustersAddVmsResponse = CloudVmCluster; - -// @public -export interface CloudVmClustersCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface CloudVmClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudVmClustersCreateOrUpdateResponse = CloudVmCluster; - -// @public -export interface CloudVmClustersDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface CloudVmClustersDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudVmClustersDeleteResponse = CloudVmClustersDeleteHeaders; - -// @public -export interface CloudVmClustersGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudVmClustersGetResponse = CloudVmCluster; - -// @public -export interface CloudVmClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudVmClustersListByResourceGroupNextResponse = CloudVmClusterListResult; - -// @public -export interface CloudVmClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudVmClustersListByResourceGroupResponse = CloudVmClusterListResult; - -// @public -export interface CloudVmClustersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudVmClustersListBySubscriptionNextResponse = CloudVmClusterListResult; - -// @public -export interface CloudVmClustersListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudVmClustersListBySubscriptionResponse = CloudVmClusterListResult; - -// @public -export interface CloudVmClustersListPrivateIpAddressesOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type CloudVmClustersListPrivateIpAddressesResponse = PrivateIpAddressProperties[]; - -// @public -export interface CloudVmClustersRemoveVmsHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface CloudVmClustersRemoveVmsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudVmClustersRemoveVmsResponse = CloudVmCluster; - -// @public -export interface CloudVmClustersUpdateHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface CloudVmClustersUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type CloudVmClustersUpdateResponse = CloudVmCluster; - -// @public -export interface CloudVmClusterUpdate { - properties?: CloudVmClusterUpdateProperties; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export interface CloudVmClusterUpdateProperties { - computeNodes?: string[]; - cpuCoreCount?: number; - dataCollectionOptions?: DataCollectionOptions; - dataStorageSizeInTbs?: number; - dbNodeStorageSizeInGbs?: number; - displayName?: string; - licenseModel?: LicenseModel; - memorySizeInGbs?: number; - ocpuCount?: number; - sshPublicKeys?: string[]; - storageSizeInGbs?: number; -} - -// @public -export type ComputeModel = string; - -// @public -export interface ConnectionStringType { - allConnectionStrings?: AllConnectionStringType; - dedicated?: string; - high?: string; - low?: string; - medium?: string; - profiles?: ProfileType[]; -} - -// @public -export interface ConnectionUrlType { - apexUrl?: string; - databaseTransformsUrl?: string; - graphStudioUrl?: string; - machineLearningNotebookUrl?: string; - mongoDbUrl?: string; - ordsUrl?: string; - sqlDevWebUrl?: string; -} - -// @public -export type ConsumerGroup = string; - -// @public -export type CreatedByType = string; - -// @public -export interface CustomerContact { - email: string; -} - -// @public -export type DatabaseEditionType = string; - -// @public -export type DataBaseType = string; - -// @public -export interface DataCollectionOptions { - isDiagnosticsEventsEnabled?: boolean; - isHealthMonitoringEnabled?: boolean; - isIncidentLogsEnabled?: boolean; -} - -// @public -export type DataSafeStatusType = string; - -// @public -export interface DayOfWeek { - name: DayOfWeekName; -} - -// @public -export type DayOfWeekName = string; - -// @public -export interface DayOfWeekUpdate { - name?: DayOfWeekName; -} - -// @public -export interface DbIormConfig { - dbName?: string; - flashCacheLimit?: string; - share?: number; -} - -// @public -export interface DbNode extends ProxyResource { - properties?: DbNodeProperties; -} - -// @public -export interface DbNodeAction { - action: DbNodeActionEnum; -} - -// @public -export type DbNodeActionEnum = string; - -// @public -export interface DbNodeListResult { - nextLink?: string; - value: DbNode[]; -} - -// @public -export type DbNodeMaintenanceType = string; - -// @public -export interface DbNodeProperties { - readonly additionalDetails?: string; - readonly backupIpId?: string; - readonly backupVnic2Id?: string; - readonly backupVnicId?: string; - readonly cpuCoreCount?: number; - readonly dbNodeStorageSizeInGbs?: number; - readonly dbServerId?: string; - readonly dbSystemId: string; - readonly faultDomain?: string; - readonly hostIpId?: string; - readonly hostname?: string; - readonly lifecycleDetails?: string; - readonly lifecycleState?: DbNodeProvisioningState; - readonly maintenanceType?: DbNodeMaintenanceType; - readonly memorySizeInGbs?: number; - readonly ocid: string; - readonly provisioningState?: ResourceProvisioningState; - readonly softwareStorageSizeInGb?: number; - readonly timeCreated?: Date; - readonly timeMaintenanceWindowEnd?: Date; - readonly timeMaintenanceWindowStart?: Date; - readonly vnic2Id?: string; - readonly vnicId?: string; -} - -// @public -export type DbNodeProvisioningState = string; - -// @public -export interface DbNodes { - beginAction(resourceGroupName: string, cloudvmclustername: string, dbnodeocid: string, body: DbNodeAction, options?: DbNodesActionOptionalParams): Promise, DbNodesActionResponse>>; - beginActionAndWait(resourceGroupName: string, cloudvmclustername: string, dbnodeocid: string, body: DbNodeAction, options?: DbNodesActionOptionalParams): Promise; - get(resourceGroupName: string, cloudvmclustername: string, dbnodeocid: string, options?: DbNodesGetOptionalParams): Promise; - listByCloudVmCluster(resourceGroupName: string, cloudvmclustername: string, options?: DbNodesListByCloudVmClusterOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DbNodesActionHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface DbNodesActionOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type DbNodesActionResponse = DbNode; - -// @public -export interface DbNodesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbNodesGetResponse = DbNode; - -// @public -export interface DbNodesListByCloudVmClusterNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbNodesListByCloudVmClusterNextResponse = DbNodeListResult; - -// @public -export interface DbNodesListByCloudVmClusterOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbNodesListByCloudVmClusterResponse = DbNodeListResult; - -// @public -export interface DbServer extends ProxyResource { - properties?: DbServerProperties; -} - -// @public -export interface DbServerListResult { - nextLink?: string; - value: DbServer[]; -} - -// @public -export interface DbServerPatchingDetails { - readonly estimatedPatchDuration?: number; - readonly patchingStatus?: DbServerPatchingStatus; - readonly timePatchingEnded?: Date; - readonly timePatchingStarted?: Date; -} - -// @public -export type DbServerPatchingStatus = string; - -// @public -export interface DbServerProperties { - readonly autonomousVirtualMachineIds?: string[]; - readonly autonomousVmClusterIds?: string[]; - readonly compartmentId?: string; - readonly cpuCoreCount?: number; - readonly dbNodeIds?: string[]; - readonly dbNodeStorageSizeInGbs?: number; - readonly dbServerPatchingDetails?: DbServerPatchingDetails; - readonly displayName?: string; - readonly exadataInfrastructureId?: string; - readonly lifecycleDetails?: string; - readonly lifecycleState?: DbServerProvisioningState; - readonly maxCpuCount?: number; - readonly maxDbNodeStorageInGbs?: number; - readonly maxMemoryInGbs?: number; - readonly memorySizeInGbs?: number; - readonly ocid?: string; - readonly provisioningState?: ResourceProvisioningState; - readonly shape?: string; - readonly timeCreated?: Date; - readonly vmClusterIds?: string[]; -} - -// @public -export type DbServerProvisioningState = string; - -// @public -export interface DbServers { - get(resourceGroupName: string, cloudexadatainfrastructurename: string, dbserverocid: string, options?: DbServersGetOptionalParams): Promise; - listByCloudExadataInfrastructure(resourceGroupName: string, cloudexadatainfrastructurename: string, options?: DbServersListByCloudExadataInfrastructureOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DbServersGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbServersGetResponse = DbServer; - -// @public -export interface DbServersListByCloudExadataInfrastructureNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbServersListByCloudExadataInfrastructureNextResponse = DbServerListResult; - -// @public -export interface DbServersListByCloudExadataInfrastructureOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbServersListByCloudExadataInfrastructureResponse = DbServerListResult; - -// @public -export interface DbSystemShape extends ProxyResource { - properties?: DbSystemShapeProperties; -} - -// @public -export interface DbSystemShapeListResult { - nextLink?: string; - value: DbSystemShape[]; -} - -// @public -export interface DbSystemShapeProperties { - readonly availableCoreCount: number; - readonly availableCoreCountPerNode?: number; - readonly availableDataStorageInTbs?: number; - readonly availableDataStoragePerServerInTbs?: number; - readonly availableDbNodePerNodeInGbs?: number; - readonly availableDbNodeStorageInGbs?: number; - readonly availableMemoryInGbs?: number; - readonly availableMemoryPerNodeInGbs?: number; - readonly coreCountIncrement?: number; - readonly maximumNodeCount?: number; - readonly maxStorageCount?: number; - readonly minCoreCountPerNode?: number; - readonly minDataStorageInTbs?: number; - readonly minDbNodeStoragePerNodeInGbs?: number; - readonly minimumCoreCount?: number; - readonly minimumNodeCount?: number; - readonly minMemoryPerNodeInGbs?: number; - readonly minStorageCount?: number; - readonly runtimeMinimumCoreCount?: number; - readonly shapeFamily?: string; -} - -// @public -export interface DbSystemShapes { - get(location: string, dbsystemshapename: string, options?: DbSystemShapesGetOptionalParams): Promise; - listByLocation(location: string, options?: DbSystemShapesListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DbSystemShapesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbSystemShapesGetResponse = DbSystemShape; - -// @public -export interface DbSystemShapesListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbSystemShapesListByLocationNextResponse = DbSystemShapeListResult; - -// @public -export interface DbSystemShapesListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DbSystemShapesListByLocationResponse = DbSystemShapeListResult; - -// @public -export type DisasterRecoveryType = string; - -// @public -export type DiskRedundancy = string; - -// @public -export interface DnsPrivateView extends ProxyResource { - properties?: DnsPrivateViewProperties; -} - -// @public -export interface DnsPrivateViewListResult { - nextLink?: string; - value: DnsPrivateView[]; -} - -// @public -export interface DnsPrivateViewProperties { - readonly displayName?: string; - readonly isProtected: boolean; - readonly lifecycleState?: DnsPrivateViewsLifecycleState; - readonly ocid: string; - readonly provisioningState?: ResourceProvisioningState; - readonly self: string; - readonly timeCreated: Date; - readonly timeUpdated: Date; -} - -// @public -export interface DnsPrivateViews { - get(location: string, dnsprivateviewocid: string, options?: DnsPrivateViewsGetOptionalParams): Promise; - listByLocation(location: string, options?: DnsPrivateViewsListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DnsPrivateViewsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DnsPrivateViewsGetResponse = DnsPrivateView; - -// @public -export type DnsPrivateViewsLifecycleState = string; - -// @public -export interface DnsPrivateViewsListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DnsPrivateViewsListByLocationNextResponse = DnsPrivateViewListResult; - -// @public -export interface DnsPrivateViewsListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DnsPrivateViewsListByLocationResponse = DnsPrivateViewListResult; - -// @public -export interface DnsPrivateZone extends ProxyResource { - properties?: DnsPrivateZoneProperties; -} - -// @public -export interface DnsPrivateZoneListResult { - nextLink?: string; - value: DnsPrivateZone[]; -} - -// @public -export interface DnsPrivateZoneProperties { - readonly isProtected: boolean; - readonly lifecycleState?: DnsPrivateZonesLifecycleState; - readonly ocid: string; - readonly provisioningState?: ResourceProvisioningState; - readonly self: string; - readonly serial: number; - readonly timeCreated: Date; - readonly version: string; - readonly viewId?: string; - readonly zoneType: ZoneType; -} - -// @public -export interface DnsPrivateZones { - get(location: string, dnsprivatezonename: string, options?: DnsPrivateZonesGetOptionalParams): Promise; - listByLocation(location: string, options?: DnsPrivateZonesListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface DnsPrivateZonesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DnsPrivateZonesGetResponse = DnsPrivateZone; - -// @public -export type DnsPrivateZonesLifecycleState = string; - -// @public -export interface DnsPrivateZonesListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DnsPrivateZonesListByLocationNextResponse = DnsPrivateZoneListResult; - -// @public -export interface DnsPrivateZonesListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type DnsPrivateZonesListByLocationResponse = DnsPrivateZoneListResult; - -// @public -export interface ErrorAdditionalInfo { - readonly info?: Record; - readonly type?: string; -} - -// @public -export interface ErrorDetail { - readonly additionalInfo?: ErrorAdditionalInfo[]; - readonly code?: string; - readonly details?: ErrorDetail[]; - readonly message?: string; - readonly target?: string; -} - -// @public -export interface ErrorResponse { - error?: ErrorDetail; -} - -// @public -export interface EstimatedPatchingTime { - readonly estimatedDbServerPatchingTime?: number; - readonly estimatedNetworkSwitchesPatchingTime?: number; - readonly estimatedStorageServerPatchingTime?: number; - readonly totalEstimatedPatchingTime?: number; -} - -// @public -export interface ExadataIormConfig { - dbPlans?: DbIormConfig[]; - lifecycleDetails?: string; - lifecycleState?: IormLifecycleState; - objective?: Objective; -} - -// @public -export interface GenerateAutonomousDatabaseWalletDetails { - generateType?: GenerateType; - isRegional?: boolean; - password: string; -} - -// @public -export type GenerateType = string; - -// @public -export function getContinuationToken(page: unknown): string | undefined; - -// @public -export interface GiVersion extends ProxyResource { - properties?: GiVersionProperties; -} - -// @public -export interface GiVersionListResult { - nextLink?: string; - value: GiVersion[]; -} - -// @public -export interface GiVersionProperties { - readonly version: string; -} - -// @public -export interface GiVersions { - get(location: string, giversionname: string, options?: GiVersionsGetOptionalParams): Promise; - listByLocation(location: string, options?: GiVersionsListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface GiVersionsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GiVersionsGetResponse = GiVersion; - -// @public -export interface GiVersionsListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GiVersionsListByLocationNextResponse = GiVersionListResult; - -// @public -export interface GiVersionsListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type GiVersionsListByLocationResponse = GiVersionListResult; - -// @public -export type HostFormatType = string; - -// @public -export type Intent = string; - -// @public -export type IormLifecycleState = string; - -// @public -export enum KnownActionType { - Internal = "Internal" -} - -// @public -export enum KnownAutonomousDatabaseBackupLifecycleState { - Active = "Active", - Creating = "Creating", - Deleting = "Deleting", - Failed = "Failed", - Updating = "Updating" -} - -// @public -export enum KnownAutonomousDatabaseBackupType { - Full = "Full", - Incremental = "Incremental", - LongTerm = "LongTerm" -} - -// @public -export enum KnownAutonomousDatabaseLifecycleState { - Available = "Available", - AvailableNeedsAttention = "AvailableNeedsAttention", - BackupInProgress = "BackupInProgress", - Inaccessible = "Inaccessible", - MaintenanceInProgress = "MaintenanceInProgress", - Provisioning = "Provisioning", - Recreating = "Recreating", - Restarting = "Restarting", - RestoreFailed = "RestoreFailed", - RestoreInProgress = "RestoreInProgress", - RoleChangeInProgress = "RoleChangeInProgress", - ScaleInProgress = "ScaleInProgress", - Standby = "Standby", - Starting = "Starting", - Stopped = "Stopped", - Stopping = "Stopping", - Terminated = "Terminated", - Terminating = "Terminating", - Unavailable = "Unavailable", - Updating = "Updating", - Upgrading = "Upgrading" -} - -// @public -export enum KnownAutonomousMaintenanceScheduleType { - Early = "Early", - Regular = "Regular" -} - -// @public -export enum KnownAzureResourceProvisioningState { - Canceled = "Canceled", - Failed = "Failed", - Provisioning = "Provisioning", - Succeeded = "Succeeded" -} - -// @public -export enum KnownCloneType { - Full = "Full", - Metadata = "Metadata" -} - -// @public -export enum KnownCloudAccountProvisioningState { - Available = "Available", - Pending = "Pending", - Provisioning = "Provisioning" -} - -// @public -export enum KnownCloudExadataInfrastructureLifecycleState { - Available = "Available", - Failed = "Failed", - MaintenanceInProgress = "MaintenanceInProgress", - Provisioning = "Provisioning", - Terminated = "Terminated", - Terminating = "Terminating", - Updating = "Updating" -} - -// @public -export enum KnownCloudVmClusterLifecycleState { - Available = "Available", - Failed = "Failed", - MaintenanceInProgress = "MaintenanceInProgress", - Provisioning = "Provisioning", - Terminated = "Terminated", - Terminating = "Terminating", - Updating = "Updating" -} - -// @public -export enum KnownComputeModel { - Ecpu = "ECPU", - Ocpu = "OCPU" -} - -// @public -export enum KnownConsumerGroup { - High = "High", - Low = "Low", - Medium = "Medium", - Tp = "Tp", - Tpurgent = "Tpurgent" -} - -// @public -export enum KnownCreatedByType { - Application = "Application", - Key = "Key", - ManagedIdentity = "ManagedIdentity", - User = "User" -} - -// @public -export enum KnownDatabaseEditionType { - EnterpriseEdition = "EnterpriseEdition", - StandardEdition = "StandardEdition" -} - -// @public -export enum KnownDataBaseType { - Clone = "Clone", - Regular = "Regular" -} - -// @public -export enum KnownDataSafeStatusType { - Deregistering = "Deregistering", - Failed = "Failed", - NotRegistered = "NotRegistered", - Registered = "Registered", - Registering = "Registering" -} - -// @public -export enum KnownDayOfWeekName { - Friday = "Friday", - Monday = "Monday", - Saturday = "Saturday", - Sunday = "Sunday", - Thursday = "Thursday", - Tuesday = "Tuesday", - Wednesday = "Wednesday" -} - -// @public -export enum KnownDbNodeActionEnum { - Reset = "Reset", - SoftReset = "SoftReset", - Start = "Start", - Stop = "Stop" -} - -// @public -export enum KnownDbNodeMaintenanceType { - VmdbRebootMigration = "VmdbRebootMigration" -} - -// @public -export enum KnownDbNodeProvisioningState { - Available = "Available", - Failed = "Failed", - Provisioning = "Provisioning", - Starting = "Starting", - Stopped = "Stopped", - Stopping = "Stopping", - Terminated = "Terminated", - Terminating = "Terminating", - Updating = "Updating" -} - -// @public -export enum KnownDbServerPatchingStatus { - Complete = "Complete", - Failed = "Failed", - MaintenanceInProgress = "MaintenanceInProgress", - Scheduled = "Scheduled" -} - -// @public -export enum KnownDbServerProvisioningState { - Available = "Available", - Creating = "Creating", - Deleted = "Deleted", - Deleting = "Deleting", - MaintenanceInProgress = "MaintenanceInProgress", - Unavailable = "Unavailable" -} - -// @public -export enum KnownDisasterRecoveryType { - Adg = "Adg", - BackupBased = "BackupBased" -} - -// @public -export enum KnownDiskRedundancy { - High = "High", - Normal = "Normal" -} - -// @public -export enum KnownDnsPrivateViewsLifecycleState { - Active = "Active", - Deleted = "Deleted", - Deleting = "Deleting", - Updating = "Updating" -} - -// @public -export enum KnownDnsPrivateZonesLifecycleState { - Active = "Active", - Creating = "Creating", - Deleted = "Deleted", - Deleting = "Deleting", - Updating = "Updating" -} - -// @public -export enum KnownGenerateType { - All = "All", - Single = "Single" -} - -// @public -export enum KnownHostFormatType { - Fqdn = "Fqdn", - Ip = "Ip" -} - -// @public -export enum KnownIntent { - Reset = "Reset", - Retain = "Retain" -} - -// @public -export enum KnownIormLifecycleState { - BootStrapping = "BootStrapping", - Disabled = "Disabled", - Enabled = "Enabled", - Failed = "Failed", - Updating = "Updating" -} - -// @public -export enum KnownLicenseModel { - BringYourOwnLicense = "BringYourOwnLicense", - LicenseIncluded = "LicenseIncluded" -} - -// @public -export enum KnownMonthName { - April = "April", - August = "August", - December = "December", - February = "February", - January = "January", - July = "July", - June = "June", - March = "March", - May = "May", - November = "November", - October = "October", - September = "September" -} - -// @public -export enum KnownObjective { - Auto = "Auto", - Balanced = "Balanced", - Basic = "Basic", - HighThroughput = "HighThroughput", - LowLatency = "LowLatency" -} - -// @public -export enum KnownOpenModeType { - ReadOnly = "ReadOnly", - ReadWrite = "ReadWrite" -} - -// @public -export enum KnownOperationsInsightsStatusType { - Disabling = "Disabling", - Enabled = "Enabled", - Enabling = "Enabling", - FailedDisabling = "FailedDisabling", - FailedEnabling = "FailedEnabling", - NotEnabled = "NotEnabled" -} - -// @public -export enum KnownOracleSubscriptionProvisioningState { - Canceled = "Canceled", - Failed = "Failed", - Succeeded = "Succeeded" -} - -// @public -export enum KnownOrigin { - System = "system", - User = "user", - UserSystem = "user,system" -} - -// @public -export enum KnownPatchingMode { - NonRolling = "NonRolling", - Rolling = "Rolling" -} - -// @public -export enum KnownPermissionLevelType { - Restricted = "Restricted", - Unrestricted = "Unrestricted" -} - -// @public -export enum KnownPreference { - CustomPreference = "CustomPreference", - NoPreference = "NoPreference" -} - -// @public -export enum KnownProtocolType { - TCP = "TCP", - Tcps = "TCPS" -} - -// @public -export enum KnownRefreshableModelType { - Automatic = "Automatic", - Manual = "Manual" -} - -// @public -export enum KnownRefreshableStatusType { - NotRefreshing = "NotRefreshing", - Refreshing = "Refreshing" -} - -// @public -export enum KnownRepeatCadenceType { - Monthly = "Monthly", - OneTime = "OneTime", - Weekly = "Weekly", - Yearly = "Yearly" -} - -// @public -export enum KnownResourceProvisioningState { - Canceled = "Canceled", - Failed = "Failed", - Succeeded = "Succeeded" -} - -// @public -export enum KnownRoleType { - BackupCopy = "BackupCopy", - DisabledStandby = "DisabledStandby", - Primary = "Primary", - SnapshotStandby = "SnapshotStandby", - Standby = "Standby" -} - -// @public -export enum KnownSessionModeType { - Direct = "Direct", - Redirect = "Redirect" -} - -// @public -export enum KnownSourceType { - BackupFromId = "BackupFromId", - BackupFromTimestamp = "BackupFromTimestamp", - CloneToRefreshable = "CloneToRefreshable", - CrossRegionDataguard = "CrossRegionDataguard", - CrossRegionDisasterRecovery = "CrossRegionDisasterRecovery", - Database = "Database", - None = "None" -} - -// @public -export enum KnownSyntaxFormatType { - Ezconnect = "Ezconnect", - Ezconnectplus = "Ezconnectplus", - Long = "Long" -} - -// @public -export enum KnownTlsAuthenticationType { - Mutual = "Mutual", - Server = "Server" -} - -// @public -export enum KnownUpdateAction { - NonRollingApply = "NonRollingApply", - PreCheck = "PreCheck", - RollBack = "RollBack", - RollingApply = "RollingApply" -} - -// @public -export enum KnownValidationStatus { - Failed = "Failed", - Succeeded = "Succeeded" -} - -// @public -export enum KnownVirtualNetworkAddressLifecycleState { - Available = "Available", - Failed = "Failed", - Provisioning = "Provisioning", - Terminated = "Terminated", - Terminating = "Terminating" -} - -// @public -export enum KnownWorkloadType { - AJD = "AJD", - Apex = "APEX", - DW = "DW", - Oltp = "OLTP" -} - -// @public -export enum KnownZoneType { - Primary = "Primary", - Secondary = "Secondary" -} - -// @public -export type LicenseModel = string; - -// @public -export interface LongTermBackUpScheduleDetails { - isDisabled?: boolean; - repeatCadence?: RepeatCadenceType; - retentionPeriodInDays?: number; - timeOfBackup?: Date; -} - -// @public -export interface MaintenanceWindow { - customActionTimeoutInMins?: number; - daysOfWeek?: DayOfWeek[]; - hoursOfDay?: number[]; - isCustomActionTimeoutEnabled?: boolean; - isMonthlyPatchingEnabled?: boolean; - leadTimeInWeeks?: number; - months?: Month[]; - patchingMode?: PatchingMode; - preference?: Preference; - weeksOfMonth?: number[]; -} - -// @public -export interface Month { - name: MonthName; -} - -// @public -export type MonthName = string; - -// @public -export interface NsgCidr { - destinationPortRange?: PortRange; - source: string; -} - -// @public -export type Objective = string; - -// @public -export type OpenModeType = string; - -// @public -export interface Operation { - readonly actionType?: ActionType; - display?: OperationDisplay; - readonly isDataAction?: boolean; - readonly name?: string; - readonly origin?: Origin; -} - -// @public -export interface OperationDisplay { - readonly description?: string; - readonly operation?: string; - readonly provider?: string; - readonly resource?: string; -} - -// @public -export interface OperationListResult { - readonly nextLink?: string; - readonly value?: Operation[]; -} - -// @public -export interface Operations { - list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export type OperationsInsightsStatusType = string; - -// @public -export interface OperationsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsListNextResponse = OperationListResult; - -// @public -export interface OperationsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OperationsListResponse = OperationListResult; - -// @public (undocumented) -export class OracleDatabaseManagementClient extends coreClient.ServiceClient { - // (undocumented) - $host: string; - constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: OracleDatabaseManagementClientOptionalParams); - // (undocumented) - apiVersion: string; - // (undocumented) - autonomousDatabaseBackups: AutonomousDatabaseBackups; - // (undocumented) - autonomousDatabaseCharacterSets: AutonomousDatabaseCharacterSets; - // (undocumented) - autonomousDatabaseNationalCharacterSets: AutonomousDatabaseNationalCharacterSets; - // (undocumented) - autonomousDatabases: AutonomousDatabases; - // (undocumented) - autonomousDatabaseVersions: AutonomousDatabaseVersions; - // (undocumented) - cloudExadataInfrastructures: CloudExadataInfrastructures; - // (undocumented) - cloudVmClusters: CloudVmClusters; - // (undocumented) - dbNodes: DbNodes; - // (undocumented) - dbServers: DbServers; - // (undocumented) - dbSystemShapes: DbSystemShapes; - // (undocumented) - dnsPrivateViews: DnsPrivateViews; - // (undocumented) - dnsPrivateZones: DnsPrivateZones; - // (undocumented) - giVersions: GiVersions; - // (undocumented) - operations: Operations; - // (undocumented) - oracleSubscriptions: OracleSubscriptions; - // (undocumented) - subscriptionId: string; - // (undocumented) - systemVersions: SystemVersions; - // (undocumented) - virtualNetworkAddresses: VirtualNetworkAddresses; -} - -// @public -export interface OracleDatabaseManagementClientOptionalParams extends coreClient.ServiceClientOptions { - $host?: string; - apiVersion?: string; - endpoint?: string; -} - -// @public -export interface OracleSubscription extends ProxyResource { - plan?: Plan; - properties?: OracleSubscriptionProperties; -} - -// @public -export interface OracleSubscriptionListResult { - nextLink?: string; - value: OracleSubscription[]; -} - -// @public -export interface OracleSubscriptionProperties { - readonly cloudAccountId?: string; - readonly cloudAccountState?: CloudAccountProvisioningState; - intent?: Intent; - productCode?: string; - readonly provisioningState?: OracleSubscriptionProvisioningState; - readonly saasSubscriptionId?: string; - termUnit?: string; -} - -// @public -export type OracleSubscriptionProvisioningState = string; - -// @public -export interface OracleSubscriptions { - beginCreateOrUpdate(resource: OracleSubscription, options?: OracleSubscriptionsCreateOrUpdateOptionalParams): Promise, OracleSubscriptionsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resource: OracleSubscription, options?: OracleSubscriptionsCreateOrUpdateOptionalParams): Promise; - beginDelete(options?: OracleSubscriptionsDeleteOptionalParams): Promise, OracleSubscriptionsDeleteResponse>>; - beginDeleteAndWait(options?: OracleSubscriptionsDeleteOptionalParams): Promise; - beginListActivationLinks(options?: OracleSubscriptionsListActivationLinksOptionalParams): Promise, OracleSubscriptionsListActivationLinksResponse>>; - beginListActivationLinksAndWait(options?: OracleSubscriptionsListActivationLinksOptionalParams): Promise; - beginListCloudAccountDetails(options?: OracleSubscriptionsListCloudAccountDetailsOptionalParams): Promise, OracleSubscriptionsListCloudAccountDetailsResponse>>; - beginListCloudAccountDetailsAndWait(options?: OracleSubscriptionsListCloudAccountDetailsOptionalParams): Promise; - beginListSaasSubscriptionDetails(options?: OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams): Promise, OracleSubscriptionsListSaasSubscriptionDetailsResponse>>; - beginListSaasSubscriptionDetailsAndWait(options?: OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams): Promise; - beginUpdate(properties: OracleSubscriptionUpdate, options?: OracleSubscriptionsUpdateOptionalParams): Promise, OracleSubscriptionsUpdateResponse>>; - beginUpdateAndWait(properties: OracleSubscriptionUpdate, options?: OracleSubscriptionsUpdateOptionalParams): Promise; - get(options?: OracleSubscriptionsGetOptionalParams): Promise; - listBySubscription(options?: OracleSubscriptionsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface OracleSubscriptionsCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface OracleSubscriptionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type OracleSubscriptionsCreateOrUpdateResponse = OracleSubscription; - -// @public -export interface OracleSubscriptionsDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface OracleSubscriptionsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type OracleSubscriptionsDeleteResponse = OracleSubscriptionsDeleteHeaders; - -// @public -export interface OracleSubscriptionsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OracleSubscriptionsGetResponse = OracleSubscription; - -// @public -export interface OracleSubscriptionsListActivationLinksHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface OracleSubscriptionsListActivationLinksOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type OracleSubscriptionsListActivationLinksResponse = ActivationLinks; - -// @public -export interface OracleSubscriptionsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OracleSubscriptionsListBySubscriptionNextResponse = OracleSubscriptionListResult; - -// @public -export interface OracleSubscriptionsListBySubscriptionOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type OracleSubscriptionsListBySubscriptionResponse = OracleSubscriptionListResult; - -// @public -export interface OracleSubscriptionsListCloudAccountDetailsHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface OracleSubscriptionsListCloudAccountDetailsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type OracleSubscriptionsListCloudAccountDetailsResponse = CloudAccountDetails; - -// @public -export interface OracleSubscriptionsListSaasSubscriptionDetailsHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type OracleSubscriptionsListSaasSubscriptionDetailsResponse = SaasSubscriptionDetails; - -// @public -export interface OracleSubscriptionsUpdateHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface OracleSubscriptionsUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type OracleSubscriptionsUpdateResponse = OracleSubscription; - -// @public -export interface OracleSubscriptionUpdate { - plan?: PlanUpdate; - properties?: OracleSubscriptionUpdateProperties; -} - -// @public -export interface OracleSubscriptionUpdateProperties { - intent?: Intent; - productCode?: string; -} - -// @public -export type Origin = string; - -// @public -export type PatchingMode = string; - -// @public -export interface PeerDbDetails { - peerDbId?: string; -} - -// @public -export type PermissionLevelType = string; - -// @public -export interface Plan { - name: string; - product: string; - promotionCode?: string; - publisher: string; - version?: string; -} - -// @public -export interface PlanUpdate { - name?: string; - product?: string; - promotionCode?: string; - publisher?: string; - version?: string; -} - -// @public -export interface PortRange { - max: number; - min: number; -} - -// @public -export type Preference = string; - -// @public -export interface PrivateIpAddressesFilter { - subnetId: string; - vnicId: string; -} - -// @public -export interface PrivateIpAddressProperties { - displayName: string; - hostnameLabel: string; - ipAddress: string; - ocid: string; - subnetId: string; -} - -// @public -export interface ProfileType { - consumerGroup?: ConsumerGroup; - displayName: string; - hostFormat: HostFormatType; - isRegional?: boolean; - protocol: ProtocolType; - sessionMode: SessionModeType; - syntaxFormat: SyntaxFormatType; - tlsAuthentication?: TlsAuthenticationType; - value: string; -} - -// @public -export type ProtocolType = string; - -// @public -export interface ProxyResource extends Resource { -} - -// @public -export type RefreshableModelType = string; - -// @public -export type RefreshableStatusType = string; - -// @public -export type RepeatCadenceType = string; - -// @public -export interface Resource { - readonly id?: string; - readonly name?: string; - readonly systemData?: SystemData; - readonly type?: string; -} - -// @public -export type ResourceProvisioningState = string; - -// @public -export interface RestoreAutonomousDatabaseDetails { - timestamp: Date; -} - -// @public -export type RoleType = string; - -// @public -export interface SaasSubscriptionDetails { - readonly id?: string; - readonly isAutoRenew?: boolean; - readonly isFreeTrial?: boolean; - readonly offerId?: string; - readonly planId?: string; - readonly publisherId?: string; - readonly purchaserEmailId?: string; - readonly purchaserTenantId?: string; - readonly saasSubscriptionStatus?: string; - readonly subscriptionName?: string; - readonly termUnit?: string; - readonly timeCreated?: Date; -} - -// @public -export interface ScheduledOperationsType { - dayOfWeek: DayOfWeek; - scheduledStartTime?: string; - scheduledStopTime?: string; -} - -// @public -export interface ScheduledOperationsTypeUpdate { - dayOfWeek?: DayOfWeekUpdate; - scheduledStartTime?: string; - scheduledStopTime?: string; -} - -// @public -export type SessionModeType = string; - -// @public -export type SourceType = string; - -// @public -export type SyntaxFormatType = string; - -// @public -export interface SystemData { - createdAt?: Date; - createdBy?: string; - createdByType?: CreatedByType; - lastModifiedAt?: Date; - lastModifiedBy?: string; - lastModifiedByType?: CreatedByType; -} - -// @public -export interface SystemVersion extends ProxyResource { - properties?: SystemVersionProperties; -} - -// @public -export interface SystemVersionListResult { - nextLink?: string; - value: SystemVersion[]; -} - -// @public -export interface SystemVersionProperties { - readonly systemVersion: string; -} - -// @public -export interface SystemVersions { - get(location: string, systemversionname: string, options?: SystemVersionsGetOptionalParams): Promise; - listByLocation(location: string, options?: SystemVersionsListByLocationOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface SystemVersionsFilter { - giVersion: string; - isLatestVersion?: boolean; - shape: string; -} - -// @public -export interface SystemVersionsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SystemVersionsGetResponse = SystemVersion; - -// @public -export interface SystemVersionsListByLocationNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SystemVersionsListByLocationNextResponse = SystemVersionListResult; - -// @public -export interface SystemVersionsListByLocationOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type SystemVersionsListByLocationResponse = SystemVersionListResult; - -// @public -export type TlsAuthenticationType = string; - -// @public -export interface TrackedResource extends Resource { - location: string; - tags?: { - [propertyName: string]: string; - }; -} - -// @public -export type UpdateAction = string; - -// @public -export interface ValidationError { - code: string; - message: string; -} - -// @public -export interface ValidationResult { - error: ValidationError; - readonly status: ValidationStatus; -} - -// @public -export type ValidationStatus = string; - -// @public -export interface VirtualNetworkAddress extends ProxyResource { - properties?: VirtualNetworkAddressProperties; -} - -// @public -export interface VirtualNetworkAddresses { - beginCreateOrUpdate(resourceGroupName: string, cloudvmclustername: string, virtualnetworkaddressname: string, resource: VirtualNetworkAddress, options?: VirtualNetworkAddressesCreateOrUpdateOptionalParams): Promise, VirtualNetworkAddressesCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, cloudvmclustername: string, virtualnetworkaddressname: string, resource: VirtualNetworkAddress, options?: VirtualNetworkAddressesCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, cloudvmclustername: string, virtualnetworkaddressname: string, options?: VirtualNetworkAddressesDeleteOptionalParams): Promise, VirtualNetworkAddressesDeleteResponse>>; - beginDeleteAndWait(resourceGroupName: string, cloudvmclustername: string, virtualnetworkaddressname: string, options?: VirtualNetworkAddressesDeleteOptionalParams): Promise; - get(resourceGroupName: string, cloudvmclustername: string, virtualnetworkaddressname: string, options?: VirtualNetworkAddressesGetOptionalParams): Promise; - listByCloudVmCluster(resourceGroupName: string, cloudvmclustername: string, options?: VirtualNetworkAddressesListByCloudVmClusterOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface VirtualNetworkAddressesCreateOrUpdateHeaders { - retryAfter?: number; -} - -// @public -export interface VirtualNetworkAddressesCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type VirtualNetworkAddressesCreateOrUpdateResponse = VirtualNetworkAddress; - -// @public -export interface VirtualNetworkAddressesDeleteHeaders { - location?: string; - retryAfter?: number; -} - -// @public -export interface VirtualNetworkAddressesDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type VirtualNetworkAddressesDeleteResponse = VirtualNetworkAddressesDeleteHeaders; - -// @public -export interface VirtualNetworkAddressesGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type VirtualNetworkAddressesGetResponse = VirtualNetworkAddress; - -// @public -export interface VirtualNetworkAddressesListByCloudVmClusterNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type VirtualNetworkAddressesListByCloudVmClusterNextResponse = VirtualNetworkAddressListResult; - -// @public -export interface VirtualNetworkAddressesListByCloudVmClusterOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type VirtualNetworkAddressesListByCloudVmClusterResponse = VirtualNetworkAddressListResult; - -// @public -export type VirtualNetworkAddressLifecycleState = string; - -// @public -export interface VirtualNetworkAddressListResult { - nextLink?: string; - value: VirtualNetworkAddress[]; -} - -// @public -export interface VirtualNetworkAddressProperties { - readonly domain?: string; - ipAddress?: string; - readonly lifecycleDetails?: string; - readonly lifecycleState?: VirtualNetworkAddressLifecycleState; - readonly ocid?: string; - readonly provisioningState?: AzureResourceProvisioningState; - readonly timeAssigned?: Date; - vmOcid?: string; -} - -// @public -export type WorkloadType = string; - -// @public -export type ZoneType = string; - -// (No @packageDocumentation comment for this package) - -``` diff --git a/sdk/oracledatabase/arm-oracledatabase/sample.env b/sdk/oracledatabase/arm-oracledatabase/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsCreateOrUpdateSample.ts deleted file mode 100644 index 15f95eea20fd..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsCreateOrUpdateSample.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutonomousDatabaseBackup, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a AutonomousDatabaseBackup - * - * @summary Create a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json - */ -async function autonomousDatabaseBackupsCreateOrUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const resource: AutonomousDatabaseBackup = { - properties: { - autonomousDatabaseOcid: "ocid1.autonomousdatabase.oc1..aaaaa3klq", - displayName: "Nightly Backup", - retentionPeriodInDays: 365, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.autonomousDatabaseBackups.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabaseBackup - * - * @summary Create a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json - */ -async function createAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const resource: AutonomousDatabaseBackup = { - properties: { - autonomousDatabaseOcid: "ocid1.autonomousdatabase.oc1..aaaaa3klq", - displayName: "Nightly Backup", - retentionPeriodInDays: 365, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.autonomousDatabaseBackups.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - resource, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsCreateOrUpdate(); - createAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsDeleteSample.ts deleted file mode 100644 index f043723432b7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsDeleteSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a AutonomousDatabaseBackup - * - * @summary Delete a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json - */ -async function autonomousDatabaseBackupsDelete() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete a AutonomousDatabaseBackup - * - * @summary Delete a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json - */ -async function deleteAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsDelete(); - deleteAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsGetSample.ts deleted file mode 100644 index 1f44a0c0b720..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsGetSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseBackup - * - * @summary Get a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json - */ -async function autonomousDatabaseBackupsGet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.get( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a AutonomousDatabaseBackup - * - * @summary Get a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json - */ -async function getAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.get( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsGet(); - getAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts deleted file mode 100644 index 28dd119e56c7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseBackup resources by AutonomousDatabase - * - * @summary List AutonomousDatabaseBackup resources by AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json - */ -async function autonomousDatabaseBackupsListByAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseBackups.listByAutonomousDatabase( - resourceGroupName, - autonomousdatabasename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List AutonomousDatabaseBackup resources by AutonomousDatabase - * - * @summary List AutonomousDatabaseBackup resources by AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json - */ -async function listAutonomousDatabaseBackupsByAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseBackups.listByAutonomousDatabase( - resourceGroupName, - autonomousdatabasename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - autonomousDatabaseBackupsListByAutonomousDatabase(); - listAutonomousDatabaseBackupsByAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsUpdateSample.ts deleted file mode 100644 index 2d168e50b7ad..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseBackupsUpdateSample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutonomousDatabaseBackupUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a AutonomousDatabaseBackup - * - * @summary Update a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json - */ -async function autonomousDatabaseBackupsUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const properties: AutonomousDatabaseBackupUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update a AutonomousDatabaseBackup - * - * @summary Update a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json - */ -async function patchAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const properties: AutonomousDatabaseBackupUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - properties, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsUpdate(); - patchAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseCharacterSetsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseCharacterSetsGetSample.ts deleted file mode 100644 index 2267df1a1d9e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseCharacterSetsGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseCharacterSet - * - * @summary Get a AutonomousDatabaseCharacterSet - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_get.json - */ -async function getAutonomousDbCharacterSet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const adbscharsetname = "DATABASE"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseCharacterSets.get( - location, - adbscharsetname, - ); - console.log(result); -} - -async function main() { - getAutonomousDbCharacterSet(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseCharacterSetsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseCharacterSetsListByLocationSample.ts deleted file mode 100644 index b0c0572dadb3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseCharacterSetsListByLocationSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseCharacterSet resources by Location - * - * @summary List AutonomousDatabaseCharacterSet resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_listByLocation.json - */ -async function listAutonomousDbCharacterSetsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseCharacterSets.listByLocation( - location, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDbCharacterSetsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseNationalCharacterSetsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseNationalCharacterSetsGetSample.ts deleted file mode 100644 index bb8c671d6ef2..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseNationalCharacterSetsGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseNationalCharacterSet - * - * @summary Get a AutonomousDatabaseNationalCharacterSet - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_get.json - */ -async function getAutonomousDbNationalCharacterSet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const adbsncharsetname = "NATIONAL"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseNationalCharacterSets.get( - location, - adbsncharsetname, - ); - console.log(result); -} - -async function main() { - getAutonomousDbNationalCharacterSet(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts deleted file mode 100644 index 1ab6932845f1..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseNationalCharacterSet resources by Location - * - * @summary List AutonomousDatabaseNationalCharacterSet resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_listByLocation.json - */ -async function listAutonomousDbNationalCharacterSetsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseNationalCharacterSets.listByLocation( - location, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDbNationalCharacterSetsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseVersionsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseVersionsGetSample.ts deleted file mode 100644 index 7e15282fc623..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseVersionsGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDbVersion - * - * @summary Get a AutonomousDbVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_get.json - */ -async function getAnAutonomousVersion() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const autonomousdbversionsname = "18.4.0.0"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseVersions.get( - location, - autonomousdbversionsname, - ); - console.log(result); -} - -async function main() { - getAnAutonomousVersion(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseVersionsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseVersionsListByLocationSample.ts deleted file mode 100644 index 3dc7c8b1f5c8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabaseVersionsListByLocationSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDbVersion resources by Location - * - * @summary List AutonomousDbVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_listByLocation.json - */ -async function listAnAutonomousVersionsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseVersions.listByLocation( - location, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAnAutonomousVersionsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesCreateOrUpdateSample.ts deleted file mode 100644 index 869958c18569..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesCreateOrUpdateSample.ts +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutonomousDatabase, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json - */ -async function autonomousDatabasesCreateOrUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource: AutonomousDatabase = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Regular", - dataStorageSizeInTbs: 1, - dbVersion: "18.4.0.0", - displayName: "example_autonomous_databasedb1", - ncharacterSet: "AL16UTF16", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create.json - */ -async function autonomousDatabasesCreateOrUpdateClone() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource: AutonomousDatabase = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - cloneType: "Full", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Clone", - dataStorageSizeInTbs: 1, - displayName: "example_autonomous_databasedb1_clone", - ncharacterSet: "AL16UTF16", - sourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json - */ -async function createAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource: AutonomousDatabase = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Regular", - dataStorageSizeInTbs: 1, - dbVersion: "18.4.0.0", - displayName: "example_autonomous_databasedb1", - ncharacterSet: "AL16UTF16", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create.json - */ -async function createCloneAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource: AutonomousDatabase = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - cloneType: "Full", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Clone", - dataStorageSizeInTbs: 1, - displayName: "example_autonomous_databasedb1_clone", - ncharacterSet: "AL16UTF16", - sourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesCreateOrUpdate(); - autonomousDatabasesCreateOrUpdateClone(); - createAutonomousDatabase(); - createCloneAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesDeleteSample.ts deleted file mode 100644 index 89652ecb0645..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a AutonomousDatabase - * - * @summary Delete a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_delete.json - */ -async function deleteAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -async function main() { - deleteAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesFailoverSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesFailoverSample.ts deleted file mode 100644 index 5c0ce573e458..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesFailoverSample.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PeerDbDetails, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Perform failover action on Autonomous Database - * - * @summary Perform failover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json - */ -async function autonomousDatabasesFailover() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: PeerDbDetails = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginFailoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Perform failover action on Autonomous Database - * - * @summary Perform failover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json - */ -async function performFailoverActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: PeerDbDetails = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginFailoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesFailover(); - performFailoverActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesGenerateWalletSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesGenerateWalletSample.ts deleted file mode 100644 index 5f029f0ead8c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesGenerateWalletSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GenerateAutonomousDatabaseWalletDetails, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Generate wallet action on Autonomous Database - * - * @summary Generate wallet action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_generateWallet.json - */ -async function generateWalletActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: GenerateAutonomousDatabaseWalletDetails = { - generateType: "Single", - isRegional: false, - password: "SecretPlaceholder", - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.generateWallet( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - generateWalletActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesGetSample.ts deleted file mode 100644 index ffd29f6309b4..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesGetSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabase - * - * @summary Get a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json - */ -async function autonomousDatabasesGet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.get( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a AutonomousDatabase - * - * @summary Get a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json - */ -async function getAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.get( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesGet(); - getAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesListByResourceGroupSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesListByResourceGroupSample.ts deleted file mode 100644 index 8f68800d3ae6..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabase resources by resource group - * - * @summary List AutonomousDatabase resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listByResourceGroup.json - */ -async function listAutonomousDatabaseByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabases.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDatabaseByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesListBySubscriptionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesListBySubscriptionSample.ts deleted file mode 100644 index 54127fd21854..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabase resources by subscription ID - * - * @summary List AutonomousDatabase resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listBySubscription.json - */ -async function listAutonomousDatabaseBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabases.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDatabaseBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesRestoreSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesRestoreSample.ts deleted file mode 100644 index 968cf0b7994e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesRestoreSample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RestoreAutonomousDatabaseDetails, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restores an Autonomous Database based on the provided request parameters. - * - * @summary Restores an Autonomous Database based on the provided request parameters. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json - */ -async function autonomousDatabasesRestore() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: RestoreAutonomousDatabaseDetails = { - timestamp: new Date("2024-04-23T00:00:00.000Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginRestoreAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Restores an Autonomous Database based on the provided request parameters. - * - * @summary Restores an Autonomous Database based on the provided request parameters. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json - */ -async function performRestoreActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: RestoreAutonomousDatabaseDetails = { - timestamp: new Date("2024-04-23T00:00:00.000Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginRestoreAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesRestore(); - performRestoreActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesShrinkSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesShrinkSample.ts deleted file mode 100644 index 0603d98e98f1..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesShrinkSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to This operation shrinks the current allocated storage down to the current actual used data storage. - * - * @summary This operation shrinks the current allocated storage down to the current actual used data storage. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_shrink.json - */ -async function performShrinkActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginShrinkAndWait( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -async function main() { - performShrinkActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesSwitchoverSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesSwitchoverSample.ts deleted file mode 100644 index 61c2e5a44076..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesSwitchoverSample.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PeerDbDetails, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Perform switchover action on Autonomous Database - * - * @summary Perform switchover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json - */ -async function autonomousDatabasesSwitchover() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: PeerDbDetails = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginSwitchoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Perform switchover action on Autonomous Database - * - * @summary Perform switchover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json - */ -async function performSwitchoverActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: PeerDbDetails = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginSwitchoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesSwitchover(); - performSwitchoverActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesUpdateSample.ts deleted file mode 100644 index 01eb25ce22c3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/autonomousDatabasesUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutonomousDatabaseUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a AutonomousDatabase - * - * @summary Update a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_patch.json - */ -async function patchAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const properties: AutonomousDatabaseUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - properties, - ); - console.log(result); -} - -async function main() { - patchAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresAddStorageCapacitySample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresAddStorageCapacitySample.ts deleted file mode 100644 index dec80ac0cb3d..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresAddStorageCapacitySample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Perform add storage capacity on exadata infra - * - * @summary Perform add storage capacity on exadata infra - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_addStorageCapacity.json - */ -async function performAddStorageCapacityOnExadataInfra() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.cloudExadataInfrastructures.beginAddStorageCapacityAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - performAddStorageCapacityOnExadataInfra(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresCreateOrUpdateSample.ts deleted file mode 100644 index 3e0895e943f3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CloudExadataInfrastructure, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a CloudExadataInfrastructure - * - * @summary Create a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_create.json - */ -async function createExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const resource: CloudExadataInfrastructure = { - location: "eastus", - properties: { - computeCount: 100, - displayName: "infra 1", - shape: "EXADATA.X9M", - storageCount: 10, - }, - tags: { tagK1: "tagV1" }, - zones: ["1"], - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.cloudExadataInfrastructures.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - resource, - ); - console.log(result); -} - -async function main() { - createExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresDeleteSample.ts deleted file mode 100644 index 58ae135692da..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a CloudExadataInfrastructure - * - * @summary Delete a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_delete.json - */ -async function deleteExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.beginDeleteAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - deleteExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresGetSample.ts deleted file mode 100644 index 90f0dde6fe43..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a CloudExadataInfrastructure - * - * @summary Get a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_get.json - */ -async function getExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.get( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - getExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresListByResourceGroupSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresListByResourceGroupSample.ts deleted file mode 100644 index 39c7f65aa15a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List CloudExadataInfrastructure resources by resource group - * - * @summary List CloudExadataInfrastructure resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listByResourceGroup.json - */ -async function listExadataInfrastructureByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudExadataInfrastructures.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataInfrastructureByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresListBySubscriptionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresListBySubscriptionSample.ts deleted file mode 100644 index f7cd8e154245..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List CloudExadataInfrastructure resources by subscription ID - * - * @summary List CloudExadataInfrastructure resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listBySubscription.json - */ -async function listExadataInfrastructureBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudExadataInfrastructures.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataInfrastructureBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresUpdateSample.ts deleted file mode 100644 index ac140b8403ce..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudExadataInfrastructuresUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CloudExadataInfrastructureUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a CloudExadataInfrastructure - * - * @summary Update a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_patch.json - */ -async function patchExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const properties: CloudExadataInfrastructureUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.beginUpdateAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - properties, - ); - console.log(result); -} - -async function main() { - patchExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersAddVmsSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersAddVmsSample.ts deleted file mode 100644 index 825bad6f5078..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersAddVmsSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AddRemoveDbNode, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Add VMs to the VM Cluster - * - * @summary Add VMs to the VM Cluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_addVms.json - */ -async function addVMSToVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body: AddRemoveDbNode = { dbServers: ["ocid1..aaaa", "ocid1..aaaaaa"] }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginAddVmsAndWait( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - addVMSToVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersCreateOrUpdateSample.ts deleted file mode 100644 index 2b3c5caed92f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersCreateOrUpdateSample.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CloudVmCluster, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a CloudVmCluster - * - * @summary Create a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_create.json - */ -async function createVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const resource: CloudVmCluster = { - location: "eastus", - properties: { - backupSubnetCidr: "172.17.5.0/24", - cloudExadataInfrastructureId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", - clusterName: "cluster1", - cpuCoreCount: 2, - dataCollectionOptions: { - isDiagnosticsEventsEnabled: false, - isHealthMonitoringEnabled: false, - isIncidentLogsEnabled: false, - }, - dataStoragePercentage: 100, - dataStorageSizeInTbs: 1000, - dbNodeStorageSizeInGbs: 1000, - dbServers: ["ocid1..aaaa"], - displayName: "cluster 1", - domain: "domain1", - giVersion: "19.0.0.0", - hostname: "hostname1", - isLocalBackupEnabled: false, - isSparseDiskgroupEnabled: false, - licenseModel: "LicenseIncluded", - memorySizeInGbs: 1000, - nsgCidrs: [ - { - destinationPortRange: { max: 1522, min: 1520 }, - source: "10.0.0.0/16", - }, - { source: "10.10.0.0/24" }, - ], - ocpuCount: 3, - scanListenerPortTcp: 1050, - scanListenerPortTcpSsl: 1025, - sshPublicKeys: ["ssh-key 1"], - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - timeZone: "UTC", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudvmclustername, - resource, - ); - console.log(result); -} - -async function main() { - createVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersDeleteSample.ts deleted file mode 100644 index d3e4ea8cf1f5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a CloudVmCluster - * - * @summary Delete a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_delete.json - */ -async function deleteVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginDeleteAndWait( - resourceGroupName, - cloudvmclustername, - ); - console.log(result); -} - -async function main() { - deleteVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersGetSample.ts deleted file mode 100644 index ca60abab1fbe..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a CloudVmCluster - * - * @summary Get a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_get.json - */ -async function getVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.get( - resourceGroupName, - cloudvmclustername, - ); - console.log(result); -} - -async function main() { - getVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListByResourceGroupSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListByResourceGroupSample.ts deleted file mode 100644 index 7abc2031fa5e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List CloudVmCluster resources by resource group - * - * @summary List CloudVmCluster resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listByResourceGroup.json - */ -async function listVMClustersByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudVmClusters.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVMClustersByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListBySubscriptionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListBySubscriptionSample.ts deleted file mode 100644 index ceb21225878a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List CloudVmCluster resources by subscription ID - * - * @summary List CloudVmCluster resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listBySubscription.json - */ -async function listVMClustersBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudVmClusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVMClustersBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListPrivateIPAddressesSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListPrivateIPAddressesSample.ts deleted file mode 100644 index b32ad2621237..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersListPrivateIPAddressesSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PrivateIpAddressesFilter, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Private IP Addresses by the provided filter - * - * @summary List Private IP Addresses by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listPrivateIpAddresses.json - */ -async function listPrivateIPAddressesForVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body: PrivateIpAddressesFilter = { - subnetId: "ocid1..aaaaaa", - vnicId: "ocid1..aaaaa", - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.listPrivateIpAddresses( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - listPrivateIPAddressesForVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersRemoveVmsSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersRemoveVmsSample.ts deleted file mode 100644 index 61598eb2ffa5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersRemoveVmsSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AddRemoveDbNode, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Remove VMs from the VM Cluster - * - * @summary Remove VMs from the VM Cluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_removeVms.json - */ -async function removeVMSFromVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body: AddRemoveDbNode = { dbServers: ["ocid1..aaaa"] }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginRemoveVmsAndWait( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - removeVMSFromVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersUpdateSample.ts deleted file mode 100644 index 04a8ed9b9536..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/cloudVMClustersUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CloudVmClusterUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a CloudVmCluster - * - * @summary Update a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_patch.json - */ -async function patchVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const properties: CloudVmClusterUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginUpdateAndWait( - resourceGroupName, - cloudvmclustername, - properties, - ); - console.log(result); -} - -async function main() { - patchVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesActionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesActionSample.ts deleted file mode 100644 index d316c66451f3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesActionSample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DbNodeAction, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to VM actions on DbNode of VM Cluster by the provided filter - * - * @summary VM actions on DbNode of VM Cluster by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json - */ -async function dbNodesAction() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const body: DbNodeAction = { action: "Start" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.beginActionAndWait( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to VM actions on DbNode of VM Cluster by the provided filter - * - * @summary VM actions on DbNode of VM Cluster by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json - */ -async function vmActionsOnDbNodesOfVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const body: DbNodeAction = { action: "Start" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.beginActionAndWait( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - body, - ); - console.log(result); -} - -async function main() { - dbNodesAction(); - vmActionsOnDbNodesOfVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesGetSample.ts deleted file mode 100644 index dc6a9477b326..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DbNode - * - * @summary Get a DbNode - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_get.json - */ -async function getDbNode() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.get( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - ); - console.log(result); -} - -async function main() { - getDbNode(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesListByCloudVMClusterSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesListByCloudVMClusterSample.ts deleted file mode 100644 index a9fa4184625a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbNodesListByCloudVMClusterSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DbNode resources by CloudVmCluster - * - * @summary List DbNode resources by CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_listByParent.json - */ -async function listDbNodesByVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbNodes.listByCloudVmCluster( - resourceGroupName, - cloudvmclustername, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbNodesByVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbServersGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbServersGetSample.ts deleted file mode 100644 index f7c2dde2c1f9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbServersGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DbServer - * - * @summary Get a DbServer - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_get.json - */ -async function getDbServerByParent() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const dbserverocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbServers.get( - resourceGroupName, - cloudexadatainfrastructurename, - dbserverocid, - ); - console.log(result); -} - -async function main() { - getDbServerByParent(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbServersListByCloudExadataInfrastructureSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbServersListByCloudExadataInfrastructureSample.ts deleted file mode 100644 index 86bc3737e7d1..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbServersListByCloudExadataInfrastructureSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DbServer resources by CloudExadataInfrastructure - * - * @summary List DbServer resources by CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_listByParent.json - */ -async function listDbServersByExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbServers.listByCloudExadataInfrastructure( - resourceGroupName, - cloudexadatainfrastructurename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbServersByExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbSystemShapesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbSystemShapesGetSample.ts deleted file mode 100644 index 9047c3f0948f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbSystemShapesGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DbSystemShape - * - * @summary Get a DbSystemShape - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_get.json - */ -async function getADbSystemShapeByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dbsystemshapename = "EXADATA.X9M"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbSystemShapes.get(location, dbsystemshapename); - console.log(result); -} - -async function main() { - getADbSystemShapeByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbSystemShapesListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbSystemShapesListByLocationSample.ts deleted file mode 100644 index f92c19fed7c0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dbSystemShapesListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DbSystemShape resources by Location - * - * @summary List DbSystemShape resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_listByLocation.json - */ -async function listDbSystemShapesByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbSystemShapes.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbSystemShapesByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateViewsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateViewsGetSample.ts deleted file mode 100644 index 5b6e0cbbaf4b..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateViewsGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DnsPrivateView - * - * @summary Get a DnsPrivateView - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_get.json - */ -async function getADnsPrivateViewByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dnsprivateviewocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dnsPrivateViews.get(location, dnsprivateviewocid); - console.log(result); -} - -async function main() { - getADnsPrivateViewByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateViewsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateViewsListByLocationSample.ts deleted file mode 100644 index 27e5e719013a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateViewsListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DnsPrivateView resources by Location - * - * @summary List DnsPrivateView resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_listByLocation.json - */ -async function listDnsPrivateViewsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dnsPrivateViews.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDnsPrivateViewsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateZonesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateZonesGetSample.ts deleted file mode 100644 index 9d502aead013..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateZonesGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DnsPrivateZone - * - * @summary Get a DnsPrivateZone - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_get.json - */ -async function getADnsPrivateZoneByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dnsprivatezonename = "example-dns-private-zone"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dnsPrivateZones.get(location, dnsprivatezonename); - console.log(result); -} - -async function main() { - getADnsPrivateZoneByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateZonesListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateZonesListByLocationSample.ts deleted file mode 100644 index e2e9fb9aa964..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/dnsPrivateZonesListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DnsPrivateZone resources by Location - * - * @summary List DnsPrivateZone resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_listByLocation.json - */ -async function listDnsPrivateZonesByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dnsPrivateZones.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDnsPrivateZonesByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/giVersionsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/giVersionsGetSample.ts deleted file mode 100644 index 5523f6c23e1f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/giVersionsGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a GiVersion - * - * @summary Get a GiVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_get.json - */ -async function getAGiVersionByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const giversionname = "19.0.0.0"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.giVersions.get(location, giversionname); - console.log(result); -} - -async function main() { - getAGiVersionByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/giVersionsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/giVersionsListByLocationSample.ts deleted file mode 100644 index 77008bf966a7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/giVersionsListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List GiVersion resources by Location - * - * @summary List GiVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_listByLocation.json - */ -async function listGiVersionsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.giVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listGiVersionsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/operationsListSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/operationsListSample.ts deleted file mode 100644 index 283f14fa92b9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/operations_list.json - */ -async function listOperations() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOperations(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsCreateOrUpdateSample.ts deleted file mode 100644 index f285f04a8239..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - OracleSubscription, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a OracleSubscription - * - * @summary Create a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_create.json - */ -async function createOrUpdateOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resource: OracleSubscription = { - plan: { - name: "plan1", - product: "product1", - promotionCode: "none", - publisher: "publisher1", - version: "alpha", - }, - properties: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginCreateOrUpdateAndWait(resource); - console.log(result); -} - -async function main() { - createOrUpdateOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsDeleteSample.ts deleted file mode 100644 index a8731e7d04d1..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsDeleteSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a OracleSubscription - * - * @summary Delete a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_delete.json - */ -async function deleteOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.beginDeleteAndWait(); - console.log(result); -} - -async function main() { - deleteOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsGetSample.ts deleted file mode 100644 index 62939017706c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsGetSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a OracleSubscription - * - * @summary Get a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_get.json - */ -async function getOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.get(); - console.log(result); -} - -async function main() { - getOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListActivationLinksSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListActivationLinksSample.ts deleted file mode 100644 index ecacead41e00..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListActivationLinksSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Activation Links - * - * @summary List Activation Links - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listActivationLinks.json - */ -async function listActivationLinksForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginListActivationLinksAndWait(); - console.log(result); -} - -async function main() { - listActivationLinksForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListBySubscriptionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListBySubscriptionSample.ts deleted file mode 100644 index aee03d632521..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List OracleSubscription resources by subscription ID - * - * @summary List OracleSubscription resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listBySubscription.json - */ -async function listOracleSubscriptionsBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.oracleSubscriptions.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOracleSubscriptionsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListCloudAccountDetailsSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListCloudAccountDetailsSample.ts deleted file mode 100644 index ba5b38c114a0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListCloudAccountDetailsSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Cloud Account Details - * - * @summary List Cloud Account Details - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listCloudAccountDetails.json - */ -async function listCloudAccountDetailsForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginListCloudAccountDetailsAndWait(); - console.log(result); -} - -async function main() { - listCloudAccountDetailsForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts deleted file mode 100644 index 6fca209f23c6..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Saas Subscription Details - * - * @summary List Saas Subscription Details - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listSaasSubscriptionDetails.json - */ -async function listSaasSubscriptionDetailsForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginListSaasSubscriptionDetailsAndWait(); - console.log(result); -} - -async function main() { - listSaasSubscriptionDetailsForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsUpdateSample.ts deleted file mode 100644 index a8e81ad1eb83..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/oracleSubscriptionsUpdateSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - OracleSubscriptionUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a OracleSubscription - * - * @summary Update a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_patch.json - */ -async function patchOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const properties: OracleSubscriptionUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginUpdateAndWait(properties); - console.log(result); -} - -async function main() { - patchOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/systemVersionsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/systemVersionsGetSample.ts deleted file mode 100644 index f1504473e0e5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/systemVersionsGetSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a SystemVersion - * - * @summary Get a SystemVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json - */ -async function getExadataSystemVersion() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const systemversionname = "22.x"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.systemVersions.get(location, systemversionname); - console.log(result); -} - -/** - * This sample demonstrates how to Get a SystemVersion - * - * @summary Get a SystemVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json - */ -async function systemVersionsListSystemVersions() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const systemversionname = "22.x"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.systemVersions.get(location, systemversionname); - console.log(result); -} - -async function main() { - getExadataSystemVersion(); - systemVersionsListSystemVersions(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/systemVersionsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/systemVersionsListByLocationSample.ts deleted file mode 100644 index c7aab3f1749f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/systemVersionsListByLocationSample.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List SystemVersion resources by Location - * - * @summary List SystemVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json - */ -async function listExadataSystemVersionsByTheProvidedFilter() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.systemVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List SystemVersion resources by Location - * - * @summary List SystemVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json - */ -async function systemVersionsListByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.systemVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataSystemVersionsByTheProvidedFilter(); - systemVersionsListByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesCreateOrUpdateSample.ts deleted file mode 100644 index 1dd5be9dda3a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesCreateOrUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - VirtualNetworkAddress, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a VirtualNetworkAddress - * - * @summary Create a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_create.json - */ -async function createVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const resource: VirtualNetworkAddress = { - properties: { ipAddress: "192.168.0.1", vmOcid: "ocid1..aaaa" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.virtualNetworkAddresses.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - resource, - ); - console.log(result); -} - -async function main() { - createVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesDeleteSample.ts deleted file mode 100644 index 35c5cde03d95..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a VirtualNetworkAddress - * - * @summary Delete a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_delete.json - */ -async function deleteVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.virtualNetworkAddresses.beginDeleteAndWait( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - ); - console.log(result); -} - -async function main() { - deleteVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesGetSample.ts deleted file mode 100644 index a15a724bfba9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a VirtualNetworkAddress - * - * @summary Get a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_get.json - */ -async function getVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.virtualNetworkAddresses.get( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - ); - console.log(result); -} - -async function main() { - getVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesListByCloudVMClusterSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesListByCloudVMClusterSample.ts deleted file mode 100644 index 573ad2ac40b7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples-dev/virtualNetworkAddressesListByCloudVMClusterSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List VirtualNetworkAddress resources by CloudVmCluster - * - * @summary List VirtualNetworkAddress resources by CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_listByParent.json - */ -async function listVirtualNetworkAddressesByVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualNetworkAddresses.listByCloudVmCluster( - resourceGroupName, - cloudvmclustername, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualNetworkAddressesByVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/README.md b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/README.md deleted file mode 100644 index 33208bec1b68..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/README.md +++ /dev/null @@ -1,180 +0,0 @@ -# client library samples for JavaScript - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [autonomousDatabaseBackupsCreateOrUpdateSample.js][autonomousdatabasebackupscreateorupdatesample] | Create a AutonomousDatabaseBackup x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json | -| [autonomousDatabaseBackupsDeleteSample.js][autonomousdatabasebackupsdeletesample] | Delete a AutonomousDatabaseBackup x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json | -| [autonomousDatabaseBackupsGetSample.js][autonomousdatabasebackupsgetsample] | Get a AutonomousDatabaseBackup x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json | -| [autonomousDatabaseBackupsListByAutonomousDatabaseSample.js][autonomousdatabasebackupslistbyautonomousdatabasesample] | List AutonomousDatabaseBackup resources by AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json | -| [autonomousDatabaseBackupsUpdateSample.js][autonomousdatabasebackupsupdatesample] | Update a AutonomousDatabaseBackup x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json | -| [autonomousDatabaseCharacterSetsGetSample.js][autonomousdatabasecharactersetsgetsample] | Get a AutonomousDatabaseCharacterSet x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_get.json | -| [autonomousDatabaseCharacterSetsListByLocationSample.js][autonomousdatabasecharactersetslistbylocationsample] | List AutonomousDatabaseCharacterSet resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_listByLocation.json | -| [autonomousDatabaseNationalCharacterSetsGetSample.js][autonomousdatabasenationalcharactersetsgetsample] | Get a AutonomousDatabaseNationalCharacterSet x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_get.json | -| [autonomousDatabaseNationalCharacterSetsListByLocationSample.js][autonomousdatabasenationalcharactersetslistbylocationsample] | List AutonomousDatabaseNationalCharacterSet resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_listByLocation.json | -| [autonomousDatabaseVersionsGetSample.js][autonomousdatabaseversionsgetsample] | Get a AutonomousDbVersion x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_get.json | -| [autonomousDatabaseVersionsListByLocationSample.js][autonomousdatabaseversionslistbylocationsample] | List AutonomousDbVersion resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_listByLocation.json | -| [autonomousDatabasesCreateOrUpdateSample.js][autonomousdatabasescreateorupdatesample] | Create a AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json | -| [autonomousDatabasesDeleteSample.js][autonomousdatabasesdeletesample] | Delete a AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_delete.json | -| [autonomousDatabasesFailoverSample.js][autonomousdatabasesfailoversample] | Perform failover action on Autonomous Database x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json | -| [autonomousDatabasesGenerateWalletSample.js][autonomousdatabasesgeneratewalletsample] | Generate wallet action on Autonomous Database x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_generateWallet.json | -| [autonomousDatabasesGetSample.js][autonomousdatabasesgetsample] | Get a AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json | -| [autonomousDatabasesListByResourceGroupSample.js][autonomousdatabaseslistbyresourcegroupsample] | List AutonomousDatabase resources by resource group x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listByResourceGroup.json | -| [autonomousDatabasesListBySubscriptionSample.js][autonomousdatabaseslistbysubscriptionsample] | List AutonomousDatabase resources by subscription ID x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listBySubscription.json | -| [autonomousDatabasesRestoreSample.js][autonomousdatabasesrestoresample] | Restores an Autonomous Database based on the provided request parameters. x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json | -| [autonomousDatabasesShrinkSample.js][autonomousdatabasesshrinksample] | This operation shrinks the current allocated storage down to the current actual used data storage. x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_shrink.json | -| [autonomousDatabasesSwitchoverSample.js][autonomousdatabasesswitchoversample] | Perform switchover action on Autonomous Database x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json | -| [autonomousDatabasesUpdateSample.js][autonomousdatabasesupdatesample] | Update a AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_patch.json | -| [cloudExadataInfrastructuresAddStorageCapacitySample.js][cloudexadatainfrastructuresaddstoragecapacitysample] | Perform add storage capacity on exadata infra x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_addStorageCapacity.json | -| [cloudExadataInfrastructuresCreateOrUpdateSample.js][cloudexadatainfrastructurescreateorupdatesample] | Create a CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_create.json | -| [cloudExadataInfrastructuresDeleteSample.js][cloudexadatainfrastructuresdeletesample] | Delete a CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_delete.json | -| [cloudExadataInfrastructuresGetSample.js][cloudexadatainfrastructuresgetsample] | Get a CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_get.json | -| [cloudExadataInfrastructuresListByResourceGroupSample.js][cloudexadatainfrastructureslistbyresourcegroupsample] | List CloudExadataInfrastructure resources by resource group x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listByResourceGroup.json | -| [cloudExadataInfrastructuresListBySubscriptionSample.js][cloudexadatainfrastructureslistbysubscriptionsample] | List CloudExadataInfrastructure resources by subscription ID x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listBySubscription.json | -| [cloudExadataInfrastructuresUpdateSample.js][cloudexadatainfrastructuresupdatesample] | Update a CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_patch.json | -| [cloudVMClustersAddVmsSample.js][cloudvmclustersaddvmssample] | Add VMs to the VM Cluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_addVms.json | -| [cloudVMClustersCreateOrUpdateSample.js][cloudvmclusterscreateorupdatesample] | Create a CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_create.json | -| [cloudVMClustersDeleteSample.js][cloudvmclustersdeletesample] | Delete a CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_delete.json | -| [cloudVMClustersGetSample.js][cloudvmclustersgetsample] | Get a CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_get.json | -| [cloudVMClustersListByResourceGroupSample.js][cloudvmclusterslistbyresourcegroupsample] | List CloudVmCluster resources by resource group x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listByResourceGroup.json | -| [cloudVMClustersListBySubscriptionSample.js][cloudvmclusterslistbysubscriptionsample] | List CloudVmCluster resources by subscription ID x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listBySubscription.json | -| [cloudVMClustersListPrivateIPAddressesSample.js][cloudvmclusterslistprivateipaddressessample] | List Private IP Addresses by the provided filter x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listPrivateIpAddresses.json | -| [cloudVMClustersRemoveVmsSample.js][cloudvmclustersremovevmssample] | Remove VMs from the VM Cluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_removeVms.json | -| [cloudVMClustersUpdateSample.js][cloudvmclustersupdatesample] | Update a CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_patch.json | -| [dbNodesActionSample.js][dbnodesactionsample] | VM actions on DbNode of VM Cluster by the provided filter x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json | -| [dbNodesGetSample.js][dbnodesgetsample] | Get a DbNode x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_get.json | -| [dbNodesListByCloudVMClusterSample.js][dbnodeslistbycloudvmclustersample] | List DbNode resources by CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_listByParent.json | -| [dbServersGetSample.js][dbserversgetsample] | Get a DbServer x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_get.json | -| [dbServersListByCloudExadataInfrastructureSample.js][dbserverslistbycloudexadatainfrastructuresample] | List DbServer resources by CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_listByParent.json | -| [dbSystemShapesGetSample.js][dbsystemshapesgetsample] | Get a DbSystemShape x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_get.json | -| [dbSystemShapesListByLocationSample.js][dbsystemshapeslistbylocationsample] | List DbSystemShape resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_listByLocation.json | -| [dnsPrivateViewsGetSample.js][dnsprivateviewsgetsample] | Get a DnsPrivateView x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_get.json | -| [dnsPrivateViewsListByLocationSample.js][dnsprivateviewslistbylocationsample] | List DnsPrivateView resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_listByLocation.json | -| [dnsPrivateZonesGetSample.js][dnsprivatezonesgetsample] | Get a DnsPrivateZone x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_get.json | -| [dnsPrivateZonesListByLocationSample.js][dnsprivatezoneslistbylocationsample] | List DnsPrivateZone resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_listByLocation.json | -| [giVersionsGetSample.js][giversionsgetsample] | Get a GiVersion x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_get.json | -| [giVersionsListByLocationSample.js][giversionslistbylocationsample] | List GiVersion resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_listByLocation.json | -| [operationsListSample.js][operationslistsample] | List the operations for the provider x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/operations_list.json | -| [oracleSubscriptionsCreateOrUpdateSample.js][oraclesubscriptionscreateorupdatesample] | Create a OracleSubscription x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_create.json | -| [oracleSubscriptionsDeleteSample.js][oraclesubscriptionsdeletesample] | Delete a OracleSubscription x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_delete.json | -| [oracleSubscriptionsGetSample.js][oraclesubscriptionsgetsample] | Get a OracleSubscription x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_get.json | -| [oracleSubscriptionsListActivationLinksSample.js][oraclesubscriptionslistactivationlinkssample] | List Activation Links x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listActivationLinks.json | -| [oracleSubscriptionsListBySubscriptionSample.js][oraclesubscriptionslistbysubscriptionsample] | List OracleSubscription resources by subscription ID x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listBySubscription.json | -| [oracleSubscriptionsListCloudAccountDetailsSample.js][oraclesubscriptionslistcloudaccountdetailssample] | List Cloud Account Details x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listCloudAccountDetails.json | -| [oracleSubscriptionsListSaasSubscriptionDetailsSample.js][oraclesubscriptionslistsaassubscriptiondetailssample] | List Saas Subscription Details x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listSaasSubscriptionDetails.json | -| [oracleSubscriptionsUpdateSample.js][oraclesubscriptionsupdatesample] | Update a OracleSubscription x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_patch.json | -| [systemVersionsGetSample.js][systemversionsgetsample] | Get a SystemVersion x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json | -| [systemVersionsListByLocationSample.js][systemversionslistbylocationsample] | List SystemVersion resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json | -| [virtualNetworkAddressesCreateOrUpdateSample.js][virtualnetworkaddressescreateorupdatesample] | Create a VirtualNetworkAddress x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_create.json | -| [virtualNetworkAddressesDeleteSample.js][virtualnetworkaddressesdeletesample] | Delete a VirtualNetworkAddress x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_delete.json | -| [virtualNetworkAddressesGetSample.js][virtualnetworkaddressesgetsample] | Get a VirtualNetworkAddress x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_get.json | -| [virtualNetworkAddressesListByCloudVMClusterSample.js][virtualnetworkaddresseslistbycloudvmclustersample] | List VirtualNetworkAddress resources by CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_listByParent.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node autonomousDatabaseBackupsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env ORACLEDATABASE_SUBSCRIPTION_ID="" ORACLEDATABASE_RESOURCE_GROUP="" node autonomousDatabaseBackupsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[autonomousdatabasebackupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsCreateOrUpdateSample.js -[autonomousdatabasebackupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsDeleteSample.js -[autonomousdatabasebackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsGetSample.js -[autonomousdatabasebackupslistbyautonomousdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsListByAutonomousDatabaseSample.js -[autonomousdatabasebackupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsUpdateSample.js -[autonomousdatabasecharactersetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsGetSample.js -[autonomousdatabasecharactersetslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsListByLocationSample.js -[autonomousdatabasenationalcharactersetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsGetSample.js -[autonomousdatabasenationalcharactersetslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsListByLocationSample.js -[autonomousdatabaseversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsGetSample.js -[autonomousdatabaseversionslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsListByLocationSample.js -[autonomousdatabasescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesCreateOrUpdateSample.js -[autonomousdatabasesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesDeleteSample.js -[autonomousdatabasesfailoversample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesFailoverSample.js -[autonomousdatabasesgeneratewalletsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGenerateWalletSample.js -[autonomousdatabasesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGetSample.js -[autonomousdatabaseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListByResourceGroupSample.js -[autonomousdatabaseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListBySubscriptionSample.js -[autonomousdatabasesrestoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesRestoreSample.js -[autonomousdatabasesshrinksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesShrinkSample.js -[autonomousdatabasesswitchoversample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesSwitchoverSample.js -[autonomousdatabasesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesUpdateSample.js -[cloudexadatainfrastructuresaddstoragecapacitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresAddStorageCapacitySample.js -[cloudexadatainfrastructurescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresCreateOrUpdateSample.js -[cloudexadatainfrastructuresdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresDeleteSample.js -[cloudexadatainfrastructuresgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresGetSample.js -[cloudexadatainfrastructureslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListByResourceGroupSample.js -[cloudexadatainfrastructureslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListBySubscriptionSample.js -[cloudexadatainfrastructuresupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresUpdateSample.js -[cloudvmclustersaddvmssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersAddVmsSample.js -[cloudvmclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersCreateOrUpdateSample.js -[cloudvmclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersDeleteSample.js -[cloudvmclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersGetSample.js -[cloudvmclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListByResourceGroupSample.js -[cloudvmclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListBySubscriptionSample.js -[cloudvmclusterslistprivateipaddressessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListPrivateIPAddressesSample.js -[cloudvmclustersremovevmssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersRemoveVmsSample.js -[cloudvmclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersUpdateSample.js -[dbnodesactionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesActionSample.js -[dbnodesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesGetSample.js -[dbnodeslistbycloudvmclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesListByCloudVMClusterSample.js -[dbserversgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersGetSample.js -[dbserverslistbycloudexadatainfrastructuresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersListByCloudExadataInfrastructureSample.js -[dbsystemshapesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesGetSample.js -[dbsystemshapeslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesListByLocationSample.js -[dnsprivateviewsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsGetSample.js -[dnsprivateviewslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsListByLocationSample.js -[dnsprivatezonesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesGetSample.js -[dnsprivatezoneslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesListByLocationSample.js -[giversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsGetSample.js -[giversionslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsListByLocationSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/operationsListSample.js -[oraclesubscriptionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsCreateOrUpdateSample.js -[oraclesubscriptionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsDeleteSample.js -[oraclesubscriptionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsGetSample.js -[oraclesubscriptionslistactivationlinkssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListActivationLinksSample.js -[oraclesubscriptionslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListBySubscriptionSample.js -[oraclesubscriptionslistcloudaccountdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListCloudAccountDetailsSample.js -[oraclesubscriptionslistsaassubscriptiondetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListSaasSubscriptionDetailsSample.js -[oraclesubscriptionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsUpdateSample.js -[systemversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsGetSample.js -[systemversionslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsListByLocationSample.js -[virtualnetworkaddressescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesCreateOrUpdateSample.js -[virtualnetworkaddressesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesDeleteSample.js -[virtualnetworkaddressesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesGetSample.js -[virtualnetworkaddresseslistbycloudvmclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesListByCloudVMClusterSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-oracledatabase?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/oracledatabase/arm-oracledatabase/README.md diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsCreateOrUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsCreateOrUpdateSample.js deleted file mode 100644 index 971173eb4fba..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsCreateOrUpdateSample.js +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a AutonomousDatabaseBackup - * - * @summary Create a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json - */ -async function autonomousDatabaseBackupsCreateOrUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const resource = { - properties: { - autonomousDatabaseOcid: "ocid1.autonomousdatabase.oc1..aaaaa3klq", - displayName: "Nightly Backup", - retentionPeriodInDays: 365, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabaseBackup - * - * @summary Create a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json - */ -async function createAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const resource = { - properties: { - autonomousDatabaseOcid: "ocid1.autonomousdatabase.oc1..aaaaa3klq", - displayName: "Nightly Backup", - retentionPeriodInDays: 365, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - resource, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsCreateOrUpdate(); - createAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsDeleteSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsDeleteSample.js deleted file mode 100644 index 460ef47e3734..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsDeleteSample.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a AutonomousDatabaseBackup - * - * @summary Delete a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json - */ -async function autonomousDatabaseBackupsDelete() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete a AutonomousDatabaseBackup - * - * @summary Delete a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json - */ -async function deleteAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsDelete(); - deleteAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsGetSample.js deleted file mode 100644 index ef1b0efa42df..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsGetSample.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseBackup - * - * @summary Get a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json - */ -async function autonomousDatabaseBackupsGet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.get( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a AutonomousDatabaseBackup - * - * @summary Get a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json - */ -async function getAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.get( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsGet(); - getAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsListByAutonomousDatabaseSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsListByAutonomousDatabaseSample.js deleted file mode 100644 index c14d1cbff33d..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsListByAutonomousDatabaseSample.js +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseBackup resources by AutonomousDatabase - * - * @summary List AutonomousDatabaseBackup resources by AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json - */ -async function autonomousDatabaseBackupsListByAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseBackups.listByAutonomousDatabase( - resourceGroupName, - autonomousdatabasename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List AutonomousDatabaseBackup resources by AutonomousDatabase - * - * @summary List AutonomousDatabaseBackup resources by AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json - */ -async function listAutonomousDatabaseBackupsByAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseBackups.listByAutonomousDatabase( - resourceGroupName, - autonomousdatabasename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - autonomousDatabaseBackupsListByAutonomousDatabase(); - listAutonomousDatabaseBackupsByAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsUpdateSample.js deleted file mode 100644 index d5a3dc0a4ee0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseBackupsUpdateSample.js +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a AutonomousDatabaseBackup - * - * @summary Update a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json - */ -async function autonomousDatabaseBackupsUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update a AutonomousDatabaseBackup - * - * @summary Update a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json - */ -async function patchAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - properties, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsUpdate(); - patchAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsGetSample.js deleted file mode 100644 index f855e69c8507..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseCharacterSet - * - * @summary Get a AutonomousDatabaseCharacterSet - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_get.json - */ -async function getAutonomousDbCharacterSet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const adbscharsetname = "DATABASE"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseCharacterSets.get(location, adbscharsetname); - console.log(result); -} - -async function main() { - getAutonomousDbCharacterSet(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsListByLocationSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsListByLocationSample.js deleted file mode 100644 index 8da7feb62f01..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseCharacterSetsListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseCharacterSet resources by Location - * - * @summary List AutonomousDatabaseCharacterSet resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_listByLocation.json - */ -async function listAutonomousDbCharacterSetsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseCharacterSets.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDbCharacterSetsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsGetSample.js deleted file mode 100644 index 08041a8486aa..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsGetSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseNationalCharacterSet - * - * @summary Get a AutonomousDatabaseNationalCharacterSet - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_get.json - */ -async function getAutonomousDbNationalCharacterSet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const adbsncharsetname = "NATIONAL"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseNationalCharacterSets.get( - location, - adbsncharsetname, - ); - console.log(result); -} - -async function main() { - getAutonomousDbNationalCharacterSet(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsListByLocationSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsListByLocationSample.js deleted file mode 100644 index d4c26c692525..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseNationalCharacterSetsListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseNationalCharacterSet resources by Location - * - * @summary List AutonomousDatabaseNationalCharacterSet resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_listByLocation.json - */ -async function listAutonomousDbNationalCharacterSetsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseNationalCharacterSets.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDbNationalCharacterSetsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsGetSample.js deleted file mode 100644 index 7d4cc0d6e14d..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a AutonomousDbVersion - * - * @summary Get a AutonomousDbVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_get.json - */ -async function getAnAutonomousVersion() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const autonomousdbversionsname = "18.4.0.0"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseVersions.get(location, autonomousdbversionsname); - console.log(result); -} - -async function main() { - getAnAutonomousVersion(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsListByLocationSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsListByLocationSample.js deleted file mode 100644 index 47ecbbadd780..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabaseVersionsListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List AutonomousDbVersion resources by Location - * - * @summary List AutonomousDbVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_listByLocation.json - */ -async function listAnAutonomousVersionsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAnAutonomousVersionsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesCreateOrUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesCreateOrUpdateSample.js deleted file mode 100644 index b876147dd8e7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesCreateOrUpdateSample.js +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json - */ -async function autonomousDatabasesCreateOrUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Regular", - dataStorageSizeInTbs: 1, - dbVersion: "18.4.0.0", - displayName: "example_autonomous_databasedb1", - ncharacterSet: "AL16UTF16", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create.json - */ -async function autonomousDatabasesCreateOrUpdateClone() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - cloneType: "Full", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Clone", - dataStorageSizeInTbs: 1, - displayName: "example_autonomous_databasedb1_clone", - ncharacterSet: "AL16UTF16", - sourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json - */ -async function createAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Regular", - dataStorageSizeInTbs: 1, - dbVersion: "18.4.0.0", - displayName: "example_autonomous_databasedb1", - ncharacterSet: "AL16UTF16", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create.json - */ -async function createCloneAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - cloneType: "Full", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Clone", - dataStorageSizeInTbs: 1, - displayName: "example_autonomous_databasedb1_clone", - ncharacterSet: "AL16UTF16", - sourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesCreateOrUpdate(); - autonomousDatabasesCreateOrUpdateClone(); - createAutonomousDatabase(); - createCloneAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesDeleteSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesDeleteSample.js deleted file mode 100644 index 3973af6a1d60..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a AutonomousDatabase - * - * @summary Delete a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_delete.json - */ -async function deleteAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -async function main() { - deleteAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesFailoverSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesFailoverSample.js deleted file mode 100644 index 2ac64b5f20ac..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesFailoverSample.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Perform failover action on Autonomous Database - * - * @summary Perform failover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json - */ -async function autonomousDatabasesFailover() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginFailoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Perform failover action on Autonomous Database - * - * @summary Perform failover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json - */ -async function performFailoverActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginFailoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesFailover(); - performFailoverActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGenerateWalletSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGenerateWalletSample.js deleted file mode 100644 index e18d2747da94..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGenerateWalletSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Generate wallet action on Autonomous Database - * - * @summary Generate wallet action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_generateWallet.json - */ -async function generateWalletActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body = { - generateType: "Single", - isRegional: false, - password: "SecretPlaceholder", - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.generateWallet( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - generateWalletActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGetSample.js deleted file mode 100644 index a8bfa619b3ab..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesGetSample.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabase - * - * @summary Get a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json - */ -async function autonomousDatabasesGet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.get(resourceGroupName, autonomousdatabasename); - console.log(result); -} - -/** - * This sample demonstrates how to Get a AutonomousDatabase - * - * @summary Get a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json - */ -async function getAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.get(resourceGroupName, autonomousdatabasename); - console.log(result); -} - -async function main() { - autonomousDatabasesGet(); - getAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListByResourceGroupSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListByResourceGroupSample.js deleted file mode 100644 index 79484f2e2be9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List AutonomousDatabase resources by resource group - * - * @summary List AutonomousDatabase resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listByResourceGroup.json - */ -async function listAutonomousDatabaseByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabases.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDatabaseByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListBySubscriptionSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListBySubscriptionSample.js deleted file mode 100644 index 31053aa0818e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List AutonomousDatabase resources by subscription ID - * - * @summary List AutonomousDatabase resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listBySubscription.json - */ -async function listAutonomousDatabaseBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabases.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDatabaseBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesRestoreSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesRestoreSample.js deleted file mode 100644 index d61e17c6d9e8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesRestoreSample.js +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Restores an Autonomous Database based on the provided request parameters. - * - * @summary Restores an Autonomous Database based on the provided request parameters. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json - */ -async function autonomousDatabasesRestore() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body = { - timestamp: new Date("2024-04-23T00:00:00.000Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginRestoreAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Restores an Autonomous Database based on the provided request parameters. - * - * @summary Restores an Autonomous Database based on the provided request parameters. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json - */ -async function performRestoreActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body = { - timestamp: new Date("2024-04-23T00:00:00.000Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginRestoreAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesRestore(); - performRestoreActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesShrinkSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesShrinkSample.js deleted file mode 100644 index bd32dc66ca3c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesShrinkSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to This operation shrinks the current allocated storage down to the current actual used data storage. - * - * @summary This operation shrinks the current allocated storage down to the current actual used data storage. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_shrink.json - */ -async function performShrinkActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginShrinkAndWait( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -async function main() { - performShrinkActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesSwitchoverSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesSwitchoverSample.js deleted file mode 100644 index 191f6745af2a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesSwitchoverSample.js +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Perform switchover action on Autonomous Database - * - * @summary Perform switchover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json - */ -async function autonomousDatabasesSwitchover() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginSwitchoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Perform switchover action on Autonomous Database - * - * @summary Perform switchover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json - */ -async function performSwitchoverActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginSwitchoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesSwitchover(); - performSwitchoverActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesUpdateSample.js deleted file mode 100644 index a59ea18cd1f7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/autonomousDatabasesUpdateSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a AutonomousDatabase - * - * @summary Update a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_patch.json - */ -async function patchAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - properties, - ); - console.log(result); -} - -async function main() { - patchAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresAddStorageCapacitySample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresAddStorageCapacitySample.js deleted file mode 100644 index 51227c33cdc2..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresAddStorageCapacitySample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Perform add storage capacity on exadata infra - * - * @summary Perform add storage capacity on exadata infra - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_addStorageCapacity.json - */ -async function performAddStorageCapacityOnExadataInfra() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.beginAddStorageCapacityAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - performAddStorageCapacityOnExadataInfra(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresCreateOrUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresCreateOrUpdateSample.js deleted file mode 100644 index 4a43f07c7844..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresCreateOrUpdateSample.js +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a CloudExadataInfrastructure - * - * @summary Create a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_create.json - */ -async function createExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const resource = { - location: "eastus", - properties: { - computeCount: 100, - displayName: "infra 1", - shape: "EXADATA.X9M", - storageCount: 10, - }, - tags: { tagK1: "tagV1" }, - zones: ["1"], - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - resource, - ); - console.log(result); -} - -async function main() { - createExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresDeleteSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresDeleteSample.js deleted file mode 100644 index 31e7eda5aff2..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a CloudExadataInfrastructure - * - * @summary Delete a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_delete.json - */ -async function deleteExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.beginDeleteAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - deleteExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresGetSample.js deleted file mode 100644 index a80448bdafbd..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresGetSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a CloudExadataInfrastructure - * - * @summary Get a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_get.json - */ -async function getExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.get( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - getExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListByResourceGroupSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListByResourceGroupSample.js deleted file mode 100644 index 3ee163b455a7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListByResourceGroupSample.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List CloudExadataInfrastructure resources by resource group - * - * @summary List CloudExadataInfrastructure resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listByResourceGroup.json - */ -async function listExadataInfrastructureByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudExadataInfrastructures.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataInfrastructureByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListBySubscriptionSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListBySubscriptionSample.js deleted file mode 100644 index 6820b6147344..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List CloudExadataInfrastructure resources by subscription ID - * - * @summary List CloudExadataInfrastructure resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listBySubscription.json - */ -async function listExadataInfrastructureBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudExadataInfrastructures.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataInfrastructureBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresUpdateSample.js deleted file mode 100644 index bb21198df1d8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudExadataInfrastructuresUpdateSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a CloudExadataInfrastructure - * - * @summary Update a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_patch.json - */ -async function patchExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.beginUpdateAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - properties, - ); - console.log(result); -} - -async function main() { - patchExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersAddVmsSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersAddVmsSample.js deleted file mode 100644 index af3a8c93d7b0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersAddVmsSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Add VMs to the VM Cluster - * - * @summary Add VMs to the VM Cluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_addVms.json - */ -async function addVMSToVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body = { dbServers: ["ocid1..aaaa", "ocid1..aaaaaa"] }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginAddVmsAndWait( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - addVMSToVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersCreateOrUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersCreateOrUpdateSample.js deleted file mode 100644 index 760c967c624c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersCreateOrUpdateSample.js +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a CloudVmCluster - * - * @summary Create a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_create.json - */ -async function createVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const resource = { - location: "eastus", - properties: { - backupSubnetCidr: "172.17.5.0/24", - cloudExadataInfrastructureId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", - clusterName: "cluster1", - cpuCoreCount: 2, - dataCollectionOptions: { - isDiagnosticsEventsEnabled: false, - isHealthMonitoringEnabled: false, - isIncidentLogsEnabled: false, - }, - dataStoragePercentage: 100, - dataStorageSizeInTbs: 1000, - dbNodeStorageSizeInGbs: 1000, - dbServers: ["ocid1..aaaa"], - displayName: "cluster 1", - domain: "domain1", - giVersion: "19.0.0.0", - hostname: "hostname1", - isLocalBackupEnabled: false, - isSparseDiskgroupEnabled: false, - licenseModel: "LicenseIncluded", - memorySizeInGbs: 1000, - nsgCidrs: [ - { - destinationPortRange: { max: 1522, min: 1520 }, - source: "10.0.0.0/16", - }, - { source: "10.10.0.0/24" }, - ], - ocpuCount: 3, - scanListenerPortTcp: 1050, - scanListenerPortTcpSsl: 1025, - sshPublicKeys: ["ssh-key 1"], - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - timeZone: "UTC", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudvmclustername, - resource, - ); - console.log(result); -} - -async function main() { - createVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersDeleteSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersDeleteSample.js deleted file mode 100644 index d881b5dc42ce..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a CloudVmCluster - * - * @summary Delete a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_delete.json - */ -async function deleteVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginDeleteAndWait( - resourceGroupName, - cloudvmclustername, - ); - console.log(result); -} - -async function main() { - deleteVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersGetSample.js deleted file mode 100644 index 8b767df7fbd5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a CloudVmCluster - * - * @summary Get a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_get.json - */ -async function getVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.get(resourceGroupName, cloudvmclustername); - console.log(result); -} - -async function main() { - getVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListByResourceGroupSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListByResourceGroupSample.js deleted file mode 100644 index 0f872774a769..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List CloudVmCluster resources by resource group - * - * @summary List CloudVmCluster resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listByResourceGroup.json - */ -async function listVMClustersByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudVmClusters.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVMClustersByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListBySubscriptionSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListBySubscriptionSample.js deleted file mode 100644 index dabc43f72525..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List CloudVmCluster resources by subscription ID - * - * @summary List CloudVmCluster resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listBySubscription.json - */ -async function listVMClustersBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudVmClusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVMClustersBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListPrivateIPAddressesSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListPrivateIPAddressesSample.js deleted file mode 100644 index 7963677f25cd..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersListPrivateIPAddressesSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Private IP Addresses by the provided filter - * - * @summary List Private IP Addresses by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listPrivateIpAddresses.json - */ -async function listPrivateIPAddressesForVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body = { - subnetId: "ocid1..aaaaaa", - vnicId: "ocid1..aaaaa", - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.listPrivateIpAddresses( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - listPrivateIPAddressesForVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersRemoveVmsSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersRemoveVmsSample.js deleted file mode 100644 index 31efcc33bce0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersRemoveVmsSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Remove VMs from the VM Cluster - * - * @summary Remove VMs from the VM Cluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_removeVms.json - */ -async function removeVMSFromVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body = { dbServers: ["ocid1..aaaa"] }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginRemoveVmsAndWait( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - removeVMSFromVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersUpdateSample.js deleted file mode 100644 index 5511541a5bee..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/cloudVMClustersUpdateSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a CloudVmCluster - * - * @summary Update a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_patch.json - */ -async function patchVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginUpdateAndWait( - resourceGroupName, - cloudvmclustername, - properties, - ); - console.log(result); -} - -async function main() { - patchVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesActionSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesActionSample.js deleted file mode 100644 index d358ffd46b66..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesActionSample.js +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to VM actions on DbNode of VM Cluster by the provided filter - * - * @summary VM actions on DbNode of VM Cluster by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json - */ -async function dbNodesAction() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const body = { action: "Start" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.beginActionAndWait( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to VM actions on DbNode of VM Cluster by the provided filter - * - * @summary VM actions on DbNode of VM Cluster by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json - */ -async function vmActionsOnDbNodesOfVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const body = { action: "Start" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.beginActionAndWait( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - body, - ); - console.log(result); -} - -async function main() { - dbNodesAction(); - vmActionsOnDbNodesOfVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesGetSample.js deleted file mode 100644 index 4ff1b066ad8e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a DbNode - * - * @summary Get a DbNode - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_get.json - */ -async function getDbNode() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.get(resourceGroupName, cloudvmclustername, dbnodeocid); - console.log(result); -} - -async function main() { - getDbNode(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesListByCloudVMClusterSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesListByCloudVMClusterSample.js deleted file mode 100644 index e96ec72349d0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbNodesListByCloudVMClusterSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List DbNode resources by CloudVmCluster - * - * @summary List DbNode resources by CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_listByParent.json - */ -async function listDbNodesByVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbNodes.listByCloudVmCluster( - resourceGroupName, - cloudvmclustername, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbNodesByVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersGetSample.js deleted file mode 100644 index cc9d1af9e8f6..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a DbServer - * - * @summary Get a DbServer - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_get.json - */ -async function getDbServerByParent() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const dbserverocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbServers.get( - resourceGroupName, - cloudexadatainfrastructurename, - dbserverocid, - ); - console.log(result); -} - -async function main() { - getDbServerByParent(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersListByCloudExadataInfrastructureSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersListByCloudExadataInfrastructureSample.js deleted file mode 100644 index 19b137af2117..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbServersListByCloudExadataInfrastructureSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List DbServer resources by CloudExadataInfrastructure - * - * @summary List DbServer resources by CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_listByParent.json - */ -async function listDbServersByExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbServers.listByCloudExadataInfrastructure( - resourceGroupName, - cloudexadatainfrastructurename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbServersByExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesGetSample.js deleted file mode 100644 index af0e95452a68..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a DbSystemShape - * - * @summary Get a DbSystemShape - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_get.json - */ -async function getADbSystemShapeByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dbsystemshapename = "EXADATA.X9M"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbSystemShapes.get(location, dbsystemshapename); - console.log(result); -} - -async function main() { - getADbSystemShapeByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesListByLocationSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesListByLocationSample.js deleted file mode 100644 index 8180c1bb5a73..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dbSystemShapesListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List DbSystemShape resources by Location - * - * @summary List DbSystemShape resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_listByLocation.json - */ -async function listDbSystemShapesByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbSystemShapes.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbSystemShapesByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsGetSample.js deleted file mode 100644 index 12eb72fe4c84..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a DnsPrivateView - * - * @summary Get a DnsPrivateView - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_get.json - */ -async function getADnsPrivateViewByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dnsprivateviewocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dnsPrivateViews.get(location, dnsprivateviewocid); - console.log(result); -} - -async function main() { - getADnsPrivateViewByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsListByLocationSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsListByLocationSample.js deleted file mode 100644 index 8757f674f936..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateViewsListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List DnsPrivateView resources by Location - * - * @summary List DnsPrivateView resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_listByLocation.json - */ -async function listDnsPrivateViewsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dnsPrivateViews.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDnsPrivateViewsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesGetSample.js deleted file mode 100644 index 84e6bcfe96ab..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a DnsPrivateZone - * - * @summary Get a DnsPrivateZone - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_get.json - */ -async function getADnsPrivateZoneByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dnsprivatezonename = "example-dns-private-zone"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dnsPrivateZones.get(location, dnsprivatezonename); - console.log(result); -} - -async function main() { - getADnsPrivateZoneByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesListByLocationSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesListByLocationSample.js deleted file mode 100644 index 65e914266fa4..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/dnsPrivateZonesListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List DnsPrivateZone resources by Location - * - * @summary List DnsPrivateZone resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_listByLocation.json - */ -async function listDnsPrivateZonesByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dnsPrivateZones.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDnsPrivateZonesByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsGetSample.js deleted file mode 100644 index 213363c90653..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a GiVersion - * - * @summary Get a GiVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_get.json - */ -async function getAGiVersionByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const giversionname = "19.0.0.0"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.giVersions.get(location, giversionname); - console.log(result); -} - -async function main() { - getAGiVersionByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsListByLocationSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsListByLocationSample.js deleted file mode 100644 index bd2a2b7ae195..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/giVersionsListByLocationSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List GiVersion resources by Location - * - * @summary List GiVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_listByLocation.json - */ -async function listGiVersionsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.giVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listGiVersionsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/operationsListSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/operationsListSample.js deleted file mode 100644 index 772159faed9a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/operationsListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/operations_list.json - */ -async function listOperations() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOperations(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsCreateOrUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsCreateOrUpdateSample.js deleted file mode 100644 index 493713d49005..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsCreateOrUpdateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a OracleSubscription - * - * @summary Create a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_create.json - */ -async function createOrUpdateOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resource = { - plan: { - name: "plan1", - product: "product1", - promotionCode: "none", - publisher: "publisher1", - version: "alpha", - }, - properties: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.beginCreateOrUpdateAndWait(resource); - console.log(result); -} - -async function main() { - createOrUpdateOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsDeleteSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsDeleteSample.js deleted file mode 100644 index 9a61fd5a42d8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsDeleteSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a OracleSubscription - * - * @summary Delete a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_delete.json - */ -async function deleteOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.beginDeleteAndWait(); - console.log(result); -} - -async function main() { - deleteOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsGetSample.js deleted file mode 100644 index ddb1cecec66b..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsGetSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a OracleSubscription - * - * @summary Get a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_get.json - */ -async function getOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.get(); - console.log(result); -} - -async function main() { - getOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListActivationLinksSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListActivationLinksSample.js deleted file mode 100644 index 380ac41477d9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListActivationLinksSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Activation Links - * - * @summary List Activation Links - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listActivationLinks.json - */ -async function listActivationLinksForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.beginListActivationLinksAndWait(); - console.log(result); -} - -async function main() { - listActivationLinksForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListBySubscriptionSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListBySubscriptionSample.js deleted file mode 100644 index 0e07b2258d3c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List OracleSubscription resources by subscription ID - * - * @summary List OracleSubscription resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listBySubscription.json - */ -async function listOracleSubscriptionsBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.oracleSubscriptions.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOracleSubscriptionsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListCloudAccountDetailsSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListCloudAccountDetailsSample.js deleted file mode 100644 index 93bcbe74d6d5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListCloudAccountDetailsSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Cloud Account Details - * - * @summary List Cloud Account Details - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listCloudAccountDetails.json - */ -async function listCloudAccountDetailsForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.beginListCloudAccountDetailsAndWait(); - console.log(result); -} - -async function main() { - listCloudAccountDetailsForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListSaasSubscriptionDetailsSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListSaasSubscriptionDetailsSample.js deleted file mode 100644 index 58992e787975..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsListSaasSubscriptionDetailsSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List Saas Subscription Details - * - * @summary List Saas Subscription Details - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listSaasSubscriptionDetails.json - */ -async function listSaasSubscriptionDetailsForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.beginListSaasSubscriptionDetailsAndWait(); - console.log(result); -} - -async function main() { - listSaasSubscriptionDetailsForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsUpdateSample.js deleted file mode 100644 index 128a448d51db..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/oracleSubscriptionsUpdateSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a OracleSubscription - * - * @summary Update a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_patch.json - */ -async function patchOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const properties = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.beginUpdateAndWait(properties); - console.log(result); -} - -async function main() { - patchOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/package.json b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/package.json deleted file mode 100644 index b1397dbaab34..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-oracledatabase-js", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/oracledatabase/arm-oracledatabase" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/oracledatabase/arm-oracledatabase", - "dependencies": { - "@azure/arm-oracledatabase": "latest", - "dotenv": "latest", - "@azure/identity": "^4.0.1" - } -} diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/sample.env b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsGetSample.js deleted file mode 100644 index 0822c8857b76..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsGetSample.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a SystemVersion - * - * @summary Get a SystemVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json - */ -async function getExadataSystemVersion() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const systemversionname = "22.x"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.systemVersions.get(location, systemversionname); - console.log(result); -} - -/** - * This sample demonstrates how to Get a SystemVersion - * - * @summary Get a SystemVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json - */ -async function systemVersionsListSystemVersions() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const systemversionname = "22.x"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.systemVersions.get(location, systemversionname); - console.log(result); -} - -async function main() { - getExadataSystemVersion(); - systemVersionsListSystemVersions(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsListByLocationSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsListByLocationSample.js deleted file mode 100644 index 3a623b389ef6..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/systemVersionsListByLocationSample.js +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List SystemVersion resources by Location - * - * @summary List SystemVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json - */ -async function listExadataSystemVersionsByTheProvidedFilter() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.systemVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List SystemVersion resources by Location - * - * @summary List SystemVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json - */ -async function systemVersionsListByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.systemVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataSystemVersionsByTheProvidedFilter(); - systemVersionsListByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesCreateOrUpdateSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesCreateOrUpdateSample.js deleted file mode 100644 index 9c33b5637033..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesCreateOrUpdateSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a VirtualNetworkAddress - * - * @summary Create a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_create.json - */ -async function createVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const resource = { - properties: { ipAddress: "192.168.0.1", vmOcid: "ocid1..aaaa" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.virtualNetworkAddresses.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - resource, - ); - console.log(result); -} - -async function main() { - createVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesDeleteSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesDeleteSample.js deleted file mode 100644 index dcae0a5023c3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a VirtualNetworkAddress - * - * @summary Delete a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_delete.json - */ -async function deleteVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.virtualNetworkAddresses.beginDeleteAndWait( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - ); - console.log(result); -} - -async function main() { - deleteVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesGetSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesGetSample.js deleted file mode 100644 index cf7b7db5a145..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a VirtualNetworkAddress - * - * @summary Get a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_get.json - */ -async function getVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.virtualNetworkAddresses.get( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - ); - console.log(result); -} - -async function main() { - getVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesListByCloudVMClusterSample.js b/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesListByCloudVMClusterSample.js deleted file mode 100644 index 56e4fe6acbe7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/javascript/virtualNetworkAddressesListByCloudVMClusterSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List VirtualNetworkAddress resources by CloudVmCluster - * - * @summary List VirtualNetworkAddress resources by CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_listByParent.json - */ -async function listVirtualNetworkAddressesByVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualNetworkAddresses.listByCloudVmCluster( - resourceGroupName, - cloudvmclustername, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualNetworkAddressesByVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/README.md b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/README.md deleted file mode 100644 index 5eb1903c1204..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/README.md +++ /dev/null @@ -1,193 +0,0 @@ -# client library samples for TypeScript - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [autonomousDatabaseBackupsCreateOrUpdateSample.ts][autonomousdatabasebackupscreateorupdatesample] | Create a AutonomousDatabaseBackup x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json | -| [autonomousDatabaseBackupsDeleteSample.ts][autonomousdatabasebackupsdeletesample] | Delete a AutonomousDatabaseBackup x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json | -| [autonomousDatabaseBackupsGetSample.ts][autonomousdatabasebackupsgetsample] | Get a AutonomousDatabaseBackup x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json | -| [autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts][autonomousdatabasebackupslistbyautonomousdatabasesample] | List AutonomousDatabaseBackup resources by AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json | -| [autonomousDatabaseBackupsUpdateSample.ts][autonomousdatabasebackupsupdatesample] | Update a AutonomousDatabaseBackup x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json | -| [autonomousDatabaseCharacterSetsGetSample.ts][autonomousdatabasecharactersetsgetsample] | Get a AutonomousDatabaseCharacterSet x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_get.json | -| [autonomousDatabaseCharacterSetsListByLocationSample.ts][autonomousdatabasecharactersetslistbylocationsample] | List AutonomousDatabaseCharacterSet resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_listByLocation.json | -| [autonomousDatabaseNationalCharacterSetsGetSample.ts][autonomousdatabasenationalcharactersetsgetsample] | Get a AutonomousDatabaseNationalCharacterSet x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_get.json | -| [autonomousDatabaseNationalCharacterSetsListByLocationSample.ts][autonomousdatabasenationalcharactersetslistbylocationsample] | List AutonomousDatabaseNationalCharacterSet resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_listByLocation.json | -| [autonomousDatabaseVersionsGetSample.ts][autonomousdatabaseversionsgetsample] | Get a AutonomousDbVersion x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_get.json | -| [autonomousDatabaseVersionsListByLocationSample.ts][autonomousdatabaseversionslistbylocationsample] | List AutonomousDbVersion resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_listByLocation.json | -| [autonomousDatabasesCreateOrUpdateSample.ts][autonomousdatabasescreateorupdatesample] | Create a AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json | -| [autonomousDatabasesDeleteSample.ts][autonomousdatabasesdeletesample] | Delete a AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_delete.json | -| [autonomousDatabasesFailoverSample.ts][autonomousdatabasesfailoversample] | Perform failover action on Autonomous Database x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json | -| [autonomousDatabasesGenerateWalletSample.ts][autonomousdatabasesgeneratewalletsample] | Generate wallet action on Autonomous Database x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_generateWallet.json | -| [autonomousDatabasesGetSample.ts][autonomousdatabasesgetsample] | Get a AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json | -| [autonomousDatabasesListByResourceGroupSample.ts][autonomousdatabaseslistbyresourcegroupsample] | List AutonomousDatabase resources by resource group x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listByResourceGroup.json | -| [autonomousDatabasesListBySubscriptionSample.ts][autonomousdatabaseslistbysubscriptionsample] | List AutonomousDatabase resources by subscription ID x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listBySubscription.json | -| [autonomousDatabasesRestoreSample.ts][autonomousdatabasesrestoresample] | Restores an Autonomous Database based on the provided request parameters. x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json | -| [autonomousDatabasesShrinkSample.ts][autonomousdatabasesshrinksample] | This operation shrinks the current allocated storage down to the current actual used data storage. x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_shrink.json | -| [autonomousDatabasesSwitchoverSample.ts][autonomousdatabasesswitchoversample] | Perform switchover action on Autonomous Database x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json | -| [autonomousDatabasesUpdateSample.ts][autonomousdatabasesupdatesample] | Update a AutonomousDatabase x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_patch.json | -| [cloudExadataInfrastructuresAddStorageCapacitySample.ts][cloudexadatainfrastructuresaddstoragecapacitysample] | Perform add storage capacity on exadata infra x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_addStorageCapacity.json | -| [cloudExadataInfrastructuresCreateOrUpdateSample.ts][cloudexadatainfrastructurescreateorupdatesample] | Create a CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_create.json | -| [cloudExadataInfrastructuresDeleteSample.ts][cloudexadatainfrastructuresdeletesample] | Delete a CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_delete.json | -| [cloudExadataInfrastructuresGetSample.ts][cloudexadatainfrastructuresgetsample] | Get a CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_get.json | -| [cloudExadataInfrastructuresListByResourceGroupSample.ts][cloudexadatainfrastructureslistbyresourcegroupsample] | List CloudExadataInfrastructure resources by resource group x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listByResourceGroup.json | -| [cloudExadataInfrastructuresListBySubscriptionSample.ts][cloudexadatainfrastructureslistbysubscriptionsample] | List CloudExadataInfrastructure resources by subscription ID x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listBySubscription.json | -| [cloudExadataInfrastructuresUpdateSample.ts][cloudexadatainfrastructuresupdatesample] | Update a CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_patch.json | -| [cloudVMClustersAddVmsSample.ts][cloudvmclustersaddvmssample] | Add VMs to the VM Cluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_addVms.json | -| [cloudVMClustersCreateOrUpdateSample.ts][cloudvmclusterscreateorupdatesample] | Create a CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_create.json | -| [cloudVMClustersDeleteSample.ts][cloudvmclustersdeletesample] | Delete a CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_delete.json | -| [cloudVMClustersGetSample.ts][cloudvmclustersgetsample] | Get a CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_get.json | -| [cloudVMClustersListByResourceGroupSample.ts][cloudvmclusterslistbyresourcegroupsample] | List CloudVmCluster resources by resource group x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listByResourceGroup.json | -| [cloudVMClustersListBySubscriptionSample.ts][cloudvmclusterslistbysubscriptionsample] | List CloudVmCluster resources by subscription ID x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listBySubscription.json | -| [cloudVMClustersListPrivateIPAddressesSample.ts][cloudvmclusterslistprivateipaddressessample] | List Private IP Addresses by the provided filter x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listPrivateIpAddresses.json | -| [cloudVMClustersRemoveVmsSample.ts][cloudvmclustersremovevmssample] | Remove VMs from the VM Cluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_removeVms.json | -| [cloudVMClustersUpdateSample.ts][cloudvmclustersupdatesample] | Update a CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_patch.json | -| [dbNodesActionSample.ts][dbnodesactionsample] | VM actions on DbNode of VM Cluster by the provided filter x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json | -| [dbNodesGetSample.ts][dbnodesgetsample] | Get a DbNode x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_get.json | -| [dbNodesListByCloudVMClusterSample.ts][dbnodeslistbycloudvmclustersample] | List DbNode resources by CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_listByParent.json | -| [dbServersGetSample.ts][dbserversgetsample] | Get a DbServer x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_get.json | -| [dbServersListByCloudExadataInfrastructureSample.ts][dbserverslistbycloudexadatainfrastructuresample] | List DbServer resources by CloudExadataInfrastructure x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_listByParent.json | -| [dbSystemShapesGetSample.ts][dbsystemshapesgetsample] | Get a DbSystemShape x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_get.json | -| [dbSystemShapesListByLocationSample.ts][dbsystemshapeslistbylocationsample] | List DbSystemShape resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_listByLocation.json | -| [dnsPrivateViewsGetSample.ts][dnsprivateviewsgetsample] | Get a DnsPrivateView x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_get.json | -| [dnsPrivateViewsListByLocationSample.ts][dnsprivateviewslistbylocationsample] | List DnsPrivateView resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_listByLocation.json | -| [dnsPrivateZonesGetSample.ts][dnsprivatezonesgetsample] | Get a DnsPrivateZone x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_get.json | -| [dnsPrivateZonesListByLocationSample.ts][dnsprivatezoneslistbylocationsample] | List DnsPrivateZone resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_listByLocation.json | -| [giVersionsGetSample.ts][giversionsgetsample] | Get a GiVersion x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_get.json | -| [giVersionsListByLocationSample.ts][giversionslistbylocationsample] | List GiVersion resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_listByLocation.json | -| [operationsListSample.ts][operationslistsample] | List the operations for the provider x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/operations_list.json | -| [oracleSubscriptionsCreateOrUpdateSample.ts][oraclesubscriptionscreateorupdatesample] | Create a OracleSubscription x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_create.json | -| [oracleSubscriptionsDeleteSample.ts][oraclesubscriptionsdeletesample] | Delete a OracleSubscription x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_delete.json | -| [oracleSubscriptionsGetSample.ts][oraclesubscriptionsgetsample] | Get a OracleSubscription x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_get.json | -| [oracleSubscriptionsListActivationLinksSample.ts][oraclesubscriptionslistactivationlinkssample] | List Activation Links x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listActivationLinks.json | -| [oracleSubscriptionsListBySubscriptionSample.ts][oraclesubscriptionslistbysubscriptionsample] | List OracleSubscription resources by subscription ID x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listBySubscription.json | -| [oracleSubscriptionsListCloudAccountDetailsSample.ts][oraclesubscriptionslistcloudaccountdetailssample] | List Cloud Account Details x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listCloudAccountDetails.json | -| [oracleSubscriptionsListSaasSubscriptionDetailsSample.ts][oraclesubscriptionslistsaassubscriptiondetailssample] | List Saas Subscription Details x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listSaasSubscriptionDetails.json | -| [oracleSubscriptionsUpdateSample.ts][oraclesubscriptionsupdatesample] | Update a OracleSubscription x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_patch.json | -| [systemVersionsGetSample.ts][systemversionsgetsample] | Get a SystemVersion x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json | -| [systemVersionsListByLocationSample.ts][systemversionslistbylocationsample] | List SystemVersion resources by Location x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json | -| [virtualNetworkAddressesCreateOrUpdateSample.ts][virtualnetworkaddressescreateorupdatesample] | Create a VirtualNetworkAddress x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_create.json | -| [virtualNetworkAddressesDeleteSample.ts][virtualnetworkaddressesdeletesample] | Delete a VirtualNetworkAddress x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_delete.json | -| [virtualNetworkAddressesGetSample.ts][virtualnetworkaddressesgetsample] | Get a VirtualNetworkAddress x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_get.json | -| [virtualNetworkAddressesListByCloudVMClusterSample.ts][virtualnetworkaddresseslistbycloudvmclustersample] | List VirtualNetworkAddress resources by CloudVmCluster x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_listByParent.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/autonomousDatabaseBackupsCreateOrUpdateSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env ORACLEDATABASE_SUBSCRIPTION_ID="" ORACLEDATABASE_RESOURCE_GROUP="" node dist/autonomousDatabaseBackupsCreateOrUpdateSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[autonomousdatabasebackupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsCreateOrUpdateSample.ts -[autonomousdatabasebackupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsDeleteSample.ts -[autonomousdatabasebackupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsGetSample.ts -[autonomousdatabasebackupslistbyautonomousdatabasesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts -[autonomousdatabasebackupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsUpdateSample.ts -[autonomousdatabasecharactersetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsGetSample.ts -[autonomousdatabasecharactersetslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsListByLocationSample.ts -[autonomousdatabasenationalcharactersetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsGetSample.ts -[autonomousdatabasenationalcharactersetslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts -[autonomousdatabaseversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsGetSample.ts -[autonomousdatabaseversionslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsListByLocationSample.ts -[autonomousdatabasescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesCreateOrUpdateSample.ts -[autonomousdatabasesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesDeleteSample.ts -[autonomousdatabasesfailoversample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesFailoverSample.ts -[autonomousdatabasesgeneratewalletsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGenerateWalletSample.ts -[autonomousdatabasesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGetSample.ts -[autonomousdatabaseslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListByResourceGroupSample.ts -[autonomousdatabaseslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListBySubscriptionSample.ts -[autonomousdatabasesrestoresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesRestoreSample.ts -[autonomousdatabasesshrinksample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesShrinkSample.ts -[autonomousdatabasesswitchoversample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesSwitchoverSample.ts -[autonomousdatabasesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesUpdateSample.ts -[cloudexadatainfrastructuresaddstoragecapacitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresAddStorageCapacitySample.ts -[cloudexadatainfrastructurescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresCreateOrUpdateSample.ts -[cloudexadatainfrastructuresdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresDeleteSample.ts -[cloudexadatainfrastructuresgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresGetSample.ts -[cloudexadatainfrastructureslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListByResourceGroupSample.ts -[cloudexadatainfrastructureslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListBySubscriptionSample.ts -[cloudexadatainfrastructuresupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresUpdateSample.ts -[cloudvmclustersaddvmssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersAddVmsSample.ts -[cloudvmclusterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersCreateOrUpdateSample.ts -[cloudvmclustersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersDeleteSample.ts -[cloudvmclustersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersGetSample.ts -[cloudvmclusterslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListByResourceGroupSample.ts -[cloudvmclusterslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListBySubscriptionSample.ts -[cloudvmclusterslistprivateipaddressessample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListPrivateIPAddressesSample.ts -[cloudvmclustersremovevmssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersRemoveVmsSample.ts -[cloudvmclustersupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersUpdateSample.ts -[dbnodesactionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesActionSample.ts -[dbnodesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesGetSample.ts -[dbnodeslistbycloudvmclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesListByCloudVMClusterSample.ts -[dbserversgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersGetSample.ts -[dbserverslistbycloudexadatainfrastructuresample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersListByCloudExadataInfrastructureSample.ts -[dbsystemshapesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesGetSample.ts -[dbsystemshapeslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesListByLocationSample.ts -[dnsprivateviewsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsGetSample.ts -[dnsprivateviewslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsListByLocationSample.ts -[dnsprivatezonesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesGetSample.ts -[dnsprivatezoneslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesListByLocationSample.ts -[giversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsGetSample.ts -[giversionslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsListByLocationSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/operationsListSample.ts -[oraclesubscriptionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsCreateOrUpdateSample.ts -[oraclesubscriptionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsDeleteSample.ts -[oraclesubscriptionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsGetSample.ts -[oraclesubscriptionslistactivationlinkssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListActivationLinksSample.ts -[oraclesubscriptionslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListBySubscriptionSample.ts -[oraclesubscriptionslistcloudaccountdetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListCloudAccountDetailsSample.ts -[oraclesubscriptionslistsaassubscriptiondetailssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts -[oraclesubscriptionsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsUpdateSample.ts -[systemversionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsGetSample.ts -[systemversionslistbylocationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsListByLocationSample.ts -[virtualnetworkaddressescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesCreateOrUpdateSample.ts -[virtualnetworkaddressesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesDeleteSample.ts -[virtualnetworkaddressesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesGetSample.ts -[virtualnetworkaddresseslistbycloudvmclustersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesListByCloudVMClusterSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-oracledatabase?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/oracledatabase/arm-oracledatabase/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/package.json b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/package.json deleted file mode 100644 index 97cbc09a93ea..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-oracledatabase-ts", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/oracledatabase/arm-oracledatabase" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/oracledatabase/arm-oracledatabase", - "dependencies": { - "@azure/arm-oracledatabase": "latest", - "dotenv": "latest", - "@azure/identity": "^4.0.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.5.3", - "rimraf": "latest" - } -} diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/sample.env b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsCreateOrUpdateSample.ts deleted file mode 100644 index 15f95eea20fd..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsCreateOrUpdateSample.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutonomousDatabaseBackup, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a AutonomousDatabaseBackup - * - * @summary Create a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json - */ -async function autonomousDatabaseBackupsCreateOrUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const resource: AutonomousDatabaseBackup = { - properties: { - autonomousDatabaseOcid: "ocid1.autonomousdatabase.oc1..aaaaa3klq", - displayName: "Nightly Backup", - retentionPeriodInDays: 365, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.autonomousDatabaseBackups.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabaseBackup - * - * @summary Create a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_create.json - */ -async function createAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const resource: AutonomousDatabaseBackup = { - properties: { - autonomousDatabaseOcid: "ocid1.autonomousdatabase.oc1..aaaaa3klq", - displayName: "Nightly Backup", - retentionPeriodInDays: 365, - }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.autonomousDatabaseBackups.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - resource, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsCreateOrUpdate(); - createAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsDeleteSample.ts deleted file mode 100644 index f043723432b7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsDeleteSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a AutonomousDatabaseBackup - * - * @summary Delete a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json - */ -async function autonomousDatabaseBackupsDelete() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Delete a AutonomousDatabaseBackup - * - * @summary Delete a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_delete.json - */ -async function deleteAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsDelete(); - deleteAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsGetSample.ts deleted file mode 100644 index 1f44a0c0b720..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsGetSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseBackup - * - * @summary Get a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json - */ -async function autonomousDatabaseBackupsGet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.get( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a AutonomousDatabaseBackup - * - * @summary Get a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_get.json - */ -async function getAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.get( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsGet(); - getAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts deleted file mode 100644 index 28dd119e56c7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsListByAutonomousDatabaseSample.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseBackup resources by AutonomousDatabase - * - * @summary List AutonomousDatabaseBackup resources by AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json - */ -async function autonomousDatabaseBackupsListByAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseBackups.listByAutonomousDatabase( - resourceGroupName, - autonomousdatabasename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List AutonomousDatabaseBackup resources by AutonomousDatabase - * - * @summary List AutonomousDatabaseBackup resources by AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_listByParent.json - */ -async function listAutonomousDatabaseBackupsByAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseBackups.listByAutonomousDatabase( - resourceGroupName, - autonomousdatabasename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - autonomousDatabaseBackupsListByAutonomousDatabase(); - listAutonomousDatabaseBackupsByAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsUpdateSample.ts deleted file mode 100644 index 2d168e50b7ad..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseBackupsUpdateSample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutonomousDatabaseBackupUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a AutonomousDatabaseBackup - * - * @summary Update a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json - */ -async function autonomousDatabaseBackupsUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const properties: AutonomousDatabaseBackupUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - properties, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Update a AutonomousDatabaseBackup - * - * @summary Update a AutonomousDatabaseBackup - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseBackup_patch.json - */ -async function patchAutonomousDatabaseBackup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const adbbackupid = "1711644130"; - const properties: AutonomousDatabaseBackupUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseBackups.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - properties, - ); - console.log(result); -} - -async function main() { - autonomousDatabaseBackupsUpdate(); - patchAutonomousDatabaseBackup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsGetSample.ts deleted file mode 100644 index 2267df1a1d9e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseCharacterSet - * - * @summary Get a AutonomousDatabaseCharacterSet - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_get.json - */ -async function getAutonomousDbCharacterSet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const adbscharsetname = "DATABASE"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseCharacterSets.get( - location, - adbscharsetname, - ); - console.log(result); -} - -async function main() { - getAutonomousDbCharacterSet(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsListByLocationSample.ts deleted file mode 100644 index b0c0572dadb3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseCharacterSetsListByLocationSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseCharacterSet resources by Location - * - * @summary List AutonomousDatabaseCharacterSet resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseCharacterSet_listByLocation.json - */ -async function listAutonomousDbCharacterSetsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseCharacterSets.listByLocation( - location, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDbCharacterSetsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsGetSample.ts deleted file mode 100644 index bb8c671d6ef2..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabaseNationalCharacterSet - * - * @summary Get a AutonomousDatabaseNationalCharacterSet - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_get.json - */ -async function getAutonomousDbNationalCharacterSet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const adbsncharsetname = "NATIONAL"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseNationalCharacterSets.get( - location, - adbsncharsetname, - ); - console.log(result); -} - -async function main() { - getAutonomousDbNationalCharacterSet(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts deleted file mode 100644 index 1ab6932845f1..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseNationalCharacterSetsListByLocationSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabaseNationalCharacterSet resources by Location - * - * @summary List AutonomousDatabaseNationalCharacterSet resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseNationalCharacterSet_listByLocation.json - */ -async function listAutonomousDbNationalCharacterSetsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseNationalCharacterSets.listByLocation( - location, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDbNationalCharacterSetsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsGetSample.ts deleted file mode 100644 index 7e15282fc623..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsGetSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDbVersion - * - * @summary Get a AutonomousDbVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_get.json - */ -async function getAnAutonomousVersion() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const autonomousdbversionsname = "18.4.0.0"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabaseVersions.get( - location, - autonomousdbversionsname, - ); - console.log(result); -} - -async function main() { - getAnAutonomousVersion(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsListByLocationSample.ts deleted file mode 100644 index 3dc7c8b1f5c8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabaseVersionsListByLocationSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDbVersion resources by Location - * - * @summary List AutonomousDbVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseVersion_listByLocation.json - */ -async function listAnAutonomousVersionsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabaseVersions.listByLocation( - location, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAnAutonomousVersionsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesCreateOrUpdateSample.ts deleted file mode 100644 index 869958c18569..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesCreateOrUpdateSample.ts +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutonomousDatabase, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json - */ -async function autonomousDatabasesCreateOrUpdate() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource: AutonomousDatabase = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Regular", - dataStorageSizeInTbs: 1, - dbVersion: "18.4.0.0", - displayName: "example_autonomous_databasedb1", - ncharacterSet: "AL16UTF16", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create.json - */ -async function autonomousDatabasesCreateOrUpdateClone() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource: AutonomousDatabase = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - cloneType: "Full", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Clone", - dataStorageSizeInTbs: 1, - displayName: "example_autonomous_databasedb1_clone", - ncharacterSet: "AL16UTF16", - sourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_create.json - */ -async function createAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource: AutonomousDatabase = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Regular", - dataStorageSizeInTbs: 1, - dbVersion: "18.4.0.0", - displayName: "example_autonomous_databasedb1", - ncharacterSet: "AL16UTF16", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a AutonomousDatabase - * - * @summary Create a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabaseClone_create.json - */ -async function createCloneAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const resource: AutonomousDatabase = { - location: "eastus", - properties: { - adminPassword: "********", - characterSet: "AL32UTF8", - cloneType: "Full", - computeCount: 2, - computeModel: "ECPU", - dataBaseType: "Clone", - dataStorageSizeInTbs: 1, - displayName: "example_autonomous_databasedb1_clone", - ncharacterSet: "AL16UTF16", - sourceId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginCreateOrUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - resource, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesCreateOrUpdate(); - autonomousDatabasesCreateOrUpdateClone(); - createAutonomousDatabase(); - createCloneAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesDeleteSample.ts deleted file mode 100644 index 89652ecb0645..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a AutonomousDatabase - * - * @summary Delete a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_delete.json - */ -async function deleteAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginDeleteAndWait( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -async function main() { - deleteAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesFailoverSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesFailoverSample.ts deleted file mode 100644 index 5c0ce573e458..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesFailoverSample.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PeerDbDetails, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Perform failover action on Autonomous Database - * - * @summary Perform failover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json - */ -async function autonomousDatabasesFailover() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: PeerDbDetails = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginFailoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Perform failover action on Autonomous Database - * - * @summary Perform failover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_failover.json - */ -async function performFailoverActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: PeerDbDetails = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginFailoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesFailover(); - performFailoverActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGenerateWalletSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGenerateWalletSample.ts deleted file mode 100644 index 5f029f0ead8c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGenerateWalletSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - GenerateAutonomousDatabaseWalletDetails, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Generate wallet action on Autonomous Database - * - * @summary Generate wallet action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_generateWallet.json - */ -async function generateWalletActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: GenerateAutonomousDatabaseWalletDetails = { - generateType: "Single", - isRegional: false, - password: "SecretPlaceholder", - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.generateWallet( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - generateWalletActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGetSample.ts deleted file mode 100644 index ffd29f6309b4..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesGetSample.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a AutonomousDatabase - * - * @summary Get a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json - */ -async function autonomousDatabasesGet() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.get( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Get a AutonomousDatabase - * - * @summary Get a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_get.json - */ -async function getAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.get( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesGet(); - getAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListByResourceGroupSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListByResourceGroupSample.ts deleted file mode 100644 index 8f68800d3ae6..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabase resources by resource group - * - * @summary List AutonomousDatabase resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listByResourceGroup.json - */ -async function listAutonomousDatabaseByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabases.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDatabaseByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListBySubscriptionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListBySubscriptionSample.ts deleted file mode 100644 index 54127fd21854..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List AutonomousDatabase resources by subscription ID - * - * @summary List AutonomousDatabase resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_listBySubscription.json - */ -async function listAutonomousDatabaseBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autonomousDatabases.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutonomousDatabaseBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesRestoreSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesRestoreSample.ts deleted file mode 100644 index 968cf0b7994e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesRestoreSample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - RestoreAutonomousDatabaseDetails, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Restores an Autonomous Database based on the provided request parameters. - * - * @summary Restores an Autonomous Database based on the provided request parameters. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json - */ -async function autonomousDatabasesRestore() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: RestoreAutonomousDatabaseDetails = { - timestamp: new Date("2024-04-23T00:00:00.000Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginRestoreAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Restores an Autonomous Database based on the provided request parameters. - * - * @summary Restores an Autonomous Database based on the provided request parameters. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_restore.json - */ -async function performRestoreActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: RestoreAutonomousDatabaseDetails = { - timestamp: new Date("2024-04-23T00:00:00.000Z"), - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginRestoreAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesRestore(); - performRestoreActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesShrinkSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesShrinkSample.ts deleted file mode 100644 index 0603d98e98f1..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesShrinkSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to This operation shrinks the current allocated storage down to the current actual used data storage. - * - * @summary This operation shrinks the current allocated storage down to the current actual used data storage. - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_shrink.json - */ -async function performShrinkActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginShrinkAndWait( - resourceGroupName, - autonomousdatabasename, - ); - console.log(result); -} - -async function main() { - performShrinkActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesSwitchoverSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesSwitchoverSample.ts deleted file mode 100644 index 61c2e5a44076..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesSwitchoverSample.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PeerDbDetails, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Perform switchover action on Autonomous Database - * - * @summary Perform switchover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json - */ -async function autonomousDatabasesSwitchover() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: PeerDbDetails = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginSwitchoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Perform switchover action on Autonomous Database - * - * @summary Perform switchover action on Autonomous Database - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_switchover.json - */ -async function performSwitchoverActionOnAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const body: PeerDbDetails = { peerDbId: "peerDbId" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginSwitchoverAndWait( - resourceGroupName, - autonomousdatabasename, - body, - ); - console.log(result); -} - -async function main() { - autonomousDatabasesSwitchover(); - performSwitchoverActionOnAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesUpdateSample.ts deleted file mode 100644 index 01eb25ce22c3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/autonomousDatabasesUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutonomousDatabaseUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a AutonomousDatabase - * - * @summary Update a AutonomousDatabase - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/autonomousDatabase_patch.json - */ -async function patchAutonomousDatabase() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const autonomousdatabasename = "databasedb1"; - const properties: AutonomousDatabaseUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.autonomousDatabases.beginUpdateAndWait( - resourceGroupName, - autonomousdatabasename, - properties, - ); - console.log(result); -} - -async function main() { - patchAutonomousDatabase(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresAddStorageCapacitySample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresAddStorageCapacitySample.ts deleted file mode 100644 index dec80ac0cb3d..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresAddStorageCapacitySample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Perform add storage capacity on exadata infra - * - * @summary Perform add storage capacity on exadata infra - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_addStorageCapacity.json - */ -async function performAddStorageCapacityOnExadataInfra() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.cloudExadataInfrastructures.beginAddStorageCapacityAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - performAddStorageCapacityOnExadataInfra(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresCreateOrUpdateSample.ts deleted file mode 100644 index 3e0895e943f3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresCreateOrUpdateSample.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CloudExadataInfrastructure, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a CloudExadataInfrastructure - * - * @summary Create a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_create.json - */ -async function createExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const resource: CloudExadataInfrastructure = { - location: "eastus", - properties: { - computeCount: 100, - displayName: "infra 1", - shape: "EXADATA.X9M", - storageCount: 10, - }, - tags: { tagK1: "tagV1" }, - zones: ["1"], - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.cloudExadataInfrastructures.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - resource, - ); - console.log(result); -} - -async function main() { - createExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresDeleteSample.ts deleted file mode 100644 index 58ae135692da..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a CloudExadataInfrastructure - * - * @summary Delete a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_delete.json - */ -async function deleteExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.beginDeleteAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - deleteExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresGetSample.ts deleted file mode 100644 index 90f0dde6fe43..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a CloudExadataInfrastructure - * - * @summary Get a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_get.json - */ -async function getExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.get( - resourceGroupName, - cloudexadatainfrastructurename, - ); - console.log(result); -} - -async function main() { - getExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListByResourceGroupSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListByResourceGroupSample.ts deleted file mode 100644 index 39c7f65aa15a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List CloudExadataInfrastructure resources by resource group - * - * @summary List CloudExadataInfrastructure resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listByResourceGroup.json - */ -async function listExadataInfrastructureByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudExadataInfrastructures.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataInfrastructureByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListBySubscriptionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListBySubscriptionSample.ts deleted file mode 100644 index f7cd8e154245..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List CloudExadataInfrastructure resources by subscription ID - * - * @summary List CloudExadataInfrastructure resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_listBySubscription.json - */ -async function listExadataInfrastructureBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudExadataInfrastructures.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataInfrastructureBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresUpdateSample.ts deleted file mode 100644 index ac140b8403ce..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudExadataInfrastructuresUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CloudExadataInfrastructureUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a CloudExadataInfrastructure - * - * @summary Update a CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/exaInfra_patch.json - */ -async function patchExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const properties: CloudExadataInfrastructureUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudExadataInfrastructures.beginUpdateAndWait( - resourceGroupName, - cloudexadatainfrastructurename, - properties, - ); - console.log(result); -} - -async function main() { - patchExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersAddVmsSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersAddVmsSample.ts deleted file mode 100644 index 825bad6f5078..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersAddVmsSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AddRemoveDbNode, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Add VMs to the VM Cluster - * - * @summary Add VMs to the VM Cluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_addVms.json - */ -async function addVMSToVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body: AddRemoveDbNode = { dbServers: ["ocid1..aaaa", "ocid1..aaaaaa"] }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginAddVmsAndWait( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - addVMSToVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersCreateOrUpdateSample.ts deleted file mode 100644 index 2b3c5caed92f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersCreateOrUpdateSample.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CloudVmCluster, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a CloudVmCluster - * - * @summary Create a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_create.json - */ -async function createVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const resource: CloudVmCluster = { - location: "eastus", - properties: { - backupSubnetCidr: "172.17.5.0/24", - cloudExadataInfrastructureId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", - clusterName: "cluster1", - cpuCoreCount: 2, - dataCollectionOptions: { - isDiagnosticsEventsEnabled: false, - isHealthMonitoringEnabled: false, - isIncidentLogsEnabled: false, - }, - dataStoragePercentage: 100, - dataStorageSizeInTbs: 1000, - dbNodeStorageSizeInGbs: 1000, - dbServers: ["ocid1..aaaa"], - displayName: "cluster 1", - domain: "domain1", - giVersion: "19.0.0.0", - hostname: "hostname1", - isLocalBackupEnabled: false, - isSparseDiskgroupEnabled: false, - licenseModel: "LicenseIncluded", - memorySizeInGbs: 1000, - nsgCidrs: [ - { - destinationPortRange: { max: 1522, min: 1520 }, - source: "10.0.0.0/16", - }, - { source: "10.10.0.0/24" }, - ], - ocpuCount: 3, - scanListenerPortTcp: 1050, - scanListenerPortTcpSsl: 1025, - sshPublicKeys: ["ssh-key 1"], - subnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", - timeZone: "UTC", - vnetId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", - }, - tags: { tagK1: "tagV1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudvmclustername, - resource, - ); - console.log(result); -} - -async function main() { - createVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersDeleteSample.ts deleted file mode 100644 index d3e4ea8cf1f5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a CloudVmCluster - * - * @summary Delete a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_delete.json - */ -async function deleteVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginDeleteAndWait( - resourceGroupName, - cloudvmclustername, - ); - console.log(result); -} - -async function main() { - deleteVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersGetSample.ts deleted file mode 100644 index ca60abab1fbe..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a CloudVmCluster - * - * @summary Get a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_get.json - */ -async function getVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.get( - resourceGroupName, - cloudvmclustername, - ); - console.log(result); -} - -async function main() { - getVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListByResourceGroupSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListByResourceGroupSample.ts deleted file mode 100644 index 7abc2031fa5e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List CloudVmCluster resources by resource group - * - * @summary List CloudVmCluster resources by resource group - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listByResourceGroup.json - */ -async function listVMClustersByResourceGroup() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudVmClusters.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVMClustersByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListBySubscriptionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListBySubscriptionSample.ts deleted file mode 100644 index ceb21225878a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List CloudVmCluster resources by subscription ID - * - * @summary List CloudVmCluster resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listBySubscription.json - */ -async function listVMClustersBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.cloudVmClusters.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVMClustersBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListPrivateIPAddressesSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListPrivateIPAddressesSample.ts deleted file mode 100644 index b32ad2621237..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersListPrivateIPAddressesSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PrivateIpAddressesFilter, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Private IP Addresses by the provided filter - * - * @summary List Private IP Addresses by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_listPrivateIpAddresses.json - */ -async function listPrivateIPAddressesForVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body: PrivateIpAddressesFilter = { - subnetId: "ocid1..aaaaaa", - vnicId: "ocid1..aaaaa", - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.listPrivateIpAddresses( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - listPrivateIPAddressesForVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersRemoveVmsSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersRemoveVmsSample.ts deleted file mode 100644 index 61598eb2ffa5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersRemoveVmsSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AddRemoveDbNode, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Remove VMs from the VM Cluster - * - * @summary Remove VMs from the VM Cluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_removeVms.json - */ -async function removeVMSFromVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const body: AddRemoveDbNode = { dbServers: ["ocid1..aaaa"] }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginRemoveVmsAndWait( - resourceGroupName, - cloudvmclustername, - body, - ); - console.log(result); -} - -async function main() { - removeVMSFromVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersUpdateSample.ts deleted file mode 100644 index 04a8ed9b9536..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/cloudVMClustersUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - CloudVmClusterUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a CloudVmCluster - * - * @summary Update a CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/vmClusters_patch.json - */ -async function patchVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const properties: CloudVmClusterUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.cloudVmClusters.beginUpdateAndWait( - resourceGroupName, - cloudvmclustername, - properties, - ); - console.log(result); -} - -async function main() { - patchVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesActionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesActionSample.ts deleted file mode 100644 index d316c66451f3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesActionSample.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DbNodeAction, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to VM actions on DbNode of VM Cluster by the provided filter - * - * @summary VM actions on DbNode of VM Cluster by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json - */ -async function dbNodesAction() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const body: DbNodeAction = { action: "Start" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.beginActionAndWait( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - body, - ); - console.log(result); -} - -/** - * This sample demonstrates how to VM actions on DbNode of VM Cluster by the provided filter - * - * @summary VM actions on DbNode of VM Cluster by the provided filter - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_action.json - */ -async function vmActionsOnDbNodesOfVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const body: DbNodeAction = { action: "Start" }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.beginActionAndWait( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - body, - ); - console.log(result); -} - -async function main() { - dbNodesAction(); - vmActionsOnDbNodesOfVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesGetSample.ts deleted file mode 100644 index dc6a9477b326..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DbNode - * - * @summary Get a DbNode - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_get.json - */ -async function getDbNode() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const dbnodeocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbNodes.get( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - ); - console.log(result); -} - -async function main() { - getDbNode(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesListByCloudVMClusterSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesListByCloudVMClusterSample.ts deleted file mode 100644 index a9fa4184625a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbNodesListByCloudVMClusterSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DbNode resources by CloudVmCluster - * - * @summary List DbNode resources by CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbNodes_listByParent.json - */ -async function listDbNodesByVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbNodes.listByCloudVmCluster( - resourceGroupName, - cloudvmclustername, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbNodesByVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersGetSample.ts deleted file mode 100644 index f7c2dde2c1f9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DbServer - * - * @summary Get a DbServer - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_get.json - */ -async function getDbServerByParent() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const dbserverocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbServers.get( - resourceGroupName, - cloudexadatainfrastructurename, - dbserverocid, - ); - console.log(result); -} - -async function main() { - getDbServerByParent(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersListByCloudExadataInfrastructureSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersListByCloudExadataInfrastructureSample.ts deleted file mode 100644 index 86bc3737e7d1..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbServersListByCloudExadataInfrastructureSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DbServer resources by CloudExadataInfrastructure - * - * @summary List DbServer resources by CloudExadataInfrastructure - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbServers_listByParent.json - */ -async function listDbServersByExadataInfrastructure() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudexadatainfrastructurename = "infra1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbServers.listByCloudExadataInfrastructure( - resourceGroupName, - cloudexadatainfrastructurename, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbServersByExadataInfrastructure(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesGetSample.ts deleted file mode 100644 index 9047c3f0948f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DbSystemShape - * - * @summary Get a DbSystemShape - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_get.json - */ -async function getADbSystemShapeByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dbsystemshapename = "EXADATA.X9M"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dbSystemShapes.get(location, dbsystemshapename); - console.log(result); -} - -async function main() { - getADbSystemShapeByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesListByLocationSample.ts deleted file mode 100644 index f92c19fed7c0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dbSystemShapesListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DbSystemShape resources by Location - * - * @summary List DbSystemShape resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dbSystemShapes_listByLocation.json - */ -async function listDbSystemShapesByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dbSystemShapes.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDbSystemShapesByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsGetSample.ts deleted file mode 100644 index 5b6e0cbbaf4b..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DnsPrivateView - * - * @summary Get a DnsPrivateView - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_get.json - */ -async function getADnsPrivateViewByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dnsprivateviewocid = "ocid1....aaaaaa"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dnsPrivateViews.get(location, dnsprivateviewocid); - console.log(result); -} - -async function main() { - getADnsPrivateViewByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsListByLocationSample.ts deleted file mode 100644 index 27e5e719013a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateViewsListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DnsPrivateView resources by Location - * - * @summary List DnsPrivateView resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateViews_listByLocation.json - */ -async function listDnsPrivateViewsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dnsPrivateViews.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDnsPrivateViewsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesGetSample.ts deleted file mode 100644 index 9d502aead013..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a DnsPrivateZone - * - * @summary Get a DnsPrivateZone - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_get.json - */ -async function getADnsPrivateZoneByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const dnsprivatezonename = "example-dns-private-zone"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.dnsPrivateZones.get(location, dnsprivatezonename); - console.log(result); -} - -async function main() { - getADnsPrivateZoneByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesListByLocationSample.ts deleted file mode 100644 index e2e9fb9aa964..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/dnsPrivateZonesListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List DnsPrivateZone resources by Location - * - * @summary List DnsPrivateZone resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/dnsPrivateZones_listByLocation.json - */ -async function listDnsPrivateZonesByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dnsPrivateZones.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDnsPrivateZonesByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsGetSample.ts deleted file mode 100644 index 5523f6c23e1f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsGetSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a GiVersion - * - * @summary Get a GiVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_get.json - */ -async function getAGiVersionByName() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const giversionname = "19.0.0.0"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.giVersions.get(location, giversionname); - console.log(result); -} - -async function main() { - getAGiVersionByName(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsListByLocationSample.ts deleted file mode 100644 index 77008bf966a7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/giVersionsListByLocationSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List GiVersion resources by Location - * - * @summary List GiVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/giVersions_listByLocation.json - */ -async function listGiVersionsByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.giVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listGiVersionsByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/operationsListSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/operationsListSample.ts deleted file mode 100644 index 283f14fa92b9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the operations for the provider - * - * @summary List the operations for the provider - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/operations_list.json - */ -async function listOperations() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOperations(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsCreateOrUpdateSample.ts deleted file mode 100644 index f285f04a8239..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - OracleSubscription, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a OracleSubscription - * - * @summary Create a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_create.json - */ -async function createOrUpdateOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resource: OracleSubscription = { - plan: { - name: "plan1", - product: "product1", - promotionCode: "none", - publisher: "publisher1", - version: "alpha", - }, - properties: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginCreateOrUpdateAndWait(resource); - console.log(result); -} - -async function main() { - createOrUpdateOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsDeleteSample.ts deleted file mode 100644 index a8731e7d04d1..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsDeleteSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a OracleSubscription - * - * @summary Delete a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_delete.json - */ -async function deleteOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.beginDeleteAndWait(); - console.log(result); -} - -async function main() { - deleteOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsGetSample.ts deleted file mode 100644 index 62939017706c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsGetSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a OracleSubscription - * - * @summary Get a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_get.json - */ -async function getOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.oracleSubscriptions.get(); - console.log(result); -} - -async function main() { - getOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListActivationLinksSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListActivationLinksSample.ts deleted file mode 100644 index ecacead41e00..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListActivationLinksSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Activation Links - * - * @summary List Activation Links - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listActivationLinks.json - */ -async function listActivationLinksForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginListActivationLinksAndWait(); - console.log(result); -} - -async function main() { - listActivationLinksForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListBySubscriptionSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListBySubscriptionSample.ts deleted file mode 100644 index aee03d632521..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List OracleSubscription resources by subscription ID - * - * @summary List OracleSubscription resources by subscription ID - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listBySubscription.json - */ -async function listOracleSubscriptionsBySubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.oracleSubscriptions.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listOracleSubscriptionsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListCloudAccountDetailsSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListCloudAccountDetailsSample.ts deleted file mode 100644 index ba5b38c114a0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListCloudAccountDetailsSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Cloud Account Details - * - * @summary List Cloud Account Details - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listCloudAccountDetails.json - */ -async function listCloudAccountDetailsForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginListCloudAccountDetailsAndWait(); - console.log(result); -} - -async function main() { - listCloudAccountDetailsForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts deleted file mode 100644 index 6fca209f23c6..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsListSaasSubscriptionDetailsSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List Saas Subscription Details - * - * @summary List Saas Subscription Details - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_listSaasSubscriptionDetails.json - */ -async function listSaasSubscriptionDetailsForTheOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginListSaasSubscriptionDetailsAndWait(); - console.log(result); -} - -async function main() { - listSaasSubscriptionDetailsForTheOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsUpdateSample.ts deleted file mode 100644 index a8e81ad1eb83..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/oracleSubscriptionsUpdateSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - OracleSubscriptionUpdate, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a OracleSubscription - * - * @summary Update a OracleSubscription - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/oracleSubscriptions_patch.json - */ -async function patchOracleSubscription() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const properties: OracleSubscriptionUpdate = {}; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.oracleSubscriptions.beginUpdateAndWait(properties); - console.log(result); -} - -async function main() { - patchOracleSubscription(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsGetSample.ts deleted file mode 100644 index f1504473e0e5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsGetSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a SystemVersion - * - * @summary Get a SystemVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json - */ -async function getExadataSystemVersion() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const systemversionname = "22.x"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.systemVersions.get(location, systemversionname); - console.log(result); -} - -/** - * This sample demonstrates how to Get a SystemVersion - * - * @summary Get a SystemVersion - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_get.json - */ -async function systemVersionsListSystemVersions() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const systemversionname = "22.x"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.systemVersions.get(location, systemversionname); - console.log(result); -} - -async function main() { - getExadataSystemVersion(); - systemVersionsListSystemVersions(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsListByLocationSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsListByLocationSample.ts deleted file mode 100644 index c7aab3f1749f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/systemVersionsListByLocationSample.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List SystemVersion resources by Location - * - * @summary List SystemVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json - */ -async function listExadataSystemVersionsByTheProvidedFilter() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.systemVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to List SystemVersion resources by Location - * - * @summary List SystemVersion resources by Location - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/systemVersions_listByLocation.json - */ -async function systemVersionsListByLocation() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const location = "eastus"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.systemVersions.listByLocation(location)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listExadataSystemVersionsByTheProvidedFilter(); - systemVersionsListByLocation(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesCreateOrUpdateSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesCreateOrUpdateSample.ts deleted file mode 100644 index 1dd5be9dda3a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesCreateOrUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - VirtualNetworkAddress, - OracleDatabaseManagementClient, -} from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a VirtualNetworkAddress - * - * @summary Create a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_create.json - */ -async function createVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const resource: VirtualNetworkAddress = { - properties: { ipAddress: "192.168.0.1", vmOcid: "ocid1..aaaa" }, - }; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = - await client.virtualNetworkAddresses.beginCreateOrUpdateAndWait( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - resource, - ); - console.log(result); -} - -async function main() { - createVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesDeleteSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesDeleteSample.ts deleted file mode 100644 index 35c5cde03d95..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a VirtualNetworkAddress - * - * @summary Delete a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_delete.json - */ -async function deleteVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.virtualNetworkAddresses.beginDeleteAndWait( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - ); - console.log(result); -} - -async function main() { - deleteVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesGetSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesGetSample.ts deleted file mode 100644 index a15a724bfba9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a VirtualNetworkAddress - * - * @summary Get a VirtualNetworkAddress - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_get.json - */ -async function getVirtualNetworkAddress() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const virtualnetworkaddressname = "hostname1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const result = await client.virtualNetworkAddresses.get( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - ); - console.log(result); -} - -async function main() { - getVirtualNetworkAddress(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesListByCloudVMClusterSample.ts b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesListByCloudVMClusterSample.ts deleted file mode 100644 index 573ad2ac40b7..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/src/virtualNetworkAddressesListByCloudVMClusterSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { OracleDatabaseManagementClient } from "@azure/arm-oracledatabase"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List VirtualNetworkAddress resources by CloudVmCluster - * - * @summary List VirtualNetworkAddress resources by CloudVmCluster - * x-ms-original-file: specification/oracle/resource-manager/Oracle.Database/stable/2023-09-01/examples/virtualNetworkAddresses_listByParent.json - */ -async function listVirtualNetworkAddressesByVMCluster() { - const subscriptionId = - process.env["ORACLEDATABASE_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = - process.env["ORACLEDATABASE_RESOURCE_GROUP"] || "rg000"; - const cloudvmclustername = "cluster1"; - const credential = new DefaultAzureCredential(); - const client = new OracleDatabaseManagementClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.virtualNetworkAddresses.listByCloudVmCluster( - resourceGroupName, - cloudvmclustername, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listVirtualNetworkAddressesByVMCluster(); -} - -main().catch(console.error); diff --git a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/tsconfig.json b/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/tsconfig.json deleted file mode 100644 index 984eed535aa8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/samples/v1/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts" - ] -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/index.ts b/sdk/oracledatabase/arm-oracledatabase/src/index.ts deleted file mode 100644 index 40d0d4c271bf..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/index.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -/// -export { getContinuationToken } from "./pagingHelper"; -export * from "./models"; -export { OracleDatabaseManagementClient } from "./oracleDatabaseManagementClient"; -export * from "./operationsInterfaces"; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/lroImpl.ts b/sdk/oracledatabase/arm-oracledatabase/src/lroImpl.ts deleted file mode 100644 index b27f5ac7209b..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/lroImpl.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { AbortSignalLike } from "@azure/abort-controller"; -import { LongRunningOperation, LroResponse } from "@azure/core-lro"; - -export function createLroSpec(inputs: { - sendOperationFn: (args: any, spec: any) => Promise>; - args: Record; - spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record; -}): LongRunningOperation { - const { args, spec, sendOperationFn } = inputs; - return { - requestMethod: spec.httpMethod, - requestPath: spec.path!, - sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: ( - path: string, - options?: { abortSignal?: AbortSignalLike }, - ) => { - const { requestBody, ...restSpec } = spec; - return sendOperationFn(args, { - ...restSpec, - httpMethod: "GET", - path, - abortSignal: options?.abortSignal, - }); - }, - }; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/models/index.ts b/sdk/oracledatabase/arm-oracledatabase/src/models/index.ts deleted file mode 100644 index d0292ff82765..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/models/index.ts +++ /dev/null @@ -1,4608 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; - -export type AutonomousDatabaseBasePropertiesUnion = - | AutonomousDatabaseBaseProperties - | AutonomousDatabaseCloneProperties - | AutonomousDatabaseProperties; - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface OperationListResult { - /** - * List of operations supported by the resource provider - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; - /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: Origin; - /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionType?: ActionType; -} - -/** Localized display information for this particular operation. */ -export interface OperationDisplay { - /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponse { - /** The error object. */ - error?: ErrorDetail; -} - -/** The error detail. */ -export interface ErrorDetail { - /** - * The error code. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly code?: string; - /** - * The error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; - /** - * The error target. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly target?: string; - /** - * The error details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly details?: ErrorDetail[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** The resource management error additional info. */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * The additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly info?: Record; -} - -/** The response of a AutonomousDatabase list operation. */ -export interface AutonomousDatabaseListResult { - /** The AutonomousDatabase items on this page */ - value: AutonomousDatabase[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Autonomous Database base resource model. */ -export interface AutonomousDatabaseBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - dataBaseType: "Clone" | "Regular"; - /** - * Admin password. - * This value contains a credential. Consider obscuring before showing to users - */ - adminPassword?: string; - /** The maintenance schedule type of the Autonomous Database Serverless. */ - autonomousMaintenanceScheduleType?: AutonomousMaintenanceScheduleType; - /** The character set for the autonomous database. */ - characterSet?: string; - /** The compute amount (CPUs) available to the database. */ - computeCount?: number; - /** The compute model of the Autonomous Database. */ - computeModel?: ComputeModel; - /** The number of CPU cores to be made available to the database. */ - cpuCoreCount?: number; - /** Customer Contacts. */ - customerContacts?: CustomerContact[]; - /** The quantity of data in the database, in terabytes. */ - dataStorageSizeInTbs?: number; - /** The size, in gigabytes, of the data volume that will be created and attached to the database. */ - dataStorageSizeInGbs?: number; - /** A valid Oracle Database version for Autonomous Database. */ - dbVersion?: string; - /** The Autonomous Database workload type */ - dbWorkload?: WorkloadType; - /** The user-friendly name for the Autonomous Database. */ - displayName?: string; - /** Indicates if auto scaling is enabled for the Autonomous Database CPU core count. */ - isAutoScalingEnabled?: boolean; - /** Indicates if auto scaling is enabled for the Autonomous Database storage. */ - isAutoScalingForStorageEnabled?: boolean; - /** - * The list of [OCIDs](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of standby databases located in Autonomous Data Guard remote regions that are associated with the source database. Note that for Autonomous Database Serverless instances, standby databases located in the same region as the source primary database do not have OCIDs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly peerDbIds?: string[]; - /** The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer database. */ - peerDbId?: string; - /** Indicates whether the Autonomous Database has local or called in-region Data Guard enabled. */ - isLocalDataGuardEnabled?: boolean; - /** - * Indicates whether the Autonomous Database has Cross Region Data Guard enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isRemoteDataGuardEnabled?: boolean; - /** - * Indicates the local disaster recovery (DR) type of the Autonomous Database Serverless instance.Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover.Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly localDisasterRecoveryType?: DisasterRecoveryType; - /** - * Local Autonomous Disaster Recovery standby database details. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly localStandbyDb?: AutonomousDatabaseStandbySummary; - /** - * Indicates the number of seconds of data loss for a Data Guard failover. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failedDataRecoveryInSeconds?: number; - /** Specifies if the Autonomous Database requires mTLS connections. */ - isMtlsConnectionRequired?: boolean; - /** Specifies if the Autonomous Database preview version is being provisioned. */ - isPreviewVersionWithServiceTermsAccepted?: boolean; - /** The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED. */ - licenseModel?: LicenseModel; - /** The character set for the Autonomous Database. */ - ncharacterSet?: string; - /** - * Additional information about the current lifecycle state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleDetails?: string; - /** - * Azure resource provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: AzureResourceProvisioningState; - /** - * Views lifecycleState - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: AutonomousDatabaseLifecycleState; - /** The list of scheduled operations. */ - scheduledOperations?: ScheduledOperationsType; - /** The private endpoint Ip address for the resource. */ - privateEndpointIp?: string; - /** The resource's private endpoint label. */ - privateEndpointLabel?: string; - /** - * HTTPS link to OCI resources exposed to Azure Customer via Azure Interface. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ociUrl?: string; - /** Client subnet */ - subnetId?: string; - /** VNET for network connectivity */ - vnetId?: string; - /** - * The date and time that the database was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: Date; - /** - * The date and time when maintenance will begin. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeMaintenanceBegin?: Date; - /** - * The date and time when maintenance will end. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeMaintenanceEnd?: Date; - /** - * The current amount of storage in use for user and system data, in terabytes (TB). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actualUsedDataStorageSizeInTbs?: number; - /** - * The amount of storage currently allocated for the database tables and billed for, rounded up. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly allocatedStorageSizeInTbs?: number; - /** - * Information about Oracle APEX Application Development. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly apexDetails?: ApexDetailsType; - /** - * List of Oracle Database versions available for a database upgrade. If there are no version upgrades available, this list is empty. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableUpgradeVersions?: string[]; - /** - * The connection string used to connect to the Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectionStrings?: ConnectionStringType; - /** - * The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectionUrls?: ConnectionUrlType; - /** - * Status of the Data Safe registration for this Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dataSafeStatus?: DataSafeStatusType; - /** The Oracle Database Edition that applies to the Autonomous databases. */ - databaseEdition?: DatabaseEditionType; - /** Autonomous Database ID */ - autonomousDatabaseId?: string; - /** - * The area assigned to In-Memory tables in Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inMemoryAreaInGbs?: number; - /** - * The date and time when the next long-term backup would be created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLongTermBackupTimeStamp?: Date; - /** Details for the long-term backup schedule. */ - longTermBackupSchedule?: LongTermBackUpScheduleDetails; - /** - * Indicates if the Autonomous Database version is a preview version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isPreview?: boolean; - /** Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover will be triggered when necessary for a Local Autonomous Data Guard */ - localAdgAutoFailoverMaxDataLossLimit?: number; - /** - * The amount of memory (in GBs) enabled per ECPU or OCPU. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memoryPerOracleComputeUnitInGbs?: number; - /** Indicates the Autonomous Database mode. */ - openMode?: OpenModeType; - /** - * Status of Operations Insights for this Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationsInsightsStatus?: OperationsInsightsStatusType; - /** The Autonomous Database permission level. */ - permissionLevel?: PermissionLevelType; - /** - * The private endpoint for the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpoint?: string; - /** - * An array of CPU values that an Autonomous Database can be scaled to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisionableCpus?: number[]; - /** The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. */ - role?: RoleType; - /** - * The URL of the Service Console for the Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serviceConsoleUrl?: string; - /** - * The SQL Web Developer URL for the Oracle Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sqlWebDeveloperUrl?: string; - /** - * The list of regions that support the creation of an Autonomous Database clone or an Autonomous Data Guard standby database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly supportedRegionsToCloneTo?: string[]; - /** - * The date and time the Autonomous Data Guard role was switched for the Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeDataGuardRoleChanged?: string; - /** - * The date and time the Always Free database will be automatically deleted because of inactivity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeDeletionOfFreeAutonomousDatabase?: string; - /** - * The date and time that Autonomous Data Guard was enabled for an Autonomous Database where the standby was provisioned in the same region as the primary database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeLocalDataGuardEnabled?: string; - /** - * The timestamp of the last failover operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeOfLastFailover?: string; - /** - * The date and time when last refresh happened. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeOfLastRefresh?: string; - /** - * The refresh point timestamp (UTC). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeOfLastRefreshPoint?: string; - /** - * The timestamp of the last switchover operation for the Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeOfLastSwitchover?: string; - /** - * The date and time the Always Free database will be stopped because of inactivity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeReclamationOfFreeAutonomousDatabase?: string; - /** - * The storage space consumed by Autonomous Database in GBs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly usedDataStorageSizeInGbs?: number; - /** - * The amount of storage that has been used, in terabytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly usedDataStorageSizeInTbs?: number; - /** - * Database ocid - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid?: string; - /** Retention period, in days, for long-term backups */ - backupRetentionPeriodInDays?: number; - /** The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25'] */ - whitelistedIps?: string[]; -} - -/** CustomerContact resource properties */ -export interface CustomerContact { - /** The email address used by Oracle to send notifications regarding databases and infrastructure. */ - email: string; -} - -/** Autonomous Disaster Recovery standby database details. */ -export interface AutonomousDatabaseStandbySummary { - /** The amount of time, in seconds, that the data of the standby database lags the data of the primary database. Can be used to determine the potential data loss in the event of a failover. */ - lagTimeInSeconds?: number; - /** The current state of the Autonomous Database. */ - lifecycleState?: AutonomousDatabaseLifecycleState; - /** Additional information about the current lifecycle state. */ - lifecycleDetails?: string; - /** The date and time the Autonomous Data Guard role was switched for the standby Autonomous Database. */ - timeDataGuardRoleChanged?: string; - /** The date and time the Disaster Recovery role was switched for the standby Autonomous Database. */ - timeDisasterRecoveryRoleChanged?: string; -} - -/** The list of scheduled operations. */ -export interface ScheduledOperationsType { - /** Day of week */ - dayOfWeek: DayOfWeek; - /** auto start time. value must be of ISO-8601 format HH:mm */ - scheduledStartTime?: string; - /** auto stop time. value must be of ISO-8601 format HH:mm */ - scheduledStopTime?: string; -} - -/** DayOfWeek resource properties */ -export interface DayOfWeek { - /** Name of the day of the week. */ - name: DayOfWeekName; -} - -/** Information about Oracle APEX Application Development. */ -export interface ApexDetailsType { - /** The Oracle APEX Application Development version. */ - apexVersion?: string; - /** The Oracle REST Data Services (ORDS) version. */ - ordsVersion?: string; -} - -/** Connection strings to connect to an Oracle Autonomous Database. */ -export interface ConnectionStringType { - /** Returns all connection strings that can be used to connect to the Autonomous Database. */ - allConnectionStrings?: AllConnectionStringType; - /** The database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements. */ - dedicated?: string; - /** The High database service provides the highest level of resources to each SQL statement resulting in the highest performance, but supports the fewest number of concurrent SQL statements. */ - high?: string; - /** The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements. */ - low?: string; - /** The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements. */ - medium?: string; - /** A list of connection string profiles to allow clients to group, filter and select connection string values based on structured metadata. */ - profiles?: ProfileType[]; -} - -/** The connection string profile to allow clients to group, filter and select connection string values based on structured metadata. */ -export interface AllConnectionStringType { - /** The High database service provides the highest level of resources to each SQL statement resulting in the highest performance, but supports the fewest number of concurrent SQL statements. */ - high?: string; - /** The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements. */ - low?: string; - /** The Medium database service provides a lower level of resources to each SQL statement potentially resulting a lower level of performance, but supports more concurrent SQL statements. */ - medium?: string; -} - -/** The connection string profile to allow clients to group, filter and select connection string values based on structured metadata. */ -export interface ProfileType { - /** Consumer group used by the connection. */ - consumerGroup?: ConsumerGroup; - /** A user-friendly name for the connection. */ - displayName: string; - /** Host format used in connection string. */ - hostFormat: HostFormatType; - /** True for a regional connection string, applicable to cross-region DG only. */ - isRegional?: boolean; - /** Protocol used by the connection. */ - protocol: ProtocolType; - /** Specifies whether the listener performs a direct hand-off of the session, or redirects the session. */ - sessionMode: SessionModeType; - /** Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format. */ - syntaxFormat: SyntaxFormatType; - /** Specifies whether the TLS handshake is using one-way (SERVER) or mutual (MUTUAL) authentication. */ - tlsAuthentication?: TlsAuthenticationType; - /** Connection string value. */ - value: string; -} - -/** The URLs for accessing Oracle Application Express (APEX) and SQL Developer Web with a browser from a Compute instance within your VCN or that has a direct connection to your VCN. */ -export interface ConnectionUrlType { - /** Oracle Application Express (APEX) URL. */ - apexUrl?: string; - /** The URL of the Database Transforms for the Autonomous Database. */ - databaseTransformsUrl?: string; - /** The URL of the Graph Studio for the Autonomous Database. */ - graphStudioUrl?: string; - /** The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous Database. */ - machineLearningNotebookUrl?: string; - /** The URL of the MongoDB API for the Autonomous Database. */ - mongoDbUrl?: string; - /** The Oracle REST Data Services (ORDS) URL of the Web Access for the Autonomous Database. */ - ordsUrl?: string; - /** Oracle SQL Developer Web URL. */ - sqlDevWebUrl?: string; -} - -/** Details for the long-term backup schedule. */ -export interface LongTermBackUpScheduleDetails { - /** The frequency of the long-term backup schedule */ - repeatCadence?: RepeatCadenceType; - /** The timestamp for the long-term backup schedule. For a MONTHLY cadence, months having fewer days than the provided date will have the backup taken on the last day of that month. */ - timeOfBackup?: Date; - /** Retention period, in days, for backups. */ - retentionPeriodInDays?: number; - /** Indicates if the long-term backup schedule should be deleted. The default value is `FALSE`. */ - isDisabled?: boolean; -} - -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { - /** - * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - -/** The response of a CloudExadataInfrastructure list operation. */ -export interface CloudExadataInfrastructureListResult { - /** The CloudExadataInfrastructure items on this page */ - value: CloudExadataInfrastructure[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** CloudExadataInfrastructure resource model */ -export interface CloudExadataInfrastructureProperties { - /** - * Exadata infra ocid - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid?: string; - /** The number of compute servers for the cloud Exadata infrastructure. */ - computeCount?: number; - /** The number of storage servers for the cloud Exadata infrastructure. */ - storageCount?: number; - /** - * The total storage allocated to the cloud Exadata infrastructure resource, in gigabytes (GB). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly totalStorageSizeInGbs?: number; - /** - * The available storage can be allocated to the cloud Exadata infrastructure resource, in gigabytes (GB). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableStorageSizeInGbs?: number; - /** - * The date and time the cloud Exadata infrastructure resource was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: string; - /** - * Additional information about the current lifecycle state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleDetails?: string; - /** maintenanceWindow property */ - maintenanceWindow?: MaintenanceWindow; - /** - * The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly estimatedPatchingTime?: EstimatedPatchingTime; - /** The list of customer email addresses that receive information from Oracle about the specified OCI Database service resource. Oracle uses these email addresses to send notifications about planned and unplanned software maintenance updates, information about system hardware, and other information needed by administrators. Up to 10 email addresses can be added to the customer contacts for a cloud Exadata infrastructure instance. */ - customerContacts?: CustomerContact[]; - /** - * CloudExadataInfrastructure provisioning state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: AzureResourceProvisioningState; - /** - * CloudExadataInfrastructure lifecycle state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: CloudExadataInfrastructureLifecycleState; - /** The model name of the cloud Exadata infrastructure resource. */ - shape: string; - /** - * HTTPS link to OCI resources exposed to Azure Customer via Azure Interface. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ociUrl?: string; - /** - * The total number of CPU cores allocated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cpuCount?: number; - /** - * The total number of CPU cores available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxCpuCount?: number; - /** - * The memory allocated in GBs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memorySizeInGbs?: number; - /** - * The total memory available in GBs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxMemoryInGbs?: number; - /** - * The local node storage to be allocated in GBs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbNodeStorageSizeInGbs?: number; - /** - * The total local node storage available in GBs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxDbNodeStorageSizeInGbs?: number; - /** - * The quantity of data in the database, in terabytes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dataStorageSizeInTbs?: number; - /** - * The total available DATA disk group size. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxDataStorageInTbs?: number; - /** - * The software version of the database servers (dom0) in the Exadata infrastructure. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbServerVersion?: string; - /** - * The software version of the storage servers (cells) in the Exadata infrastructure. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly storageServerVersion?: string; - /** - * The requested number of additional storage servers activated for the Exadata infrastructure. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly activatedStorageCount?: number; - /** - * The requested number of additional storage servers for the Exadata infrastructure. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalStorageCount?: number; - /** The name for the Exadata infrastructure. */ - displayName: string; - /** - * The OCID of the last maintenance run. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastMaintenanceRunId?: string; - /** - * The OCID of the next maintenance run. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextMaintenanceRunId?: string; - /** - * Monthly Db Server version - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly monthlyDbServerVersion?: string; - /** - * Monthly Storage Server version - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly monthlyStorageServerVersion?: string; -} - -/** MaintenanceWindow resource properties */ -export interface MaintenanceWindow { - /** The maintenance window scheduling preference. */ - preference?: Preference; - /** Months during the year when maintenance should be performed. */ - months?: Month[]; - /** Weeks during the month when maintenance should be performed. Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a duration of 7 days. Weeks start and end based on calendar dates, not days of the week. For example, to allow maintenance during the 2nd week of the month (from the 8th day to the 14th day of the month), use the value 2. Maintenance cannot be scheduled for the fifth week of months that contain more than 28 days. Note that this parameter works in conjunction with the daysOfWeek and hoursOfDay parameters to allow you to specify specific days of the week and hours that maintenance will be performed. */ - weeksOfMonth?: number[]; - /** Days during the week when maintenance should be performed. */ - daysOfWeek?: DayOfWeek[]; - /** The window of hours during the day when maintenance should be performed. The window is a 4 hour slot. Valid values are - 0 - represents time slot 0:00 - 3:59 UTC - 4 - represents time slot 4:00 - 7:59 UTC - 8 - represents time slot 8:00 - 11:59 UTC - 12 - represents time slot 12:00 - 15:59 UTC - 16 - represents time slot 16:00 - 19:59 UTC - 20 - represents time slot 20:00 - 23:59 UTC */ - hoursOfDay?: number[]; - /** Lead time window allows user to set a lead time to prepare for a down time. The lead time is in weeks and valid value is between 1 to 4. */ - leadTimeInWeeks?: number; - /** Cloud Exadata infrastructure node patching method. */ - patchingMode?: PatchingMode; - /** Determines the amount of time the system will wait before the start of each database server patching operation. Custom action timeout is in minutes and valid value is between 15 to 120 (inclusive). */ - customActionTimeoutInMins?: number; - /** If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations. */ - isCustomActionTimeoutEnabled?: boolean; - /** is Monthly Patching Enabled */ - isMonthlyPatchingEnabled?: boolean; -} - -/** Month resource properties */ -export interface Month { - /** Name of the month of the year. */ - name: MonthName; -} - -/** The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching). */ -export interface EstimatedPatchingTime { - /** - * The estimated time required in minutes for database server patching. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly estimatedDbServerPatchingTime?: number; - /** - * The estimated time required in minutes for network switch patching. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly estimatedNetworkSwitchesPatchingTime?: number; - /** - * The estimated time required in minutes for storage server patching. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly estimatedStorageServerPatchingTime?: number; - /** - * The estimated total time required in minutes for all patching operations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly totalEstimatedPatchingTime?: number; -} - -/** The response of a CloudVmCluster list operation. */ -export interface CloudVmClusterListResult { - /** The CloudVmCluster items on this page */ - value: CloudVmCluster[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** CloudVmCluster resource model */ -export interface CloudVmClusterProperties { - /** - * Cloud VM Cluster ocid - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid?: string; - /** - * The port number configured for the listener on the cloud VM cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly listenerPort?: number; - /** - * The number of nodes in the cloud VM cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nodeCount?: number; - /** The data disk group size to be allocated in GBs per VM. */ - storageSizeInGbs?: number; - /** The data disk group size to be allocated in TBs. */ - dataStorageSizeInTbs?: number; - /** The local node storage to be allocated in GBs. */ - dbNodeStorageSizeInGbs?: number; - /** The memory to be allocated in GBs. */ - memorySizeInGbs?: number; - /** - * The date and time that the cloud VM cluster was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: Date; - /** - * Additional information about the current lifecycle state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleDetails?: string; - /** The time zone of the cloud VM cluster. For details, see [Exadata Infrastructure Time Zones](/Content/Database/References/timezones.htm). */ - timeZone?: string; - /** The OCID of the zone the cloud VM cluster is associated with. */ - zoneId?: string; - /** The hostname for the cloud VM cluster. */ - hostname: string; - /** The domain name for the cloud VM cluster. */ - domain?: string; - /** The number of CPU cores enabled on the cloud VM cluster. */ - cpuCoreCount: number; - /** The number of OCPU cores to enable on the cloud VM cluster. Only 1 decimal place is allowed for the fractional part. */ - ocpuCount?: number; - /** The cluster name for cloud VM cluster. The cluster name must begin with an alphabetic character, and may contain hyphens (-). Underscores (_) are not permitted. The cluster name can be no longer than 11 characters and is not case sensitive. */ - clusterName?: string; - /** The percentage assigned to DATA storage (user data and database files). The remaining percentage is assigned to RECO storage (database redo logs, archive logs, and recovery manager backups). Accepted values are 35, 40, 60 and 80. The default is 80 percent assigned to DATA storage. See [Storage Configuration](/Content/Database/Concepts/exaoverview.htm#Exadata) in the Exadata documentation for details on the impact of the configuration settings on storage. */ - dataStoragePercentage?: number; - /** If true, database backup on local Exadata storage is configured for the cloud VM cluster. If false, database backup on local Exadata storage is not available in the cloud VM cluster. */ - isLocalBackupEnabled?: boolean; - /** Cloud Exadata Infrastructure ID */ - cloudExadataInfrastructureId: string; - /** If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. */ - isSparseDiskgroupEnabled?: boolean; - /** Operating system version of the image. */ - systemVersion?: string; - /** The public key portion of one or more key pairs used for SSH access to the cloud VM cluster. */ - sshPublicKeys: string[]; - /** The Oracle license model that applies to the cloud VM cluster. The default is LICENSE_INCLUDED. */ - licenseModel?: LicenseModel; - /** - * The type of redundancy configured for the cloud Vm cluster. NORMAL is 2-way redundancy. HIGH is 3-way redundancy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly diskRedundancy?: DiskRedundancy; - /** - * The Single Client Access Name (SCAN) IP addresses associated with the cloud VM cluster. SCAN IP addresses are typically used for load balancing and are not assigned to any interface. Oracle Clusterware directs the requests to the appropriate nodes in the cluster. **Note:** For a single-node DB system, this list is empty. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scanIpIds?: string[]; - /** - * The virtual IP (VIP) addresses associated with the cloud VM cluster. The Cluster Ready Services (CRS) creates and maintains one VIP address for each node in the Exadata Cloud Service instance to enable failover. If one node fails, the VIP is reassigned to another active node in the cluster. **Note:** For a single-node DB system, this list is empty. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vipIds?: string[]; - /** - * The FQDN of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scanDnsName?: string; - /** The TCP Single Client Access Name (SCAN) port. The default port is 1521. */ - scanListenerPortTcp?: number; - /** The TCPS Single Client Access Name (SCAN) port. The default port is 2484. */ - scanListenerPortTcpSsl?: number; - /** - * The OCID of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly scanDnsRecordId?: string; - /** - * The model name of the Exadata hardware running the cloud VM cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly shape?: string; - /** - * CloudVmCluster provisioning state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: AzureResourceProvisioningState; - /** - * CloudVmCluster lifecycle state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: CloudVmClusterLifecycleState; - /** VNET for network connectivity */ - vnetId: string; - /** Oracle Grid Infrastructure (GI) software version */ - giVersion: string; - /** - * HTTPS link to OCI resources exposed to Azure Customer via Azure Interface. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ociUrl?: string; - /** - * HTTPS link to OCI Network Security Group exposed to Azure Customer via the Azure Interface. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nsgUrl?: string; - /** Client subnet */ - subnetId: string; - /** Client OCI backup subnet CIDR, default is 192.168.252.0/22 */ - backupSubnetCidr?: string; - /** CIDR blocks for additional NSG ingress rules. The VNET CIDRs used to provision the VM Cluster will be added by default. */ - nsgCidrs?: NsgCidr[]; - /** Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS. */ - dataCollectionOptions?: DataCollectionOptions; - /** Display Name */ - displayName: string; - /** The list of compute servers to be added to the cloud VM cluster. */ - computeNodes?: string[]; - /** - * iormConfigCache details for cloud VM cluster. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly iormConfigCache?: ExadataIormConfig; - /** - * The OCID of the last maintenance update history entry. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lastUpdateHistoryEntryId?: string; - /** The list of DB servers. */ - dbServers?: string[]; - /** - * Cluster compartmentId - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly compartmentId?: string; - /** - * Cluster subnet ocid - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subnetOcid?: string; -} - -/** A rule for allowing inbound (INGRESS) IP packets */ -export interface NsgCidr { - /** Conceptually, this is the range of IP addresses that a packet coming into the instance can come from. */ - source: string; - /** Destination port range to specify particular destination ports for TCP rules. */ - destinationPortRange?: PortRange; -} - -/** Port Range to specify particular destination ports for TCP rules. */ -export interface PortRange { - /** The minimum port number, which must not be greater than the maximum port number. */ - min: number; - /** The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value. */ - max: number; -} - -/** DataCollectionOptions resource properties */ -export interface DataCollectionOptions { - /** Indicates whether diagnostic collection is enabled for the VM cluster/Cloud VM cluster/VMBM DBCS. */ - isDiagnosticsEventsEnabled?: boolean; - /** Indicates whether health monitoring is enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. */ - isHealthMonitoringEnabled?: boolean; - /** Indicates whether incident logs and trace collection are enabled for the VM cluster / Cloud VM cluster / VMBM DBCS. */ - isIncidentLogsEnabled?: boolean; -} - -/** ExadataIormConfig for cloud vm cluster */ -export interface ExadataIormConfig { - /** An array of IORM settings for all the database in the Exadata DB system. */ - dbPlans?: DbIormConfig[]; - /** Additional information about the current lifecycleState. */ - lifecycleDetails?: string; - /** The current state of IORM configuration for the Exadata DB system. */ - lifecycleState?: IormLifecycleState; - /** The current value for the IORM objective. The default is AUTO. */ - objective?: Objective; -} - -/** DbIormConfig for cloud vm cluster */ -export interface DbIormConfig { - /** The database name. For the default DbPlan, the dbName is default. */ - dbName?: string; - /** The flash cache limit for this database. This value is internally configured based on the share value assigned to the database. */ - flashCacheLimit?: string; - /** The relative priority of this database. */ - share?: number; -} - -/** The response of a AutonomousDatabaseCharacterSet list operation. */ -export interface AutonomousDatabaseCharacterSetListResult { - /** The AutonomousDatabaseCharacterSet items on this page */ - value: AutonomousDatabaseCharacterSet[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** AutonomousDatabaseCharacterSet resource model */ -export interface AutonomousDatabaseCharacterSetProperties { - /** - * The Oracle Autonomous Database supported character sets. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly characterSet: string; -} - -/** The response of a AutonomousDatabaseNationalCharacterSet list operation. */ -export interface AutonomousDatabaseNationalCharacterSetListResult { - /** The AutonomousDatabaseNationalCharacterSet items on this page */ - value: AutonomousDatabaseNationalCharacterSet[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** AutonomousDatabaseNationalCharacterSet resource model */ -export interface AutonomousDatabaseNationalCharacterSetProperties { - /** - * The Oracle Autonomous Database supported national character sets. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly characterSet: string; -} - -/** The response of a AutonomousDbVersion list operation. */ -export interface AutonomousDbVersionListResult { - /** The AutonomousDbVersion items on this page */ - value: AutonomousDbVersion[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** AutonomousDbVersion resource model */ -export interface AutonomousDbVersionProperties { - /** - * Supported Autonomous Db versions. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly version: string; - /** - * The Autonomous Database workload type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbWorkload?: WorkloadType; - /** - * True if this version of the Oracle Database software's default is free. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDefaultForFree?: boolean; - /** - * True if this version of the Oracle Database software's default is paid. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDefaultForPaid?: boolean; - /** - * True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isFreeTierEnabled?: boolean; - /** - * True if this version of the Oracle Database software has payments enabled. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isPaidEnabled?: boolean; -} - -/** The response of a DbSystemShape list operation. */ -export interface DbSystemShapeListResult { - /** The DbSystemShape items on this page */ - value: DbSystemShape[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** DbSystemShape resource model */ -export interface DbSystemShapeProperties { - /** - * The family of the shape used for the DB system. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly shapeFamily?: string; - /** - * The maximum number of CPU cores that can be enabled on the DB system for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableCoreCount: number; - /** - * The minimum number of CPU cores that can be enabled on the DB system for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minimumCoreCount?: number; - /** - * The runtime minimum number of CPU cores that can be enabled on the DB system for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly runtimeMinimumCoreCount?: number; - /** - * The discrete number by which the CPU core count for this shape can be increased or decreased. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly coreCountIncrement?: number; - /** - * The minimum number of Exadata storage servers available for the Exadata infrastructure. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minStorageCount?: number; - /** - * The maximum number of Exadata storage servers available for the Exadata infrastructure. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxStorageCount?: number; - /** - * The maximum data storage available per storage server for this shape. Only applicable to ExaCC Elastic shapes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableDataStoragePerServerInTbs?: number; - /** - * The maximum memory available per database node for this shape. Only applicable to ExaCC Elastic shapes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableMemoryPerNodeInGbs?: number; - /** - * The maximum Db Node storage available per database node for this shape. Only applicable to ExaCC Elastic shapes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableDbNodePerNodeInGbs?: number; - /** - * The minimum number of CPU cores that can be enabled per node for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minCoreCountPerNode?: number; - /** - * The maximum memory that can be enabled for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableMemoryInGbs?: number; - /** - * The minimum memory that need be allocated per node for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minMemoryPerNodeInGbs?: number; - /** - * The maximum Db Node storage that can be enabled for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableDbNodeStorageInGbs?: number; - /** - * The minimum Db Node storage that need be allocated per node for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minDbNodeStoragePerNodeInGbs?: number; - /** - * The maximum DATA storage that can be enabled for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableDataStorageInTbs?: number; - /** - * The minimum data storage that need be allocated for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minDataStorageInTbs?: number; - /** - * The minimum number of database nodes available for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly minimumNodeCount?: number; - /** - * The maximum number of database nodes available for this shape. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maximumNodeCount?: number; - /** - * The maximum number of CPU cores per database node that can be enabled for this shape. Only applicable to the flex Exadata shape and ExaCC Elastic shapes. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly availableCoreCountPerNode?: number; -} - -/** The response of a DnsPrivateView list operation. */ -export interface DnsPrivateViewListResult { - /** The DnsPrivateView items on this page */ - value: DnsPrivateView[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Views resource model */ -export interface DnsPrivateViewProperties { - /** - * The OCID of the view - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid: string; - /** - * The display name of the view resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; - /** - * A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isProtected: boolean; - /** - * Views lifecycleState - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: DnsPrivateViewsLifecycleState; - /** - * The canonical absolute URL of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly self: string; - /** - * views timeCreated - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated: Date; - /** - * views timeCreated - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeUpdated: Date; - /** - * Azure resource provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ResourceProvisioningState; -} - -/** The response of a DnsPrivateZone list operation. */ -export interface DnsPrivateZoneListResult { - /** The DnsPrivateZone items on this page */ - value: DnsPrivateZone[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Zones resource model */ -export interface DnsPrivateZoneProperties { - /** - * The OCID of the Zone - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid: string; - /** - * A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isProtected: boolean; - /** - * Zones lifecycleState - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: DnsPrivateZonesLifecycleState; - /** - * The canonical absolute URL of the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly self: string; - /** - * The current serial of the zone. As seen in the zone's SOA record. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serial: number; - /** - * Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly version: string; - /** - * The OCID of the private view containing the zone. This value will be null for zones in the global DNS, which are publicly resolvable and not part of a private view. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly viewId?: string; - /** - * The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly zoneType: ZoneType; - /** - * Zones timeCreated - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated: Date; - /** - * Azure resource provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ResourceProvisioningState; -} - -/** The response of a GiVersion list operation. */ -export interface GiVersionListResult { - /** The GiVersion items on this page */ - value: GiVersion[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** GiVersion resource model */ -export interface GiVersionProperties { - /** - * A valid Oracle Grid Infrastructure (GI) software version. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly version: string; -} - -/** The response of a SystemVersion list operation. */ -export interface SystemVersionListResult { - /** The SystemVersion items on this page */ - value: SystemVersion[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** System Version Resource model */ -export interface SystemVersionProperties { - /** - * A valid Oracle System Version - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemVersion: string; -} - -/** The response of a OracleSubscription list operation. */ -export interface OracleSubscriptionListResult { - /** The OracleSubscription items on this page */ - value: OracleSubscription[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** Oracle Subscription resource model */ -export interface OracleSubscriptionProperties { - /** - * OracleSubscriptionProvisioningState provisioning state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: OracleSubscriptionProvisioningState; - /** - * SAAS subscription ID generated by Marketplace - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly saasSubscriptionId?: string; - /** - * Cloud Account Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cloudAccountId?: string; - /** - * Cloud Account provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cloudAccountState?: CloudAccountProvisioningState; - /** Term Unit. P1Y, P3Y, etc, see Durations https://en.wikipedia.org/wiki/ISO_8601 */ - termUnit?: string; - /** Product code for the term unit */ - productCode?: string; - /** Intent for the update operation */ - intent?: Intent; -} - -/** Plan for the resource. */ -export interface Plan { - /** A user defined name of the 3rd Party Artifact that is being procured. */ - name: string; - /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */ - publisher: string; - /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */ - product: string; - /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */ - promotionCode?: string; - /** The version of the desired product/artifact. */ - version?: string; -} - -/** The type used for update operations of the OracleSubscription. */ -export interface OracleSubscriptionUpdate { - /** Details of the resource plan. */ - plan?: PlanUpdate; - /** The updatable properties of the OracleSubscription. */ - properties?: OracleSubscriptionUpdateProperties; -} - -/** ResourcePlanTypeUpdate model definition */ -export interface PlanUpdate { - /** A user defined name of the 3rd Party Artifact that is being procured. */ - name?: string; - /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */ - publisher?: string; - /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */ - product?: string; - /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */ - promotionCode?: string; - /** The version of the desired product/artifact. */ - version?: string; -} - -/** The updatable properties of the OracleSubscription. */ -export interface OracleSubscriptionUpdateProperties { - /** Product code for the term unit */ - productCode?: string; - /** Intent for the update operation */ - intent?: Intent; -} - -/** Activation Links model */ -export interface ActivationLinks { - /** - * New Cloud Account Activation Link - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly newCloudAccountActivationLink?: string; - /** - * Existing Cloud Account Activation Link - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly existingCloudAccountActivationLink?: string; -} - -/** Cloud Account Details model */ -export interface CloudAccountDetails { - /** - * Cloud Account name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cloudAccountName?: string; - /** - * Cloud Account Home region - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cloudAccountHomeRegion?: string; -} - -/** SaaS Subscription Details model */ -export interface SaasSubscriptionDetails { - /** - * Purchased SaaS subscription ID - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * SaaS subscription name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly subscriptionName?: string; - /** - * Creation Date and Time - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: Date; - /** - * Purchased offer ID - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly offerId?: string; - /** - * Purchased offer's plan ID - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly planId?: string; - /** - * Indicates the status of the Subscription. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly saasSubscriptionStatus?: string; - /** - * Publisher ID - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publisherId?: string; - /** - * Purchaser Email ID - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly purchaserEmailId?: string; - /** - * Purchaser Tenant ID - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly purchaserTenantId?: string; - /** - * Purchase Term Unit - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly termUnit?: string; - /** - * AutoRenew flag - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isAutoRenew?: boolean; - /** - * FreeTrial flag - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isFreeTrial?: boolean; -} - -/** The type used for update operations of the AutonomousDatabase. */ -export interface AutonomousDatabaseUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The updatable properties of the AutonomousDatabase. */ - properties?: AutonomousDatabaseUpdateProperties; -} - -/** The updatable properties of the AutonomousDatabase. */ -export interface AutonomousDatabaseUpdateProperties { - /** - * Admin password. - * This value contains a credential. Consider obscuring before showing to users - */ - adminPassword?: string; - /** The maintenance schedule type of the Autonomous Database Serverless. */ - autonomousMaintenanceScheduleType?: AutonomousMaintenanceScheduleType; - /** The compute amount (CPUs) available to the database. */ - computeCount?: number; - /** The number of CPU cores to be made available to the database. */ - cpuCoreCount?: number; - /** Customer Contacts. */ - customerContacts?: CustomerContact[]; - /** The quantity of data in the database, in terabytes. */ - dataStorageSizeInTbs?: number; - /** The size, in gigabytes, of the data volume that will be created and attached to the database. */ - dataStorageSizeInGbs?: number; - /** The user-friendly name for the Autonomous Database. */ - displayName?: string; - /** Indicates if auto scaling is enabled for the Autonomous Database CPU core count. */ - isAutoScalingEnabled?: boolean; - /** Indicates if auto scaling is enabled for the Autonomous Database storage. */ - isAutoScalingForStorageEnabled?: boolean; - /** The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer database. */ - peerDbId?: string; - /** Indicates whether the Autonomous Database has local or called in-region Data Guard enabled. */ - isLocalDataGuardEnabled?: boolean; - /** Specifies if the Autonomous Database requires mTLS connections. */ - isMtlsConnectionRequired?: boolean; - /** The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED. */ - licenseModel?: LicenseModel; - /** The list of scheduled operations. */ - scheduledOperations?: ScheduledOperationsTypeUpdate; - /** The Oracle Database Edition that applies to the Autonomous databases. */ - databaseEdition?: DatabaseEditionType; - /** Details for the long-term backup schedule. */ - longTermBackupSchedule?: LongTermBackUpScheduleDetails; - /** Parameter that allows users to select an acceptable maximum data loss limit in seconds, up to which Automatic Failover will be triggered when necessary for a Local Autonomous Data Guard */ - localAdgAutoFailoverMaxDataLossLimit?: number; - /** Indicates the Autonomous Database mode. */ - openMode?: OpenModeType; - /** The Autonomous Database permission level. */ - permissionLevel?: PermissionLevelType; - /** The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled. */ - role?: RoleType; - /** Retention period, in days, for long-term backups */ - backupRetentionPeriodInDays?: number; - /** The client IP access control list (ACL). This is an array of CIDR notations and/or IP addresses. Values should be separate strings, separated by commas. Example: ['1.1.1.1','1.1.1.0/24','1.1.2.25'] */ - whitelistedIps?: string[]; -} - -/** The list of scheduled operations. */ -export interface ScheduledOperationsTypeUpdate { - /** Day of week */ - dayOfWeek?: DayOfWeekUpdate; - /** auto start time. value must be of ISO-8601 format HH:mm */ - scheduledStartTime?: string; - /** auto stop time. value must be of ISO-8601 format HH:mm */ - scheduledStopTime?: string; -} - -/** DayOfWeek resource properties */ -export interface DayOfWeekUpdate { - /** Name of the day of the week. */ - name?: DayOfWeekName; -} - -/** The response of a AutonomousDatabaseBackup list operation. */ -export interface AutonomousDatabaseBackupListResult { - /** The AutonomousDatabaseBackup items on this page */ - value: AutonomousDatabaseBackup[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** AutonomousDatabaseBackup resource model */ -export interface AutonomousDatabaseBackupProperties { - /** - * The OCID of the Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly autonomousDatabaseOcid?: string; - /** - * The size of the database in terabytes at the time the backup was taken. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly databaseSizeInTbs?: number; - /** - * A valid Oracle Database version for Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbVersion?: string; - /** The user-friendly name for the backup. The name does not have to be unique. */ - displayName?: string; - /** - * The OCID of the Autonomous Database backup. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid?: string; - /** - * Indicates whether the backup is user-initiated or automatic. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isAutomatic?: boolean; - /** - * Indicates whether the backup can be used to restore the associated Autonomous Database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isRestorable?: boolean; - /** - * Additional information about the current lifecycle state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleDetails?: string; - /** - * The current state of the backup. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: AutonomousDatabaseBackupLifecycleState; - /** Retention period, in days, for long-term backups. */ - retentionPeriodInDays?: number; - /** - * The backup size in terabytes (TB). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sizeInTbs?: number; - /** - * Timestamp until when the backup will be available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeAvailableTil?: Date; - /** - * The date and time the backup started. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeStarted?: string; - /** - * The date and time the backup completed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeEnded?: string; - /** - * The type of backup. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupType?: AutonomousDatabaseBackupType; - /** - * Azure resource provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: AzureResourceProvisioningState; -} - -/** The type used for update operations of the AutonomousDatabaseBackup. */ -export interface AutonomousDatabaseBackupUpdate { - /** The updatable properties of the AutonomousDatabaseBackup. */ - properties?: AutonomousDatabaseBackupUpdateProperties; -} - -/** The updatable properties of the AutonomousDatabaseBackup. */ -export interface AutonomousDatabaseBackupUpdateProperties { - /** Retention period, in days, for long-term backups. */ - retentionPeriodInDays?: number; -} - -/** PeerDb Details */ -export interface PeerDbDetails { - /** The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer database. */ - peerDbId?: string; -} - -/** Autonomous Database Generate Wallet resource model. */ -export interface GenerateAutonomousDatabaseWalletDetails { - /** The type of wallet to generate. */ - generateType?: GenerateType; - /** True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only. */ - isRegional?: boolean; - /** - * The password to encrypt the keys inside the wallet - * This value contains a credential. Consider obscuring before showing to users - */ - password: string; -} - -/** Autonomous Database Wallet File resource model. */ -export interface AutonomousDatabaseWalletFile { - /** The base64 encoded wallet files */ - walletFiles: string; -} - -/** Details to restore an Oracle Autonomous Database. */ -export interface RestoreAutonomousDatabaseDetails { - /** The time to restore the database to. */ - timestamp: Date; -} - -/** The type used for update operations of the CloudExadataInfrastructure. */ -export interface CloudExadataInfrastructureUpdate { - /** CloudExadataInfrastructure zones */ - zones?: string[]; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The updatable properties of the CloudExadataInfrastructure. */ - properties?: CloudExadataInfrastructureUpdateProperties; -} - -/** The updatable properties of the CloudExadataInfrastructure. */ -export interface CloudExadataInfrastructureUpdateProperties { - /** The number of compute servers for the cloud Exadata infrastructure. */ - computeCount?: number; - /** The number of storage servers for the cloud Exadata infrastructure. */ - storageCount?: number; - /** maintenanceWindow property */ - maintenanceWindow?: MaintenanceWindow; - /** The list of customer email addresses that receive information from Oracle about the specified OCI Database service resource. Oracle uses these email addresses to send notifications about planned and unplanned software maintenance updates, information about system hardware, and other information needed by administrators. Up to 10 email addresses can be added to the customer contacts for a cloud Exadata infrastructure instance. */ - customerContacts?: CustomerContact[]; - /** The name for the Exadata infrastructure. */ - displayName?: string; -} - -/** The response of a DbServer list operation. */ -export interface DbServerListResult { - /** The DbServer items on this page */ - value: DbServer[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** DbServer resource properties */ -export interface DbServerProperties { - /** - * Db server name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid?: string; - /** - * The name for the Db Server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; - /** - * The OCID of the compartment. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly compartmentId?: string; - /** - * The OCID of the Exadata infrastructure. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly exadataInfrastructureId?: string; - /** - * The number of CPU cores enabled on the Db server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cpuCoreCount?: number; - /** - * dbServerPatching details of the Db server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbServerPatchingDetails?: DbServerPatchingDetails; - /** - * The total memory available in GBs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxMemoryInGbs?: number; - /** - * The allocated local node storage in GBs on the Db server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbNodeStorageSizeInGbs?: number; - /** - * The OCID of the VM Clusters associated with the Db server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vmClusterIds?: string[]; - /** - * The OCID of the Db nodes associated with the Db server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbNodeIds?: string[]; - /** - * Lifecycle details of dbServer. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleDetails?: string; - /** - * DbServer provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: DbServerProvisioningState; - /** - * The total number of CPU cores available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxCpuCount?: number; - /** - * The list of OCIDs of the Autonomous VM Clusters associated with the Db server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly autonomousVmClusterIds?: string[]; - /** - * The list of OCIDs of the Autonomous Virtual Machines associated with the Db server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly autonomousVirtualMachineIds?: string[]; - /** - * The total max dbNode storage in GBs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maxDbNodeStorageInGbs?: number; - /** - * The total memory size in GBs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memorySizeInGbs?: number; - /** - * The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly shape?: string; - /** - * The date and time that the Db Server was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: Date; - /** - * Azure resource provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ResourceProvisioningState; -} - -/** DbServer Patching Properties */ -export interface DbServerPatchingDetails { - /** - * Estimated Patch Duration - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly estimatedPatchDuration?: number; - /** - * Patching Status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly patchingStatus?: DbServerPatchingStatus; - /** - * Time Patching Ended - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timePatchingEnded?: Date; - /** - * Time Patching Started - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timePatchingStarted?: Date; -} - -/** The type used for update operations of the CloudVmCluster. */ -export interface CloudVmClusterUpdate { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The updatable properties of the CloudVmCluster. */ - properties?: CloudVmClusterUpdateProperties; -} - -/** The updatable properties of the CloudVmCluster. */ -export interface CloudVmClusterUpdateProperties { - /** The data disk group size to be allocated in GBs per VM. */ - storageSizeInGbs?: number; - /** The data disk group size to be allocated in TBs. */ - dataStorageSizeInTbs?: number; - /** The local node storage to be allocated in GBs. */ - dbNodeStorageSizeInGbs?: number; - /** The memory to be allocated in GBs. */ - memorySizeInGbs?: number; - /** The number of CPU cores enabled on the cloud VM cluster. */ - cpuCoreCount?: number; - /** The number of OCPU cores to enable on the cloud VM cluster. Only 1 decimal place is allowed for the fractional part. */ - ocpuCount?: number; - /** The public key portion of one or more key pairs used for SSH access to the cloud VM cluster. */ - sshPublicKeys?: string[]; - /** The Oracle license model that applies to the cloud VM cluster. The default is LICENSE_INCLUDED. */ - licenseModel?: LicenseModel; - /** Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS. */ - dataCollectionOptions?: DataCollectionOptions; - /** Display Name */ - displayName?: string; - /** The list of compute servers to be added to the cloud VM cluster. */ - computeNodes?: string[]; -} - -/** Add/Remove (Virtual Machine) DbNode model */ -export interface AddRemoveDbNode { - /** Db servers ocids */ - dbServers: string[]; -} - -/** The response of a DbNode list operation. */ -export interface DbNodeListResult { - /** The DbNode items on this page */ - value: DbNode[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** The properties of DbNodeResource */ -export interface DbNodeProperties { - /** - * DbNode OCID - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid: string; - /** - * Additional information about the planned maintenance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalDetails?: string; - /** - * The OCID of the backup IP address associated with the database node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupIpId?: string; - /** - * The OCID of the second backup VNIC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupVnic2Id?: string; - /** - * The OCID of the backup VNIC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly backupVnicId?: string; - /** - * The number of CPU cores enabled on the Db node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly cpuCoreCount?: number; - /** - * The allocated local node storage in GBs on the Db node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbNodeStorageSizeInGbs?: number; - /** - * The OCID of the Exacc Db server associated with the database node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbServerId?: string; - /** - * The OCID of the DB system. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dbSystemId: string; - /** - * The name of the Fault Domain the instance is contained in. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly faultDomain?: string; - /** - * The OCID of the host IP address associated with the database node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hostIpId?: string; - /** - * The host name for the database node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly hostname?: string; - /** - * The current state of the database node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: DbNodeProvisioningState; - /** - * Lifecycle details of Db Node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleDetails?: string; - /** - * The type of database node maintenance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly maintenanceType?: DbNodeMaintenanceType; - /** - * The allocated memory in GBs on the Db node. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly memorySizeInGbs?: number; - /** - * The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly softwareStorageSizeInGb?: number; - /** - * The date and time that the database node was created. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeCreated?: Date; - /** - * End date and time of maintenance window. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeMaintenanceWindowEnd?: Date; - /** - * Start date and time of maintenance window. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeMaintenanceWindowStart?: Date; - /** - * The OCID of the second VNIC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vnic2Id?: string; - /** - * The OCID of the VNIC. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vnicId?: string; - /** - * Azure resource provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ResourceProvisioningState; -} - -/** DbNode action object */ -export interface DbNodeAction { - /** Db action */ - action: DbNodeActionEnum; -} - -/** Private Ip Addresses filter */ -export interface PrivateIpAddressesFilter { - /** Subnet OCID */ - subnetId: string; - /** VCN OCID */ - vnicId: string; -} - -/** PrivateIpAddress resource properties */ -export interface PrivateIpAddressProperties { - /** PrivateIpAddresses displayName */ - displayName: string; - /** PrivateIpAddresses hostnameLabel */ - hostnameLabel: string; - /** PrivateIpAddresses Id */ - ocid: string; - /** PrivateIpAddresses ipAddress */ - ipAddress: string; - /** PrivateIpAddresses subnetId */ - subnetId: string; -} - -/** The response of a VirtualNetworkAddress list operation. */ -export interface VirtualNetworkAddressListResult { - /** The VirtualNetworkAddress items on this page */ - value: VirtualNetworkAddress[]; - /** The link to the next page of items */ - nextLink?: string; -} - -/** virtualNetworkAddress resource properties */ -export interface VirtualNetworkAddressProperties { - /** Virtual network Address address. */ - ipAddress?: string; - /** Virtual Machine OCID. */ - vmOcid?: string; - /** - * Application VIP OCID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly ocid?: string; - /** - * Virtual network address fully qualified domain name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly domain?: string; - /** - * Additional information about the current lifecycle state of the application virtual IP (VIP) address. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleDetails?: string; - /** - * Azure resource provisioning state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: AzureResourceProvisioningState; - /** - * virtual network address lifecycle state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly lifecycleState?: VirtualNetworkAddressLifecycleState; - /** - * The date and time when the create operation for the application virtual IP (VIP) address completed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeAssigned?: Date; -} - -/** SystemVersions filter */ -export interface SystemVersionsFilter { - /** Grid Infrastructure version */ - giVersion: string; - /** Exadata shape */ - shape: string; - /** Check If we have to list only latest versions */ - isLatestVersion?: boolean; -} - -/** validation error */ -export interface ValidationError { - /** error code */ - code: string; - /** error message */ - message: string; -} - -/** validation result */ -export interface ValidationResult { - /** - * validation status - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status: ValidationStatus; - /** validation error */ - error: ValidationError; -} - -/** Autonomous Database clone resource model. */ -export interface AutonomousDatabaseCloneProperties - extends AutonomousDatabaseBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - dataBaseType: "Clone"; - /** The source of the database. */ - source?: SourceType; - /** The Azure ID of the Autonomous Database that was cloned to create the current Autonomous Database. */ - sourceId: string; - /** The Autonomous Database clone type. */ - cloneType: CloneType; - /** - * Indicates if the refreshable clone can be reconnected to its source database. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isReconnectCloneEnabled?: boolean; - /** - * Indicates if the Autonomous Database is a refreshable clone. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isRefreshableClone?: boolean; - /** The refresh mode of the clone. */ - refreshableModel?: RefreshableModelType; - /** - * The refresh status of the clone. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly refreshableStatus?: RefreshableStatusType; - /** The time and date as an RFC3339 formatted string, e.g., 2022-01-01T12:00:00.000Z, to set the limit for a refreshable clone to be reconnected to its source database. */ - timeUntilReconnectCloneEnabled?: string; -} - -/** Autonomous Database resource model. */ -export interface AutonomousDatabaseProperties - extends AutonomousDatabaseBaseProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - dataBaseType: "Regular"; -} - -/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends Resource { - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** The geo-location where the resource lives */ - location: string; -} - -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends Resource {} - -/** Autonomous Database resource model. */ -export interface AutonomousDatabase extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: AutonomousDatabaseBasePropertiesUnion; -} - -/** CloudExadataInfrastructure resource definition */ -export interface CloudExadataInfrastructure extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: CloudExadataInfrastructureProperties; - /** CloudExadataInfrastructure zones */ - zones: string[]; -} - -/** CloudVmCluster resource definition */ -export interface CloudVmCluster extends TrackedResource { - /** The resource-specific properties for this resource. */ - properties?: CloudVmClusterProperties; -} - -/** AutonomousDatabaseCharacterSets resource definition */ -export interface AutonomousDatabaseCharacterSet extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: AutonomousDatabaseCharacterSetProperties; -} - -/** AutonomousDatabaseNationalCharacterSets resource definition */ -export interface AutonomousDatabaseNationalCharacterSet extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: AutonomousDatabaseNationalCharacterSetProperties; -} - -/** AutonomousDbVersion resource definition */ -export interface AutonomousDbVersion extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: AutonomousDbVersionProperties; -} - -/** DbSystemShape resource definition */ -export interface DbSystemShape extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DbSystemShapeProperties; -} - -/** DnsPrivateView resource definition */ -export interface DnsPrivateView extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DnsPrivateViewProperties; -} - -/** DnsPrivateZone resource definition */ -export interface DnsPrivateZone extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DnsPrivateZoneProperties; -} - -/** GiVersion resource definition */ -export interface GiVersion extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: GiVersionProperties; -} - -/** SystemVersion resource Definition */ -export interface SystemVersion extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: SystemVersionProperties; -} - -/** OracleSubscription resource definition */ -export interface OracleSubscription extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: OracleSubscriptionProperties; - /** Details of the resource plan. */ - plan?: Plan; -} - -/** AutonomousDatabaseBackup resource definition */ -export interface AutonomousDatabaseBackup extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: AutonomousDatabaseBackupProperties; -} - -/** DbServer resource model */ -export interface DbServer extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DbServerProperties; -} - -/** The DbNode resource belonging to vmCluster */ -export interface DbNode extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: DbNodeProperties; -} - -/** Virtual IP resource belonging to a vm cluster resource. */ -export interface VirtualNetworkAddress extends ProxyResource { - /** The resource-specific properties for this resource. */ - properties?: VirtualNetworkAddressProperties; -} - -/** Defines headers for AutonomousDatabases_createOrUpdate operation. */ -export interface AutonomousDatabasesCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabases_update operation. */ -export interface AutonomousDatabasesUpdateHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabases_delete operation. */ -export interface AutonomousDatabasesDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabases_failover operation. */ -export interface AutonomousDatabasesFailoverHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabases_restore operation. */ -export interface AutonomousDatabasesRestoreHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabases_shrink operation. */ -export interface AutonomousDatabasesShrinkHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabases_switchover operation. */ -export interface AutonomousDatabasesSwitchoverHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudExadataInfrastructures_createOrUpdate operation. */ -export interface CloudExadataInfrastructuresCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudExadataInfrastructures_update operation. */ -export interface CloudExadataInfrastructuresUpdateHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudExadataInfrastructures_delete operation. */ -export interface CloudExadataInfrastructuresDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudExadataInfrastructures_addStorageCapacity operation. */ -export interface CloudExadataInfrastructuresAddStorageCapacityHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudVmClusters_createOrUpdate operation. */ -export interface CloudVmClustersCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudVmClusters_update operation. */ -export interface CloudVmClustersUpdateHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudVmClusters_delete operation. */ -export interface CloudVmClustersDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudVmClusters_addVms operation. */ -export interface CloudVmClustersAddVmsHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for CloudVmClusters_removeVms operation. */ -export interface CloudVmClustersRemoveVmsHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for OracleSubscriptions_createOrUpdate operation. */ -export interface OracleSubscriptionsCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for OracleSubscriptions_update operation. */ -export interface OracleSubscriptionsUpdateHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for OracleSubscriptions_delete operation. */ -export interface OracleSubscriptionsDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for OracleSubscriptions_listActivationLinks operation. */ -export interface OracleSubscriptionsListActivationLinksHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for OracleSubscriptions_listCloudAccountDetails operation. */ -export interface OracleSubscriptionsListCloudAccountDetailsHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for OracleSubscriptions_listSaasSubscriptionDetails operation. */ -export interface OracleSubscriptionsListSaasSubscriptionDetailsHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabaseBackups_createOrUpdate operation. */ -export interface AutonomousDatabaseBackupsCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabaseBackups_update operation. */ -export interface AutonomousDatabaseBackupsUpdateHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for AutonomousDatabaseBackups_delete operation. */ -export interface AutonomousDatabaseBackupsDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for DbNodes_action operation. */ -export interface DbNodesActionHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for VirtualNetworkAddresses_createOrUpdate operation. */ -export interface VirtualNetworkAddressesCreateOrUpdateHeaders { - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Defines headers for VirtualNetworkAddresses_delete operation. */ -export interface VirtualNetworkAddressesDeleteHeaders { - /** The Location header contains the URL where the status of the long running operation can be checked. */ - location?: string; - /** The Retry-After header can indicate how long the client should wait before polling the operation status. */ - retryAfter?: number; -} - -/** Known values of {@link Origin} that the service accepts. */ -export enum KnownOrigin { - /** User */ - User = "user", - /** System */ - System = "system", - /** UserSystem */ - UserSystem = "user,system", -} - -/** - * Defines values for Origin. \ - * {@link KnownOrigin} can be used interchangeably with Origin, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **user** \ - * **system** \ - * **user,system** - */ -export type Origin = string; - -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** Internal */ - Internal = "Internal", -} - -/** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Internal** - */ -export type ActionType = string; - -/** Known values of {@link DataBaseType} that the service accepts. */ -export enum KnownDataBaseType { - /** Regular DB */ - Regular = "Regular", - /** Clone DB */ - Clone = "Clone", -} - -/** - * Defines values for DataBaseType. \ - * {@link KnownDataBaseType} can be used interchangeably with DataBaseType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Regular**: Regular DB \ - * **Clone**: Clone DB - */ -export type DataBaseType = string; - -/** Known values of {@link AutonomousMaintenanceScheduleType} that the service accepts. */ -export enum KnownAutonomousMaintenanceScheduleType { - /** Early maintenance schedule */ - Early = "Early", - /** Regular maintenance schedule */ - Regular = "Regular", -} - -/** - * Defines values for AutonomousMaintenanceScheduleType. \ - * {@link KnownAutonomousMaintenanceScheduleType} can be used interchangeably with AutonomousMaintenanceScheduleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Early**: Early maintenance schedule \ - * **Regular**: Regular maintenance schedule - */ -export type AutonomousMaintenanceScheduleType = string; - -/** Known values of {@link ComputeModel} that the service accepts. */ -export enum KnownComputeModel { - /** ECPU model type */ - Ecpu = "ECPU", - /** OCPU model type */ - Ocpu = "OCPU", -} - -/** - * Defines values for ComputeModel. \ - * {@link KnownComputeModel} can be used interchangeably with ComputeModel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ECPU**: ECPU model type \ - * **OCPU**: OCPU model type - */ -export type ComputeModel = string; - -/** Known values of {@link WorkloadType} that the service accepts. */ -export enum KnownWorkloadType { - /** OLTP - indicates an Autonomous Transaction Processing database */ - Oltp = "OLTP", - /** DW - indicates an Autonomous Data Warehouse database */ - DW = "DW", - /** AJD - indicates an Autonomous JSON Database */ - AJD = "AJD", - /** APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type. */ - Apex = "APEX", -} - -/** - * Defines values for WorkloadType. \ - * {@link KnownWorkloadType} can be used interchangeably with WorkloadType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **OLTP**: OLTP - indicates an Autonomous Transaction Processing database \ - * **DW**: DW - indicates an Autonomous Data Warehouse database \ - * **AJD**: AJD - indicates an Autonomous JSON Database \ - * **APEX**: APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type. - */ -export type WorkloadType = string; - -/** Known values of {@link DisasterRecoveryType} that the service accepts. */ -export enum KnownDisasterRecoveryType { - /** ADG type */ - Adg = "Adg", - /** Backup based type */ - BackupBased = "BackupBased", -} - -/** - * Defines values for DisasterRecoveryType. \ - * {@link KnownDisasterRecoveryType} can be used interchangeably with DisasterRecoveryType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Adg**: ADG type \ - * **BackupBased**: Backup based type - */ -export type DisasterRecoveryType = string; - -/** Known values of {@link AutonomousDatabaseLifecycleState} that the service accepts. */ -export enum KnownAutonomousDatabaseLifecycleState { - /** Indicates that resource in Provisioning state */ - Provisioning = "Provisioning", - /** Indicates that resource in Available state */ - Available = "Available", - /** Indicates that resource in Stopping state */ - Stopping = "Stopping", - /** Indicates that resource in Stopped state */ - Stopped = "Stopped", - /** Indicates that resource in Starting state */ - Starting = "Starting", - /** Indicates that resource in Terminating state */ - Terminating = "Terminating", - /** Indicates that resource in Terminated state */ - Terminated = "Terminated", - /** Indicates that resource in Unavailable state */ - Unavailable = "Unavailable", - /** Indicates that resource in RestoreInProgress state */ - RestoreInProgress = "RestoreInProgress", - /** Indicates that resource in RestoreFailed state */ - RestoreFailed = "RestoreFailed", - /** Indicates that resource in BackupInProgress state */ - BackupInProgress = "BackupInProgress", - /** Indicates that resource in ScaleInProgress state */ - ScaleInProgress = "ScaleInProgress", - /** Indicates that resource is available but needs attention */ - AvailableNeedsAttention = "AvailableNeedsAttention", - /** Indicates that resource in Updating state */ - Updating = "Updating", - /** Indicates that resource maintenance in progress state */ - MaintenanceInProgress = "MaintenanceInProgress", - /** Indicates that resource in Restarting state */ - Restarting = "Restarting", - /** Indicates that resource in Recreating state */ - Recreating = "Recreating", - /** Indicates that resource role change in progress state */ - RoleChangeInProgress = "RoleChangeInProgress", - /** Indicates that resource in Upgrading state */ - Upgrading = "Upgrading", - /** IIndicates that resource in Inaccessible state */ - Inaccessible = "Inaccessible", - /** Indicates that resource in Standby state */ - Standby = "Standby", -} - -/** - * Defines values for AutonomousDatabaseLifecycleState. \ - * {@link KnownAutonomousDatabaseLifecycleState} can be used interchangeably with AutonomousDatabaseLifecycleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Provisioning**: Indicates that resource in Provisioning state \ - * **Available**: Indicates that resource in Available state \ - * **Stopping**: Indicates that resource in Stopping state \ - * **Stopped**: Indicates that resource in Stopped state \ - * **Starting**: Indicates that resource in Starting state \ - * **Terminating**: Indicates that resource in Terminating state \ - * **Terminated**: Indicates that resource in Terminated state \ - * **Unavailable**: Indicates that resource in Unavailable state \ - * **RestoreInProgress**: Indicates that resource in RestoreInProgress state \ - * **RestoreFailed**: Indicates that resource in RestoreFailed state \ - * **BackupInProgress**: Indicates that resource in BackupInProgress state \ - * **ScaleInProgress**: Indicates that resource in ScaleInProgress state \ - * **AvailableNeedsAttention**: Indicates that resource is available but needs attention \ - * **Updating**: Indicates that resource in Updating state \ - * **MaintenanceInProgress**: Indicates that resource maintenance in progress state \ - * **Restarting**: Indicates that resource in Restarting state \ - * **Recreating**: Indicates that resource in Recreating state \ - * **RoleChangeInProgress**: Indicates that resource role change in progress state \ - * **Upgrading**: Indicates that resource in Upgrading state \ - * **Inaccessible**: IIndicates that resource in Inaccessible state \ - * **Standby**: Indicates that resource in Standby state - */ -export type AutonomousDatabaseLifecycleState = string; - -/** Known values of {@link LicenseModel} that the service accepts. */ -export enum KnownLicenseModel { - /** License included */ - LicenseIncluded = "LicenseIncluded", - /** Bring Your Own License */ - BringYourOwnLicense = "BringYourOwnLicense", -} - -/** - * Defines values for LicenseModel. \ - * {@link KnownLicenseModel} can be used interchangeably with LicenseModel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LicenseIncluded**: License included \ - * **BringYourOwnLicense**: Bring Your Own License - */ -export type LicenseModel = string; - -/** Known values of {@link AzureResourceProvisioningState} that the service accepts. */ -export enum KnownAzureResourceProvisioningState { - /** Resource has been created. */ - Succeeded = "Succeeded", - /** Resource creation failed. */ - Failed = "Failed", - /** Resource creation was canceled. */ - Canceled = "Canceled", - /** Indicates that resource in Provisioning state */ - Provisioning = "Provisioning", -} - -/** - * Defines values for AzureResourceProvisioningState. \ - * {@link KnownAzureResourceProvisioningState} can be used interchangeably with AzureResourceProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded**: Resource has been created. \ - * **Failed**: Resource creation failed. \ - * **Canceled**: Resource creation was canceled. \ - * **Provisioning**: Indicates that resource in Provisioning state - */ -export type AzureResourceProvisioningState = string; - -/** Known values of {@link DayOfWeekName} that the service accepts. */ -export enum KnownDayOfWeekName { - /** Monday value */ - Monday = "Monday", - /** Tuesday value */ - Tuesday = "Tuesday", - /** Wednesday value */ - Wednesday = "Wednesday", - /** Thursday value */ - Thursday = "Thursday", - /** Friday value */ - Friday = "Friday", - /** Saturday value */ - Saturday = "Saturday", - /** Sunday value */ - Sunday = "Sunday", -} - -/** - * Defines values for DayOfWeekName. \ - * {@link KnownDayOfWeekName} can be used interchangeably with DayOfWeekName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Monday**: Monday value \ - * **Tuesday**: Tuesday value \ - * **Wednesday**: Wednesday value \ - * **Thursday**: Thursday value \ - * **Friday**: Friday value \ - * **Saturday**: Saturday value \ - * **Sunday**: Sunday value - */ -export type DayOfWeekName = string; - -/** Known values of {@link ConsumerGroup} that the service accepts. */ -export enum KnownConsumerGroup { - /** High group */ - High = "High", - /** Medium group */ - Medium = "Medium", - /** Low group */ - Low = "Low", - /** TP group */ - Tp = "Tp", - /** TPurgent group */ - Tpurgent = "Tpurgent", -} - -/** - * Defines values for ConsumerGroup. \ - * {@link KnownConsumerGroup} can be used interchangeably with ConsumerGroup, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **High**: High group \ - * **Medium**: Medium group \ - * **Low**: Low group \ - * **Tp**: TP group \ - * **Tpurgent**: TPurgent group - */ -export type ConsumerGroup = string; - -/** Known values of {@link HostFormatType} that the service accepts. */ -export enum KnownHostFormatType { - /** FQDN format */ - Fqdn = "Fqdn", - /** IP format */ - Ip = "Ip", -} - -/** - * Defines values for HostFormatType. \ - * {@link KnownHostFormatType} can be used interchangeably with HostFormatType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Fqdn**: FQDN format \ - * **Ip**: IP format - */ -export type HostFormatType = string; - -/** Known values of {@link ProtocolType} that the service accepts. */ -export enum KnownProtocolType { - /** TCP protocol */ - TCP = "TCP", - /** TCPS protocol */ - Tcps = "TCPS", -} - -/** - * Defines values for ProtocolType. \ - * {@link KnownProtocolType} can be used interchangeably with ProtocolType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **TCP**: TCP protocol \ - * **TCPS**: TCPS protocol - */ -export type ProtocolType = string; - -/** Known values of {@link SessionModeType} that the service accepts. */ -export enum KnownSessionModeType { - /** Direct session mode */ - Direct = "Direct", - /** Redirect session mode */ - Redirect = "Redirect", -} - -/** - * Defines values for SessionModeType. \ - * {@link KnownSessionModeType} can be used interchangeably with SessionModeType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Direct**: Direct session mode \ - * **Redirect**: Redirect session mode - */ -export type SessionModeType = string; - -/** Known values of {@link SyntaxFormatType} that the service accepts. */ -export enum KnownSyntaxFormatType { - /** Long format */ - Long = "Long", - /** Ezconnect format */ - Ezconnect = "Ezconnect", - /** Ezconnectplus format */ - Ezconnectplus = "Ezconnectplus", -} - -/** - * Defines values for SyntaxFormatType. \ - * {@link KnownSyntaxFormatType} can be used interchangeably with SyntaxFormatType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Long**: Long format \ - * **Ezconnect**: Ezconnect format \ - * **Ezconnectplus**: Ezconnectplus format - */ -export type SyntaxFormatType = string; - -/** Known values of {@link TlsAuthenticationType} that the service accepts. */ -export enum KnownTlsAuthenticationType { - /** Server authentication */ - Server = "Server", - /** Mutual TLS */ - Mutual = "Mutual", -} - -/** - * Defines values for TlsAuthenticationType. \ - * {@link KnownTlsAuthenticationType} can be used interchangeably with TlsAuthenticationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Server**: Server authentication \ - * **Mutual**: Mutual TLS - */ -export type TlsAuthenticationType = string; - -/** Known values of {@link DataSafeStatusType} that the service accepts. */ -export enum KnownDataSafeStatusType { - /** Registering status */ - Registering = "Registering", - /** Registered status */ - Registered = "Registered", - /** Deregistering status */ - Deregistering = "Deregistering", - /** NotRegistered status */ - NotRegistered = "NotRegistered", - /** Failed status */ - Failed = "Failed", -} - -/** - * Defines values for DataSafeStatusType. \ - * {@link KnownDataSafeStatusType} can be used interchangeably with DataSafeStatusType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Registering**: Registering status \ - * **Registered**: Registered status \ - * **Deregistering**: Deregistering status \ - * **NotRegistered**: NotRegistered status \ - * **Failed**: Failed status - */ -export type DataSafeStatusType = string; - -/** Known values of {@link DatabaseEditionType} that the service accepts. */ -export enum KnownDatabaseEditionType { - /** Standard edition */ - StandardEdition = "StandardEdition", - /** Enterprise edition */ - EnterpriseEdition = "EnterpriseEdition", -} - -/** - * Defines values for DatabaseEditionType. \ - * {@link KnownDatabaseEditionType} can be used interchangeably with DatabaseEditionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **StandardEdition**: Standard edition \ - * **EnterpriseEdition**: Enterprise edition - */ -export type DatabaseEditionType = string; - -/** Known values of {@link RepeatCadenceType} that the service accepts. */ -export enum KnownRepeatCadenceType { - /** Repeat one time */ - OneTime = "OneTime", - /** Repeat weekly */ - Weekly = "Weekly", - /** Repeat monthly */ - Monthly = "Monthly", - /** Repeat yearly */ - Yearly = "Yearly", -} - -/** - * Defines values for RepeatCadenceType. \ - * {@link KnownRepeatCadenceType} can be used interchangeably with RepeatCadenceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **OneTime**: Repeat one time \ - * **Weekly**: Repeat weekly \ - * **Monthly**: Repeat monthly \ - * **Yearly**: Repeat yearly - */ -export type RepeatCadenceType = string; - -/** Known values of {@link OpenModeType} that the service accepts. */ -export enum KnownOpenModeType { - /** ReadOnly mode */ - ReadOnly = "ReadOnly", - /** ReadWrite mode */ - ReadWrite = "ReadWrite", -} - -/** - * Defines values for OpenModeType. \ - * {@link KnownOpenModeType} can be used interchangeably with OpenModeType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ReadOnly**: ReadOnly mode \ - * **ReadWrite**: ReadWrite mode - */ -export type OpenModeType = string; - -/** Known values of {@link OperationsInsightsStatusType} that the service accepts. */ -export enum KnownOperationsInsightsStatusType { - /** Enabling status */ - Enabling = "Enabling", - /** Enabled status */ - Enabled = "Enabled", - /** Disabling status */ - Disabling = "Disabling", - /** NotEnabled status */ - NotEnabled = "NotEnabled", - /** FailedEnabling status */ - FailedEnabling = "FailedEnabling", - /** FailedDisabling status */ - FailedDisabling = "FailedDisabling", -} - -/** - * Defines values for OperationsInsightsStatusType. \ - * {@link KnownOperationsInsightsStatusType} can be used interchangeably with OperationsInsightsStatusType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabling**: Enabling status \ - * **Enabled**: Enabled status \ - * **Disabling**: Disabling status \ - * **NotEnabled**: NotEnabled status \ - * **FailedEnabling**: FailedEnabling status \ - * **FailedDisabling**: FailedDisabling status - */ -export type OperationsInsightsStatusType = string; - -/** Known values of {@link PermissionLevelType} that the service accepts. */ -export enum KnownPermissionLevelType { - /** Restricted permission level */ - Restricted = "Restricted", - /** Unrestricted permission level */ - Unrestricted = "Unrestricted", -} - -/** - * Defines values for PermissionLevelType. \ - * {@link KnownPermissionLevelType} can be used interchangeably with PermissionLevelType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Restricted**: Restricted permission level \ - * **Unrestricted**: Unrestricted permission level - */ -export type PermissionLevelType = string; - -/** Known values of {@link RoleType} that the service accepts. */ -export enum KnownRoleType { - /** Primary role */ - Primary = "Primary", - /** Standby role */ - Standby = "Standby", - /** DisabledStandby role */ - DisabledStandby = "DisabledStandby", - /** BackupCopy role */ - BackupCopy = "BackupCopy", - /** SnapshotStandby role */ - SnapshotStandby = "SnapshotStandby", -} - -/** - * Defines values for RoleType. \ - * {@link KnownRoleType} can be used interchangeably with RoleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Primary**: Primary role \ - * **Standby**: Standby role \ - * **DisabledStandby**: DisabledStandby role \ - * **BackupCopy**: BackupCopy role \ - * **SnapshotStandby**: SnapshotStandby role - */ -export type RoleType = string; - -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key", -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - -/** Known values of {@link Preference} that the service accepts. */ -export enum KnownPreference { - /** No preference */ - NoPreference = "NoPreference", - /** Custom preference */ - CustomPreference = "CustomPreference", -} - -/** - * Defines values for Preference. \ - * {@link KnownPreference} can be used interchangeably with Preference, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NoPreference**: No preference \ - * **CustomPreference**: Custom preference - */ -export type Preference = string; - -/** Known values of {@link MonthName} that the service accepts. */ -export enum KnownMonthName { - /** January value */ - January = "January", - /** February value */ - February = "February", - /** March value */ - March = "March", - /** April value */ - April = "April", - /** May value */ - May = "May", - /** June value */ - June = "June", - /** July value */ - July = "July", - /** August value */ - August = "August", - /** September value */ - September = "September", - /** October value */ - October = "October", - /** November value */ - November = "November", - /** December value */ - December = "December", -} - -/** - * Defines values for MonthName. \ - * {@link KnownMonthName} can be used interchangeably with MonthName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **January**: January value \ - * **February**: February value \ - * **March**: March value \ - * **April**: April value \ - * **May**: May value \ - * **June**: June value \ - * **July**: July value \ - * **August**: August value \ - * **September**: September value \ - * **October**: October value \ - * **November**: November value \ - * **December**: December value - */ -export type MonthName = string; - -/** Known values of {@link PatchingMode} that the service accepts. */ -export enum KnownPatchingMode { - /** Rolling patching */ - Rolling = "Rolling", - /** Non Rolling patching */ - NonRolling = "NonRolling", -} - -/** - * Defines values for PatchingMode. \ - * {@link KnownPatchingMode} can be used interchangeably with PatchingMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Rolling**: Rolling patching \ - * **NonRolling**: Non Rolling patching - */ -export type PatchingMode = string; - -/** Known values of {@link CloudExadataInfrastructureLifecycleState} that the service accepts. */ -export enum KnownCloudExadataInfrastructureLifecycleState { - /** Indicates that resource in Provisioning state */ - Provisioning = "Provisioning", - /** Indicates that resource in Available state */ - Available = "Available", - /** Indicates that resource in Updating state */ - Updating = "Updating", - /** Indicates that resource in Terminating state */ - Terminating = "Terminating", - /** Indicates that resource in Terminated state */ - Terminated = "Terminated", - /** Indicates that resource maintenance in progress state */ - MaintenanceInProgress = "MaintenanceInProgress", - /** Indicates that resource in Failed state */ - Failed = "Failed", -} - -/** - * Defines values for CloudExadataInfrastructureLifecycleState. \ - * {@link KnownCloudExadataInfrastructureLifecycleState} can be used interchangeably with CloudExadataInfrastructureLifecycleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Provisioning**: Indicates that resource in Provisioning state \ - * **Available**: Indicates that resource in Available state \ - * **Updating**: Indicates that resource in Updating state \ - * **Terminating**: Indicates that resource in Terminating state \ - * **Terminated**: Indicates that resource in Terminated state \ - * **MaintenanceInProgress**: Indicates that resource maintenance in progress state \ - * **Failed**: Indicates that resource in Failed state - */ -export type CloudExadataInfrastructureLifecycleState = string; - -/** Known values of {@link DiskRedundancy} that the service accepts. */ -export enum KnownDiskRedundancy { - /** High redundancy */ - High = "High", - /** Normal redundancy */ - Normal = "Normal", -} - -/** - * Defines values for DiskRedundancy. \ - * {@link KnownDiskRedundancy} can be used interchangeably with DiskRedundancy, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **High**: High redundancy \ - * **Normal**: Normal redundancy - */ -export type DiskRedundancy = string; - -/** Known values of {@link CloudVmClusterLifecycleState} that the service accepts. */ -export enum KnownCloudVmClusterLifecycleState { - /** Indicates that resource in Provisioning state */ - Provisioning = "Provisioning", - /** Indicates that resource in Available state */ - Available = "Available", - /** Indicates that resource in Updating state */ - Updating = "Updating", - /** Indicates that resource in Terminating state */ - Terminating = "Terminating", - /** Indicates that resource in Terminated state */ - Terminated = "Terminated", - /** Indicates that resource Maintenance in progress state */ - MaintenanceInProgress = "MaintenanceInProgress", - /** Indicates that resource in Failed state */ - Failed = "Failed", -} - -/** - * Defines values for CloudVmClusterLifecycleState. \ - * {@link KnownCloudVmClusterLifecycleState} can be used interchangeably with CloudVmClusterLifecycleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Provisioning**: Indicates that resource in Provisioning state \ - * **Available**: Indicates that resource in Available state \ - * **Updating**: Indicates that resource in Updating state \ - * **Terminating**: Indicates that resource in Terminating state \ - * **Terminated**: Indicates that resource in Terminated state \ - * **MaintenanceInProgress**: Indicates that resource Maintenance in progress state \ - * **Failed**: Indicates that resource in Failed state - */ -export type CloudVmClusterLifecycleState = string; - -/** Known values of {@link IormLifecycleState} that the service accepts. */ -export enum KnownIormLifecycleState { - /** Indicates that resource in Provisioning state */ - BootStrapping = "BootStrapping", - /** Indicates that resource in Enabled state */ - Enabled = "Enabled", - /** Indicates that resource in Disabled state */ - Disabled = "Disabled", - /** Indicates that resource in Updating state */ - Updating = "Updating", - /** Indicates that resource in Failed state */ - Failed = "Failed", -} - -/** - * Defines values for IormLifecycleState. \ - * {@link KnownIormLifecycleState} can be used interchangeably with IormLifecycleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **BootStrapping**: Indicates that resource in Provisioning state \ - * **Enabled**: Indicates that resource in Enabled state \ - * **Disabled**: Indicates that resource in Disabled state \ - * **Updating**: Indicates that resource in Updating state \ - * **Failed**: Indicates that resource in Failed state - */ -export type IormLifecycleState = string; - -/** Known values of {@link Objective} that the service accepts. */ -export enum KnownObjective { - /** Low latency objective */ - LowLatency = "LowLatency", - /** High throughput objective */ - HighThroughput = "HighThroughput", - /** Balanced objective */ - Balanced = "Balanced", - /** Auto objective */ - Auto = "Auto", - /** Basic objective */ - Basic = "Basic", -} - -/** - * Defines values for Objective. \ - * {@link KnownObjective} can be used interchangeably with Objective, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LowLatency**: Low latency objective \ - * **HighThroughput**: High throughput objective \ - * **Balanced**: Balanced objective \ - * **Auto**: Auto objective \ - * **Basic**: Basic objective - */ -export type Objective = string; - -/** Known values of {@link DnsPrivateViewsLifecycleState} that the service accepts. */ -export enum KnownDnsPrivateViewsLifecycleState { - /** DNS Private View is active */ - Active = "Active", - /** DNS Private View is deleted */ - Deleted = "Deleted", - /** DNS Private View is deleting */ - Deleting = "Deleting", - /** DNS Private View is updating */ - Updating = "Updating", -} - -/** - * Defines values for DnsPrivateViewsLifecycleState. \ - * {@link KnownDnsPrivateViewsLifecycleState} can be used interchangeably with DnsPrivateViewsLifecycleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Active**: DNS Private View is active \ - * **Deleted**: DNS Private View is deleted \ - * **Deleting**: DNS Private View is deleting \ - * **Updating**: DNS Private View is updating - */ -export type DnsPrivateViewsLifecycleState = string; - -/** Known values of {@link ResourceProvisioningState} that the service accepts. */ -export enum KnownResourceProvisioningState { - /** Resource has been created. */ - Succeeded = "Succeeded", - /** Resource creation failed. */ - Failed = "Failed", - /** Resource creation was canceled. */ - Canceled = "Canceled", -} - -/** - * Defines values for ResourceProvisioningState. \ - * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded**: Resource has been created. \ - * **Failed**: Resource creation failed. \ - * **Canceled**: Resource creation was canceled. - */ -export type ResourceProvisioningState = string; - -/** Known values of {@link DnsPrivateZonesLifecycleState} that the service accepts. */ -export enum KnownDnsPrivateZonesLifecycleState { - /** DNS Private Zones is active */ - Active = "Active", - /** DNS Private Zones is creating */ - Creating = "Creating", - /** DNS Private Zones is deleted */ - Deleted = "Deleted", - /** DNS Private Zones is deleting */ - Deleting = "Deleting", - /** DNS Private Zones is updating */ - Updating = "Updating", -} - -/** - * Defines values for DnsPrivateZonesLifecycleState. \ - * {@link KnownDnsPrivateZonesLifecycleState} can be used interchangeably with DnsPrivateZonesLifecycleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Active**: DNS Private Zones is active \ - * **Creating**: DNS Private Zones is creating \ - * **Deleted**: DNS Private Zones is deleted \ - * **Deleting**: DNS Private Zones is deleting \ - * **Updating**: DNS Private Zones is updating - */ -export type DnsPrivateZonesLifecycleState = string; - -/** Known values of {@link ZoneType} that the service accepts. */ -export enum KnownZoneType { - /** Primary zone */ - Primary = "Primary", - /** Secondary zone */ - Secondary = "Secondary", -} - -/** - * Defines values for ZoneType. \ - * {@link KnownZoneType} can be used interchangeably with ZoneType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Primary**: Primary zone \ - * **Secondary**: Secondary zone - */ -export type ZoneType = string; - -/** Known values of {@link OracleSubscriptionProvisioningState} that the service accepts. */ -export enum KnownOracleSubscriptionProvisioningState { - /** Resource has been created. */ - Succeeded = "Succeeded", - /** Resource creation failed. */ - Failed = "Failed", - /** Resource creation was canceled. */ - Canceled = "Canceled", -} - -/** - * Defines values for OracleSubscriptionProvisioningState. \ - * {@link KnownOracleSubscriptionProvisioningState} can be used interchangeably with OracleSubscriptionProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded**: Resource has been created. \ - * **Failed**: Resource creation failed. \ - * **Canceled**: Resource creation was canceled. - */ -export type OracleSubscriptionProvisioningState = string; - -/** Known values of {@link CloudAccountProvisioningState} that the service accepts. */ -export enum KnownCloudAccountProvisioningState { - /** Pending - Initial state when Oracle cloud account is not configured */ - Pending = "Pending", - /** Provisioning - State when Oracle cloud account is being provisioned */ - Provisioning = "Provisioning", - /** Available - State when Oracle cloud account cloud linking is complete and it is available */ - Available = "Available", -} - -/** - * Defines values for CloudAccountProvisioningState. \ - * {@link KnownCloudAccountProvisioningState} can be used interchangeably with CloudAccountProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Pending**: Pending - Initial state when Oracle cloud account is not configured \ - * **Provisioning**: Provisioning - State when Oracle cloud account is being provisioned \ - * **Available**: Available - State when Oracle cloud account cloud linking is complete and it is available - */ -export type CloudAccountProvisioningState = string; - -/** Known values of {@link Intent} that the service accepts. */ -export enum KnownIntent { - /** Retain intent */ - Retain = "Retain", - /** Reset intent */ - Reset = "Reset", -} - -/** - * Defines values for Intent. \ - * {@link KnownIntent} can be used interchangeably with Intent, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Retain**: Retain intent \ - * **Reset**: Reset intent - */ -export type Intent = string; - -/** Known values of {@link AutonomousDatabaseBackupLifecycleState} that the service accepts. */ -export enum KnownAutonomousDatabaseBackupLifecycleState { - /** AutonomousDatabase backup is creating */ - Creating = "Creating", - /** AutonomousDatabase backup is active */ - Active = "Active", - /** AutonomousDatabase backup is deleting */ - Deleting = "Deleting", - /** AutonomousDatabase backup is failed */ - Failed = "Failed", - /** AutonomousDatabase backup is updating */ - Updating = "Updating", -} - -/** - * Defines values for AutonomousDatabaseBackupLifecycleState. \ - * {@link KnownAutonomousDatabaseBackupLifecycleState} can be used interchangeably with AutonomousDatabaseBackupLifecycleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating**: AutonomousDatabase backup is creating \ - * **Active**: AutonomousDatabase backup is active \ - * **Deleting**: AutonomousDatabase backup is deleting \ - * **Failed**: AutonomousDatabase backup is failed \ - * **Updating**: AutonomousDatabase backup is updating - */ -export type AutonomousDatabaseBackupLifecycleState = string; - -/** Known values of {@link AutonomousDatabaseBackupType} that the service accepts. */ -export enum KnownAutonomousDatabaseBackupType { - /** Incremental backup */ - Incremental = "Incremental", - /** Full backup */ - Full = "Full", - /** LongTerm backup */ - LongTerm = "LongTerm", -} - -/** - * Defines values for AutonomousDatabaseBackupType. \ - * {@link KnownAutonomousDatabaseBackupType} can be used interchangeably with AutonomousDatabaseBackupType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Incremental**: Incremental backup \ - * **Full**: Full backup \ - * **LongTerm**: LongTerm backup - */ -export type AutonomousDatabaseBackupType = string; - -/** Known values of {@link GenerateType} that the service accepts. */ -export enum KnownGenerateType { - /** Generate single */ - Single = "Single", - /** Generate all */ - All = "All", -} - -/** - * Defines values for GenerateType. \ - * {@link KnownGenerateType} can be used interchangeably with GenerateType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Single**: Generate single \ - * **All**: Generate all - */ -export type GenerateType = string; - -/** Known values of {@link DbServerPatchingStatus} that the service accepts. */ -export enum KnownDbServerPatchingStatus { - /** Patching scheduled */ - Scheduled = "Scheduled", - /** Patching in progress */ - MaintenanceInProgress = "MaintenanceInProgress", - /** Patching failed */ - Failed = "Failed", - /** Patching completed */ - Complete = "Complete", -} - -/** - * Defines values for DbServerPatchingStatus. \ - * {@link KnownDbServerPatchingStatus} can be used interchangeably with DbServerPatchingStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Scheduled**: Patching scheduled \ - * **MaintenanceInProgress**: Patching in progress \ - * **Failed**: Patching failed \ - * **Complete**: Patching completed - */ -export type DbServerPatchingStatus = string; - -/** Known values of {@link DbServerProvisioningState} that the service accepts. */ -export enum KnownDbServerProvisioningState { - /** Indicates that resource in Creating state */ - Creating = "Creating", - /** Indicates that resource in Available state */ - Available = "Available", - /** Indicates that resource in Unavailable state */ - Unavailable = "Unavailable", - /** Indicates that resource in Deleting state */ - Deleting = "Deleting", - /** Indicates that resource in Deleted state */ - Deleted = "Deleted", - /** Indicates that resource maintenance in progress state */ - MaintenanceInProgress = "MaintenanceInProgress", -} - -/** - * Defines values for DbServerProvisioningState. \ - * {@link KnownDbServerProvisioningState} can be used interchangeably with DbServerProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Creating**: Indicates that resource in Creating state \ - * **Available**: Indicates that resource in Available state \ - * **Unavailable**: Indicates that resource in Unavailable state \ - * **Deleting**: Indicates that resource in Deleting state \ - * **Deleted**: Indicates that resource in Deleted state \ - * **MaintenanceInProgress**: Indicates that resource maintenance in progress state - */ -export type DbServerProvisioningState = string; - -/** Known values of {@link DbNodeProvisioningState} that the service accepts. */ -export enum KnownDbNodeProvisioningState { - /** Indicates that resource in Provisioning state */ - Provisioning = "Provisioning", - /** Indicates that resource in Available state */ - Available = "Available", - /** Indicates that resource in Updating state */ - Updating = "Updating", - /** Indicates that resource in Stopping state */ - Stopping = "Stopping", - /** Indicates that resource in Stopped state */ - Stopped = "Stopped", - /** Indicates that resource in Starting state */ - Starting = "Starting", - /** Indicates that resource in Terminating state */ - Terminating = "Terminating", - /** Indicates that resource in Terminated state */ - Terminated = "Terminated", - /** Indicates that resource in Failed state */ - Failed = "Failed", -} - -/** - * Defines values for DbNodeProvisioningState. \ - * {@link KnownDbNodeProvisioningState} can be used interchangeably with DbNodeProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Provisioning**: Indicates that resource in Provisioning state \ - * **Available**: Indicates that resource in Available state \ - * **Updating**: Indicates that resource in Updating state \ - * **Stopping**: Indicates that resource in Stopping state \ - * **Stopped**: Indicates that resource in Stopped state \ - * **Starting**: Indicates that resource in Starting state \ - * **Terminating**: Indicates that resource in Terminating state \ - * **Terminated**: Indicates that resource in Terminated state \ - * **Failed**: Indicates that resource in Failed state - */ -export type DbNodeProvisioningState = string; - -/** Known values of {@link DbNodeMaintenanceType} that the service accepts. */ -export enum KnownDbNodeMaintenanceType { - /** VMDB reboot migration maintenance type */ - VmdbRebootMigration = "VmdbRebootMigration", -} - -/** - * Defines values for DbNodeMaintenanceType. \ - * {@link KnownDbNodeMaintenanceType} can be used interchangeably with DbNodeMaintenanceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **VmdbRebootMigration**: VMDB reboot migration maintenance type - */ -export type DbNodeMaintenanceType = string; - -/** Known values of {@link DbNodeActionEnum} that the service accepts. */ -export enum KnownDbNodeActionEnum { - /** Start DbNode */ - Start = "Start", - /** Stop DbNode */ - Stop = "Stop", - /** Soft reset DbNode */ - SoftReset = "SoftReset", - /** Reset DbNode */ - Reset = "Reset", -} - -/** - * Defines values for DbNodeActionEnum. \ - * {@link KnownDbNodeActionEnum} can be used interchangeably with DbNodeActionEnum, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Start**: Start DbNode \ - * **Stop**: Stop DbNode \ - * **SoftReset**: Soft reset DbNode \ - * **Reset**: Reset DbNode - */ -export type DbNodeActionEnum = string; - -/** Known values of {@link VirtualNetworkAddressLifecycleState} that the service accepts. */ -export enum KnownVirtualNetworkAddressLifecycleState { - /** Indicates that resource in Provisioning state */ - Provisioning = "Provisioning", - /** Indicates that resource in Available state */ - Available = "Available", - /** Indicates that resource in Terminating state */ - Terminating = "Terminating", - /** Indicates that resource in Terminated state */ - Terminated = "Terminated", - /** Indicates that resource in Failed state */ - Failed = "Failed", -} - -/** - * Defines values for VirtualNetworkAddressLifecycleState. \ - * {@link KnownVirtualNetworkAddressLifecycleState} can be used interchangeably with VirtualNetworkAddressLifecycleState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Provisioning**: Indicates that resource in Provisioning state \ - * **Available**: Indicates that resource in Available state \ - * **Terminating**: Indicates that resource in Terminating state \ - * **Terminated**: Indicates that resource in Terminated state \ - * **Failed**: Indicates that resource in Failed state - */ -export type VirtualNetworkAddressLifecycleState = string; - -/** Known values of {@link SourceType} that the service accepts. */ -export enum KnownSourceType { - /** None source */ - None = "None", - /** Database source */ - Database = "Database", - /** Backup from ID source */ - BackupFromId = "BackupFromId", - /** Backup from timestamp source */ - BackupFromTimestamp = "BackupFromTimestamp", - /** Clone to refreshable source */ - CloneToRefreshable = "CloneToRefreshable", - /** Cross region dataguard source */ - CrossRegionDataguard = "CrossRegionDataguard", - /** cross region disaster recovery source */ - CrossRegionDisasterRecovery = "CrossRegionDisasterRecovery", -} - -/** - * Defines values for SourceType. \ - * {@link KnownSourceType} can be used interchangeably with SourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None**: None source \ - * **Database**: Database source \ - * **BackupFromId**: Backup from ID source \ - * **BackupFromTimestamp**: Backup from timestamp source \ - * **CloneToRefreshable**: Clone to refreshable source \ - * **CrossRegionDataguard**: Cross region dataguard source \ - * **CrossRegionDisasterRecovery**: cross region disaster recovery source - */ -export type SourceType = string; - -/** Known values of {@link CloneType} that the service accepts. */ -export enum KnownCloneType { - /** Full clone */ - Full = "Full", - /** Metadata only */ - Metadata = "Metadata", -} - -/** - * Defines values for CloneType. \ - * {@link KnownCloneType} can be used interchangeably with CloneType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Full**: Full clone \ - * **Metadata**: Metadata only - */ -export type CloneType = string; - -/** Known values of {@link RefreshableModelType} that the service accepts. */ -export enum KnownRefreshableModelType { - /** Automatic refreshable model type */ - Automatic = "Automatic", - /** Manual refreshable model type */ - Manual = "Manual", -} - -/** - * Defines values for RefreshableModelType. \ - * {@link KnownRefreshableModelType} can be used interchangeably with RefreshableModelType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Automatic**: Automatic refreshable model type \ - * **Manual**: Manual refreshable model type - */ -export type RefreshableModelType = string; - -/** Known values of {@link RefreshableStatusType} that the service accepts. */ -export enum KnownRefreshableStatusType { - /** Refreshing status */ - Refreshing = "Refreshing", - /** NotRefreshing status */ - NotRefreshing = "NotRefreshing", -} - -/** - * Defines values for RefreshableStatusType. \ - * {@link KnownRefreshableStatusType} can be used interchangeably with RefreshableStatusType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Refreshing**: Refreshing status \ - * **NotRefreshing**: NotRefreshing status - */ -export type RefreshableStatusType = string; - -/** Known values of {@link ValidationStatus} that the service accepts. */ -export enum KnownValidationStatus { - /** Validation succeeded */ - Succeeded = "Succeeded", - /** Validation failed */ - Failed = "Failed", -} - -/** - * Defines values for ValidationStatus. \ - * {@link KnownValidationStatus} can be used interchangeably with ValidationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded**: Validation succeeded \ - * **Failed**: Validation failed - */ -export type ValidationStatus = string; - -/** Known values of {@link UpdateAction} that the service accepts. */ -export enum KnownUpdateAction { - /** Rolling apply action */ - RollingApply = "RollingApply", - /** Non rolling apply action */ - NonRollingApply = "NonRollingApply", - /** Pre-check action */ - PreCheck = "PreCheck", - /** Rollback action */ - RollBack = "RollBack", -} - -/** - * Defines values for UpdateAction. \ - * {@link KnownUpdateAction} can be used interchangeably with UpdateAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **RollingApply**: Rolling apply action \ - * **NonRollingApply**: Non rolling apply action \ - * **PreCheck**: Pre-check action \ - * **RollBack**: Rollback action - */ -export type UpdateAction = string; - -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationListResult; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationListResult; - -/** Optional parameters. */ -export interface AutonomousDatabasesListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type AutonomousDatabasesListBySubscriptionResponse = - AutonomousDatabaseListResult; - -/** Optional parameters. */ -export interface AutonomousDatabasesListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type AutonomousDatabasesListByResourceGroupResponse = - AutonomousDatabaseListResult; - -/** Optional parameters. */ -export interface AutonomousDatabasesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AutonomousDatabasesGetResponse = AutonomousDatabase; - -/** Optional parameters. */ -export interface AutonomousDatabasesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type AutonomousDatabasesCreateOrUpdateResponse = AutonomousDatabase; - -/** Optional parameters. */ -export interface AutonomousDatabasesUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type AutonomousDatabasesUpdateResponse = AutonomousDatabase; - -/** Optional parameters. */ -export interface AutonomousDatabasesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type AutonomousDatabasesDeleteResponse = - AutonomousDatabasesDeleteHeaders; - -/** Optional parameters. */ -export interface AutonomousDatabasesFailoverOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the failover operation. */ -export type AutonomousDatabasesFailoverResponse = AutonomousDatabase; - -/** Optional parameters. */ -export interface AutonomousDatabasesGenerateWalletOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the generateWallet operation. */ -export type AutonomousDatabasesGenerateWalletResponse = - AutonomousDatabaseWalletFile; - -/** Optional parameters. */ -export interface AutonomousDatabasesRestoreOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the restore operation. */ -export type AutonomousDatabasesRestoreResponse = AutonomousDatabase; - -/** Optional parameters. */ -export interface AutonomousDatabasesShrinkOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the shrink operation. */ -export type AutonomousDatabasesShrinkResponse = AutonomousDatabase; - -/** Optional parameters. */ -export interface AutonomousDatabasesSwitchoverOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the switchover operation. */ -export type AutonomousDatabasesSwitchoverResponse = AutonomousDatabase; - -/** Optional parameters. */ -export interface AutonomousDatabasesListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type AutonomousDatabasesListBySubscriptionNextResponse = - AutonomousDatabaseListResult; - -/** Optional parameters. */ -export interface AutonomousDatabasesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type AutonomousDatabasesListByResourceGroupNextResponse = - AutonomousDatabaseListResult; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type CloudExadataInfrastructuresListBySubscriptionResponse = - CloudExadataInfrastructureListResult; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type CloudExadataInfrastructuresListByResourceGroupResponse = - CloudExadataInfrastructureListResult; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type CloudExadataInfrastructuresGetResponse = CloudExadataInfrastructure; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type CloudExadataInfrastructuresCreateOrUpdateResponse = - CloudExadataInfrastructure; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type CloudExadataInfrastructuresUpdateResponse = - CloudExadataInfrastructure; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type CloudExadataInfrastructuresDeleteResponse = - CloudExadataInfrastructuresDeleteHeaders; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresAddStorageCapacityOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the addStorageCapacity operation. */ -export type CloudExadataInfrastructuresAddStorageCapacityResponse = - CloudExadataInfrastructure; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type CloudExadataInfrastructuresListBySubscriptionNextResponse = - CloudExadataInfrastructureListResult; - -/** Optional parameters. */ -export interface CloudExadataInfrastructuresListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type CloudExadataInfrastructuresListByResourceGroupNextResponse = - CloudExadataInfrastructureListResult; - -/** Optional parameters. */ -export interface CloudVmClustersListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type CloudVmClustersListBySubscriptionResponse = - CloudVmClusterListResult; - -/** Optional parameters. */ -export interface CloudVmClustersListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type CloudVmClustersListByResourceGroupResponse = - CloudVmClusterListResult; - -/** Optional parameters. */ -export interface CloudVmClustersGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type CloudVmClustersGetResponse = CloudVmCluster; - -/** Optional parameters. */ -export interface CloudVmClustersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type CloudVmClustersCreateOrUpdateResponse = CloudVmCluster; - -/** Optional parameters. */ -export interface CloudVmClustersUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type CloudVmClustersUpdateResponse = CloudVmCluster; - -/** Optional parameters. */ -export interface CloudVmClustersDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type CloudVmClustersDeleteResponse = CloudVmClustersDeleteHeaders; - -/** Optional parameters. */ -export interface CloudVmClustersAddVmsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the addVms operation. */ -export type CloudVmClustersAddVmsResponse = CloudVmCluster; - -/** Optional parameters. */ -export interface CloudVmClustersListPrivateIpAddressesOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listPrivateIpAddresses operation. */ -export type CloudVmClustersListPrivateIpAddressesResponse = - PrivateIpAddressProperties[]; - -/** Optional parameters. */ -export interface CloudVmClustersRemoveVmsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the removeVms operation. */ -export type CloudVmClustersRemoveVmsResponse = CloudVmCluster; - -/** Optional parameters. */ -export interface CloudVmClustersListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type CloudVmClustersListBySubscriptionNextResponse = - CloudVmClusterListResult; - -/** Optional parameters. */ -export interface CloudVmClustersListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type CloudVmClustersListByResourceGroupNextResponse = - CloudVmClusterListResult; - -/** Optional parameters. */ -export interface AutonomousDatabaseCharacterSetsListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type AutonomousDatabaseCharacterSetsListByLocationResponse = - AutonomousDatabaseCharacterSetListResult; - -/** Optional parameters. */ -export interface AutonomousDatabaseCharacterSetsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AutonomousDatabaseCharacterSetsGetResponse = - AutonomousDatabaseCharacterSet; - -/** Optional parameters. */ -export interface AutonomousDatabaseCharacterSetsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type AutonomousDatabaseCharacterSetsListByLocationNextResponse = - AutonomousDatabaseCharacterSetListResult; - -/** Optional parameters. */ -export interface AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type AutonomousDatabaseNationalCharacterSetsListByLocationResponse = - AutonomousDatabaseNationalCharacterSetListResult; - -/** Optional parameters. */ -export interface AutonomousDatabaseNationalCharacterSetsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AutonomousDatabaseNationalCharacterSetsGetResponse = - AutonomousDatabaseNationalCharacterSet; - -/** Optional parameters. */ -export interface AutonomousDatabaseNationalCharacterSetsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type AutonomousDatabaseNationalCharacterSetsListByLocationNextResponse = - AutonomousDatabaseNationalCharacterSetListResult; - -/** Optional parameters. */ -export interface AutonomousDatabaseVersionsListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type AutonomousDatabaseVersionsListByLocationResponse = - AutonomousDbVersionListResult; - -/** Optional parameters. */ -export interface AutonomousDatabaseVersionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AutonomousDatabaseVersionsGetResponse = AutonomousDbVersion; - -/** Optional parameters. */ -export interface AutonomousDatabaseVersionsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type AutonomousDatabaseVersionsListByLocationNextResponse = - AutonomousDbVersionListResult; - -/** Optional parameters. */ -export interface DbSystemShapesListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type DbSystemShapesListByLocationResponse = DbSystemShapeListResult; - -/** Optional parameters. */ -export interface DbSystemShapesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DbSystemShapesGetResponse = DbSystemShape; - -/** Optional parameters. */ -export interface DbSystemShapesListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type DbSystemShapesListByLocationNextResponse = DbSystemShapeListResult; - -/** Optional parameters. */ -export interface DnsPrivateViewsListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type DnsPrivateViewsListByLocationResponse = DnsPrivateViewListResult; - -/** Optional parameters. */ -export interface DnsPrivateViewsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DnsPrivateViewsGetResponse = DnsPrivateView; - -/** Optional parameters. */ -export interface DnsPrivateViewsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type DnsPrivateViewsListByLocationNextResponse = - DnsPrivateViewListResult; - -/** Optional parameters. */ -export interface DnsPrivateZonesListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type DnsPrivateZonesListByLocationResponse = DnsPrivateZoneListResult; - -/** Optional parameters. */ -export interface DnsPrivateZonesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DnsPrivateZonesGetResponse = DnsPrivateZone; - -/** Optional parameters. */ -export interface DnsPrivateZonesListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type DnsPrivateZonesListByLocationNextResponse = - DnsPrivateZoneListResult; - -/** Optional parameters. */ -export interface GiVersionsListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type GiVersionsListByLocationResponse = GiVersionListResult; - -/** Optional parameters. */ -export interface GiVersionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GiVersionsGetResponse = GiVersion; - -/** Optional parameters. */ -export interface GiVersionsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type GiVersionsListByLocationNextResponse = GiVersionListResult; - -/** Optional parameters. */ -export interface SystemVersionsListByLocationOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocation operation. */ -export type SystemVersionsListByLocationResponse = SystemVersionListResult; - -/** Optional parameters. */ -export interface SystemVersionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SystemVersionsGetResponse = SystemVersion; - -/** Optional parameters. */ -export interface SystemVersionsListByLocationNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByLocationNext operation. */ -export type SystemVersionsListByLocationNextResponse = SystemVersionListResult; - -/** Optional parameters. */ -export interface OracleSubscriptionsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type OracleSubscriptionsListBySubscriptionResponse = - OracleSubscriptionListResult; - -/** Optional parameters. */ -export interface OracleSubscriptionsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type OracleSubscriptionsGetResponse = OracleSubscription; - -/** Optional parameters. */ -export interface OracleSubscriptionsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type OracleSubscriptionsCreateOrUpdateResponse = OracleSubscription; - -/** Optional parameters. */ -export interface OracleSubscriptionsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type OracleSubscriptionsUpdateResponse = OracleSubscription; - -/** Optional parameters. */ -export interface OracleSubscriptionsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type OracleSubscriptionsDeleteResponse = - OracleSubscriptionsDeleteHeaders; - -/** Optional parameters. */ -export interface OracleSubscriptionsListActivationLinksOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the listActivationLinks operation. */ -export type OracleSubscriptionsListActivationLinksResponse = ActivationLinks; - -/** Optional parameters. */ -export interface OracleSubscriptionsListCloudAccountDetailsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the listCloudAccountDetails operation. */ -export type OracleSubscriptionsListCloudAccountDetailsResponse = - CloudAccountDetails; - -/** Optional parameters. */ -export interface OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the listSaasSubscriptionDetails operation. */ -export type OracleSubscriptionsListSaasSubscriptionDetailsResponse = - SaasSubscriptionDetails; - -/** Optional parameters. */ -export interface OracleSubscriptionsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type OracleSubscriptionsListBySubscriptionNextResponse = - OracleSubscriptionListResult; - -/** Optional parameters. */ -export interface AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutonomousDatabase operation. */ -export type AutonomousDatabaseBackupsListByAutonomousDatabaseResponse = - AutonomousDatabaseBackupListResult; - -/** Optional parameters. */ -export interface AutonomousDatabaseBackupsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AutonomousDatabaseBackupsGetResponse = AutonomousDatabaseBackup; - -/** Optional parameters. */ -export interface AutonomousDatabaseBackupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type AutonomousDatabaseBackupsCreateOrUpdateResponse = - AutonomousDatabaseBackup; - -/** Optional parameters. */ -export interface AutonomousDatabaseBackupsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type AutonomousDatabaseBackupsUpdateResponse = AutonomousDatabaseBackup; - -/** Optional parameters. */ -export interface AutonomousDatabaseBackupsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type AutonomousDatabaseBackupsDeleteResponse = - AutonomousDatabaseBackupsDeleteHeaders; - -/** Optional parameters. */ -export interface AutonomousDatabaseBackupsListByAutonomousDatabaseNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByAutonomousDatabaseNext operation. */ -export type AutonomousDatabaseBackupsListByAutonomousDatabaseNextResponse = - AutonomousDatabaseBackupListResult; - -/** Optional parameters. */ -export interface DbServersListByCloudExadataInfrastructureOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCloudExadataInfrastructure operation. */ -export type DbServersListByCloudExadataInfrastructureResponse = - DbServerListResult; - -/** Optional parameters. */ -export interface DbServersGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DbServersGetResponse = DbServer; - -/** Optional parameters. */ -export interface DbServersListByCloudExadataInfrastructureNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCloudExadataInfrastructureNext operation. */ -export type DbServersListByCloudExadataInfrastructureNextResponse = - DbServerListResult; - -/** Optional parameters. */ -export interface DbNodesListByCloudVmClusterOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCloudVmCluster operation. */ -export type DbNodesListByCloudVmClusterResponse = DbNodeListResult; - -/** Optional parameters. */ -export interface DbNodesGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DbNodesGetResponse = DbNode; - -/** Optional parameters. */ -export interface DbNodesActionOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the action operation. */ -export type DbNodesActionResponse = DbNode; - -/** Optional parameters. */ -export interface DbNodesListByCloudVmClusterNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCloudVmClusterNext operation. */ -export type DbNodesListByCloudVmClusterNextResponse = DbNodeListResult; - -/** Optional parameters. */ -export interface VirtualNetworkAddressesListByCloudVmClusterOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCloudVmCluster operation. */ -export type VirtualNetworkAddressesListByCloudVmClusterResponse = - VirtualNetworkAddressListResult; - -/** Optional parameters. */ -export interface VirtualNetworkAddressesGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type VirtualNetworkAddressesGetResponse = VirtualNetworkAddress; - -/** Optional parameters. */ -export interface VirtualNetworkAddressesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type VirtualNetworkAddressesCreateOrUpdateResponse = - VirtualNetworkAddress; - -/** Optional parameters. */ -export interface VirtualNetworkAddressesDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the delete operation. */ -export type VirtualNetworkAddressesDeleteResponse = - VirtualNetworkAddressesDeleteHeaders; - -/** Optional parameters. */ -export interface VirtualNetworkAddressesListByCloudVmClusterNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByCloudVmClusterNext operation. */ -export type VirtualNetworkAddressesListByCloudVmClusterNextResponse = - VirtualNetworkAddressListResult; - -/** Optional parameters. */ -export interface OracleDatabaseManagementClientOptionalParams - extends coreClient.ServiceClientOptions { - /** server parameter */ - $host?: string; - /** Api Version */ - apiVersion?: string; - /** Overrides client endpoint. */ - endpoint?: string; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/models/mappers.ts b/sdk/oracledatabase/arm-oracledatabase/src/models/mappers.ts deleted file mode 100644 index 3d1f4a6fc65f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/models/mappers.ts +++ /dev/null @@ -1,5971 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; - -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, - type: { - name: "Boolean", - }, - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay", - }, - }, - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String", - }, - }, - actionType: { - serializedName: "actionType", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String", - }, - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String", - }, - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetail", - }, - }, - }, - }, -}; - -export const ErrorDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String", - }, - }, - message: { - serializedName: "message", - readOnly: true, - type: { - name: "String", - }, - }, - target: { - serializedName: "target", - readOnly: true, - type: { - name: "String", - }, - }, - details: { - serializedName: "details", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail", - }, - }, - }, - }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - }, - }, - }, - }, - }, - }, -}; - -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - info: { - serializedName: "info", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - }, - }, -}; - -export const AutonomousDatabaseListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutonomousDatabase", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseBaseProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseBaseProperties", - uberParent: "AutonomousDatabaseBaseProperties", - polymorphicDiscriminator: { - serializedName: "dataBaseType", - clientName: "dataBaseType", - }, - modelProperties: { - adminPassword: { - serializedName: "adminPassword", - type: { - name: "String", - }, - }, - dataBaseType: { - serializedName: "dataBaseType", - required: true, - type: { - name: "String", - }, - }, - autonomousMaintenanceScheduleType: { - serializedName: "autonomousMaintenanceScheduleType", - type: { - name: "String", - }, - }, - characterSet: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "characterSet", - type: { - name: "String", - }, - }, - computeCount: { - constraints: { - InclusiveMaximum: 512, - InclusiveMinimum: 0.1, - }, - serializedName: "computeCount", - type: { - name: "Number", - }, - }, - computeModel: { - serializedName: "computeModel", - type: { - name: "String", - }, - }, - cpuCoreCount: { - constraints: { - InclusiveMaximum: 128, - InclusiveMinimum: 1, - }, - serializedName: "cpuCoreCount", - type: { - name: "Number", - }, - }, - customerContacts: { - serializedName: "customerContacts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomerContact", - }, - }, - }, - }, - dataStorageSizeInTbs: { - constraints: { - InclusiveMaximum: 384, - InclusiveMinimum: 1, - }, - serializedName: "dataStorageSizeInTbs", - type: { - name: "Number", - }, - }, - dataStorageSizeInGbs: { - constraints: { - InclusiveMaximum: 393216, - InclusiveMinimum: 20, - }, - serializedName: "dataStorageSizeInGbs", - type: { - name: "Number", - }, - }, - dbVersion: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "dbVersion", - type: { - name: "String", - }, - }, - dbWorkload: { - serializedName: "dbWorkload", - type: { - name: "String", - }, - }, - displayName: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "displayName", - type: { - name: "String", - }, - }, - isAutoScalingEnabled: { - serializedName: "isAutoScalingEnabled", - type: { - name: "Boolean", - }, - }, - isAutoScalingForStorageEnabled: { - serializedName: "isAutoScalingForStorageEnabled", - type: { - name: "Boolean", - }, - }, - peerDbIds: { - serializedName: "peerDbIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - peerDbId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "peerDbId", - type: { - name: "String", - }, - }, - isLocalDataGuardEnabled: { - serializedName: "isLocalDataGuardEnabled", - type: { - name: "Boolean", - }, - }, - isRemoteDataGuardEnabled: { - serializedName: "isRemoteDataGuardEnabled", - readOnly: true, - type: { - name: "Boolean", - }, - }, - localDisasterRecoveryType: { - serializedName: "localDisasterRecoveryType", - readOnly: true, - type: { - name: "String", - }, - }, - localStandbyDb: { - serializedName: "localStandbyDb", - type: { - name: "Composite", - className: "AutonomousDatabaseStandbySummary", - }, - }, - failedDataRecoveryInSeconds: { - serializedName: "failedDataRecoveryInSeconds", - readOnly: true, - type: { - name: "Number", - }, - }, - isMtlsConnectionRequired: { - serializedName: "isMtlsConnectionRequired", - type: { - name: "Boolean", - }, - }, - isPreviewVersionWithServiceTermsAccepted: { - serializedName: "isPreviewVersionWithServiceTermsAccepted", - type: { - name: "Boolean", - }, - }, - licenseModel: { - serializedName: "licenseModel", - type: { - name: "String", - }, - }, - ncharacterSet: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ncharacterSet", - type: { - name: "String", - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - scheduledOperations: { - serializedName: "scheduledOperations", - type: { - name: "Composite", - className: "ScheduledOperationsType", - }, - }, - privateEndpointIp: { - serializedName: "privateEndpointIp", - type: { - name: "String", - }, - }, - privateEndpointLabel: { - serializedName: "privateEndpointLabel", - type: { - name: "String", - }, - }, - ociUrl: { - serializedName: "ociUrl", - readOnly: true, - type: { - name: "String", - }, - }, - subnetId: { - serializedName: "subnetId", - type: { - name: "String", - }, - }, - vnetId: { - serializedName: "vnetId", - type: { - name: "String", - }, - }, - timeCreated: { - serializedName: "timeCreated", - readOnly: true, - type: { - name: "DateTime", - }, - }, - timeMaintenanceBegin: { - serializedName: "timeMaintenanceBegin", - readOnly: true, - type: { - name: "DateTime", - }, - }, - timeMaintenanceEnd: { - serializedName: "timeMaintenanceEnd", - readOnly: true, - type: { - name: "DateTime", - }, - }, - actualUsedDataStorageSizeInTbs: { - serializedName: "actualUsedDataStorageSizeInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - allocatedStorageSizeInTbs: { - serializedName: "allocatedStorageSizeInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - apexDetails: { - serializedName: "apexDetails", - type: { - name: "Composite", - className: "ApexDetailsType", - }, - }, - availableUpgradeVersions: { - serializedName: "availableUpgradeVersions", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - connectionStrings: { - serializedName: "connectionStrings", - type: { - name: "Composite", - className: "ConnectionStringType", - }, - }, - connectionUrls: { - serializedName: "connectionUrls", - type: { - name: "Composite", - className: "ConnectionUrlType", - }, - }, - dataSafeStatus: { - serializedName: "dataSafeStatus", - readOnly: true, - type: { - name: "String", - }, - }, - databaseEdition: { - serializedName: "databaseEdition", - type: { - name: "String", - }, - }, - autonomousDatabaseId: { - serializedName: "autonomousDatabaseId", - type: { - name: "String", - }, - }, - inMemoryAreaInGbs: { - serializedName: "inMemoryAreaInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - nextLongTermBackupTimeStamp: { - serializedName: "nextLongTermBackupTimeStamp", - readOnly: true, - type: { - name: "DateTime", - }, - }, - longTermBackupSchedule: { - serializedName: "longTermBackupSchedule", - type: { - name: "Composite", - className: "LongTermBackUpScheduleDetails", - }, - }, - isPreview: { - serializedName: "isPreview", - readOnly: true, - type: { - name: "Boolean", - }, - }, - localAdgAutoFailoverMaxDataLossLimit: { - constraints: { - InclusiveMaximum: 3600, - InclusiveMinimum: 0, - }, - serializedName: "localAdgAutoFailoverMaxDataLossLimit", - type: { - name: "Number", - }, - }, - memoryPerOracleComputeUnitInGbs: { - serializedName: "memoryPerOracleComputeUnitInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - openMode: { - serializedName: "openMode", - type: { - name: "String", - }, - }, - operationsInsightsStatus: { - serializedName: "operationsInsightsStatus", - readOnly: true, - type: { - name: "String", - }, - }, - permissionLevel: { - serializedName: "permissionLevel", - type: { - name: "String", - }, - }, - privateEndpoint: { - serializedName: "privateEndpoint", - readOnly: true, - type: { - name: "String", - }, - }, - provisionableCpus: { - serializedName: "provisionableCpus", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Number", - }, - }, - }, - }, - role: { - serializedName: "role", - type: { - name: "String", - }, - }, - serviceConsoleUrl: { - constraints: { - MaxLength: 255, - MinLength: 10, - }, - serializedName: "serviceConsoleUrl", - readOnly: true, - type: { - name: "String", - }, - }, - sqlWebDeveloperUrl: { - constraints: { - MaxLength: 2048, - MinLength: 10, - }, - serializedName: "sqlWebDeveloperUrl", - readOnly: true, - type: { - name: "String", - }, - }, - supportedRegionsToCloneTo: { - constraints: { - MaxItems: 50, - }, - serializedName: "supportedRegionsToCloneTo", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - timeDataGuardRoleChanged: { - serializedName: "timeDataGuardRoleChanged", - readOnly: true, - type: { - name: "String", - }, - }, - timeDeletionOfFreeAutonomousDatabase: { - serializedName: "timeDeletionOfFreeAutonomousDatabase", - readOnly: true, - type: { - name: "String", - }, - }, - timeLocalDataGuardEnabled: { - serializedName: "timeLocalDataGuardEnabled", - readOnly: true, - type: { - name: "String", - }, - }, - timeOfLastFailover: { - serializedName: "timeOfLastFailover", - readOnly: true, - type: { - name: "String", - }, - }, - timeOfLastRefresh: { - serializedName: "timeOfLastRefresh", - readOnly: true, - type: { - name: "String", - }, - }, - timeOfLastRefreshPoint: { - serializedName: "timeOfLastRefreshPoint", - readOnly: true, - type: { - name: "String", - }, - }, - timeOfLastSwitchover: { - serializedName: "timeOfLastSwitchover", - readOnly: true, - type: { - name: "String", - }, - }, - timeReclamationOfFreeAutonomousDatabase: { - serializedName: "timeReclamationOfFreeAutonomousDatabase", - readOnly: true, - type: { - name: "String", - }, - }, - usedDataStorageSizeInGbs: { - serializedName: "usedDataStorageSizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - usedDataStorageSizeInTbs: { - serializedName: "usedDataStorageSizeInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - readOnly: true, - type: { - name: "String", - }, - }, - backupRetentionPeriodInDays: { - serializedName: "backupRetentionPeriodInDays", - type: { - name: "Number", - }, - }, - whitelistedIps: { - serializedName: "whitelistedIps", - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 1024, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const CustomerContact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CustomerContact", - modelProperties: { - email: { - constraints: { - MaxLength: 320, - MinLength: 1, - }, - serializedName: "email", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseStandbySummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseStandbySummary", - modelProperties: { - lagTimeInSeconds: { - serializedName: "lagTimeInSeconds", - type: { - name: "Number", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - type: { - name: "String", - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - type: { - name: "String", - }, - }, - timeDataGuardRoleChanged: { - serializedName: "timeDataGuardRoleChanged", - type: { - name: "String", - }, - }, - timeDisasterRecoveryRoleChanged: { - serializedName: "timeDisasterRecoveryRoleChanged", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ScheduledOperationsType: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduledOperationsType", - modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", - type: { - name: "Composite", - className: "DayOfWeek", - }, - }, - scheduledStartTime: { - constraints: { - MaxLength: 50, - MinLength: 1, - }, - serializedName: "scheduledStartTime", - type: { - name: "String", - }, - }, - scheduledStopTime: { - constraints: { - MaxLength: 50, - MinLength: 1, - }, - serializedName: "scheduledStopTime", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DayOfWeek: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DayOfWeek", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ApexDetailsType: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApexDetailsType", - modelProperties: { - apexVersion: { - serializedName: "apexVersion", - type: { - name: "String", - }, - }, - ordsVersion: { - serializedName: "ordsVersion", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ConnectionStringType: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionStringType", - modelProperties: { - allConnectionStrings: { - serializedName: "allConnectionStrings", - type: { - name: "Composite", - className: "AllConnectionStringType", - }, - }, - dedicated: { - constraints: { - MaxLength: 255, - MinLength: 10, - }, - serializedName: "dedicated", - type: { - name: "String", - }, - }, - high: { - constraints: { - MaxLength: 255, - MinLength: 10, - }, - serializedName: "high", - type: { - name: "String", - }, - }, - low: { - constraints: { - MaxLength: 255, - MinLength: 10, - }, - serializedName: "low", - type: { - name: "String", - }, - }, - medium: { - constraints: { - MaxLength: 255, - MinLength: 10, - }, - serializedName: "medium", - type: { - name: "String", - }, - }, - profiles: { - serializedName: "profiles", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ProfileType", - }, - }, - }, - }, - }, - }, -}; - -export const AllConnectionStringType: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AllConnectionStringType", - modelProperties: { - high: { - constraints: { - MaxLength: 255, - MinLength: 10, - }, - serializedName: "high", - type: { - name: "String", - }, - }, - low: { - constraints: { - MaxLength: 255, - MinLength: 10, - }, - serializedName: "low", - type: { - name: "String", - }, - }, - medium: { - constraints: { - MaxLength: 255, - MinLength: 10, - }, - serializedName: "medium", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ProfileType: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProfileType", - modelProperties: { - consumerGroup: { - serializedName: "consumerGroup", - type: { - name: "String", - }, - }, - displayName: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "displayName", - required: true, - type: { - name: "String", - }, - }, - hostFormat: { - serializedName: "hostFormat", - required: true, - type: { - name: "String", - }, - }, - isRegional: { - serializedName: "isRegional", - type: { - name: "Boolean", - }, - }, - protocol: { - serializedName: "protocol", - required: true, - type: { - name: "String", - }, - }, - sessionMode: { - serializedName: "sessionMode", - required: true, - type: { - name: "String", - }, - }, - syntaxFormat: { - serializedName: "syntaxFormat", - required: true, - type: { - name: "String", - }, - }, - tlsAuthentication: { - serializedName: "tlsAuthentication", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ConnectionUrlType: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectionUrlType", - modelProperties: { - apexUrl: { - constraints: { - MaxLength: 512, - MinLength: 10, - }, - serializedName: "apexUrl", - type: { - name: "String", - }, - }, - databaseTransformsUrl: { - constraints: { - MaxLength: 512, - MinLength: 10, - }, - serializedName: "databaseTransformsUrl", - type: { - name: "String", - }, - }, - graphStudioUrl: { - constraints: { - MaxLength: 512, - MinLength: 10, - }, - serializedName: "graphStudioUrl", - type: { - name: "String", - }, - }, - machineLearningNotebookUrl: { - constraints: { - MaxLength: 512, - MinLength: 10, - }, - serializedName: "machineLearningNotebookUrl", - type: { - name: "String", - }, - }, - mongoDbUrl: { - constraints: { - MaxLength: 512, - MinLength: 10, - }, - serializedName: "mongoDbUrl", - type: { - name: "String", - }, - }, - ordsUrl: { - constraints: { - MaxLength: 512, - MinLength: 10, - }, - serializedName: "ordsUrl", - type: { - name: "String", - }, - }, - sqlDevWebUrl: { - constraints: { - MaxLength: 512, - MinLength: 10, - }, - serializedName: "sqlDevWebUrl", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const LongTermBackUpScheduleDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LongTermBackUpScheduleDetails", - modelProperties: { - repeatCadence: { - serializedName: "repeatCadence", - type: { - name: "String", - }, - }, - timeOfBackup: { - serializedName: "timeOfBackup", - type: { - name: "DateTime", - }, - }, - retentionPeriodInDays: { - constraints: { - InclusiveMaximum: 2558, - InclusiveMinimum: 90, - }, - serializedName: "retentionPeriodInDays", - type: { - name: "Number", - }, - }, - isDisabled: { - serializedName: "isDisabled", - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - }, - }, -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String", - }, - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime", - }, - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String", - }, - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String", - }, - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const CloudExadataInfrastructureListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CloudExadataInfrastructureListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudExadataInfrastructure", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const CloudExadataInfrastructureProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CloudExadataInfrastructureProperties", - modelProperties: { - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - readOnly: true, - type: { - name: "String", - }, - }, - computeCount: { - serializedName: "computeCount", - type: { - name: "Number", - }, - }, - storageCount: { - serializedName: "storageCount", - type: { - name: "Number", - }, - }, - totalStorageSizeInGbs: { - serializedName: "totalStorageSizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - availableStorageSizeInGbs: { - serializedName: "availableStorageSizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - timeCreated: { - serializedName: "timeCreated", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - readOnly: true, - type: { - name: "String", - }, - }, - maintenanceWindow: { - serializedName: "maintenanceWindow", - type: { - name: "Composite", - className: "MaintenanceWindow", - }, - }, - estimatedPatchingTime: { - serializedName: "estimatedPatchingTime", - type: { - name: "Composite", - className: "EstimatedPatchingTime", - }, - }, - customerContacts: { - serializedName: "customerContacts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomerContact", - }, - }, - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - shape: { - serializedName: "shape", - required: true, - type: { - name: "String", - }, - }, - ociUrl: { - serializedName: "ociUrl", - readOnly: true, - type: { - name: "String", - }, - }, - cpuCount: { - serializedName: "cpuCount", - readOnly: true, - type: { - name: "Number", - }, - }, - maxCpuCount: { - serializedName: "maxCpuCount", - readOnly: true, - type: { - name: "Number", - }, - }, - memorySizeInGbs: { - serializedName: "memorySizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - maxMemoryInGbs: { - serializedName: "maxMemoryInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - dbNodeStorageSizeInGbs: { - serializedName: "dbNodeStorageSizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - maxDbNodeStorageSizeInGbs: { - serializedName: "maxDbNodeStorageSizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - dataStorageSizeInTbs: { - serializedName: "dataStorageSizeInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - maxDataStorageInTbs: { - serializedName: "maxDataStorageInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - dbServerVersion: { - serializedName: "dbServerVersion", - readOnly: true, - type: { - name: "String", - }, - }, - storageServerVersion: { - serializedName: "storageServerVersion", - readOnly: true, - type: { - name: "String", - }, - }, - activatedStorageCount: { - serializedName: "activatedStorageCount", - readOnly: true, - type: { - name: "Number", - }, - }, - additionalStorageCount: { - serializedName: "additionalStorageCount", - readOnly: true, - type: { - name: "Number", - }, - }, - displayName: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "displayName", - required: true, - type: { - name: "String", - }, - }, - lastMaintenanceRunId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "lastMaintenanceRunId", - readOnly: true, - type: { - name: "String", - }, - }, - nextMaintenanceRunId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "nextMaintenanceRunId", - readOnly: true, - type: { - name: "String", - }, - }, - monthlyDbServerVersion: { - serializedName: "monthlyDbServerVersion", - readOnly: true, - type: { - name: "String", - }, - }, - monthlyStorageServerVersion: { - serializedName: "monthlyStorageServerVersion", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const MaintenanceWindow: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MaintenanceWindow", - modelProperties: { - preference: { - serializedName: "preference", - type: { - name: "String", - }, - }, - months: { - serializedName: "months", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Month", - }, - }, - }, - }, - weeksOfMonth: { - serializedName: "weeksOfMonth", - type: { - name: "Sequence", - element: { - type: { - name: "Number", - }, - }, - }, - }, - daysOfWeek: { - serializedName: "daysOfWeek", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DayOfWeek", - }, - }, - }, - }, - hoursOfDay: { - serializedName: "hoursOfDay", - type: { - name: "Sequence", - element: { - type: { - name: "Number", - }, - }, - }, - }, - leadTimeInWeeks: { - serializedName: "leadTimeInWeeks", - type: { - name: "Number", - }, - }, - patchingMode: { - serializedName: "patchingMode", - type: { - name: "String", - }, - }, - customActionTimeoutInMins: { - constraints: { - InclusiveMaximum: 120, - InclusiveMinimum: 0, - }, - serializedName: "customActionTimeoutInMins", - type: { - name: "Number", - }, - }, - isCustomActionTimeoutEnabled: { - serializedName: "isCustomActionTimeoutEnabled", - type: { - name: "Boolean", - }, - }, - isMonthlyPatchingEnabled: { - serializedName: "isMonthlyPatchingEnabled", - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const Month: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Month", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const EstimatedPatchingTime: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EstimatedPatchingTime", - modelProperties: { - estimatedDbServerPatchingTime: { - constraints: { - InclusiveMaximum: 3000, - InclusiveMinimum: 1, - }, - serializedName: "estimatedDbServerPatchingTime", - readOnly: true, - type: { - name: "Number", - }, - }, - estimatedNetworkSwitchesPatchingTime: { - constraints: { - InclusiveMaximum: 3000, - InclusiveMinimum: 1, - }, - serializedName: "estimatedNetworkSwitchesPatchingTime", - readOnly: true, - type: { - name: "Number", - }, - }, - estimatedStorageServerPatchingTime: { - constraints: { - InclusiveMaximum: 3000, - InclusiveMinimum: 1, - }, - serializedName: "estimatedStorageServerPatchingTime", - readOnly: true, - type: { - name: "Number", - }, - }, - totalEstimatedPatchingTime: { - constraints: { - InclusiveMaximum: 3000, - InclusiveMinimum: 1, - }, - serializedName: "totalEstimatedPatchingTime", - readOnly: true, - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const CloudVmClusterListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmClusterListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CloudVmCluster", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const CloudVmClusterProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmClusterProperties", - modelProperties: { - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - readOnly: true, - type: { - name: "String", - }, - }, - listenerPort: { - serializedName: "listenerPort", - readOnly: true, - type: { - name: "Number", - }, - }, - nodeCount: { - serializedName: "nodeCount", - readOnly: true, - type: { - name: "Number", - }, - }, - storageSizeInGbs: { - serializedName: "storageSizeInGbs", - type: { - name: "Number", - }, - }, - dataStorageSizeInTbs: { - serializedName: "dataStorageSizeInTbs", - type: { - name: "Number", - }, - }, - dbNodeStorageSizeInGbs: { - serializedName: "dbNodeStorageSizeInGbs", - type: { - name: "Number", - }, - }, - memorySizeInGbs: { - serializedName: "memorySizeInGbs", - type: { - name: "Number", - }, - }, - timeCreated: { - serializedName: "timeCreated", - readOnly: true, - type: { - name: "DateTime", - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - readOnly: true, - type: { - name: "String", - }, - }, - timeZone: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "timeZone", - type: { - name: "String", - }, - }, - zoneId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "zoneId", - type: { - name: "String", - }, - }, - hostname: { - constraints: { - MaxLength: 23, - MinLength: 1, - }, - serializedName: "hostname", - required: true, - type: { - name: "String", - }, - }, - domain: { - serializedName: "domain", - type: { - name: "String", - }, - }, - cpuCoreCount: { - serializedName: "cpuCoreCount", - required: true, - type: { - name: "Number", - }, - }, - ocpuCount: { - serializedName: "ocpuCount", - type: { - name: "Number", - }, - }, - clusterName: { - constraints: { - MaxLength: 11, - MinLength: 1, - }, - serializedName: "clusterName", - type: { - name: "String", - }, - }, - dataStoragePercentage: { - serializedName: "dataStoragePercentage", - type: { - name: "Number", - }, - }, - isLocalBackupEnabled: { - defaultValue: false, - serializedName: "isLocalBackupEnabled", - type: { - name: "Boolean", - }, - }, - cloudExadataInfrastructureId: { - serializedName: "cloudExadataInfrastructureId", - required: true, - type: { - name: "String", - }, - }, - isSparseDiskgroupEnabled: { - defaultValue: false, - serializedName: "isSparseDiskgroupEnabled", - type: { - name: "Boolean", - }, - }, - systemVersion: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "systemVersion", - type: { - name: "String", - }, - }, - sshPublicKeys: { - serializedName: "sshPublicKeys", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - licenseModel: { - serializedName: "licenseModel", - type: { - name: "String", - }, - }, - diskRedundancy: { - serializedName: "diskRedundancy", - readOnly: true, - type: { - name: "String", - }, - }, - scanIpIds: { - serializedName: "scanIpIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - vipIds: { - serializedName: "vipIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - scanDnsName: { - constraints: { - MaxLength: 72, - MinLength: 1, - }, - serializedName: "scanDnsName", - readOnly: true, - type: { - name: "String", - }, - }, - scanListenerPortTcp: { - serializedName: "scanListenerPortTcp", - type: { - name: "Number", - }, - }, - scanListenerPortTcpSsl: { - serializedName: "scanListenerPortTcpSsl", - type: { - name: "Number", - }, - }, - scanDnsRecordId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "scanDnsRecordId", - readOnly: true, - type: { - name: "String", - }, - }, - shape: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "shape", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - vnetId: { - serializedName: "vnetId", - required: true, - type: { - name: "String", - }, - }, - giVersion: { - serializedName: "giVersion", - required: true, - type: { - name: "String", - }, - }, - ociUrl: { - serializedName: "ociUrl", - readOnly: true, - type: { - name: "String", - }, - }, - nsgUrl: { - serializedName: "nsgUrl", - readOnly: true, - type: { - name: "String", - }, - }, - subnetId: { - serializedName: "subnetId", - required: true, - type: { - name: "String", - }, - }, - backupSubnetCidr: { - constraints: { - MaxLength: 32, - MinLength: 1, - }, - serializedName: "backupSubnetCidr", - type: { - name: "String", - }, - }, - nsgCidrs: { - serializedName: "nsgCidrs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NsgCidr", - }, - }, - }, - }, - dataCollectionOptions: { - serializedName: "dataCollectionOptions", - type: { - name: "Composite", - className: "DataCollectionOptions", - }, - }, - displayName: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "displayName", - required: true, - type: { - name: "String", - }, - }, - computeNodes: { - serializedName: "computeNodes", - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - iormConfigCache: { - serializedName: "iormConfigCache", - type: { - name: "Composite", - className: "ExadataIormConfig", - }, - }, - lastUpdateHistoryEntryId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "lastUpdateHistoryEntryId", - readOnly: true, - type: { - name: "String", - }, - }, - dbServers: { - serializedName: "dbServers", - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - compartmentId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "compartmentId", - readOnly: true, - type: { - name: "String", - }, - }, - subnetOcid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "subnetOcid", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const NsgCidr: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NsgCidr", - modelProperties: { - source: { - constraints: { - MaxLength: 128, - MinLength: 1, - }, - serializedName: "source", - required: true, - type: { - name: "String", - }, - }, - destinationPortRange: { - serializedName: "destinationPortRange", - type: { - name: "Composite", - className: "PortRange", - }, - }, - }, - }, -}; - -export const PortRange: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PortRange", - modelProperties: { - min: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1, - }, - serializedName: "min", - required: true, - type: { - name: "Number", - }, - }, - max: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 1, - }, - serializedName: "max", - required: true, - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const DataCollectionOptions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataCollectionOptions", - modelProperties: { - isDiagnosticsEventsEnabled: { - defaultValue: false, - serializedName: "isDiagnosticsEventsEnabled", - type: { - name: "Boolean", - }, - }, - isHealthMonitoringEnabled: { - defaultValue: false, - serializedName: "isHealthMonitoringEnabled", - type: { - name: "Boolean", - }, - }, - isIncidentLogsEnabled: { - defaultValue: false, - serializedName: "isIncidentLogsEnabled", - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const ExadataIormConfig: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExadataIormConfig", - modelProperties: { - dbPlans: { - serializedName: "dbPlans", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DbIormConfig", - }, - }, - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - type: { - name: "String", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - type: { - name: "String", - }, - }, - objective: { - serializedName: "objective", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DbIormConfig: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbIormConfig", - modelProperties: { - dbName: { - serializedName: "dbName", - type: { - name: "String", - }, - }, - flashCacheLimit: { - serializedName: "flashCacheLimit", - type: { - name: "String", - }, - }, - share: { - constraints: { - InclusiveMaximum: 32, - InclusiveMinimum: 1, - }, - serializedName: "share", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseCharacterSetListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseCharacterSetListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutonomousDatabaseCharacterSet", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const AutonomousDatabaseCharacterSetProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseCharacterSetProperties", - modelProperties: { - characterSet: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "characterSet", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const AutonomousDatabaseNationalCharacterSetListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseNationalCharacterSetListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutonomousDatabaseNationalCharacterSet", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const AutonomousDatabaseNationalCharacterSetProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseNationalCharacterSetProperties", - modelProperties: { - characterSet: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "characterSet", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const AutonomousDbVersionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDbVersionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutonomousDbVersion", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutonomousDbVersionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDbVersionProperties", - modelProperties: { - version: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "version", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - dbWorkload: { - serializedName: "dbWorkload", - readOnly: true, - type: { - name: "String", - }, - }, - isDefaultForFree: { - serializedName: "isDefaultForFree", - readOnly: true, - type: { - name: "Boolean", - }, - }, - isDefaultForPaid: { - serializedName: "isDefaultForPaid", - readOnly: true, - type: { - name: "Boolean", - }, - }, - isFreeTierEnabled: { - serializedName: "isFreeTierEnabled", - readOnly: true, - type: { - name: "Boolean", - }, - }, - isPaidEnabled: { - serializedName: "isPaidEnabled", - readOnly: true, - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const DbSystemShapeListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbSystemShapeListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DbSystemShape", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DbSystemShapeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbSystemShapeProperties", - modelProperties: { - shapeFamily: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "shapeFamily", - readOnly: true, - type: { - name: "String", - }, - }, - availableCoreCount: { - serializedName: "availableCoreCount", - required: true, - readOnly: true, - type: { - name: "Number", - }, - }, - minimumCoreCount: { - serializedName: "minimumCoreCount", - readOnly: true, - type: { - name: "Number", - }, - }, - runtimeMinimumCoreCount: { - serializedName: "runtimeMinimumCoreCount", - readOnly: true, - type: { - name: "Number", - }, - }, - coreCountIncrement: { - serializedName: "coreCountIncrement", - readOnly: true, - type: { - name: "Number", - }, - }, - minStorageCount: { - serializedName: "minStorageCount", - readOnly: true, - type: { - name: "Number", - }, - }, - maxStorageCount: { - serializedName: "maxStorageCount", - readOnly: true, - type: { - name: "Number", - }, - }, - availableDataStoragePerServerInTbs: { - serializedName: "availableDataStoragePerServerInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - availableMemoryPerNodeInGbs: { - serializedName: "availableMemoryPerNodeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - availableDbNodePerNodeInGbs: { - serializedName: "availableDbNodePerNodeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - minCoreCountPerNode: { - serializedName: "minCoreCountPerNode", - readOnly: true, - type: { - name: "Number", - }, - }, - availableMemoryInGbs: { - serializedName: "availableMemoryInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - minMemoryPerNodeInGbs: { - serializedName: "minMemoryPerNodeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - availableDbNodeStorageInGbs: { - serializedName: "availableDbNodeStorageInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - minDbNodeStoragePerNodeInGbs: { - serializedName: "minDbNodeStoragePerNodeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - availableDataStorageInTbs: { - serializedName: "availableDataStorageInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - minDataStorageInTbs: { - serializedName: "minDataStorageInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - minimumNodeCount: { - serializedName: "minimumNodeCount", - readOnly: true, - type: { - name: "Number", - }, - }, - maximumNodeCount: { - serializedName: "maximumNodeCount", - readOnly: true, - type: { - name: "Number", - }, - }, - availableCoreCountPerNode: { - serializedName: "availableCoreCountPerNode", - readOnly: true, - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const DnsPrivateViewListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DnsPrivateViewListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DnsPrivateView", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DnsPrivateViewProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DnsPrivateViewProperties", - modelProperties: { - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - displayName: { - serializedName: "displayName", - readOnly: true, - type: { - name: "String", - }, - }, - isProtected: { - serializedName: "isProtected", - required: true, - readOnly: true, - type: { - name: "Boolean", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - self: { - serializedName: "self", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - timeCreated: { - serializedName: "timeCreated", - required: true, - readOnly: true, - type: { - name: "DateTime", - }, - }, - timeUpdated: { - serializedName: "timeUpdated", - required: true, - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DnsPrivateZoneListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DnsPrivateZoneListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DnsPrivateZone", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DnsPrivateZoneProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DnsPrivateZoneProperties", - modelProperties: { - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - isProtected: { - serializedName: "isProtected", - required: true, - readOnly: true, - type: { - name: "Boolean", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - self: { - serializedName: "self", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - serial: { - serializedName: "serial", - required: true, - readOnly: true, - type: { - name: "Number", - }, - }, - version: { - serializedName: "version", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - viewId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "viewId", - readOnly: true, - type: { - name: "String", - }, - }, - zoneType: { - serializedName: "zoneType", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - timeCreated: { - serializedName: "timeCreated", - required: true, - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const GiVersionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GiVersionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GiVersion", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const GiVersionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GiVersionProperties", - modelProperties: { - version: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "version", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SystemVersionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemVersionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SystemVersion", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SystemVersionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemVersionProperties", - modelProperties: { - systemVersion: { - serializedName: "systemVersion", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OracleSubscriptionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OracleSubscriptionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OracleSubscription", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OracleSubscriptionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OracleSubscriptionProperties", - modelProperties: { - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - saasSubscriptionId: { - serializedName: "saasSubscriptionId", - readOnly: true, - type: { - name: "String", - }, - }, - cloudAccountId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "cloudAccountId", - readOnly: true, - type: { - name: "String", - }, - }, - cloudAccountState: { - serializedName: "cloudAccountState", - readOnly: true, - type: { - name: "String", - }, - }, - termUnit: { - serializedName: "termUnit", - type: { - name: "String", - }, - }, - productCode: { - serializedName: "productCode", - type: { - name: "String", - }, - }, - intent: { - serializedName: "intent", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Plan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Plan", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - publisher: { - serializedName: "publisher", - required: true, - type: { - name: "String", - }, - }, - product: { - serializedName: "product", - required: true, - type: { - name: "String", - }, - }, - promotionCode: { - serializedName: "promotionCode", - type: { - name: "String", - }, - }, - version: { - serializedName: "version", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OracleSubscriptionUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OracleSubscriptionUpdate", - modelProperties: { - plan: { - serializedName: "plan", - type: { - name: "Composite", - className: "PlanUpdate", - }, - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "OracleSubscriptionUpdateProperties", - }, - }, - }, - }, -}; - -export const PlanUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PlanUpdate", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - publisher: { - serializedName: "publisher", - type: { - name: "String", - }, - }, - product: { - serializedName: "product", - type: { - name: "String", - }, - }, - promotionCode: { - serializedName: "promotionCode", - type: { - name: "String", - }, - }, - version: { - serializedName: "version", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OracleSubscriptionUpdateProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OracleSubscriptionUpdateProperties", - modelProperties: { - productCode: { - serializedName: "productCode", - type: { - name: "String", - }, - }, - intent: { - serializedName: "intent", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ActivationLinks: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivationLinks", - modelProperties: { - newCloudAccountActivationLink: { - serializedName: "newCloudAccountActivationLink", - readOnly: true, - type: { - name: "String", - }, - }, - existingCloudAccountActivationLink: { - serializedName: "existingCloudAccountActivationLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const CloudAccountDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudAccountDetails", - modelProperties: { - cloudAccountName: { - serializedName: "cloudAccountName", - readOnly: true, - type: { - name: "String", - }, - }, - cloudAccountHomeRegion: { - serializedName: "cloudAccountHomeRegion", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SaasSubscriptionDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SaasSubscriptionDetails", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - subscriptionName: { - serializedName: "subscriptionName", - readOnly: true, - type: { - name: "String", - }, - }, - timeCreated: { - serializedName: "timeCreated", - readOnly: true, - type: { - name: "DateTime", - }, - }, - offerId: { - serializedName: "offerId", - readOnly: true, - type: { - name: "String", - }, - }, - planId: { - serializedName: "planId", - readOnly: true, - type: { - name: "String", - }, - }, - saasSubscriptionStatus: { - serializedName: "saasSubscriptionStatus", - readOnly: true, - type: { - name: "String", - }, - }, - publisherId: { - serializedName: "publisherId", - readOnly: true, - type: { - name: "String", - }, - }, - purchaserEmailId: { - serializedName: "purchaserEmailId", - readOnly: true, - type: { - name: "String", - }, - }, - purchaserTenantId: { - serializedName: "purchaserTenantId", - readOnly: true, - type: { - name: "String", - }, - }, - termUnit: { - serializedName: "termUnit", - readOnly: true, - type: { - name: "String", - }, - }, - isAutoRenew: { - serializedName: "isAutoRenew", - readOnly: true, - type: { - name: "Boolean", - }, - }, - isFreeTrial: { - serializedName: "isFreeTrial", - readOnly: true, - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AutonomousDatabaseUpdateProperties", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseUpdateProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseUpdateProperties", - modelProperties: { - adminPassword: { - serializedName: "adminPassword", - type: { - name: "String", - }, - }, - autonomousMaintenanceScheduleType: { - serializedName: "autonomousMaintenanceScheduleType", - type: { - name: "String", - }, - }, - computeCount: { - constraints: { - InclusiveMaximum: 512, - InclusiveMinimum: 0.1, - }, - serializedName: "computeCount", - type: { - name: "Number", - }, - }, - cpuCoreCount: { - constraints: { - InclusiveMaximum: 128, - InclusiveMinimum: 1, - }, - serializedName: "cpuCoreCount", - type: { - name: "Number", - }, - }, - customerContacts: { - serializedName: "customerContacts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomerContact", - }, - }, - }, - }, - dataStorageSizeInTbs: { - constraints: { - InclusiveMaximum: 384, - InclusiveMinimum: 1, - }, - serializedName: "dataStorageSizeInTbs", - type: { - name: "Number", - }, - }, - dataStorageSizeInGbs: { - constraints: { - InclusiveMaximum: 393216, - InclusiveMinimum: 20, - }, - serializedName: "dataStorageSizeInGbs", - type: { - name: "Number", - }, - }, - displayName: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "displayName", - type: { - name: "String", - }, - }, - isAutoScalingEnabled: { - serializedName: "isAutoScalingEnabled", - type: { - name: "Boolean", - }, - }, - isAutoScalingForStorageEnabled: { - serializedName: "isAutoScalingForStorageEnabled", - type: { - name: "Boolean", - }, - }, - peerDbId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "peerDbId", - type: { - name: "String", - }, - }, - isLocalDataGuardEnabled: { - serializedName: "isLocalDataGuardEnabled", - type: { - name: "Boolean", - }, - }, - isMtlsConnectionRequired: { - serializedName: "isMtlsConnectionRequired", - type: { - name: "Boolean", - }, - }, - licenseModel: { - serializedName: "licenseModel", - type: { - name: "String", - }, - }, - scheduledOperations: { - serializedName: "scheduledOperations", - type: { - name: "Composite", - className: "ScheduledOperationsTypeUpdate", - }, - }, - databaseEdition: { - serializedName: "databaseEdition", - type: { - name: "String", - }, - }, - longTermBackupSchedule: { - serializedName: "longTermBackupSchedule", - type: { - name: "Composite", - className: "LongTermBackUpScheduleDetails", - }, - }, - localAdgAutoFailoverMaxDataLossLimit: { - constraints: { - InclusiveMaximum: 3600, - InclusiveMinimum: 0, - }, - serializedName: "localAdgAutoFailoverMaxDataLossLimit", - type: { - name: "Number", - }, - }, - openMode: { - serializedName: "openMode", - type: { - name: "String", - }, - }, - permissionLevel: { - serializedName: "permissionLevel", - type: { - name: "String", - }, - }, - role: { - serializedName: "role", - type: { - name: "String", - }, - }, - backupRetentionPeriodInDays: { - serializedName: "backupRetentionPeriodInDays", - type: { - name: "Number", - }, - }, - whitelistedIps: { - serializedName: "whitelistedIps", - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 1024, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const ScheduledOperationsTypeUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScheduledOperationsTypeUpdate", - modelProperties: { - dayOfWeek: { - serializedName: "dayOfWeek", - type: { - name: "Composite", - className: "DayOfWeekUpdate", - }, - }, - scheduledStartTime: { - constraints: { - MaxLength: 50, - MinLength: 1, - }, - serializedName: "scheduledStartTime", - type: { - name: "String", - }, - }, - scheduledStopTime: { - constraints: { - MaxLength: 50, - MinLength: 1, - }, - serializedName: "scheduledStopTime", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DayOfWeekUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DayOfWeekUpdate", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseBackupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseBackupListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutonomousDatabaseBackup", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseBackupProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseBackupProperties", - modelProperties: { - autonomousDatabaseOcid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "autonomousDatabaseOcid", - readOnly: true, - type: { - name: "String", - }, - }, - databaseSizeInTbs: { - serializedName: "databaseSizeInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - dbVersion: { - serializedName: "dbVersion", - readOnly: true, - type: { - name: "String", - }, - }, - displayName: { - serializedName: "displayName", - type: { - name: "String", - }, - }, - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - readOnly: true, - type: { - name: "String", - }, - }, - isAutomatic: { - serializedName: "isAutomatic", - readOnly: true, - type: { - name: "Boolean", - }, - }, - isRestorable: { - serializedName: "isRestorable", - readOnly: true, - type: { - name: "Boolean", - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - retentionPeriodInDays: { - constraints: { - InclusiveMaximum: 3650, - InclusiveMinimum: 60, - }, - serializedName: "retentionPeriodInDays", - type: { - name: "Number", - }, - }, - sizeInTbs: { - serializedName: "sizeInTbs", - readOnly: true, - type: { - name: "Number", - }, - }, - timeAvailableTil: { - serializedName: "timeAvailableTil", - readOnly: true, - type: { - name: "DateTime", - }, - }, - timeStarted: { - serializedName: "timeStarted", - readOnly: true, - type: { - name: "String", - }, - }, - timeEnded: { - serializedName: "timeEnded", - readOnly: true, - type: { - name: "String", - }, - }, - backupType: { - serializedName: "backupType", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseBackupUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseBackupUpdate", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AutonomousDatabaseBackupUpdateProperties", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseBackupUpdateProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseBackupUpdateProperties", - modelProperties: { - retentionPeriodInDays: { - constraints: { - InclusiveMaximum: 3650, - InclusiveMinimum: 60, - }, - serializedName: "retentionPeriodInDays", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const PeerDbDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PeerDbDetails", - modelProperties: { - peerDbId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "peerDbId", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const GenerateAutonomousDatabaseWalletDetails: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GenerateAutonomousDatabaseWalletDetails", - modelProperties: { - generateType: { - serializedName: "generateType", - type: { - name: "String", - }, - }, - isRegional: { - serializedName: "isRegional", - type: { - name: "Boolean", - }, - }, - password: { - serializedName: "password", - required: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const AutonomousDatabaseWalletFile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseWalletFile", - modelProperties: { - walletFiles: { - serializedName: "walletFiles", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const RestoreAutonomousDatabaseDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestoreAutonomousDatabaseDetails", - modelProperties: { - timestamp: { - serializedName: "timestamp", - required: true, - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const CloudExadataInfrastructureUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudExadataInfrastructureUpdate", - modelProperties: { - zones: { - serializedName: "zones", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CloudExadataInfrastructureUpdateProperties", - }, - }, - }, - }, -}; - -export const CloudExadataInfrastructureUpdateProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CloudExadataInfrastructureUpdateProperties", - modelProperties: { - computeCount: { - serializedName: "computeCount", - type: { - name: "Number", - }, - }, - storageCount: { - serializedName: "storageCount", - type: { - name: "Number", - }, - }, - maintenanceWindow: { - serializedName: "maintenanceWindow", - type: { - name: "Composite", - className: "MaintenanceWindow", - }, - }, - customerContacts: { - serializedName: "customerContacts", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomerContact", - }, - }, - }, - }, - displayName: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "displayName", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const DbServerListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbServerListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DbServer", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DbServerProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbServerProperties", - modelProperties: { - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - readOnly: true, - type: { - name: "String", - }, - }, - displayName: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "displayName", - readOnly: true, - type: { - name: "String", - }, - }, - compartmentId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "compartmentId", - readOnly: true, - type: { - name: "String", - }, - }, - exadataInfrastructureId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "exadataInfrastructureId", - readOnly: true, - type: { - name: "String", - }, - }, - cpuCoreCount: { - serializedName: "cpuCoreCount", - readOnly: true, - type: { - name: "Number", - }, - }, - dbServerPatchingDetails: { - serializedName: "dbServerPatchingDetails", - type: { - name: "Composite", - className: "DbServerPatchingDetails", - }, - }, - maxMemoryInGbs: { - serializedName: "maxMemoryInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - dbNodeStorageSizeInGbs: { - serializedName: "dbNodeStorageSizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - vmClusterIds: { - serializedName: "vmClusterIds", - readOnly: true, - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - dbNodeIds: { - serializedName: "dbNodeIds", - readOnly: true, - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - maxCpuCount: { - serializedName: "maxCpuCount", - readOnly: true, - type: { - name: "Number", - }, - }, - autonomousVmClusterIds: { - serializedName: "autonomousVmClusterIds", - readOnly: true, - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - autonomousVirtualMachineIds: { - serializedName: "autonomousVirtualMachineIds", - readOnly: true, - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - maxDbNodeStorageInGbs: { - serializedName: "maxDbNodeStorageInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - memorySizeInGbs: { - serializedName: "memorySizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - shape: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "shape", - readOnly: true, - type: { - name: "String", - }, - }, - timeCreated: { - serializedName: "timeCreated", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DbServerPatchingDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbServerPatchingDetails", - modelProperties: { - estimatedPatchDuration: { - constraints: { - InclusiveMaximum: 3000, - InclusiveMinimum: 1, - }, - serializedName: "estimatedPatchDuration", - readOnly: true, - type: { - name: "Number", - }, - }, - patchingStatus: { - serializedName: "patchingStatus", - readOnly: true, - type: { - name: "String", - }, - }, - timePatchingEnded: { - serializedName: "timePatchingEnded", - readOnly: true, - type: { - name: "DateTime", - }, - }, - timePatchingStarted: { - serializedName: "timePatchingStarted", - readOnly: true, - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const CloudVmClusterUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmClusterUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CloudVmClusterUpdateProperties", - }, - }, - }, - }, -}; - -export const CloudVmClusterUpdateProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmClusterUpdateProperties", - modelProperties: { - storageSizeInGbs: { - serializedName: "storageSizeInGbs", - type: { - name: "Number", - }, - }, - dataStorageSizeInTbs: { - serializedName: "dataStorageSizeInTbs", - type: { - name: "Number", - }, - }, - dbNodeStorageSizeInGbs: { - serializedName: "dbNodeStorageSizeInGbs", - type: { - name: "Number", - }, - }, - memorySizeInGbs: { - serializedName: "memorySizeInGbs", - type: { - name: "Number", - }, - }, - cpuCoreCount: { - serializedName: "cpuCoreCount", - type: { - name: "Number", - }, - }, - ocpuCount: { - serializedName: "ocpuCount", - type: { - name: "Number", - }, - }, - sshPublicKeys: { - serializedName: "sshPublicKeys", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - licenseModel: { - serializedName: "licenseModel", - type: { - name: "String", - }, - }, - dataCollectionOptions: { - serializedName: "dataCollectionOptions", - type: { - name: "Composite", - className: "DataCollectionOptions", - }, - }, - displayName: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "displayName", - type: { - name: "String", - }, - }, - computeNodes: { - serializedName: "computeNodes", - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const AddRemoveDbNode: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AddRemoveDbNode", - modelProperties: { - dbServers: { - serializedName: "dbServers", - required: true, - type: { - name: "Sequence", - element: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const DbNodeListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbNodeListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DbNode", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DbNodeProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbNodeProperties", - modelProperties: { - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - additionalDetails: { - serializedName: "additionalDetails", - readOnly: true, - type: { - name: "String", - }, - }, - backupIpId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "backupIpId", - readOnly: true, - type: { - name: "String", - }, - }, - backupVnic2Id: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "backupVnic2Id", - readOnly: true, - type: { - name: "String", - }, - }, - backupVnicId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "backupVnicId", - readOnly: true, - type: { - name: "String", - }, - }, - cpuCoreCount: { - serializedName: "cpuCoreCount", - readOnly: true, - type: { - name: "Number", - }, - }, - dbNodeStorageSizeInGbs: { - serializedName: "dbNodeStorageSizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - dbServerId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "dbServerId", - readOnly: true, - type: { - name: "String", - }, - }, - dbSystemId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "dbSystemId", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - faultDomain: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "faultDomain", - readOnly: true, - type: { - name: "String", - }, - }, - hostIpId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "hostIpId", - readOnly: true, - type: { - name: "String", - }, - }, - hostname: { - serializedName: "hostname", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - readOnly: true, - type: { - name: "String", - }, - }, - maintenanceType: { - serializedName: "maintenanceType", - readOnly: true, - type: { - name: "String", - }, - }, - memorySizeInGbs: { - serializedName: "memorySizeInGbs", - readOnly: true, - type: { - name: "Number", - }, - }, - softwareStorageSizeInGb: { - serializedName: "softwareStorageSizeInGb", - readOnly: true, - type: { - name: "Number", - }, - }, - timeCreated: { - serializedName: "timeCreated", - readOnly: true, - type: { - name: "DateTime", - }, - }, - timeMaintenanceWindowEnd: { - serializedName: "timeMaintenanceWindowEnd", - readOnly: true, - type: { - name: "DateTime", - }, - }, - timeMaintenanceWindowStart: { - serializedName: "timeMaintenanceWindowStart", - readOnly: true, - type: { - name: "DateTime", - }, - }, - vnic2Id: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "vnic2Id", - readOnly: true, - type: { - name: "String", - }, - }, - vnicId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "vnicId", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DbNodeAction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbNodeAction", - modelProperties: { - action: { - serializedName: "action", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const PrivateIpAddressesFilter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateIpAddressesFilter", - modelProperties: { - subnetId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "subnetId", - required: true, - type: { - name: "String", - }, - }, - vnicId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "vnicId", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const PrivateIpAddressProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateIpAddressProperties", - modelProperties: { - displayName: { - serializedName: "displayName", - required: true, - type: { - name: "String", - }, - }, - hostnameLabel: { - serializedName: "hostnameLabel", - required: true, - type: { - name: "String", - }, - }, - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - required: true, - type: { - name: "String", - }, - }, - ipAddress: { - serializedName: "ipAddress", - required: true, - type: { - name: "String", - }, - }, - subnetId: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "subnetId", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const VirtualNetworkAddressListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkAddressListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkAddress", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const VirtualNetworkAddressProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkAddressProperties", - modelProperties: { - ipAddress: { - serializedName: "ipAddress", - type: { - name: "String", - }, - }, - vmOcid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "vmOcid", - type: { - name: "String", - }, - }, - ocid: { - constraints: { - MaxLength: 255, - MinLength: 1, - }, - serializedName: "ocid", - readOnly: true, - type: { - name: "String", - }, - }, - domain: { - serializedName: "domain", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleDetails: { - serializedName: "lifecycleDetails", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, - type: { - name: "String", - }, - }, - lifecycleState: { - serializedName: "lifecycleState", - readOnly: true, - type: { - name: "String", - }, - }, - timeAssigned: { - serializedName: "timeAssigned", - readOnly: true, - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const SystemVersionsFilter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemVersionsFilter", - modelProperties: { - giVersion: { - serializedName: "giVersion", - required: true, - type: { - name: "String", - }, - }, - shape: { - serializedName: "shape", - required: true, - type: { - name: "String", - }, - }, - isLatestVersion: { - serializedName: "isLatestVersion", - type: { - name: "Boolean", - }, - }, - }, - }, -}; - -export const ValidationError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidationError", - modelProperties: { - code: { - serializedName: "code", - required: true, - type: { - name: "String", - }, - }, - message: { - serializedName: "message", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ValidationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ValidationResult", - modelProperties: { - status: { - serializedName: "status", - required: true, - readOnly: true, - type: { - name: "String", - }, - }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ValidationError", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseCloneProperties: coreClient.CompositeMapper = { - serializedName: "Clone", - type: { - name: "Composite", - className: "AutonomousDatabaseCloneProperties", - uberParent: "AutonomousDatabaseBaseProperties", - polymorphicDiscriminator: - AutonomousDatabaseBaseProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AutonomousDatabaseBaseProperties.type.modelProperties, - source: { - serializedName: "source", - type: { - name: "String", - }, - }, - sourceId: { - serializedName: "sourceId", - required: true, - type: { - name: "String", - }, - }, - cloneType: { - serializedName: "cloneType", - required: true, - type: { - name: "String", - }, - }, - isReconnectCloneEnabled: { - serializedName: "isReconnectCloneEnabled", - readOnly: true, - type: { - name: "Boolean", - }, - }, - isRefreshableClone: { - serializedName: "isRefreshableClone", - readOnly: true, - type: { - name: "Boolean", - }, - }, - refreshableModel: { - serializedName: "refreshableModel", - type: { - name: "String", - }, - }, - refreshableStatus: { - serializedName: "refreshableStatus", - readOnly: true, - type: { - name: "String", - }, - }, - timeUntilReconnectCloneEnabled: { - serializedName: "timeUntilReconnectCloneEnabled", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseProperties: coreClient.CompositeMapper = { - serializedName: "Regular", - type: { - name: "Composite", - className: "AutonomousDatabaseProperties", - uberParent: "AutonomousDatabaseBaseProperties", - polymorphicDiscriminator: - AutonomousDatabaseBaseProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AutonomousDatabaseBaseProperties.type.modelProperties, - }, - }, -}; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - location: { - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties, - }, - }, -}; - -export const AutonomousDatabase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabase", - modelProperties: { - ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AutonomousDatabaseBaseProperties", - }, - }, - }, - }, -}; - -export const CloudExadataInfrastructure: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudExadataInfrastructure", - modelProperties: { - ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CloudExadataInfrastructureProperties", - }, - }, - zones: { - serializedName: "zones", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const CloudVmCluster: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmCluster", - modelProperties: { - ...TrackedResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "CloudVmClusterProperties", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseCharacterSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseCharacterSet", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AutonomousDatabaseCharacterSetProperties", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseNationalCharacterSet: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseNationalCharacterSet", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AutonomousDatabaseNationalCharacterSetProperties", - }, - }, - }, - }, - }; - -export const AutonomousDbVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDbVersion", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AutonomousDbVersionProperties", - }, - }, - }, - }, -}; - -export const DbSystemShape: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbSystemShape", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DbSystemShapeProperties", - }, - }, - }, - }, -}; - -export const DnsPrivateView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DnsPrivateView", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DnsPrivateViewProperties", - }, - }, - }, - }, -}; - -export const DnsPrivateZone: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DnsPrivateZone", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DnsPrivateZoneProperties", - }, - }, - }, - }, -}; - -export const GiVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GiVersion", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "GiVersionProperties", - }, - }, - }, - }, -}; - -export const SystemVersion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemVersion", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "SystemVersionProperties", - }, - }, - }, - }, -}; - -export const OracleSubscription: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OracleSubscription", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "OracleSubscriptionProperties", - }, - }, - plan: { - serializedName: "plan", - type: { - name: "Composite", - className: "Plan", - }, - }, - }, - }, -}; - -export const AutonomousDatabaseBackup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabaseBackup", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AutonomousDatabaseBackupProperties", - }, - }, - }, - }, -}; - -export const DbServer: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbServer", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DbServerProperties", - }, - }, - }, - }, -}; - -export const DbNode: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbNode", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "DbNodeProperties", - }, - }, - }, - }, -}; - -export const VirtualNetworkAddress: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkAddress", - modelProperties: { - ...ProxyResource.type.modelProperties, - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "VirtualNetworkAddressProperties", - }, - }, - }, - }, -}; - -export const AutonomousDatabasesCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabasesCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const AutonomousDatabasesUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabasesUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AutonomousDatabasesDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabasesDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AutonomousDatabasesFailoverHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabasesFailoverHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AutonomousDatabasesRestoreHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabasesRestoreHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AutonomousDatabasesShrinkHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutonomousDatabasesShrinkHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const AutonomousDatabasesSwitchoverHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabasesSwitchoverHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const CloudExadataInfrastructuresCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CloudExadataInfrastructuresCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const CloudExadataInfrastructuresUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CloudExadataInfrastructuresUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const CloudExadataInfrastructuresDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CloudExadataInfrastructuresDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const CloudExadataInfrastructuresAddStorageCapacityHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CloudExadataInfrastructuresAddStorageCapacityHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const CloudVmClustersCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CloudVmClustersCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const CloudVmClustersUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmClustersUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const CloudVmClustersDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmClustersDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const CloudVmClustersAddVmsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmClustersAddVmsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const CloudVmClustersRemoveVmsHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CloudVmClustersRemoveVmsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const OracleSubscriptionsCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "OracleSubscriptionsCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const OracleSubscriptionsUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OracleSubscriptionsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const OracleSubscriptionsDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OracleSubscriptionsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const OracleSubscriptionsListActivationLinksHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "OracleSubscriptionsListActivationLinksHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const OracleSubscriptionsListCloudAccountDetailsHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "OracleSubscriptionsListCloudAccountDetailsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const OracleSubscriptionsListSaasSubscriptionDetailsHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "OracleSubscriptionsListSaasSubscriptionDetailsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const AutonomousDatabaseBackupsCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseBackupsCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const AutonomousDatabaseBackupsUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseBackupsUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const AutonomousDatabaseBackupsDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AutonomousDatabaseBackupsDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const DbNodesActionHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DbNodesActionHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const VirtualNetworkAddressesCreateOrUpdateHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "VirtualNetworkAddressesCreateOrUpdateHeaders", - modelProperties: { - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const VirtualNetworkAddressesDeleteHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "VirtualNetworkAddressesDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export let discriminators = { - AutonomousDatabaseBaseProperties: AutonomousDatabaseBaseProperties, - "AutonomousDatabaseBaseProperties.Clone": AutonomousDatabaseCloneProperties, - "AutonomousDatabaseBaseProperties.Regular": AutonomousDatabaseProperties, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/models/parameters.ts b/sdk/oracledatabase/arm-oracledatabase/src/models/parameters.ts deleted file mode 100644 index e705451c7ab3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/models/parameters.ts +++ /dev/null @@ -1,437 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - OperationParameter, - OperationURLParameter, - OperationQueryParameter, -} from "@azure/core-client"; -import { - AutonomousDatabase as AutonomousDatabaseMapper, - AutonomousDatabaseUpdate as AutonomousDatabaseUpdateMapper, - PeerDbDetails as PeerDbDetailsMapper, - GenerateAutonomousDatabaseWalletDetails as GenerateAutonomousDatabaseWalletDetailsMapper, - RestoreAutonomousDatabaseDetails as RestoreAutonomousDatabaseDetailsMapper, - CloudExadataInfrastructure as CloudExadataInfrastructureMapper, - CloudExadataInfrastructureUpdate as CloudExadataInfrastructureUpdateMapper, - CloudVmCluster as CloudVmClusterMapper, - CloudVmClusterUpdate as CloudVmClusterUpdateMapper, - AddRemoveDbNode as AddRemoveDbNodeMapper, - PrivateIpAddressesFilter as PrivateIpAddressesFilterMapper, - OracleSubscription as OracleSubscriptionMapper, - OracleSubscriptionUpdate as OracleSubscriptionUpdateMapper, - AutonomousDatabaseBackup as AutonomousDatabaseBackupMapper, - AutonomousDatabaseBackupUpdate as AutonomousDatabaseBackupUpdateMapper, - DbNodeAction as DbNodeActionMapper, - VirtualNetworkAddress as VirtualNetworkAddressMapper, -} from "../models/mappers"; - -export const accept: OperationParameter = { - parameterPath: "accept", - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Accept", - type: { - name: "String", - }, - }, -}; - -export const $host: OperationURLParameter = { - parameterPath: "$host", - mapper: { - serializedName: "$host", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const apiVersion: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2023-09-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", - mapper: { - serializedName: "subscriptionId", - required: true, - type: { - name: "Uuid", - }, - }, -}; - -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1, - }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const autonomousdatabasename: OperationURLParameter = { - parameterPath: "autonomousdatabasename", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - MaxLength: 30, - MinLength: 1, - }, - serializedName: "autonomousdatabasename", - required: true, - type: { - name: "String", - }, - }, -}; - -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String", - }, - }, -}; - -export const resource: OperationParameter = { - parameterPath: "resource", - mapper: AutonomousDatabaseMapper, -}; - -export const properties: OperationParameter = { - parameterPath: "properties", - mapper: AutonomousDatabaseUpdateMapper, -}; - -export const body: OperationParameter = { - parameterPath: "body", - mapper: PeerDbDetailsMapper, -}; - -export const body1: OperationParameter = { - parameterPath: "body", - mapper: GenerateAutonomousDatabaseWalletDetailsMapper, -}; - -export const body2: OperationParameter = { - parameterPath: "body", - mapper: RestoreAutonomousDatabaseDetailsMapper, -}; - -export const cloudexadatainfrastructurename: OperationURLParameter = { - parameterPath: "cloudexadatainfrastructurename", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "cloudexadatainfrastructurename", - required: true, - type: { - name: "String", - }, - }, -}; - -export const resource1: OperationParameter = { - parameterPath: "resource", - mapper: CloudExadataInfrastructureMapper, -}; - -export const properties1: OperationParameter = { - parameterPath: "properties", - mapper: CloudExadataInfrastructureUpdateMapper, -}; - -export const cloudvmclustername: OperationURLParameter = { - parameterPath: "cloudvmclustername", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "cloudvmclustername", - required: true, - type: { - name: "String", - }, - }, -}; - -export const resource2: OperationParameter = { - parameterPath: "resource", - mapper: CloudVmClusterMapper, -}; - -export const properties2: OperationParameter = { - parameterPath: "properties", - mapper: CloudVmClusterUpdateMapper, -}; - -export const body3: OperationParameter = { - parameterPath: "body", - mapper: AddRemoveDbNodeMapper, -}; - -export const body4: OperationParameter = { - parameterPath: "body", - mapper: PrivateIpAddressesFilterMapper, -}; - -export const location: OperationURLParameter = { - parameterPath: "location", - mapper: { - constraints: { - MinLength: 1, - }, - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, -}; - -export const adbscharsetname: OperationURLParameter = { - parameterPath: "adbscharsetname", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "adbscharsetname", - required: true, - type: { - name: "String", - }, - }, -}; - -export const adbsncharsetname: OperationURLParameter = { - parameterPath: "adbsncharsetname", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "adbsncharsetname", - required: true, - type: { - name: "String", - }, - }, -}; - -export const autonomousdbversionsname: OperationURLParameter = { - parameterPath: "autonomousdbversionsname", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "autonomousdbversionsname", - required: true, - type: { - name: "String", - }, - }, -}; - -export const dbsystemshapename: OperationURLParameter = { - parameterPath: "dbsystemshapename", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "dbsystemshapename", - required: true, - type: { - name: "String", - }, - }, -}; - -export const dnsprivateviewocid: OperationURLParameter = { - parameterPath: "dnsprivateviewocid", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - MaxLength: 255, - MinLength: 1, - }, - serializedName: "dnsprivateviewocid", - required: true, - type: { - name: "String", - }, - }, -}; - -export const dnsprivatezonename: OperationURLParameter = { - parameterPath: "dnsprivatezonename", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "dnsprivatezonename", - required: true, - type: { - name: "String", - }, - }, -}; - -export const giversionname: OperationURLParameter = { - parameterPath: "giversionname", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "giversionname", - required: true, - type: { - name: "String", - }, - }, -}; - -export const systemversionname: OperationURLParameter = { - parameterPath: "systemversionname", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "systemversionname", - required: true, - type: { - name: "String", - }, - }, -}; - -export const resource3: OperationParameter = { - parameterPath: "resource", - mapper: OracleSubscriptionMapper, -}; - -export const properties3: OperationParameter = { - parameterPath: "properties", - mapper: OracleSubscriptionUpdateMapper, -}; - -export const adbbackupid: OperationURLParameter = { - parameterPath: "adbbackupid", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - }, - serializedName: "adbbackupid", - required: true, - type: { - name: "String", - }, - }, -}; - -export const resource4: OperationParameter = { - parameterPath: "resource", - mapper: AutonomousDatabaseBackupMapper, -}; - -export const properties4: OperationParameter = { - parameterPath: "properties", - mapper: AutonomousDatabaseBackupUpdateMapper, -}; - -export const dbserverocid: OperationURLParameter = { - parameterPath: "dbserverocid", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - MaxLength: 255, - MinLength: 1, - }, - serializedName: "dbserverocid", - required: true, - type: { - name: "String", - }, - }, -}; - -export const dbnodeocid: OperationURLParameter = { - parameterPath: "dbnodeocid", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - MaxLength: 255, - MinLength: 1, - }, - serializedName: "dbnodeocid", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body5: OperationParameter = { - parameterPath: "body", - mapper: DbNodeActionMapper, -}; - -export const virtualnetworkaddressname: OperationURLParameter = { - parameterPath: "virtualnetworkaddressname", - mapper: { - constraints: { - Pattern: new RegExp(".*"), - MaxLength: 63, - MinLength: 1, - }, - serializedName: "virtualnetworkaddressname", - required: true, - type: { - name: "String", - }, - }, -}; - -export const resource5: OperationParameter = { - parameterPath: "resource", - mapper: VirtualNetworkAddressMapper, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseBackups.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseBackups.ts deleted file mode 100644 index 3949b9321d2c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseBackups.ts +++ /dev/null @@ -1,664 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AutonomousDatabaseBackups } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - AutonomousDatabaseBackup, - AutonomousDatabaseBackupsListByAutonomousDatabaseNextOptionalParams, - AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams, - AutonomousDatabaseBackupsListByAutonomousDatabaseResponse, - AutonomousDatabaseBackupsGetOptionalParams, - AutonomousDatabaseBackupsGetResponse, - AutonomousDatabaseBackupsCreateOrUpdateOptionalParams, - AutonomousDatabaseBackupsCreateOrUpdateResponse, - AutonomousDatabaseBackupUpdate, - AutonomousDatabaseBackupsUpdateOptionalParams, - AutonomousDatabaseBackupsUpdateResponse, - AutonomousDatabaseBackupsDeleteOptionalParams, - AutonomousDatabaseBackupsDeleteResponse, - AutonomousDatabaseBackupsListByAutonomousDatabaseNextResponse, -} from "../models"; - -/// -/** Class containing AutonomousDatabaseBackups operations. */ -export class AutonomousDatabaseBackupsImpl - implements AutonomousDatabaseBackups -{ - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class AutonomousDatabaseBackups class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List AutonomousDatabaseBackup resources by AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - public listByAutonomousDatabase( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByAutonomousDatabasePagingAll( - resourceGroupName, - autonomousdatabasename, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByAutonomousDatabasePagingPage( - resourceGroupName, - autonomousdatabasename, - options, - settings, - ); - }, - }; - } - - private async *listByAutonomousDatabasePagingPage( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: AutonomousDatabaseBackupsListByAutonomousDatabaseResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByAutonomousDatabase( - resourceGroupName, - autonomousdatabasename, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByAutonomousDatabaseNext( - resourceGroupName, - autonomousdatabasename, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByAutonomousDatabasePagingAll( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByAutonomousDatabasePagingPage( - resourceGroupName, - autonomousdatabasename, - options, - )) { - yield* page; - } - } - - /** - * List AutonomousDatabaseBackup resources by AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - private _listByAutonomousDatabase( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, autonomousdatabasename, options }, - listByAutonomousDatabaseOperationSpec, - ); - } - - /** - * Get a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param options The options parameters. - */ - get( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - options?: AutonomousDatabaseBackupsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, autonomousdatabasename, adbbackupid, options }, - getOperationSpec, - ); - } - - /** - * Create a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - resource: AutonomousDatabaseBackup, - options?: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabaseBackupsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - autonomousdatabasename, - adbbackupid, - resource, - options, - }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabaseBackupsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - resource: AutonomousDatabaseBackup, - options?: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - resource, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - properties: AutonomousDatabaseBackupUpdate, - options?: AutonomousDatabaseBackupsUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabaseBackupsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - autonomousdatabasename, - adbbackupid, - properties, - options, - }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabaseBackupsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Update a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - properties: AutonomousDatabaseBackupUpdate, - options?: AutonomousDatabaseBackupsUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - properties, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Delete a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - options?: AutonomousDatabaseBackupsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabaseBackupsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, autonomousdatabasename, adbbackupid, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabaseBackupsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - options?: AutonomousDatabaseBackupsDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - autonomousdatabasename, - adbbackupid, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListByAutonomousDatabaseNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param nextLink The nextLink from the previous successful call to the ListByAutonomousDatabase - * method. - * @param options The options parameters. - */ - private _listByAutonomousDatabaseNext( - resourceGroupName: string, - autonomousdatabasename: string, - nextLink: string, - options?: AutonomousDatabaseBackupsListByAutonomousDatabaseNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, autonomousdatabasename, nextLink, options }, - listByAutonomousDatabaseNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByAutonomousDatabaseOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseBackupListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - Parameters.adbbackupid, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - 201: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - 202: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - 204: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - Parameters.adbbackupid, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - 201: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - 202: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - 204: { - bodyMapper: Mappers.AutonomousDatabaseBackup, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.properties4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - Parameters.adbbackupid, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/autonomousDatabaseBackups/{adbbackupid}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.AutonomousDatabaseBackupsDeleteHeaders, - }, - 201: { - headersMapper: Mappers.AutonomousDatabaseBackupsDeleteHeaders, - }, - 202: { - headersMapper: Mappers.AutonomousDatabaseBackupsDeleteHeaders, - }, - 204: { - headersMapper: Mappers.AutonomousDatabaseBackupsDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - Parameters.adbbackupid, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByAutonomousDatabaseNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseBackupListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseCharacterSets.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseCharacterSets.ts deleted file mode 100644 index e6dea335d812..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseCharacterSets.ts +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AutonomousDatabaseCharacterSets } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - AutonomousDatabaseCharacterSet, - AutonomousDatabaseCharacterSetsListByLocationNextOptionalParams, - AutonomousDatabaseCharacterSetsListByLocationOptionalParams, - AutonomousDatabaseCharacterSetsListByLocationResponse, - AutonomousDatabaseCharacterSetsGetOptionalParams, - AutonomousDatabaseCharacterSetsGetResponse, - AutonomousDatabaseCharacterSetsListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing AutonomousDatabaseCharacterSets operations. */ -export class AutonomousDatabaseCharacterSetsImpl - implements AutonomousDatabaseCharacterSets -{ - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class AutonomousDatabaseCharacterSets class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List AutonomousDatabaseCharacterSet resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listByLocation( - location: string, - options?: AutonomousDatabaseCharacterSetsListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(location, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - location: string, - options?: AutonomousDatabaseCharacterSetsListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: AutonomousDatabaseCharacterSetsListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - location: string, - options?: AutonomousDatabaseCharacterSetsListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage(location, options)) { - yield* page; - } - } - - /** - * List AutonomousDatabaseCharacterSet resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listByLocation( - location: string, - options?: AutonomousDatabaseCharacterSetsListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listByLocationOperationSpec, - ); - } - - /** - * Get a AutonomousDatabaseCharacterSet - * @param location The name of the Azure region. - * @param adbscharsetname AutonomousDatabaseCharacterSet name - * @param options The options parameters. - */ - get( - location: string, - adbscharsetname: string, - options?: AutonomousDatabaseCharacterSetsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, adbscharsetname, options }, - getOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - location: string, - nextLink: string, - options?: AutonomousDatabaseCharacterSetsListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseCharacterSets", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseCharacterSetListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseCharacterSets/{adbscharsetname}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseCharacterSet, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.adbscharsetname, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseCharacterSetListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseNationalCharacterSets.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseNationalCharacterSets.ts deleted file mode 100644 index 108ead43b148..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseNationalCharacterSets.ts +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AutonomousDatabaseNationalCharacterSets } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - AutonomousDatabaseNationalCharacterSet, - AutonomousDatabaseNationalCharacterSetsListByLocationNextOptionalParams, - AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams, - AutonomousDatabaseNationalCharacterSetsListByLocationResponse, - AutonomousDatabaseNationalCharacterSetsGetOptionalParams, - AutonomousDatabaseNationalCharacterSetsGetResponse, - AutonomousDatabaseNationalCharacterSetsListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing AutonomousDatabaseNationalCharacterSets operations. */ -export class AutonomousDatabaseNationalCharacterSetsImpl - implements AutonomousDatabaseNationalCharacterSets -{ - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class AutonomousDatabaseNationalCharacterSets class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List AutonomousDatabaseNationalCharacterSet resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listByLocation( - location: string, - options?: AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(location, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - location: string, - options?: AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: AutonomousDatabaseNationalCharacterSetsListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - location: string, - options?: AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage(location, options)) { - yield* page; - } - } - - /** - * List AutonomousDatabaseNationalCharacterSet resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listByLocation( - location: string, - options?: AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listByLocationOperationSpec, - ); - } - - /** - * Get a AutonomousDatabaseNationalCharacterSet - * @param location The name of the Azure region. - * @param adbsncharsetname AutonomousDatabaseNationalCharacterSets name - * @param options The options parameters. - */ - get( - location: string, - adbsncharsetname: string, - options?: AutonomousDatabaseNationalCharacterSetsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, adbsncharsetname, options }, - getOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - location: string, - nextLink: string, - options?: AutonomousDatabaseNationalCharacterSetsListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseNationalCharacterSets", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseNationalCharacterSetListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDatabaseNationalCharacterSets/{adbsncharsetname}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseNationalCharacterSet, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.adbsncharsetname, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseNationalCharacterSetListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseVersions.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseVersions.ts deleted file mode 100644 index 9e5ffab97744..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabaseVersions.ts +++ /dev/null @@ -1,215 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AutonomousDatabaseVersions } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - AutonomousDbVersion, - AutonomousDatabaseVersionsListByLocationNextOptionalParams, - AutonomousDatabaseVersionsListByLocationOptionalParams, - AutonomousDatabaseVersionsListByLocationResponse, - AutonomousDatabaseVersionsGetOptionalParams, - AutonomousDatabaseVersionsGetResponse, - AutonomousDatabaseVersionsListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing AutonomousDatabaseVersions operations. */ -export class AutonomousDatabaseVersionsImpl - implements AutonomousDatabaseVersions -{ - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class AutonomousDatabaseVersions class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List AutonomousDbVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listByLocation( - location: string, - options?: AutonomousDatabaseVersionsListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(location, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - location: string, - options?: AutonomousDatabaseVersionsListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: AutonomousDatabaseVersionsListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - location: string, - options?: AutonomousDatabaseVersionsListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage(location, options)) { - yield* page; - } - } - - /** - * List AutonomousDbVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listByLocation( - location: string, - options?: AutonomousDatabaseVersionsListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listByLocationOperationSpec, - ); - } - - /** - * Get a AutonomousDbVersion - * @param location The name of the Azure region. - * @param autonomousdbversionsname AutonomousDbVersion name - * @param options The options parameters. - */ - get( - location: string, - autonomousdbversionsname: string, - options?: AutonomousDatabaseVersionsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, autonomousdbversionsname, options }, - getOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - location: string, - nextLink: string, - options?: AutonomousDatabaseVersionsListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDbVersions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDbVersionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/autonomousDbVersions/{autonomousdbversionsname}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDbVersion, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.autonomousdbversionsname, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDbVersionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabases.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabases.ts deleted file mode 100644 index 585e4c7db877..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/autonomousDatabases.ts +++ /dev/null @@ -1,1284 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AutonomousDatabases } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - AutonomousDatabase, - AutonomousDatabasesListBySubscriptionNextOptionalParams, - AutonomousDatabasesListBySubscriptionOptionalParams, - AutonomousDatabasesListBySubscriptionResponse, - AutonomousDatabasesListByResourceGroupNextOptionalParams, - AutonomousDatabasesListByResourceGroupOptionalParams, - AutonomousDatabasesListByResourceGroupResponse, - AutonomousDatabasesGetOptionalParams, - AutonomousDatabasesGetResponse, - AutonomousDatabasesCreateOrUpdateOptionalParams, - AutonomousDatabasesCreateOrUpdateResponse, - AutonomousDatabaseUpdate, - AutonomousDatabasesUpdateOptionalParams, - AutonomousDatabasesUpdateResponse, - AutonomousDatabasesDeleteOptionalParams, - AutonomousDatabasesDeleteResponse, - PeerDbDetails, - AutonomousDatabasesFailoverOptionalParams, - AutonomousDatabasesFailoverResponse, - GenerateAutonomousDatabaseWalletDetails, - AutonomousDatabasesGenerateWalletOptionalParams, - AutonomousDatabasesGenerateWalletResponse, - RestoreAutonomousDatabaseDetails, - AutonomousDatabasesRestoreOptionalParams, - AutonomousDatabasesRestoreResponse, - AutonomousDatabasesShrinkOptionalParams, - AutonomousDatabasesShrinkResponse, - AutonomousDatabasesSwitchoverOptionalParams, - AutonomousDatabasesSwitchoverResponse, - AutonomousDatabasesListBySubscriptionNextResponse, - AutonomousDatabasesListByResourceGroupNextResponse, -} from "../models"; - -/// -/** Class containing AutonomousDatabases operations. */ -export class AutonomousDatabasesImpl implements AutonomousDatabases { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class AutonomousDatabases class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List AutonomousDatabase resources by subscription ID - * @param options The options parameters. - */ - public listBySubscription( - options?: AutonomousDatabasesListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - }, - }; - } - - private async *listBySubscriptionPagingPage( - options?: AutonomousDatabasesListBySubscriptionOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: AutonomousDatabasesListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: AutonomousDatabasesListBySubscriptionOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * List AutonomousDatabase resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: AutonomousDatabasesListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); - }, - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: AutonomousDatabasesListByResourceGroupOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: AutonomousDatabasesListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: AutonomousDatabasesListByResourceGroupOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { - yield* page; - } - } - - /** - * List AutonomousDatabase resources by subscription ID - * @param options The options parameters. - */ - private _listBySubscription( - options?: AutonomousDatabasesListBySubscriptionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); - } - - /** - * List AutonomousDatabase resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: AutonomousDatabasesListByResourceGroupOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec, - ); - } - - /** - * Get a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, autonomousdatabasename, options }, - getOperationSpec, - ); - } - - /** - * Create a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - autonomousdatabasename: string, - resource: AutonomousDatabase, - options?: AutonomousDatabasesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, autonomousdatabasename, resource, options }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabasesCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - resource: AutonomousDatabase, - options?: AutonomousDatabasesCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - autonomousdatabasename, - resource, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - autonomousdatabasename: string, - properties: AutonomousDatabaseUpdate, - options?: AutonomousDatabasesUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, autonomousdatabasename, properties, options }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabasesUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Update a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - properties: AutonomousDatabaseUpdate, - options?: AutonomousDatabasesUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - autonomousdatabasename, - properties, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Delete a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, autonomousdatabasename, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabasesDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - autonomousdatabasename, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Perform failover action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginFailover( - resourceGroupName: string, - autonomousdatabasename: string, - body: PeerDbDetails, - options?: AutonomousDatabasesFailoverOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesFailoverResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, autonomousdatabasename, body, options }, - spec: failoverOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabasesFailoverResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Perform failover action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginFailoverAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - body: PeerDbDetails, - options?: AutonomousDatabasesFailoverOptionalParams, - ): Promise { - const poller = await this.beginFailover( - resourceGroupName, - autonomousdatabasename, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Generate wallet action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - generateWallet( - resourceGroupName: string, - autonomousdatabasename: string, - body: GenerateAutonomousDatabaseWalletDetails, - options?: AutonomousDatabasesGenerateWalletOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, autonomousdatabasename, body, options }, - generateWalletOperationSpec, - ); - } - - /** - * Restores an Autonomous Database based on the provided request parameters. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginRestore( - resourceGroupName: string, - autonomousdatabasename: string, - body: RestoreAutonomousDatabaseDetails, - options?: AutonomousDatabasesRestoreOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesRestoreResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, autonomousdatabasename, body, options }, - spec: restoreOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabasesRestoreResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Restores an Autonomous Database based on the provided request parameters. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginRestoreAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - body: RestoreAutonomousDatabaseDetails, - options?: AutonomousDatabasesRestoreOptionalParams, - ): Promise { - const poller = await this.beginRestore( - resourceGroupName, - autonomousdatabasename, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * This operation shrinks the current allocated storage down to the current actual used data storage. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - async beginShrink( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesShrinkOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesShrinkResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, autonomousdatabasename, options }, - spec: shrinkOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabasesShrinkResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * This operation shrinks the current allocated storage down to the current actual used data storage. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - async beginShrinkAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesShrinkOptionalParams, - ): Promise { - const poller = await this.beginShrink( - resourceGroupName, - autonomousdatabasename, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Perform switchover action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginSwitchover( - resourceGroupName: string, - autonomousdatabasename: string, - body: PeerDbDetails, - options?: AutonomousDatabasesSwitchoverOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesSwitchoverResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, autonomousdatabasename, body, options }, - spec: switchoverOperationSpec, - }); - const poller = await createHttpPoller< - AutonomousDatabasesSwitchoverResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Perform switchover action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginSwitchoverAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - body: PeerDbDetails, - options?: AutonomousDatabasesSwitchoverOptionalParams, - ): Promise { - const poller = await this.beginSwitchover( - resourceGroupName, - autonomousdatabasename, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: AutonomousDatabasesListBySubscriptionNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec, - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: AutonomousDatabasesListByResourceGroupNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/autonomousDatabases", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabase, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 201: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 202: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 204: { - bodyMapper: Mappers.AutonomousDatabase, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 201: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 202: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 204: { - bodyMapper: Mappers.AutonomousDatabase, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.properties, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.AutonomousDatabasesDeleteHeaders, - }, - 201: { - headersMapper: Mappers.AutonomousDatabasesDeleteHeaders, - }, - 202: { - headersMapper: Mappers.AutonomousDatabasesDeleteHeaders, - }, - 204: { - headersMapper: Mappers.AutonomousDatabasesDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const failoverOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/failover", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 201: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 202: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 204: { - bodyMapper: Mappers.AutonomousDatabase, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const generateWalletOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/generateWallet", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseWalletFile, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const restoreOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/restore", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 201: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 202: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 204: { - bodyMapper: Mappers.AutonomousDatabase, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const shrinkOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/shrink", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 201: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 202: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 204: { - bodyMapper: Mappers.AutonomousDatabase, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const switchoverOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/switchover", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 201: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 202: { - bodyMapper: Mappers.AutonomousDatabase, - }, - 204: { - bodyMapper: Mappers.AutonomousDatabase, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.autonomousdatabasename, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AutonomousDatabaseListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/cloudExadataInfrastructures.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/cloudExadataInfrastructures.ts deleted file mode 100644 index 63cdd717bb79..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/cloudExadataInfrastructures.ts +++ /dev/null @@ -1,862 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CloudExadataInfrastructures } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - CloudExadataInfrastructure, - CloudExadataInfrastructuresListBySubscriptionNextOptionalParams, - CloudExadataInfrastructuresListBySubscriptionOptionalParams, - CloudExadataInfrastructuresListBySubscriptionResponse, - CloudExadataInfrastructuresListByResourceGroupNextOptionalParams, - CloudExadataInfrastructuresListByResourceGroupOptionalParams, - CloudExadataInfrastructuresListByResourceGroupResponse, - CloudExadataInfrastructuresGetOptionalParams, - CloudExadataInfrastructuresGetResponse, - CloudExadataInfrastructuresCreateOrUpdateOptionalParams, - CloudExadataInfrastructuresCreateOrUpdateResponse, - CloudExadataInfrastructureUpdate, - CloudExadataInfrastructuresUpdateOptionalParams, - CloudExadataInfrastructuresUpdateResponse, - CloudExadataInfrastructuresDeleteOptionalParams, - CloudExadataInfrastructuresDeleteResponse, - CloudExadataInfrastructuresAddStorageCapacityOptionalParams, - CloudExadataInfrastructuresAddStorageCapacityResponse, - CloudExadataInfrastructuresListBySubscriptionNextResponse, - CloudExadataInfrastructuresListByResourceGroupNextResponse, -} from "../models"; - -/// -/** Class containing CloudExadataInfrastructures operations. */ -export class CloudExadataInfrastructuresImpl - implements CloudExadataInfrastructures -{ - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class CloudExadataInfrastructures class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List CloudExadataInfrastructure resources by subscription ID - * @param options The options parameters. - */ - public listBySubscription( - options?: CloudExadataInfrastructuresListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - }, - }; - } - - private async *listBySubscriptionPagingPage( - options?: CloudExadataInfrastructuresListBySubscriptionOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: CloudExadataInfrastructuresListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: CloudExadataInfrastructuresListBySubscriptionOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * List CloudExadataInfrastructure resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: CloudExadataInfrastructuresListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); - }, - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: CloudExadataInfrastructuresListByResourceGroupOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: CloudExadataInfrastructuresListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: CloudExadataInfrastructuresListByResourceGroupOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { - yield* page; - } - } - - /** - * List CloudExadataInfrastructure resources by subscription ID - * @param options The options parameters. - */ - private _listBySubscription( - options?: CloudExadataInfrastructuresListBySubscriptionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); - } - - /** - * List CloudExadataInfrastructure resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: CloudExadataInfrastructuresListByResourceGroupOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec, - ); - } - - /** - * Get a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudexadatainfrastructurename, options }, - getOperationSpec, - ); - } - - /** - * Create a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - resource: CloudExadataInfrastructure, - options?: CloudExadataInfrastructuresCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudExadataInfrastructuresCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - cloudexadatainfrastructurename, - resource, - options, - }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - CloudExadataInfrastructuresCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - resource: CloudExadataInfrastructure, - options?: CloudExadataInfrastructuresCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - cloudexadatainfrastructurename, - resource, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - properties: CloudExadataInfrastructureUpdate, - options?: CloudExadataInfrastructuresUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudExadataInfrastructuresUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - cloudexadatainfrastructurename, - properties, - options, - }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - CloudExadataInfrastructuresUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Update a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - properties: CloudExadataInfrastructureUpdate, - options?: CloudExadataInfrastructuresUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - cloudexadatainfrastructurename, - properties, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Delete a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudExadataInfrastructuresDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, cloudexadatainfrastructurename, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - CloudExadataInfrastructuresDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - cloudexadatainfrastructurename, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Perform add storage capacity on exadata infra - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - async beginAddStorageCapacity( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresAddStorageCapacityOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudExadataInfrastructuresAddStorageCapacityResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, cloudexadatainfrastructurename, options }, - spec: addStorageCapacityOperationSpec, - }); - const poller = await createHttpPoller< - CloudExadataInfrastructuresAddStorageCapacityResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Perform add storage capacity on exadata infra - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - async beginAddStorageCapacityAndWait( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresAddStorageCapacityOptionalParams, - ): Promise { - const poller = await this.beginAddStorageCapacity( - resourceGroupName, - cloudexadatainfrastructurename, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: CloudExadataInfrastructuresListBySubscriptionNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec, - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: CloudExadataInfrastructuresListByResourceGroupNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/cloudExadataInfrastructures", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudExadataInfrastructureListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudExadataInfrastructureListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudexadatainfrastructurename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 201: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 202: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 204: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudexadatainfrastructurename, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 201: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 202: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 204: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.properties1, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudexadatainfrastructurename, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.CloudExadataInfrastructuresDeleteHeaders, - }, - 201: { - headersMapper: Mappers.CloudExadataInfrastructuresDeleteHeaders, - }, - 202: { - headersMapper: Mappers.CloudExadataInfrastructuresDeleteHeaders, - }, - 204: { - headersMapper: Mappers.CloudExadataInfrastructuresDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudexadatainfrastructurename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const addStorageCapacityOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}/addStorageCapacity", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 201: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 202: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - 204: { - bodyMapper: Mappers.CloudExadataInfrastructure, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudexadatainfrastructurename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudExadataInfrastructureListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudExadataInfrastructureListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/cloudVmClusters.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/cloudVmClusters.ts deleted file mode 100644 index 816302e5d341..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/cloudVmClusters.ts +++ /dev/null @@ -1,1042 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { CloudVmClusters } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - CloudVmCluster, - CloudVmClustersListBySubscriptionNextOptionalParams, - CloudVmClustersListBySubscriptionOptionalParams, - CloudVmClustersListBySubscriptionResponse, - CloudVmClustersListByResourceGroupNextOptionalParams, - CloudVmClustersListByResourceGroupOptionalParams, - CloudVmClustersListByResourceGroupResponse, - CloudVmClustersGetOptionalParams, - CloudVmClustersGetResponse, - CloudVmClustersCreateOrUpdateOptionalParams, - CloudVmClustersCreateOrUpdateResponse, - CloudVmClusterUpdate, - CloudVmClustersUpdateOptionalParams, - CloudVmClustersUpdateResponse, - CloudVmClustersDeleteOptionalParams, - CloudVmClustersDeleteResponse, - AddRemoveDbNode, - CloudVmClustersAddVmsOptionalParams, - CloudVmClustersAddVmsResponse, - PrivateIpAddressesFilter, - CloudVmClustersListPrivateIpAddressesOptionalParams, - CloudVmClustersListPrivateIpAddressesResponse, - CloudVmClustersRemoveVmsOptionalParams, - CloudVmClustersRemoveVmsResponse, - CloudVmClustersListBySubscriptionNextResponse, - CloudVmClustersListByResourceGroupNextResponse, -} from "../models"; - -/// -/** Class containing CloudVmClusters operations. */ -export class CloudVmClustersImpl implements CloudVmClusters { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class CloudVmClusters class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List CloudVmCluster resources by subscription ID - * @param options The options parameters. - */ - public listBySubscription( - options?: CloudVmClustersListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - }, - }; - } - - private async *listBySubscriptionPagingPage( - options?: CloudVmClustersListBySubscriptionOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: CloudVmClustersListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: CloudVmClustersListBySubscriptionOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * List CloudVmCluster resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - public listByResourceGroup( - resourceGroupName: string, - options?: CloudVmClustersListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); - }, - }; - } - - private async *listByResourceGroupPagingPage( - resourceGroupName: string, - options?: CloudVmClustersListByResourceGroupOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: CloudVmClustersListByResourceGroupResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByResourceGroup(resourceGroupName, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByResourceGroupPagingAll( - resourceGroupName: string, - options?: CloudVmClustersListByResourceGroupOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { - yield* page; - } - } - - /** - * List CloudVmCluster resources by subscription ID - * @param options The options parameters. - */ - private _listBySubscription( - options?: CloudVmClustersListBySubscriptionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); - } - - /** - * List CloudVmCluster resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - private _listByResourceGroup( - resourceGroupName: string, - options?: CloudVmClustersListByResourceGroupOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, options }, - listByResourceGroupOperationSpec, - ); - } - - /** - * Get a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudvmclustername: string, - options?: CloudVmClustersGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudvmclustername, options }, - getOperationSpec, - ); - } - - /** - * Create a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - cloudvmclustername: string, - resource: CloudVmCluster, - options?: CloudVmClustersCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, cloudvmclustername, resource, options }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - CloudVmClustersCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - cloudvmclustername: string, - resource: CloudVmCluster, - options?: CloudVmClustersCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - cloudvmclustername, - resource, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Update a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate( - resourceGroupName: string, - cloudvmclustername: string, - properties: CloudVmClusterUpdate, - options?: CloudVmClustersUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, cloudvmclustername, properties, options }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - CloudVmClustersUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Update a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait( - resourceGroupName: string, - cloudvmclustername: string, - properties: CloudVmClusterUpdate, - options?: CloudVmClustersUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate( - resourceGroupName, - cloudvmclustername, - properties, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Delete a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - cloudvmclustername: string, - options?: CloudVmClustersDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, cloudvmclustername, options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - CloudVmClustersDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - cloudvmclustername: string, - options?: CloudVmClustersDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - cloudvmclustername, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Add VMs to the VM Cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - async beginAddVms( - resourceGroupName: string, - cloudvmclustername: string, - body: AddRemoveDbNode, - options?: CloudVmClustersAddVmsOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersAddVmsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, cloudvmclustername, body, options }, - spec: addVmsOperationSpec, - }); - const poller = await createHttpPoller< - CloudVmClustersAddVmsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Add VMs to the VM Cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - async beginAddVmsAndWait( - resourceGroupName: string, - cloudvmclustername: string, - body: AddRemoveDbNode, - options?: CloudVmClustersAddVmsOptionalParams, - ): Promise { - const poller = await this.beginAddVms( - resourceGroupName, - cloudvmclustername, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * List Private IP Addresses by the provided filter - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - listPrivateIpAddresses( - resourceGroupName: string, - cloudvmclustername: string, - body: PrivateIpAddressesFilter, - options?: CloudVmClustersListPrivateIpAddressesOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudvmclustername, body, options }, - listPrivateIpAddressesOperationSpec, - ); - } - - /** - * Remove VMs from the VM Cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - async beginRemoveVms( - resourceGroupName: string, - cloudvmclustername: string, - body: AddRemoveDbNode, - options?: CloudVmClustersRemoveVmsOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersRemoveVmsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resourceGroupName, cloudvmclustername, body, options }, - spec: removeVmsOperationSpec, - }); - const poller = await createHttpPoller< - CloudVmClustersRemoveVmsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Remove VMs from the VM Cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - async beginRemoveVmsAndWait( - resourceGroupName: string, - cloudvmclustername: string, - body: AddRemoveDbNode, - options?: CloudVmClustersRemoveVmsOptionalParams, - ): Promise { - const poller = await this.beginRemoveVms( - resourceGroupName, - cloudvmclustername, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: CloudVmClustersListBySubscriptionNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec, - ); - } - - /** - * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. - * @param options The options parameters. - */ - private _listByResourceGroupNext( - resourceGroupName: string, - nextLink: string, - options?: CloudVmClustersListByResourceGroupNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/cloudVmClusters", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudVmClusterListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudVmClusterListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudVmCluster, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.CloudVmCluster, - }, - 201: { - bodyMapper: Mappers.CloudVmCluster, - }, - 202: { - bodyMapper: Mappers.CloudVmCluster, - }, - 204: { - bodyMapper: Mappers.CloudVmCluster, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource2, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.CloudVmCluster, - }, - 201: { - bodyMapper: Mappers.CloudVmCluster, - }, - 202: { - bodyMapper: Mappers.CloudVmCluster, - }, - 204: { - bodyMapper: Mappers.CloudVmCluster, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.properties2, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.CloudVmClustersDeleteHeaders, - }, - 201: { - headersMapper: Mappers.CloudVmClustersDeleteHeaders, - }, - 202: { - headersMapper: Mappers.CloudVmClustersDeleteHeaders, - }, - 204: { - headersMapper: Mappers.CloudVmClustersDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const addVmsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/addVms", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CloudVmCluster, - }, - 201: { - bodyMapper: Mappers.CloudVmCluster, - }, - 202: { - bodyMapper: Mappers.CloudVmCluster, - }, - 204: { - bodyMapper: Mappers.CloudVmCluster, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body3, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const listPrivateIpAddressesOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/listPrivateIpAddresses", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: { - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateIpAddressProperties", - }, - }, - }, - }, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body4, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const removeVmsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/removeVms", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CloudVmCluster, - }, - 201: { - bodyMapper: Mappers.CloudVmCluster, - }, - 202: { - bodyMapper: Mappers.CloudVmCluster, - }, - 204: { - bodyMapper: Mappers.CloudVmCluster, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body3, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudVmClusterListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CloudVmClusterListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/dbNodes.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/dbNodes.ts deleted file mode 100644 index 39ec0b90f56e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/dbNodes.ts +++ /dev/null @@ -1,392 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DbNodes } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - DbNode, - DbNodesListByCloudVmClusterNextOptionalParams, - DbNodesListByCloudVmClusterOptionalParams, - DbNodesListByCloudVmClusterResponse, - DbNodesGetOptionalParams, - DbNodesGetResponse, - DbNodeAction, - DbNodesActionOptionalParams, - DbNodesActionResponse, - DbNodesListByCloudVmClusterNextResponse, -} from "../models"; - -/// -/** Class containing DbNodes operations. */ -export class DbNodesImpl implements DbNodes { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class DbNodes class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List DbNode resources by CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - public listByCloudVmCluster( - resourceGroupName: string, - cloudvmclustername: string, - options?: DbNodesListByCloudVmClusterOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByCloudVmClusterPagingAll( - resourceGroupName, - cloudvmclustername, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByCloudVmClusterPagingPage( - resourceGroupName, - cloudvmclustername, - options, - settings, - ); - }, - }; - } - - private async *listByCloudVmClusterPagingPage( - resourceGroupName: string, - cloudvmclustername: string, - options?: DbNodesListByCloudVmClusterOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: DbNodesListByCloudVmClusterResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByCloudVmCluster( - resourceGroupName, - cloudvmclustername, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByCloudVmClusterNext( - resourceGroupName, - cloudvmclustername, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByCloudVmClusterPagingAll( - resourceGroupName: string, - cloudvmclustername: string, - options?: DbNodesListByCloudVmClusterOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByCloudVmClusterPagingPage( - resourceGroupName, - cloudvmclustername, - options, - )) { - yield* page; - } - } - - /** - * List DbNode resources by CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - private _listByCloudVmCluster( - resourceGroupName: string, - cloudvmclustername: string, - options?: DbNodesListByCloudVmClusterOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudvmclustername, options }, - listByCloudVmClusterOperationSpec, - ); - } - - /** - * Get a DbNode - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param dbnodeocid DbNode OCID. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudvmclustername: string, - dbnodeocid: string, - options?: DbNodesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudvmclustername, dbnodeocid, options }, - getOperationSpec, - ); - } - - /** - * VM actions on DbNode of VM Cluster by the provided filter - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param dbnodeocid DbNode OCID. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginAction( - resourceGroupName: string, - cloudvmclustername: string, - dbnodeocid: string, - body: DbNodeAction, - options?: DbNodesActionOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - DbNodesActionResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - cloudvmclustername, - dbnodeocid, - body, - options, - }, - spec: actionOperationSpec, - }); - const poller = await createHttpPoller< - DbNodesActionResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * VM actions on DbNode of VM Cluster by the provided filter - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param dbnodeocid DbNode OCID. - * @param body The content of the action request - * @param options The options parameters. - */ - async beginActionAndWait( - resourceGroupName: string, - cloudvmclustername: string, - dbnodeocid: string, - body: DbNodeAction, - options?: DbNodesActionOptionalParams, - ): Promise { - const poller = await this.beginAction( - resourceGroupName, - cloudvmclustername, - dbnodeocid, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListByCloudVmClusterNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param nextLink The nextLink from the previous successful call to the ListByCloudVmCluster method. - * @param options The options parameters. - */ - private _listByCloudVmClusterNext( - resourceGroupName: string, - cloudvmclustername: string, - nextLink: string, - options?: DbNodesListByCloudVmClusterNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudvmclustername, nextLink, options }, - listByCloudVmClusterNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByCloudVmClusterOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/dbNodes", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbNodeListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/dbNodes/{dbnodeocid}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbNode, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - Parameters.dbnodeocid, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const actionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/dbNodes/{dbnodeocid}/action", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.DbNode, - }, - 201: { - bodyMapper: Mappers.DbNode, - }, - 202: { - bodyMapper: Mappers.DbNode, - }, - 204: { - bodyMapper: Mappers.DbNode, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.body5, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - Parameters.dbnodeocid, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const listByCloudVmClusterNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbNodeListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/dbServers.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/dbServers.ts deleted file mode 100644 index 06d88ad25be3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/dbServers.ts +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DbServers } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - DbServer, - DbServersListByCloudExadataInfrastructureNextOptionalParams, - DbServersListByCloudExadataInfrastructureOptionalParams, - DbServersListByCloudExadataInfrastructureResponse, - DbServersGetOptionalParams, - DbServersGetResponse, - DbServersListByCloudExadataInfrastructureNextResponse, -} from "../models"; - -/// -/** Class containing DbServers operations. */ -export class DbServersImpl implements DbServers { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class DbServers class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List DbServer resources by CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - public listByCloudExadataInfrastructure( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: DbServersListByCloudExadataInfrastructureOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByCloudExadataInfrastructurePagingAll( - resourceGroupName, - cloudexadatainfrastructurename, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByCloudExadataInfrastructurePagingPage( - resourceGroupName, - cloudexadatainfrastructurename, - options, - settings, - ); - }, - }; - } - - private async *listByCloudExadataInfrastructurePagingPage( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: DbServersListByCloudExadataInfrastructureOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: DbServersListByCloudExadataInfrastructureResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByCloudExadataInfrastructure( - resourceGroupName, - cloudexadatainfrastructurename, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByCloudExadataInfrastructureNext( - resourceGroupName, - cloudexadatainfrastructurename, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByCloudExadataInfrastructurePagingAll( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: DbServersListByCloudExadataInfrastructureOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByCloudExadataInfrastructurePagingPage( - resourceGroupName, - cloudexadatainfrastructurename, - options, - )) { - yield* page; - } - } - - /** - * List DbServer resources by CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - private _listByCloudExadataInfrastructure( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: DbServersListByCloudExadataInfrastructureOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudexadatainfrastructurename, options }, - listByCloudExadataInfrastructureOperationSpec, - ); - } - - /** - * Get a DbServer - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param dbserverocid DbServer OCID. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - dbserverocid: string, - options?: DbServersGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - cloudexadatainfrastructurename, - dbserverocid, - options, - }, - getOperationSpec, - ); - } - - /** - * ListByCloudExadataInfrastructureNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param nextLink The nextLink from the previous successful call to the - * ListByCloudExadataInfrastructure method. - * @param options The options parameters. - */ - private _listByCloudExadataInfrastructureNext( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - nextLink: string, - options?: DbServersListByCloudExadataInfrastructureNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudexadatainfrastructurename, nextLink, options }, - listByCloudExadataInfrastructureNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByCloudExadataInfrastructureOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}/dbServers", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbServerListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudexadatainfrastructurename, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudExadataInfrastructures/{cloudexadatainfrastructurename}/dbServers/{dbserverocid}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbServer, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudexadatainfrastructurename, - Parameters.dbserverocid, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByCloudExadataInfrastructureNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbServerListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudexadatainfrastructurename, - ], - headerParameters: [Parameters.accept], - serializer, - }; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/dbSystemShapes.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/dbSystemShapes.ts deleted file mode 100644 index 7313a1771534..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/dbSystemShapes.ts +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DbSystemShapes } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - DbSystemShape, - DbSystemShapesListByLocationNextOptionalParams, - DbSystemShapesListByLocationOptionalParams, - DbSystemShapesListByLocationResponse, - DbSystemShapesGetOptionalParams, - DbSystemShapesGetResponse, - DbSystemShapesListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing DbSystemShapes operations. */ -export class DbSystemShapesImpl implements DbSystemShapes { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class DbSystemShapes class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List DbSystemShape resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listByLocation( - location: string, - options?: DbSystemShapesListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(location, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - location: string, - options?: DbSystemShapesListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: DbSystemShapesListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - location: string, - options?: DbSystemShapesListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage(location, options)) { - yield* page; - } - } - - /** - * List DbSystemShape resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listByLocation( - location: string, - options?: DbSystemShapesListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listByLocationOperationSpec, - ); - } - - /** - * Get a DbSystemShape - * @param location The name of the Azure region. - * @param dbsystemshapename DbSystemShape name - * @param options The options parameters. - */ - get( - location: string, - dbsystemshapename: string, - options?: DbSystemShapesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, dbsystemshapename, options }, - getOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - location: string, - nextLink: string, - options?: DbSystemShapesListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dbSystemShapes", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbSystemShapeListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dbSystemShapes/{dbsystemshapename}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbSystemShape, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.dbsystemshapename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DbSystemShapeListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/dnsPrivateViews.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/dnsPrivateViews.ts deleted file mode 100644 index 643fb5f87de9..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/dnsPrivateViews.ts +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DnsPrivateViews } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - DnsPrivateView, - DnsPrivateViewsListByLocationNextOptionalParams, - DnsPrivateViewsListByLocationOptionalParams, - DnsPrivateViewsListByLocationResponse, - DnsPrivateViewsGetOptionalParams, - DnsPrivateViewsGetResponse, - DnsPrivateViewsListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing DnsPrivateViews operations. */ -export class DnsPrivateViewsImpl implements DnsPrivateViews { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class DnsPrivateViews class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List DnsPrivateView resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listByLocation( - location: string, - options?: DnsPrivateViewsListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(location, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - location: string, - options?: DnsPrivateViewsListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: DnsPrivateViewsListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - location: string, - options?: DnsPrivateViewsListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage(location, options)) { - yield* page; - } - } - - /** - * List DnsPrivateView resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listByLocation( - location: string, - options?: DnsPrivateViewsListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listByLocationOperationSpec, - ); - } - - /** - * Get a DnsPrivateView - * @param location The name of the Azure region. - * @param dnsprivateviewocid DnsPrivateView OCID - * @param options The options parameters. - */ - get( - location: string, - dnsprivateviewocid: string, - options?: DnsPrivateViewsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, dnsprivateviewocid, options }, - getOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - location: string, - nextLink: string, - options?: DnsPrivateViewsListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dnsPrivateViews", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DnsPrivateViewListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dnsPrivateViews/{dnsprivateviewocid}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DnsPrivateView, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.dnsprivateviewocid, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DnsPrivateViewListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/dnsPrivateZones.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/dnsPrivateZones.ts deleted file mode 100644 index 0e57bff3d20c..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/dnsPrivateZones.ts +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { DnsPrivateZones } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - DnsPrivateZone, - DnsPrivateZonesListByLocationNextOptionalParams, - DnsPrivateZonesListByLocationOptionalParams, - DnsPrivateZonesListByLocationResponse, - DnsPrivateZonesGetOptionalParams, - DnsPrivateZonesGetResponse, - DnsPrivateZonesListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing DnsPrivateZones operations. */ -export class DnsPrivateZonesImpl implements DnsPrivateZones { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class DnsPrivateZones class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List DnsPrivateZone resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listByLocation( - location: string, - options?: DnsPrivateZonesListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(location, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - location: string, - options?: DnsPrivateZonesListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: DnsPrivateZonesListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - location: string, - options?: DnsPrivateZonesListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage(location, options)) { - yield* page; - } - } - - /** - * List DnsPrivateZone resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listByLocation( - location: string, - options?: DnsPrivateZonesListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listByLocationOperationSpec, - ); - } - - /** - * Get a DnsPrivateZone - * @param location The name of the Azure region. - * @param dnsprivatezonename DnsPrivateZone name - * @param options The options parameters. - */ - get( - location: string, - dnsprivatezonename: string, - options?: DnsPrivateZonesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, dnsprivatezonename, options }, - getOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - location: string, - nextLink: string, - options?: DnsPrivateZonesListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dnsPrivateZones", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DnsPrivateZoneListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/dnsPrivateZones/{dnsprivatezonename}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DnsPrivateZone, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.dnsprivatezonename, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.DnsPrivateZoneListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/giVersions.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/giVersions.ts deleted file mode 100644 index aef94c859422..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/giVersions.ts +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { GiVersions } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - GiVersion, - GiVersionsListByLocationNextOptionalParams, - GiVersionsListByLocationOptionalParams, - GiVersionsListByLocationResponse, - GiVersionsGetOptionalParams, - GiVersionsGetResponse, - GiVersionsListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing GiVersions operations. */ -export class GiVersionsImpl implements GiVersions { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class GiVersions class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List GiVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listByLocation( - location: string, - options?: GiVersionsListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(location, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - location: string, - options?: GiVersionsListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: GiVersionsListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - location: string, - options?: GiVersionsListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage(location, options)) { - yield* page; - } - } - - /** - * List GiVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listByLocation( - location: string, - options?: GiVersionsListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listByLocationOperationSpec, - ); - } - - /** - * Get a GiVersion - * @param location The name of the Azure region. - * @param giversionname GiVersion name - * @param options The options parameters. - */ - get( - location: string, - giversionname: string, - options?: GiVersionsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, giversionname, options }, - getOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - location: string, - nextLink: string, - options?: GiVersionsListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/giVersions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GiVersionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/giVersions/{giversionname}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GiVersion, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.giversionname, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GiVersionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/index.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/index.ts deleted file mode 100644 index 2fb9ea391b52..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export * from "./operations"; -export * from "./autonomousDatabases"; -export * from "./cloudExadataInfrastructures"; -export * from "./cloudVmClusters"; -export * from "./autonomousDatabaseCharacterSets"; -export * from "./autonomousDatabaseNationalCharacterSets"; -export * from "./autonomousDatabaseVersions"; -export * from "./dbSystemShapes"; -export * from "./dnsPrivateViews"; -export * from "./dnsPrivateZones"; -export * from "./giVersions"; -export * from "./systemVersions"; -export * from "./oracleSubscriptions"; -export * from "./autonomousDatabaseBackups"; -export * from "./dbServers"; -export * from "./dbNodes"; -export * from "./virtualNetworkAddresses"; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/operations.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/operations.ts deleted file mode 100644 index 7eeb0bb52a56..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/operations.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { Operations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - Operation, - OperationsListNextOptionalParams, - OperationsListOptionalParams, - OperationsListResponse, - OperationsListNextResponse, -} from "../models"; - -/// -/** Class containing Operations operations. */ -export class OperationsImpl implements Operations { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class Operations class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List the operations for the provider - * @param options The options parameters. - */ - public list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listPagingPage(options, settings); - }, - }; - } - - private async *listPagingPage( - options?: OperationsListOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: OperationsListResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._list(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listPagingAll( - options?: OperationsListOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listPagingPage(options)) { - yield* page; - } - } - - /** - * List the operations for the provider - * @param options The options parameters. - */ - private _list( - options?: OperationsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * ListNext - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - nextLink: string, - options?: OperationsListNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/providers/Oracle.Database/operations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept], - serializer, -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OperationListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [Parameters.$host, Parameters.nextLink], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/oracleSubscriptions.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/oracleSubscriptions.ts deleted file mode 100644 index c3233070e93b..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/oracleSubscriptions.ts +++ /dev/null @@ -1,833 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { OracleSubscriptions } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - OracleSubscription, - OracleSubscriptionsListBySubscriptionNextOptionalParams, - OracleSubscriptionsListBySubscriptionOptionalParams, - OracleSubscriptionsListBySubscriptionResponse, - OracleSubscriptionsGetOptionalParams, - OracleSubscriptionsGetResponse, - OracleSubscriptionsCreateOrUpdateOptionalParams, - OracleSubscriptionsCreateOrUpdateResponse, - OracleSubscriptionUpdate, - OracleSubscriptionsUpdateOptionalParams, - OracleSubscriptionsUpdateResponse, - OracleSubscriptionsDeleteOptionalParams, - OracleSubscriptionsDeleteResponse, - OracleSubscriptionsListActivationLinksOptionalParams, - OracleSubscriptionsListActivationLinksResponse, - OracleSubscriptionsListCloudAccountDetailsOptionalParams, - OracleSubscriptionsListCloudAccountDetailsResponse, - OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams, - OracleSubscriptionsListSaasSubscriptionDetailsResponse, - OracleSubscriptionsListBySubscriptionNextResponse, -} from "../models"; - -/// -/** Class containing OracleSubscriptions operations. */ -export class OracleSubscriptionsImpl implements OracleSubscriptions { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class OracleSubscriptions class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List OracleSubscription resources by subscription ID - * @param options The options parameters. - */ - public listBySubscription( - options?: OracleSubscriptionsListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listBySubscriptionPagingAll(options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listBySubscriptionPagingPage(options, settings); - }, - }; - } - - private async *listBySubscriptionPagingPage( - options?: OracleSubscriptionsListBySubscriptionOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: OracleSubscriptionsListBySubscriptionResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listBySubscription(options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listBySubscriptionNext(continuationToken, options); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listBySubscriptionPagingAll( - options?: OracleSubscriptionsListBySubscriptionOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listBySubscriptionPagingPage(options)) { - yield* page; - } - } - - /** - * List OracleSubscription resources by subscription ID - * @param options The options parameters. - */ - private _listBySubscription( - options?: OracleSubscriptionsListBySubscriptionOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); - } - - /** - * Get a OracleSubscription - * @param options The options parameters. - */ - get( - options?: OracleSubscriptionsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest({ options }, getOperationSpec); - } - - /** - * Create a OracleSubscription - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resource: OracleSubscription, - options?: OracleSubscriptionsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { resource, options }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - OracleSubscriptionsCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a OracleSubscription - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resource: OracleSubscription, - options?: OracleSubscriptionsCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate(resource, options); - return poller.pollUntilDone(); - } - - /** - * Update a OracleSubscription - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdate( - properties: OracleSubscriptionUpdate, - options?: OracleSubscriptionsUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { properties, options }, - spec: updateOperationSpec, - }); - const poller = await createHttpPoller< - OracleSubscriptionsUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Update a OracleSubscription - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - async beginUpdateAndWait( - properties: OracleSubscriptionUpdate, - options?: OracleSubscriptionsUpdateOptionalParams, - ): Promise { - const poller = await this.beginUpdate(properties, options); - return poller.pollUntilDone(); - } - - /** - * Delete a OracleSubscription - * @param options The options parameters. - */ - async beginDelete( - options?: OracleSubscriptionsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { options }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - OracleSubscriptionsDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a OracleSubscription - * @param options The options parameters. - */ - async beginDeleteAndWait( - options?: OracleSubscriptionsDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete(options); - return poller.pollUntilDone(); - } - - /** - * List Activation Links - * @param options The options parameters. - */ - async beginListActivationLinks( - options?: OracleSubscriptionsListActivationLinksOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsListActivationLinksResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { options }, - spec: listActivationLinksOperationSpec, - }); - const poller = await createHttpPoller< - OracleSubscriptionsListActivationLinksResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * List Activation Links - * @param options The options parameters. - */ - async beginListActivationLinksAndWait( - options?: OracleSubscriptionsListActivationLinksOptionalParams, - ): Promise { - const poller = await this.beginListActivationLinks(options); - return poller.pollUntilDone(); - } - - /** - * List Cloud Account Details - * @param options The options parameters. - */ - async beginListCloudAccountDetails( - options?: OracleSubscriptionsListCloudAccountDetailsOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsListCloudAccountDetailsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { options }, - spec: listCloudAccountDetailsOperationSpec, - }); - const poller = await createHttpPoller< - OracleSubscriptionsListCloudAccountDetailsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * List Cloud Account Details - * @param options The options parameters. - */ - async beginListCloudAccountDetailsAndWait( - options?: OracleSubscriptionsListCloudAccountDetailsOptionalParams, - ): Promise { - const poller = await this.beginListCloudAccountDetails(options); - return poller.pollUntilDone(); - } - - /** - * List Saas Subscription Details - * @param options The options parameters. - */ - async beginListSaasSubscriptionDetails( - options?: OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsListSaasSubscriptionDetailsResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { options }, - spec: listSaasSubscriptionDetailsOperationSpec, - }); - const poller = await createHttpPoller< - OracleSubscriptionsListSaasSubscriptionDetailsResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * List Saas Subscription Details - * @param options The options parameters. - */ - async beginListSaasSubscriptionDetailsAndWait( - options?: OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams, - ): Promise { - const poller = await this.beginListSaasSubscriptionDetails(options); - return poller.pollUntilDone(); - } - - /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. - * @param options The options parameters. - */ - private _listBySubscriptionNext( - nextLink: string, - options?: OracleSubscriptionsListBySubscriptionNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OracleSubscriptionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OracleSubscription, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.OracleSubscription, - }, - 201: { - bodyMapper: Mappers.OracleSubscription, - }, - 202: { - bodyMapper: Mappers.OracleSubscription, - }, - 204: { - bodyMapper: Mappers.OracleSubscription, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource3, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const updateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default", - httpMethod: "PATCH", - responses: { - 200: { - bodyMapper: Mappers.OracleSubscription, - }, - 201: { - bodyMapper: Mappers.OracleSubscription, - }, - 202: { - bodyMapper: Mappers.OracleSubscription, - }, - 204: { - bodyMapper: Mappers.OracleSubscription, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.properties3, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.OracleSubscriptionsDeleteHeaders, - }, - 201: { - headersMapper: Mappers.OracleSubscriptionsDeleteHeaders, - }, - 202: { - headersMapper: Mappers.OracleSubscriptionsDeleteHeaders, - }, - 204: { - headersMapper: Mappers.OracleSubscriptionsDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listActivationLinksOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default/listActivationLinks", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.ActivationLinks, - }, - 201: { - bodyMapper: Mappers.ActivationLinks, - }, - 202: { - bodyMapper: Mappers.ActivationLinks, - }, - 204: { - bodyMapper: Mappers.ActivationLinks, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listCloudAccountDetailsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default/listCloudAccountDetails", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.CloudAccountDetails, - }, - 201: { - bodyMapper: Mappers.CloudAccountDetails, - }, - 202: { - bodyMapper: Mappers.CloudAccountDetails, - }, - 204: { - bodyMapper: Mappers.CloudAccountDetails, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listSaasSubscriptionDetailsOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions/default/listSaasSubscriptionDetails", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.SaasSubscriptionDetails, - }, - 201: { - bodyMapper: Mappers.SaasSubscriptionDetails, - }, - 202: { - bodyMapper: Mappers.SaasSubscriptionDetails, - }, - 204: { - bodyMapper: Mappers.SaasSubscriptionDetails, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OracleSubscriptionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/systemVersions.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/systemVersions.ts deleted file mode 100644 index d17bc5d0a676..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/systemVersions.ts +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { SystemVersions } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - SystemVersion, - SystemVersionsListByLocationNextOptionalParams, - SystemVersionsListByLocationOptionalParams, - SystemVersionsListByLocationResponse, - SystemVersionsGetOptionalParams, - SystemVersionsGetResponse, - SystemVersionsListByLocationNextResponse, -} from "../models"; - -/// -/** Class containing SystemVersions operations. */ -export class SystemVersionsImpl implements SystemVersions { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class SystemVersions class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List SystemVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - public listByLocation( - location: string, - options?: SystemVersionsListByLocationOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByLocationPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByLocationPagingPage(location, options, settings); - }, - }; - } - - private async *listByLocationPagingPage( - location: string, - options?: SystemVersionsListByLocationOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: SystemVersionsListByLocationResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByLocation(location, options); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByLocationNext( - location, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByLocationPagingAll( - location: string, - options?: SystemVersionsListByLocationOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByLocationPagingPage(location, options)) { - yield* page; - } - } - - /** - * List SystemVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - private _listByLocation( - location: string, - options?: SystemVersionsListByLocationOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - listByLocationOperationSpec, - ); - } - - /** - * Get a SystemVersion - * @param location The name of the Azure region. - * @param systemversionname SystemVersion name - * @param options The options parameters. - */ - get( - location: string, - systemversionname: string, - options?: SystemVersionsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, systemversionname, options }, - getOperationSpec, - ); - } - - /** - * ListByLocationNext - * @param location The name of the Azure region. - * @param nextLink The nextLink from the previous successful call to the ListByLocation method. - * @param options The options parameters. - */ - private _listByLocationNext( - location: string, - nextLink: string, - options?: SystemVersionsListByLocationNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - listByLocationNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByLocationOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/systemVersions", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SystemVersionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/systemVersions/{systemversionname}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SystemVersion, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location, - Parameters.systemversionname, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByLocationNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SystemVersionListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.location, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operations/virtualNetworkAddresses.ts b/sdk/oracledatabase/arm-oracledatabase/src/operations/virtualNetworkAddresses.ts deleted file mode 100644 index 5c02d33a338b..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operations/virtualNetworkAddresses.ts +++ /dev/null @@ -1,529 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { VirtualNetworkAddresses } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { OracleDatabaseManagementClient } from "../oracleDatabaseManagementClient"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - VirtualNetworkAddress, - VirtualNetworkAddressesListByCloudVmClusterNextOptionalParams, - VirtualNetworkAddressesListByCloudVmClusterOptionalParams, - VirtualNetworkAddressesListByCloudVmClusterResponse, - VirtualNetworkAddressesGetOptionalParams, - VirtualNetworkAddressesGetResponse, - VirtualNetworkAddressesCreateOrUpdateOptionalParams, - VirtualNetworkAddressesCreateOrUpdateResponse, - VirtualNetworkAddressesDeleteOptionalParams, - VirtualNetworkAddressesDeleteResponse, - VirtualNetworkAddressesListByCloudVmClusterNextResponse, -} from "../models"; - -/// -/** Class containing VirtualNetworkAddresses operations. */ -export class VirtualNetworkAddressesImpl implements VirtualNetworkAddresses { - private readonly client: OracleDatabaseManagementClient; - - /** - * Initialize a new instance of the class VirtualNetworkAddresses class. - * @param client Reference to the service client - */ - constructor(client: OracleDatabaseManagementClient) { - this.client = client; - } - - /** - * List VirtualNetworkAddress resources by CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - public listByCloudVmCluster( - resourceGroupName: string, - cloudvmclustername: string, - options?: VirtualNetworkAddressesListByCloudVmClusterOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByCloudVmClusterPagingAll( - resourceGroupName, - cloudvmclustername, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByCloudVmClusterPagingPage( - resourceGroupName, - cloudvmclustername, - options, - settings, - ); - }, - }; - } - - private async *listByCloudVmClusterPagingPage( - resourceGroupName: string, - cloudvmclustername: string, - options?: VirtualNetworkAddressesListByCloudVmClusterOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: VirtualNetworkAddressesListByCloudVmClusterResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByCloudVmCluster( - resourceGroupName, - cloudvmclustername, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByCloudVmClusterNext( - resourceGroupName, - cloudvmclustername, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByCloudVmClusterPagingAll( - resourceGroupName: string, - cloudvmclustername: string, - options?: VirtualNetworkAddressesListByCloudVmClusterOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByCloudVmClusterPagingPage( - resourceGroupName, - cloudvmclustername, - options, - )) { - yield* page; - } - } - - /** - * List VirtualNetworkAddress resources by CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - private _listByCloudVmCluster( - resourceGroupName: string, - cloudvmclustername: string, - options?: VirtualNetworkAddressesListByCloudVmClusterOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudvmclustername, options }, - listByCloudVmClusterOperationSpec, - ); - } - - /** - * Get a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - options?: VirtualNetworkAddressesGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - options, - }, - getOperationSpec, - ); - } - - /** - * Create a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - resource: VirtualNetworkAddress, - options?: VirtualNetworkAddressesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - VirtualNetworkAddressesCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - resource, - options, - }, - spec: createOrUpdateOperationSpec, - }); - const poller = await createHttpPoller< - VirtualNetworkAddressesCreateOrUpdateResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation", - }); - await poller.poll(); - return poller; - } - - /** - * Create a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - resource: VirtualNetworkAddress, - options?: VirtualNetworkAddressesCreateOrUpdateOptionalParams, - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - resource, - options, - ); - return poller.pollUntilDone(); - } - - /** - * Delete a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - options?: VirtualNetworkAddressesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - VirtualNetworkAddressesDeleteResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - options, - }, - spec: deleteOperationSpec, - }); - const poller = await createHttpPoller< - VirtualNetworkAddressesDeleteResponse, - OperationState - >(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location", - }); - await poller.poll(); - return poller; - } - - /** - * Delete a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - options?: VirtualNetworkAddressesDeleteOptionalParams, - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - cloudvmclustername, - virtualnetworkaddressname, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListByCloudVmClusterNext - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param nextLink The nextLink from the previous successful call to the ListByCloudVmCluster method. - * @param options The options parameters. - */ - private _listByCloudVmClusterNext( - resourceGroupName: string, - cloudvmclustername: string, - nextLink: string, - options?: VirtualNetworkAddressesListByCloudVmClusterNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, cloudvmclustername, nextLink, options }, - listByCloudVmClusterNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByCloudVmClusterOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/virtualNetworkAddresses", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkAddressListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/virtualNetworkAddresses/{virtualnetworkaddressname}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkAddress, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - Parameters.virtualnetworkaddressname, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/virtualNetworkAddresses/{virtualnetworkaddressname}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkAddress, - }, - 201: { - bodyMapper: Mappers.VirtualNetworkAddress, - }, - 202: { - bodyMapper: Mappers.VirtualNetworkAddress, - }, - 204: { - bodyMapper: Mappers.VirtualNetworkAddress, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - requestBody: Parameters.resource5, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - Parameters.virtualnetworkaddressname, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/cloudVmClusters/{cloudvmclustername}/virtualNetworkAddresses/{virtualnetworkaddressname}", - httpMethod: "DELETE", - responses: { - 200: { - headersMapper: Mappers.VirtualNetworkAddressesDeleteHeaders, - }, - 201: { - headersMapper: Mappers.VirtualNetworkAddressesDeleteHeaders, - }, - 202: { - headersMapper: Mappers.VirtualNetworkAddressesDeleteHeaders, - }, - 204: { - headersMapper: Mappers.VirtualNetworkAddressesDeleteHeaders, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - Parameters.virtualnetworkaddressname, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const listByCloudVmClusterNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkAddressListResult, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.nextLink, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.cloudvmclustername, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseBackups.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseBackups.ts deleted file mode 100644 index 645c12c492c8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseBackups.ts +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - AutonomousDatabaseBackup, - AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams, - AutonomousDatabaseBackupsGetOptionalParams, - AutonomousDatabaseBackupsGetResponse, - AutonomousDatabaseBackupsCreateOrUpdateOptionalParams, - AutonomousDatabaseBackupsCreateOrUpdateResponse, - AutonomousDatabaseBackupUpdate, - AutonomousDatabaseBackupsUpdateOptionalParams, - AutonomousDatabaseBackupsUpdateResponse, - AutonomousDatabaseBackupsDeleteOptionalParams, - AutonomousDatabaseBackupsDeleteResponse, -} from "../models"; - -/// -/** Interface representing a AutonomousDatabaseBackups. */ -export interface AutonomousDatabaseBackups { - /** - * List AutonomousDatabaseBackup resources by AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - listByAutonomousDatabase( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabaseBackupsListByAutonomousDatabaseOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param options The options parameters. - */ - get( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - options?: AutonomousDatabaseBackupsGetOptionalParams, - ): Promise; - /** - * Create a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - resource: AutonomousDatabaseBackup, - options?: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabaseBackupsCreateOrUpdateResponse - > - >; - /** - * Create a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - resource: AutonomousDatabaseBackup, - options?: AutonomousDatabaseBackupsCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - properties: AutonomousDatabaseBackupUpdate, - options?: AutonomousDatabaseBackupsUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabaseBackupsUpdateResponse - > - >; - /** - * Update a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - properties: AutonomousDatabaseBackupUpdate, - options?: AutonomousDatabaseBackupsUpdateOptionalParams, - ): Promise; - /** - * Delete a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - options?: AutonomousDatabaseBackupsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabaseBackupsDeleteResponse - > - >; - /** - * Delete a AutonomousDatabaseBackup - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param adbbackupid AutonomousDatabaseBackup id - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - adbbackupid: string, - options?: AutonomousDatabaseBackupsDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseCharacterSets.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseCharacterSets.ts deleted file mode 100644 index 33940722ecb0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseCharacterSets.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - AutonomousDatabaseCharacterSet, - AutonomousDatabaseCharacterSetsListByLocationOptionalParams, - AutonomousDatabaseCharacterSetsGetOptionalParams, - AutonomousDatabaseCharacterSetsGetResponse, -} from "../models"; - -/// -/** Interface representing a AutonomousDatabaseCharacterSets. */ -export interface AutonomousDatabaseCharacterSets { - /** - * List AutonomousDatabaseCharacterSet resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listByLocation( - location: string, - options?: AutonomousDatabaseCharacterSetsListByLocationOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a AutonomousDatabaseCharacterSet - * @param location The name of the Azure region. - * @param adbscharsetname AutonomousDatabaseCharacterSet name - * @param options The options parameters. - */ - get( - location: string, - adbscharsetname: string, - options?: AutonomousDatabaseCharacterSetsGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseNationalCharacterSets.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseNationalCharacterSets.ts deleted file mode 100644 index b814000af213..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseNationalCharacterSets.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - AutonomousDatabaseNationalCharacterSet, - AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams, - AutonomousDatabaseNationalCharacterSetsGetOptionalParams, - AutonomousDatabaseNationalCharacterSetsGetResponse, -} from "../models"; - -/// -/** Interface representing a AutonomousDatabaseNationalCharacterSets. */ -export interface AutonomousDatabaseNationalCharacterSets { - /** - * List AutonomousDatabaseNationalCharacterSet resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listByLocation( - location: string, - options?: AutonomousDatabaseNationalCharacterSetsListByLocationOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a AutonomousDatabaseNationalCharacterSet - * @param location The name of the Azure region. - * @param adbsncharsetname AutonomousDatabaseNationalCharacterSets name - * @param options The options parameters. - */ - get( - location: string, - adbsncharsetname: string, - options?: AutonomousDatabaseNationalCharacterSetsGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseVersions.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseVersions.ts deleted file mode 100644 index 8fe6f3237377..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabaseVersions.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - AutonomousDbVersion, - AutonomousDatabaseVersionsListByLocationOptionalParams, - AutonomousDatabaseVersionsGetOptionalParams, - AutonomousDatabaseVersionsGetResponse, -} from "../models"; - -/// -/** Interface representing a AutonomousDatabaseVersions. */ -export interface AutonomousDatabaseVersions { - /** - * List AutonomousDbVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listByLocation( - location: string, - options?: AutonomousDatabaseVersionsListByLocationOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a AutonomousDbVersion - * @param location The name of the Azure region. - * @param autonomousdbversionsname AutonomousDbVersion name - * @param options The options parameters. - */ - get( - location: string, - autonomousdbversionsname: string, - options?: AutonomousDatabaseVersionsGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabases.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabases.ts deleted file mode 100644 index c65fe91959c5..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/autonomousDatabases.ts +++ /dev/null @@ -1,291 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - AutonomousDatabase, - AutonomousDatabasesListBySubscriptionOptionalParams, - AutonomousDatabasesListByResourceGroupOptionalParams, - AutonomousDatabasesGetOptionalParams, - AutonomousDatabasesGetResponse, - AutonomousDatabasesCreateOrUpdateOptionalParams, - AutonomousDatabasesCreateOrUpdateResponse, - AutonomousDatabaseUpdate, - AutonomousDatabasesUpdateOptionalParams, - AutonomousDatabasesUpdateResponse, - AutonomousDatabasesDeleteOptionalParams, - AutonomousDatabasesDeleteResponse, - PeerDbDetails, - AutonomousDatabasesFailoverOptionalParams, - AutonomousDatabasesFailoverResponse, - GenerateAutonomousDatabaseWalletDetails, - AutonomousDatabasesGenerateWalletOptionalParams, - AutonomousDatabasesGenerateWalletResponse, - RestoreAutonomousDatabaseDetails, - AutonomousDatabasesRestoreOptionalParams, - AutonomousDatabasesRestoreResponse, - AutonomousDatabasesShrinkOptionalParams, - AutonomousDatabasesShrinkResponse, - AutonomousDatabasesSwitchoverOptionalParams, - AutonomousDatabasesSwitchoverResponse, -} from "../models"; - -/// -/** Interface representing a AutonomousDatabases. */ -export interface AutonomousDatabases { - /** - * List AutonomousDatabase resources by subscription ID - * @param options The options parameters. - */ - listBySubscription( - options?: AutonomousDatabasesListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator; - /** - * List AutonomousDatabase resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: AutonomousDatabasesListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesGetOptionalParams, - ): Promise; - /** - * Create a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - autonomousdatabasename: string, - resource: AutonomousDatabase, - options?: AutonomousDatabasesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesCreateOrUpdateResponse - > - >; - /** - * Create a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - resource: AutonomousDatabase, - options?: AutonomousDatabasesCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - autonomousdatabasename: string, - properties: AutonomousDatabaseUpdate, - options?: AutonomousDatabasesUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesUpdateResponse - > - >; - /** - * Update a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - properties: AutonomousDatabaseUpdate, - options?: AutonomousDatabasesUpdateOptionalParams, - ): Promise; - /** - * Delete a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesDeleteResponse - > - >; - /** - * Delete a AutonomousDatabase - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesDeleteOptionalParams, - ): Promise; - /** - * Perform failover action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginFailover( - resourceGroupName: string, - autonomousdatabasename: string, - body: PeerDbDetails, - options?: AutonomousDatabasesFailoverOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesFailoverResponse - > - >; - /** - * Perform failover action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginFailoverAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - body: PeerDbDetails, - options?: AutonomousDatabasesFailoverOptionalParams, - ): Promise; - /** - * Generate wallet action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - generateWallet( - resourceGroupName: string, - autonomousdatabasename: string, - body: GenerateAutonomousDatabaseWalletDetails, - options?: AutonomousDatabasesGenerateWalletOptionalParams, - ): Promise; - /** - * Restores an Autonomous Database based on the provided request parameters. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginRestore( - resourceGroupName: string, - autonomousdatabasename: string, - body: RestoreAutonomousDatabaseDetails, - options?: AutonomousDatabasesRestoreOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesRestoreResponse - > - >; - /** - * Restores an Autonomous Database based on the provided request parameters. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginRestoreAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - body: RestoreAutonomousDatabaseDetails, - options?: AutonomousDatabasesRestoreOptionalParams, - ): Promise; - /** - * This operation shrinks the current allocated storage down to the current actual used data storage. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - beginShrink( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesShrinkOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesShrinkResponse - > - >; - /** - * This operation shrinks the current allocated storage down to the current actual used data storage. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param options The options parameters. - */ - beginShrinkAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - options?: AutonomousDatabasesShrinkOptionalParams, - ): Promise; - /** - * Perform switchover action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginSwitchover( - resourceGroupName: string, - autonomousdatabasename: string, - body: PeerDbDetails, - options?: AutonomousDatabasesSwitchoverOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - AutonomousDatabasesSwitchoverResponse - > - >; - /** - * Perform switchover action on Autonomous Database - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param autonomousdatabasename The database name. - * @param body The content of the action request - * @param options The options parameters. - */ - beginSwitchoverAndWait( - resourceGroupName: string, - autonomousdatabasename: string, - body: PeerDbDetails, - options?: AutonomousDatabasesSwitchoverOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/cloudExadataInfrastructures.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/cloudExadataInfrastructures.ts deleted file mode 100644 index 49bee3e5b67a..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/cloudExadataInfrastructures.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - CloudExadataInfrastructure, - CloudExadataInfrastructuresListBySubscriptionOptionalParams, - CloudExadataInfrastructuresListByResourceGroupOptionalParams, - CloudExadataInfrastructuresGetOptionalParams, - CloudExadataInfrastructuresGetResponse, - CloudExadataInfrastructuresCreateOrUpdateOptionalParams, - CloudExadataInfrastructuresCreateOrUpdateResponse, - CloudExadataInfrastructureUpdate, - CloudExadataInfrastructuresUpdateOptionalParams, - CloudExadataInfrastructuresUpdateResponse, - CloudExadataInfrastructuresDeleteOptionalParams, - CloudExadataInfrastructuresDeleteResponse, - CloudExadataInfrastructuresAddStorageCapacityOptionalParams, - CloudExadataInfrastructuresAddStorageCapacityResponse, -} from "../models"; - -/// -/** Interface representing a CloudExadataInfrastructures. */ -export interface CloudExadataInfrastructures { - /** - * List CloudExadataInfrastructure resources by subscription ID - * @param options The options parameters. - */ - listBySubscription( - options?: CloudExadataInfrastructuresListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator; - /** - * List CloudExadataInfrastructure resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: CloudExadataInfrastructuresListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresGetOptionalParams, - ): Promise; - /** - * Create a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - resource: CloudExadataInfrastructure, - options?: CloudExadataInfrastructuresCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudExadataInfrastructuresCreateOrUpdateResponse - > - >; - /** - * Create a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - resource: CloudExadataInfrastructure, - options?: CloudExadataInfrastructuresCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - properties: CloudExadataInfrastructureUpdate, - options?: CloudExadataInfrastructuresUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudExadataInfrastructuresUpdateResponse - > - >; - /** - * Update a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - properties: CloudExadataInfrastructureUpdate, - options?: CloudExadataInfrastructuresUpdateOptionalParams, - ): Promise; - /** - * Delete a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudExadataInfrastructuresDeleteResponse - > - >; - /** - * Delete a CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresDeleteOptionalParams, - ): Promise; - /** - * Perform add storage capacity on exadata infra - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - beginAddStorageCapacity( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresAddStorageCapacityOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudExadataInfrastructuresAddStorageCapacityResponse - > - >; - /** - * Perform add storage capacity on exadata infra - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - beginAddStorageCapacityAndWait( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: CloudExadataInfrastructuresAddStorageCapacityOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/cloudVmClusters.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/cloudVmClusters.ts deleted file mode 100644 index ec42f9d22df0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/cloudVmClusters.ts +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - CloudVmCluster, - CloudVmClustersListBySubscriptionOptionalParams, - CloudVmClustersListByResourceGroupOptionalParams, - CloudVmClustersGetOptionalParams, - CloudVmClustersGetResponse, - CloudVmClustersCreateOrUpdateOptionalParams, - CloudVmClustersCreateOrUpdateResponse, - CloudVmClusterUpdate, - CloudVmClustersUpdateOptionalParams, - CloudVmClustersUpdateResponse, - CloudVmClustersDeleteOptionalParams, - CloudVmClustersDeleteResponse, - AddRemoveDbNode, - CloudVmClustersAddVmsOptionalParams, - CloudVmClustersAddVmsResponse, - PrivateIpAddressesFilter, - CloudVmClustersListPrivateIpAddressesOptionalParams, - CloudVmClustersListPrivateIpAddressesResponse, - CloudVmClustersRemoveVmsOptionalParams, - CloudVmClustersRemoveVmsResponse, -} from "../models"; - -/// -/** Interface representing a CloudVmClusters. */ -export interface CloudVmClusters { - /** - * List CloudVmCluster resources by subscription ID - * @param options The options parameters. - */ - listBySubscription( - options?: CloudVmClustersListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator; - /** - * List CloudVmCluster resources by resource group - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param options The options parameters. - */ - listByResourceGroup( - resourceGroupName: string, - options?: CloudVmClustersListByResourceGroupOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudvmclustername: string, - options?: CloudVmClustersGetOptionalParams, - ): Promise; - /** - * Create a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - cloudvmclustername: string, - resource: CloudVmCluster, - options?: CloudVmClustersCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersCreateOrUpdateResponse - > - >; - /** - * Create a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - cloudvmclustername: string, - resource: CloudVmCluster, - options?: CloudVmClustersCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate( - resourceGroupName: string, - cloudvmclustername: string, - properties: CloudVmClusterUpdate, - options?: CloudVmClustersUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersUpdateResponse - > - >; - /** - * Update a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait( - resourceGroupName: string, - cloudvmclustername: string, - properties: CloudVmClusterUpdate, - options?: CloudVmClustersUpdateOptionalParams, - ): Promise; - /** - * Delete a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - cloudvmclustername: string, - options?: CloudVmClustersDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersDeleteResponse - > - >; - /** - * Delete a CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - cloudvmclustername: string, - options?: CloudVmClustersDeleteOptionalParams, - ): Promise; - /** - * Add VMs to the VM Cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - beginAddVms( - resourceGroupName: string, - cloudvmclustername: string, - body: AddRemoveDbNode, - options?: CloudVmClustersAddVmsOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersAddVmsResponse - > - >; - /** - * Add VMs to the VM Cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - beginAddVmsAndWait( - resourceGroupName: string, - cloudvmclustername: string, - body: AddRemoveDbNode, - options?: CloudVmClustersAddVmsOptionalParams, - ): Promise; - /** - * List Private IP Addresses by the provided filter - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - listPrivateIpAddresses( - resourceGroupName: string, - cloudvmclustername: string, - body: PrivateIpAddressesFilter, - options?: CloudVmClustersListPrivateIpAddressesOptionalParams, - ): Promise; - /** - * Remove VMs from the VM Cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - beginRemoveVms( - resourceGroupName: string, - cloudvmclustername: string, - body: AddRemoveDbNode, - options?: CloudVmClustersRemoveVmsOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - CloudVmClustersRemoveVmsResponse - > - >; - /** - * Remove VMs from the VM Cluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param body The content of the action request - * @param options The options parameters. - */ - beginRemoveVmsAndWait( - resourceGroupName: string, - cloudvmclustername: string, - body: AddRemoveDbNode, - options?: CloudVmClustersRemoveVmsOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbNodes.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbNodes.ts deleted file mode 100644 index 582718360e63..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbNodes.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - DbNode, - DbNodesListByCloudVmClusterOptionalParams, - DbNodesGetOptionalParams, - DbNodesGetResponse, - DbNodeAction, - DbNodesActionOptionalParams, - DbNodesActionResponse, -} from "../models"; - -/// -/** Interface representing a DbNodes. */ -export interface DbNodes { - /** - * List DbNode resources by CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - listByCloudVmCluster( - resourceGroupName: string, - cloudvmclustername: string, - options?: DbNodesListByCloudVmClusterOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a DbNode - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param dbnodeocid DbNode OCID. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudvmclustername: string, - dbnodeocid: string, - options?: DbNodesGetOptionalParams, - ): Promise; - /** - * VM actions on DbNode of VM Cluster by the provided filter - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param dbnodeocid DbNode OCID. - * @param body The content of the action request - * @param options The options parameters. - */ - beginAction( - resourceGroupName: string, - cloudvmclustername: string, - dbnodeocid: string, - body: DbNodeAction, - options?: DbNodesActionOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - DbNodesActionResponse - > - >; - /** - * VM actions on DbNode of VM Cluster by the provided filter - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param dbnodeocid DbNode OCID. - * @param body The content of the action request - * @param options The options parameters. - */ - beginActionAndWait( - resourceGroupName: string, - cloudvmclustername: string, - dbnodeocid: string, - body: DbNodeAction, - options?: DbNodesActionOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbServers.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbServers.ts deleted file mode 100644 index d0f3f5d1c06e..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbServers.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - DbServer, - DbServersListByCloudExadataInfrastructureOptionalParams, - DbServersGetOptionalParams, - DbServersGetResponse, -} from "../models"; - -/// -/** Interface representing a DbServers. */ -export interface DbServers { - /** - * List DbServer resources by CloudExadataInfrastructure - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param options The options parameters. - */ - listByCloudExadataInfrastructure( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - options?: DbServersListByCloudExadataInfrastructureOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a DbServer - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudexadatainfrastructurename CloudExadataInfrastructure name - * @param dbserverocid DbServer OCID. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudexadatainfrastructurename: string, - dbserverocid: string, - options?: DbServersGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbSystemShapes.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbSystemShapes.ts deleted file mode 100644 index 5bfdda07f0dd..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dbSystemShapes.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - DbSystemShape, - DbSystemShapesListByLocationOptionalParams, - DbSystemShapesGetOptionalParams, - DbSystemShapesGetResponse, -} from "../models"; - -/// -/** Interface representing a DbSystemShapes. */ -export interface DbSystemShapes { - /** - * List DbSystemShape resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listByLocation( - location: string, - options?: DbSystemShapesListByLocationOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a DbSystemShape - * @param location The name of the Azure region. - * @param dbsystemshapename DbSystemShape name - * @param options The options parameters. - */ - get( - location: string, - dbsystemshapename: string, - options?: DbSystemShapesGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dnsPrivateViews.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dnsPrivateViews.ts deleted file mode 100644 index ba1f745d81e8..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dnsPrivateViews.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - DnsPrivateView, - DnsPrivateViewsListByLocationOptionalParams, - DnsPrivateViewsGetOptionalParams, - DnsPrivateViewsGetResponse, -} from "../models"; - -/// -/** Interface representing a DnsPrivateViews. */ -export interface DnsPrivateViews { - /** - * List DnsPrivateView resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listByLocation( - location: string, - options?: DnsPrivateViewsListByLocationOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a DnsPrivateView - * @param location The name of the Azure region. - * @param dnsprivateviewocid DnsPrivateView OCID - * @param options The options parameters. - */ - get( - location: string, - dnsprivateviewocid: string, - options?: DnsPrivateViewsGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dnsPrivateZones.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dnsPrivateZones.ts deleted file mode 100644 index e4580d7c1186..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/dnsPrivateZones.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - DnsPrivateZone, - DnsPrivateZonesListByLocationOptionalParams, - DnsPrivateZonesGetOptionalParams, - DnsPrivateZonesGetResponse, -} from "../models"; - -/// -/** Interface representing a DnsPrivateZones. */ -export interface DnsPrivateZones { - /** - * List DnsPrivateZone resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listByLocation( - location: string, - options?: DnsPrivateZonesListByLocationOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a DnsPrivateZone - * @param location The name of the Azure region. - * @param dnsprivatezonename DnsPrivateZone name - * @param options The options parameters. - */ - get( - location: string, - dnsprivatezonename: string, - options?: DnsPrivateZonesGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/giVersions.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/giVersions.ts deleted file mode 100644 index 6dd9c3201d44..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/giVersions.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - GiVersion, - GiVersionsListByLocationOptionalParams, - GiVersionsGetOptionalParams, - GiVersionsGetResponse, -} from "../models"; - -/// -/** Interface representing a GiVersions. */ -export interface GiVersions { - /** - * List GiVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listByLocation( - location: string, - options?: GiVersionsListByLocationOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a GiVersion - * @param location The name of the Azure region. - * @param giversionname GiVersion name - * @param options The options parameters. - */ - get( - location: string, - giversionname: string, - options?: GiVersionsGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/index.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/index.ts deleted file mode 100644 index 2fb9ea391b52..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/index.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export * from "./operations"; -export * from "./autonomousDatabases"; -export * from "./cloudExadataInfrastructures"; -export * from "./cloudVmClusters"; -export * from "./autonomousDatabaseCharacterSets"; -export * from "./autonomousDatabaseNationalCharacterSets"; -export * from "./autonomousDatabaseVersions"; -export * from "./dbSystemShapes"; -export * from "./dnsPrivateViews"; -export * from "./dnsPrivateZones"; -export * from "./giVersions"; -export * from "./systemVersions"; -export * from "./oracleSubscriptions"; -export * from "./autonomousDatabaseBackups"; -export * from "./dbServers"; -export * from "./dbNodes"; -export * from "./virtualNetworkAddresses"; diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/operations.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/operations.ts deleted file mode 100644 index 251f5f582e64..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/operations.ts +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Operation, OperationsListOptionalParams } from "../models"; - -/// -/** Interface representing a Operations. */ -export interface Operations { - /** - * List the operations for the provider - * @param options The options parameters. - */ - list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/oracleSubscriptions.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/oracleSubscriptions.ts deleted file mode 100644 index cd05af50ebb0..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/oracleSubscriptions.ts +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - OracleSubscription, - OracleSubscriptionsListBySubscriptionOptionalParams, - OracleSubscriptionsGetOptionalParams, - OracleSubscriptionsGetResponse, - OracleSubscriptionsCreateOrUpdateOptionalParams, - OracleSubscriptionsCreateOrUpdateResponse, - OracleSubscriptionUpdate, - OracleSubscriptionsUpdateOptionalParams, - OracleSubscriptionsUpdateResponse, - OracleSubscriptionsDeleteOptionalParams, - OracleSubscriptionsDeleteResponse, - OracleSubscriptionsListActivationLinksOptionalParams, - OracleSubscriptionsListActivationLinksResponse, - OracleSubscriptionsListCloudAccountDetailsOptionalParams, - OracleSubscriptionsListCloudAccountDetailsResponse, - OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams, - OracleSubscriptionsListSaasSubscriptionDetailsResponse, -} from "../models"; - -/// -/** Interface representing a OracleSubscriptions. */ -export interface OracleSubscriptions { - /** - * List OracleSubscription resources by subscription ID - * @param options The options parameters. - */ - listBySubscription( - options?: OracleSubscriptionsListBySubscriptionOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a OracleSubscription - * @param options The options parameters. - */ - get( - options?: OracleSubscriptionsGetOptionalParams, - ): Promise; - /** - * Create a OracleSubscription - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resource: OracleSubscription, - options?: OracleSubscriptionsCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsCreateOrUpdateResponse - > - >; - /** - * Create a OracleSubscription - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resource: OracleSubscription, - options?: OracleSubscriptionsCreateOrUpdateOptionalParams, - ): Promise; - /** - * Update a OracleSubscription - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdate( - properties: OracleSubscriptionUpdate, - options?: OracleSubscriptionsUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsUpdateResponse - > - >; - /** - * Update a OracleSubscription - * @param properties The resource properties to be updated. - * @param options The options parameters. - */ - beginUpdateAndWait( - properties: OracleSubscriptionUpdate, - options?: OracleSubscriptionsUpdateOptionalParams, - ): Promise; - /** - * Delete a OracleSubscription - * @param options The options parameters. - */ - beginDelete( - options?: OracleSubscriptionsDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsDeleteResponse - > - >; - /** - * Delete a OracleSubscription - * @param options The options parameters. - */ - beginDeleteAndWait( - options?: OracleSubscriptionsDeleteOptionalParams, - ): Promise; - /** - * List Activation Links - * @param options The options parameters. - */ - beginListActivationLinks( - options?: OracleSubscriptionsListActivationLinksOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsListActivationLinksResponse - > - >; - /** - * List Activation Links - * @param options The options parameters. - */ - beginListActivationLinksAndWait( - options?: OracleSubscriptionsListActivationLinksOptionalParams, - ): Promise; - /** - * List Cloud Account Details - * @param options The options parameters. - */ - beginListCloudAccountDetails( - options?: OracleSubscriptionsListCloudAccountDetailsOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsListCloudAccountDetailsResponse - > - >; - /** - * List Cloud Account Details - * @param options The options parameters. - */ - beginListCloudAccountDetailsAndWait( - options?: OracleSubscriptionsListCloudAccountDetailsOptionalParams, - ): Promise; - /** - * List Saas Subscription Details - * @param options The options parameters. - */ - beginListSaasSubscriptionDetails( - options?: OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - OracleSubscriptionsListSaasSubscriptionDetailsResponse - > - >; - /** - * List Saas Subscription Details - * @param options The options parameters. - */ - beginListSaasSubscriptionDetailsAndWait( - options?: OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/systemVersions.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/systemVersions.ts deleted file mode 100644 index afb9f4d15b46..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/systemVersions.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - SystemVersion, - SystemVersionsListByLocationOptionalParams, - SystemVersionsGetOptionalParams, - SystemVersionsGetResponse, -} from "../models"; - -/// -/** Interface representing a SystemVersions. */ -export interface SystemVersions { - /** - * List SystemVersion resources by Location - * @param location The name of the Azure region. - * @param options The options parameters. - */ - listByLocation( - location: string, - options?: SystemVersionsListByLocationOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a SystemVersion - * @param location The name of the Azure region. - * @param systemversionname SystemVersion name - * @param options The options parameters. - */ - get( - location: string, - systemversionname: string, - options?: SystemVersionsGetOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/virtualNetworkAddresses.ts b/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/virtualNetworkAddresses.ts deleted file mode 100644 index 7291d7f11c9f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/operationsInterfaces/virtualNetworkAddresses.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - VirtualNetworkAddress, - VirtualNetworkAddressesListByCloudVmClusterOptionalParams, - VirtualNetworkAddressesGetOptionalParams, - VirtualNetworkAddressesGetResponse, - VirtualNetworkAddressesCreateOrUpdateOptionalParams, - VirtualNetworkAddressesCreateOrUpdateResponse, - VirtualNetworkAddressesDeleteOptionalParams, - VirtualNetworkAddressesDeleteResponse, -} from "../models"; - -/// -/** Interface representing a VirtualNetworkAddresses. */ -export interface VirtualNetworkAddresses { - /** - * List VirtualNetworkAddress resources by CloudVmCluster - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param options The options parameters. - */ - listByCloudVmCluster( - resourceGroupName: string, - cloudvmclustername: string, - options?: VirtualNetworkAddressesListByCloudVmClusterOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Get a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - options?: VirtualNetworkAddressesGetOptionalParams, - ): Promise; - /** - * Create a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - resource: VirtualNetworkAddress, - options?: VirtualNetworkAddressesCreateOrUpdateOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - VirtualNetworkAddressesCreateOrUpdateResponse - > - >; - /** - * Create a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param resource Resource create parameters. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - resource: VirtualNetworkAddress, - options?: VirtualNetworkAddressesCreateOrUpdateOptionalParams, - ): Promise; - /** - * Delete a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - options?: VirtualNetworkAddressesDeleteOptionalParams, - ): Promise< - SimplePollerLike< - OperationState, - VirtualNetworkAddressesDeleteResponse - > - >; - /** - * Delete a VirtualNetworkAddress - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param cloudvmclustername CloudVmCluster name - * @param virtualnetworkaddressname Virtual IP address hostname. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - cloudvmclustername: string, - virtualnetworkaddressname: string, - options?: VirtualNetworkAddressesDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/oracleDatabaseManagementClient.ts b/sdk/oracledatabase/arm-oracledatabase/src/oracleDatabaseManagementClient.ts deleted file mode 100644 index 7488f447942f..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/oracleDatabaseManagementClient.ts +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import * as coreClient from "@azure/core-client"; -import * as coreRestPipeline from "@azure/core-rest-pipeline"; -import { - PipelineRequest, - PipelineResponse, - SendRequest, -} from "@azure/core-rest-pipeline"; -import * as coreAuth from "@azure/core-auth"; -import { - OperationsImpl, - AutonomousDatabasesImpl, - CloudExadataInfrastructuresImpl, - CloudVmClustersImpl, - AutonomousDatabaseCharacterSetsImpl, - AutonomousDatabaseNationalCharacterSetsImpl, - AutonomousDatabaseVersionsImpl, - DbSystemShapesImpl, - DnsPrivateViewsImpl, - DnsPrivateZonesImpl, - GiVersionsImpl, - SystemVersionsImpl, - OracleSubscriptionsImpl, - AutonomousDatabaseBackupsImpl, - DbServersImpl, - DbNodesImpl, - VirtualNetworkAddressesImpl, -} from "./operations"; -import { - Operations, - AutonomousDatabases, - CloudExadataInfrastructures, - CloudVmClusters, - AutonomousDatabaseCharacterSets, - AutonomousDatabaseNationalCharacterSets, - AutonomousDatabaseVersions, - DbSystemShapes, - DnsPrivateViews, - DnsPrivateZones, - GiVersions, - SystemVersions, - OracleSubscriptions, - AutonomousDatabaseBackups, - DbServers, - DbNodes, - VirtualNetworkAddresses, -} from "./operationsInterfaces"; -import { OracleDatabaseManagementClientOptionalParams } from "./models"; - -export class OracleDatabaseManagementClient extends coreClient.ServiceClient { - $host: string; - apiVersion: string; - subscriptionId: string; - - /** - * Initializes a new instance of the OracleDatabaseManagementClient class. - * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. The value must be an UUID. - * @param options The parameter options - */ - constructor( - credentials: coreAuth.TokenCredential, - subscriptionId: string, - options?: OracleDatabaseManagementClientOptionalParams, - ) { - if (credentials === undefined) { - throw new Error("'credentials' cannot be null"); - } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); - } - - // Initializing default values for options - if (!options) { - options = {}; - } - const defaults: OracleDatabaseManagementClientOptionalParams = { - requestContentType: "application/json; charset=utf-8", - credential: credentials, - }; - - const packageDetails = `azsdk-js-arm-oracledatabase/1.0.1`; - const userAgentPrefix = - options.userAgentOptions && options.userAgentOptions.userAgentPrefix - ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` - : `${packageDetails}`; - - const optionsWithDefaults = { - ...defaults, - ...options, - userAgentOptions: { - userAgentPrefix, - }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com", - }; - super(optionsWithDefaults); - - let bearerTokenAuthenticationPolicyFound: boolean = false; - if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = - options.pipeline.getOrderedPolicies(); - bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( - (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName, - ); - } - if ( - !options || - !options.pipeline || - options.pipeline.getOrderedPolicies().length == 0 || - !bearerTokenAuthenticationPolicyFound - ) { - this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName, - }); - this.pipeline.addPolicy( - coreRestPipeline.bearerTokenAuthenticationPolicy({ - credential: credentials, - scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, - challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge, - }, - }), - ); - } - // Parameter assignments - this.subscriptionId = subscriptionId; - - // Assigning values to Constant parameters - this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-09-01"; - this.operations = new OperationsImpl(this); - this.autonomousDatabases = new AutonomousDatabasesImpl(this); - this.cloudExadataInfrastructures = new CloudExadataInfrastructuresImpl( - this, - ); - this.cloudVmClusters = new CloudVmClustersImpl(this); - this.autonomousDatabaseCharacterSets = - new AutonomousDatabaseCharacterSetsImpl(this); - this.autonomousDatabaseNationalCharacterSets = - new AutonomousDatabaseNationalCharacterSetsImpl(this); - this.autonomousDatabaseVersions = new AutonomousDatabaseVersionsImpl(this); - this.dbSystemShapes = new DbSystemShapesImpl(this); - this.dnsPrivateViews = new DnsPrivateViewsImpl(this); - this.dnsPrivateZones = new DnsPrivateZonesImpl(this); - this.giVersions = new GiVersionsImpl(this); - this.systemVersions = new SystemVersionsImpl(this); - this.oracleSubscriptions = new OracleSubscriptionsImpl(this); - this.autonomousDatabaseBackups = new AutonomousDatabaseBackupsImpl(this); - this.dbServers = new DbServersImpl(this); - this.dbNodes = new DbNodesImpl(this); - this.virtualNetworkAddresses = new VirtualNetworkAddressesImpl(this); - this.addCustomApiVersionPolicy(options.apiVersion); - } - - /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ - private addCustomApiVersionPolicy(apiVersion?: string) { - if (!apiVersion) { - return; - } - const apiVersionPolicy = { - name: "CustomApiVersionPolicy", - async sendRequest( - request: PipelineRequest, - next: SendRequest, - ): Promise { - const param = request.url.split("?"); - if (param.length > 1) { - const newParams = param[1].split("&").map((item) => { - if (item.indexOf("api-version") > -1) { - return "api-version=" + apiVersion; - } else { - return item; - } - }); - request.url = param[0] + "?" + newParams.join("&"); - } - return next(request); - }, - }; - this.pipeline.addPolicy(apiVersionPolicy); - } - - operations: Operations; - autonomousDatabases: AutonomousDatabases; - cloudExadataInfrastructures: CloudExadataInfrastructures; - cloudVmClusters: CloudVmClusters; - autonomousDatabaseCharacterSets: AutonomousDatabaseCharacterSets; - autonomousDatabaseNationalCharacterSets: AutonomousDatabaseNationalCharacterSets; - autonomousDatabaseVersions: AutonomousDatabaseVersions; - dbSystemShapes: DbSystemShapes; - dnsPrivateViews: DnsPrivateViews; - dnsPrivateZones: DnsPrivateZones; - giVersions: GiVersions; - systemVersions: SystemVersions; - oracleSubscriptions: OracleSubscriptions; - autonomousDatabaseBackups: AutonomousDatabaseBackups; - dbServers: DbServers; - dbNodes: DbNodes; - virtualNetworkAddresses: VirtualNetworkAddresses; -} diff --git a/sdk/oracledatabase/arm-oracledatabase/src/pagingHelper.ts b/sdk/oracledatabase/arm-oracledatabase/src/pagingHelper.ts deleted file mode 100644 index 205cccc26592..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/src/pagingHelper.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export interface PageInfo { - continuationToken?: string; -} - -const pageMap = new WeakMap(); - -/** - * Given the last `.value` produced by the `byPage` iterator, - * returns a continuation token that can be used to begin paging from - * that point later. - * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator. - * @returns The continuation token that can be passed into byPage() during future calls. - */ -export function getContinuationToken(page: unknown): string | undefined { - if (typeof page !== "object" || page === null) { - return undefined; - } - return pageMap.get(page)?.continuationToken; -} - -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined, -): void { - if (typeof page !== "object" || page === null || !continuationToken) { - return; - } - const pageInfo = pageMap.get(page) ?? {}; - pageInfo.continuationToken = continuationToken; - pageMap.set(page, pageInfo); -} diff --git a/sdk/oracledatabase/arm-oracledatabase/test/oracledatabase_operations_test.spec.ts b/sdk/oracledatabase/arm-oracledatabase/test/oracledatabase_operations_test.spec.ts deleted file mode 100644 index 91bf34fef223..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/test/oracledatabase_operations_test.spec.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - Recorder, - RecorderStartOptions, - delay, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { OracleDatabaseManagementClient } from "../src/oracleDatabaseManagementClient"; - -const replaceableVariables: Record = { - SUBSCRIPTION_ID: "88888888-8888-8888-8888-888888888888" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("OracleDatabase test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: OracleDatabaseManagementClient; - let location: string; - let resourceGroup: string; - let resourcename: string; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new OracleDatabaseManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; - resourceGroup = "myjstest"; - resourcename = "resourcetest"; - - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("operations list test", async function () { - const resArray = new Array(); - for await (let item of client.operations.list()) { - resArray.push(item); - } - assert.notEqual(resArray.length, 0); - }); -}) diff --git a/sdk/oracledatabase/arm-oracledatabase/tsconfig.json b/sdk/oracledatabase/arm-oracledatabase/tsconfig.json deleted file mode 100644 index da43f95652b3..000000000000 --- a/sdk/oracledatabase/arm-oracledatabase/tsconfig.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "compilerOptions": { - "module": "es6", - "moduleResolution": "node", - "strict": true, - "target": "es6", - "sourceMap": true, - "declarationMap": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "forceConsistentCasingInFileNames": true, - "lib": [ - "es6", - "dom" - ], - "declaration": true, - "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-oracledatabase": [ - "./src/index" - ] - } - }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" - ], - "exclude": [ - "node_modules" - ] -} \ No newline at end of file diff --git a/sdk/oracledatabase/arm-oracledatabase/tsp-location.yaml b/sdk/oracledatabase/arm-oracledatabase/tsp-location.yaml new file mode 100644 index 000000000000..0ab4ebf2323a --- /dev/null +++ b/sdk/oracledatabase/arm-oracledatabase/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/oracle/Oracle.Database.Management +commit: 002696562ceacd9e46e651253b8f71e24f25dd2f +repo: ../azure-rest-api-specs +additionalDirectories: