diff --git a/cSpell.json b/cSpell.json index bf6503e69ecf..016c6a42c54b 100644 --- a/cSpell.json +++ b/cSpell.json @@ -1332,6 +1332,12 @@ "Unhold", "transferor's" ] + }, + { + "filename": "**/specification/oracle/resource-manager/Oracle.Database/**/*.json", + "words": [ + "systemversionname" + ] } ], "enableFiletypes": [ diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_create.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_create.json new file mode 100644 index 000000000000..be930819f8cc --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_create.json @@ -0,0 +1,71 @@ +{ + "operationId": "AutonomousDatabaseBackups_CreateOrUpdate", + "title": "AutonomousDatabaseBackups_CreateOrUpdate", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "adbbackupid": "1711644130", + "resource": { + "properties": { + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "displayName": "Nightly Backup", + "retentionPeriodInDays": 365 + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", + "properties": { + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, + "dbVersion": "19.6.0.0", + "displayName": "Nightly Backup", + "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", + "isAutomatic": true, + "isRestorable": true, + "lifecycleDetails": "Backup completed successfully", + "lifecycleState": "Active", + "retentionPeriodInDays": 365, + "sizeInTbs": 2, + "timeAvailableTil": "2025-01-09T20:44:09.466Z", + "timeStarted": "2024-01-09T19:44:09.466Z", + "timeEnded": "2024-01-09T20:44:09.466Z", + "backupType": "Full", + "provisioningState": "Succeeded" + } + } + }, + "201": { + "headers": { + "Retry-After": 100 + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/backupdb1", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", + "properties": { + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, + "dbVersion": "19.6.0.0", + "displayName": "Nightly Backup", + "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", + "isAutomatic": true, + "isRestorable": true, + "lifecycleDetails": "Backup completed successfully", + "lifecycleState": "Active", + "retentionPeriodInDays": 365, + "sizeInTbs": 2, + "timeAvailableTil": "2025-01-09T20:44:09.466Z", + "timeStarted": "2024-01-09T19:44:09.466Z", + "timeEnded": "2024-01-09T20:44:09.466Z", + "backupType": "Full", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_delete.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_delete.json new file mode 100644 index 000000000000..57eb4f861cfe --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_delete.json @@ -0,0 +1,20 @@ +{ + "operationId": "AutonomousDatabaseBackups_Delete", + "title": "AutonomousDatabaseBackups_Delete", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "adbbackupid": "1711644130" + }, + "responses": { + "202": { + "headers": { + "Retry-After": 100, + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/1711644130/operationStatus" + } + }, + "204": {} + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_get.json new file mode 100644 index 000000000000..b1fae97c1bd6 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_get.json @@ -0,0 +1,37 @@ +{ + "operationId": "AutonomousDatabaseBackups_Get", + "title": "AutonomousDatabaseBackups_Get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "adbbackupid": "1711644130" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", + "properties": { + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, + "dbVersion": "19.6.0.0", + "displayName": "Nightly Backup", + "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", + "isAutomatic": true, + "isRestorable": true, + "lifecycleDetails": "Backup completed successfully", + "lifecycleState": "Active", + "retentionPeriodInDays": 365, + "sizeInTbs": 2, + "timeAvailableTil": "2025-01-09T20:44:09.466Z", + "timeStarted": "2024-01-09T19:44:09.466Z", + "timeEnded": "2024-01-09T20:44:09.466Z", + "backupType": "Full", + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_listByParent.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_listByParent.json new file mode 100644 index 000000000000..4ebe52f4191c --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_listByParent.json @@ -0,0 +1,40 @@ +{ + "operationId": "AutonomousDatabaseBackups_ListByAutonomousDatabase", + "title": "AutonomousDatabaseBackups_ListByAutonomousDatabase", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", + "properties": { + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, + "dbVersion": "19.6.0.0", + "displayName": "Nightly Backup", + "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", + "isAutomatic": true, + "isRestorable": true, + "lifecycleDetails": "Backup completed successfully", + "lifecycleState": "Active", + "retentionPeriodInDays": 365, + "sizeInTbs": 2, + "timeAvailableTil": "2025-01-09T20:44:09.466Z", + "timeEnded": "2024-01-09T20:44:09.466Z", + "backupType": "Full", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_patch.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_patch.json new file mode 100644 index 000000000000..c1c4a32ec58c --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseBackup_patch.json @@ -0,0 +1,41 @@ +{ + "operationId": "AutonomousDatabaseBackups_Update", + "title": "AutonomousDatabaseBackups_Update", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "adbbackupid": "1711644130", + "properties": {} + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", + "properties": { + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, + "dbVersion": "19.6.0.0", + "displayName": "Nightly Backup", + "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", + "isAutomatic": true, + "isRestorable": true, + "lifecycleDetails": "Backup updated successfully", + "lifecycleState": "Active", + "retentionPeriodInDays": 400, + "sizeInTbs": 2, + "backupType": "Full", + "provisioningState": "Succeeded" + } + } + }, + "202": { + "headers": { + "Retry-After": 100, + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/1711644130/operationStatus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseCharacterSet_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseCharacterSet_get.json new file mode 100644 index 000000000000..48ed1d27bc6a --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseCharacterSet_get.json @@ -0,0 +1,21 @@ +{ + "operationId": "AutonomousDatabaseCharacterSets_get", + "title": "AutonomousDatabaseCharacterSets_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "adbscharsetname": "DATABASE" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseCharacterSets/DATABASE", + "type": "Oracle.Database/locations/autonomousDatabaseCharacterSets", + "properties": { + "characterSet": "AL32UTF8" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseCharacterSet_listByLocation.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseCharacterSet_listByLocation.json new file mode 100644 index 000000000000..3a2e0bd2ebfb --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseCharacterSet_listByLocation.json @@ -0,0 +1,32 @@ +{ + "operationId": "AutonomousDatabaseCharacterSets_listByLocation", + "title": "AutonomousDatabaseCharacterSets_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseCharacterSets/DATABASE", + "type": "Oracle.Database/locations/autonomousDatabaseCharacterSets", + "properties": { + "characterSet": "AL32UTF8" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseCharacterSets/DATABASE", + "type": "Oracle.Database/locations/autonomousDatabaseCharacterSets", + "properties": { + "characterSet": "UTF8" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseClone_create.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseClone_create.json new file mode 100644 index 000000000000..7046e1177614 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseClone_create.json @@ -0,0 +1,141 @@ +{ + "operationId": "AutonomousDatabases_CreateOrUpdate", + "title": "AutonomousDatabases_CreateOrUpdate_clone", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "resource": { + "properties": { + "dataBaseType": "Clone", + "sourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "cloneType": "Full", + "displayName": "example_autonomous_databasedb1_clone", + "computeModel": "ECPU", + "computeCount": 2, + "dataStorageSizeInTbs": 1, + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "adminPassword": "********", + "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" + }, + "location": "eastus", + "tags": { + "tagK1": "tagV1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1Clone", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "cloneType": "Full", + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Clone", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Succeeded", + "lifecycleDetails": "success", + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "201": { + "headers": { + "Retry-After": 100000000 + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1Clone", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "cloneType": "Full", + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Clone", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Succeeded", + "lifecycleDetails": "success", + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseNationalCharacterSet_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseNationalCharacterSet_get.json new file mode 100644 index 000000000000..f9f6a9fc1db7 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseNationalCharacterSet_get.json @@ -0,0 +1,21 @@ +{ + "operationId": "AutonomousDatabaseNationalCharacterSets_get", + "title": "AutonomousDatabaseNationalCharacterSets_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "adbsncharsetname": "NATIONAL" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseNationalCharacterSets/NATIONAL", + "type": "Oracle.Database/locations/autonomousDatabaseNationalCharacterSets", + "properties": { + "characterSet": "AL16UTF16" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseNationalCharacterSet_listByLocation.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseNationalCharacterSet_listByLocation.json new file mode 100644 index 000000000000..bd21f832616a --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseNationalCharacterSet_listByLocation.json @@ -0,0 +1,25 @@ +{ + "operationId": "AutonomousDatabaseNationalCharacterSets_listByLocation", + "title": "AutonomousDatabaseNationalCharacterSets_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDatabaseNationalCharacterSets/NATIONAL", + "type": "Oracle.Database/locations/autonomousDatabaseNationalCharacterSets", + "properties": { + "characterSet": "AL16UTF16" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseVersion_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseVersion_get.json new file mode 100644 index 000000000000..4af807342ed2 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseVersion_get.json @@ -0,0 +1,21 @@ +{ + "operationId": "AutonomousDatabaseVersions_get", + "title": "AutonomousDatabaseVersions_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "autonomousdbversionsname": "18.4.0.0" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDbVersions/18.4.0.0", + "type": "Oracle.Database/locations/autonomousDbVersions", + "properties": { + "version": "18.4.0.0" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseVersion_listByLocation.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseVersion_listByLocation.json new file mode 100644 index 000000000000..62d77ad126b9 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabaseVersion_listByLocation.json @@ -0,0 +1,25 @@ +{ + "operationId": "AutonomousDatabaseVersions_listByLocation", + "title": "AutonomousDatabaseVersions_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/locations/eastus/autonomousDbVersions/18.4.0.0", + "type": "Oracle.Database/locations/autonomousDbVersions", + "properties": { + "version": "18.4.0.0" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_create.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_create.json new file mode 100644 index 000000000000..18862f95d313 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_create.json @@ -0,0 +1,136 @@ +{ + "operationId": "AutonomousDatabases_CreateOrUpdate", + "title": "AutonomousDatabases_CreateOrUpdate", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "resource": { + "properties": { + "dataBaseType": "Regular", + "displayName": "example_autonomous_databasedb1", + "computeModel": "ECPU", + "computeCount": 2, + "dataStorageSizeInTbs": 1, + "adminPassword": "********", + "dbVersion": "18.4.0.0", + "characterSet": "AL32UTF8", + "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" + }, + "location": "eastus", + "tags": { + "tagK1": "tagV1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Succeeded", + "lifecycleDetails": "success", + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "201": { + "headers": { + "Retry-After": 100000000 + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Succeeded", + "lifecycleDetails": "success", + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_delete.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_delete.json new file mode 100644 index 000000000000..75a2a168ed15 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_delete.json @@ -0,0 +1,19 @@ +{ + "operationId": "AutonomousDatabases_delete", + "title": "AutonomousDatabases_delete", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1" + }, + "responses": { + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + }, + "204": {} + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_failover.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_failover.json new file mode 100644 index 000000000000..6372bac80b72 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_failover.json @@ -0,0 +1,90 @@ +{ + "operationId": "AutonomousDatabases_Failover", + "title": "AutonomousDatabases_Failover", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "body": { + "peerDbId": "peerDbId" + }, + "tags": { + "tagK1": "tagV1" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "failedDataRecoveryInSeconds": null, + "isLocalDataGuardEnabled": true, + "timeLocalDataGuardEnabled": "2024-02-28T19:03:43.714Z", + "localDisasterRecoveryType": "Adg", + "localAdgAutoFailoverMaxDataLossLimit": 300, + "role": "Primary", + "peerDbIds": null, + "localStandbyDb": { + "lagTimeInSeconds": null, + "lifecycleDetails": null, + "lifecycleState": "RoleChangeInProgress", + "timeDataGuardRoleChanged": null, + "timeDisasterRecoveryRoleChanged": null + }, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Updating", + "lifecycleDetails": null, + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Provisioning", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeOfLastFailover": null, + "timeOfLastSwitchover": null, + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_generateWallet.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_generateWallet.json new file mode 100644 index 000000000000..f40c03f51d16 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_generateWallet.json @@ -0,0 +1,25 @@ +{ + "operationId": "AutonomousDatabases_generateWallet", + "title": "AutonomousDatabases_generateWallet", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "body": { + "generateType": "Single", + "isRegional": false, + "password": "********" + }, + "tags": { + "tagK1": "tagV1" + } + }, + "responses": { + "200": { + "body": { + "walletFiles": "testEncodedFiles" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_get.json new file mode 100644 index 000000000000..bbddccbc654a --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_get.json @@ -0,0 +1,63 @@ +{ + "operationId": "AutonomousDatabases_Get", + "title": "AutonomousDatabases_Get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Succeeded", + "lifecycleDetails": "success", + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_listByResourceGroup.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_listByResourceGroup.json new file mode 100644 index 000000000000..286dc9d862b1 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_listByResourceGroup.json @@ -0,0 +1,67 @@ +{ + "operationId": "AutonomousDatabases_listByResourceGroup", + "title": "AutonomousDatabases_listByResourceGroup", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Succeeded", + "lifecycleDetails": "success", + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_listBySubscription.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_listBySubscription.json new file mode 100644 index 000000000000..197d047a6ad5 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_listBySubscription.json @@ -0,0 +1,66 @@ +{ + "operationId": "AutonomousDatabases_listBySubscription", + "title": "AutonomousDatabases_listBySubscription", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Succeeded", + "lifecycleDetails": "success", + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_patch.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_patch.json new file mode 100644 index 000000000000..bb2da07ae025 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_patch.json @@ -0,0 +1,73 @@ +{ + "operationId": "AutonomousDatabases_update", + "title": "AutonomousDatabases_update", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "properties": {}, + "tags": { + "tagK1": "tagV1" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Succeeded", + "lifecycleDetails": "success", + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_restore.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_restore.json new file mode 100644 index 000000000000..6ad6cbccc9e3 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_restore.json @@ -0,0 +1,80 @@ +{ + "operationId": "AutonomousDatabases_Restore", + "title": "AutonomousDatabases_Restore", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "body": { + "timestamp": "2024-04-23T00:00:00.000Z" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "backupRetentionPeriodInDays": 60, + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "RestoreInProgress", + "lifecycleDetails": "", + "nextLongTermBackupTimeStamp": "2024-04-24T21:03:41.000Z", + "longTermBackupSchedule": { + "isDisabled": null, + "repeatCadence": "Weekly", + "retentionPeriodInDays": 365, + "timeOfBackup": "2024-04-21T21:03:41.309Z" + }, + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "202": { + "headers": { + "Retry-After": 100, + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/1711644130/operationStatus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_shrink.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_shrink.json new file mode 100644 index 000000000000..47e5b0aca287 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_shrink.json @@ -0,0 +1,77 @@ +{ + "operationId": "AutonomousDatabase_shrink", + "title": "AutonomousDatabase_shrink", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "backupRetentionPeriodInDays": 90, + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "ScaleInProgress", + "lifecycleDetails": "", + "nextLongTermBackupTimeStamp": "2024-04-24T21:03:41.000Z", + "longTermBackupSchedule": { + "isDisabled": null, + "repeatCadence": "Weekly", + "retentionPeriodInDays": 365, + "timeOfBackup": "2024-04-21T21:03:41.309Z" + }, + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "202": { + "headers": { + "Retry-After": 100, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_switchover.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_switchover.json new file mode 100644 index 000000000000..3d7b2f4e4822 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/autonomousDatabase_switchover.json @@ -0,0 +1,89 @@ +{ + "operationId": "AutonomousDatabases_Switchover", + "title": "AutonomousDatabases_Switchover", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "body": { + "peerDbId": "peerDbId" + }, + "tags": { + "tagK1": "tagV1" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "failedDataRecoveryInSeconds": null, + "isLocalDataGuardEnabled": false, + "localDisasterRecoveryType": "BackupBased", + "localAdgAutoFailoverMaxDataLossLimit": null, + "role": "Primary", + "peerDbIds": null, + "localStandbyDb": { + "lagTimeInSeconds": null, + "lifecycleDetails": null, + "lifecycleState": "RoleChangeInProgress", + "timeDataGuardRoleChanged": null, + "timeDisasterRecoveryRoleChanged": null + }, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "Updating", + "lifecycleDetails": null, + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Provisioning", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeOfLastFailover": null, + "timeOfLastSwitchover": "2024-02-27T18:37:08.069Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_action.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_action.json new file mode 100644 index 000000000000..37863366d8c0 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_action.json @@ -0,0 +1,50 @@ +{ + "operationId": "DbNodes_Action", + "title": "DbNodes_Action", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "dbnodeocid": "ocid1....aaaaaa", + "body": { + "action": "Start" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/dbNodes/ocid1", + "type": "Oracle.Database/cloudVmClusters/dbNodes", + "properties": { + "ocid": "ocid.dbNodes.1", + "backupIpId": "id1", + "backupVnic2Id": "id1", + "backupVnicId": "id1", + "cpuCoreCount": 1000, + "dbNodeStorageSizeInGbs": 500, + "dbServerId": "dbserver1", + "dbSystemId": "db1", + "faultDomain": "domain1", + "hostIpId": "10.0.0.0", + "hostname": "host1", + "provisioningState": "Succeeded", + "maintenanceType": "VmdbRebootMigration", + "memorySizeInGbs": 100, + "softwareStorageSizeInGb": 1000, + "timeCreated": "2023-10-21T13:44:04.924Z", + "timeMaintenanceWindowEnd": "2023-10-21T13:44:04.924Z", + "timeMaintenanceWindowStart": "2023-10-21T13:44:04.924Z", + "vnic2Id": "ocid.vnic.id2", + "vnicId": "ocid.vnic.id1" + } + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_get.json new file mode 100644 index 000000000000..505022eb89aa --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_get.json @@ -0,0 +1,41 @@ +{ + "operationId": "DbNodes_get", + "title": "DbNodes_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "dbnodeocid": "ocid1....aaaaaa" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/dbNodes/ocid1", + "type": "Oracle.Database/cloudVmClusters/dbNodes", + "properties": { + "ocid": "ocid.dbNodes.1", + "backupIpId": "id1", + "backupVnic2Id": "id1", + "backupVnicId": "id1", + "cpuCoreCount": 1000, + "dbNodeStorageSizeInGbs": 500, + "dbServerId": "dbserver1", + "dbSystemId": "db1", + "faultDomain": "domain1", + "hostIpId": "10.0.0.0", + "hostname": "host1", + "lifecycleState": "Available", + "maintenanceType": "VmdbRebootMigration", + "memorySizeInGbs": 100, + "softwareStorageSizeInGb": 1000, + "timeCreated": "2023-10-21T13:44:04.924Z", + "timeMaintenanceWindowEnd": "2023-10-21T13:44:04.924Z", + "timeMaintenanceWindowStart": "2023-10-21T13:44:04.924Z", + "vnic2Id": "ocid.vnic.id2", + "vnicId": "ocid.vnic.id1" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_listByParent.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_listByParent.json new file mode 100644 index 000000000000..8599aa52b6e6 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbNodes_listByParent.json @@ -0,0 +1,45 @@ +{ + "operationId": "DbNodes_listByParent", + "title": "DbNodes_listByParent", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/dbNodes/ocid1", + "type": "Oracle.Database/cloudVmClusters/dbNodes", + "properties": { + "ocid": "ocid.dbNodes.1", + "backupIpId": "id1", + "backupVnic2Id": "id1", + "backupVnicId": "id1", + "cpuCoreCount": 1000, + "dbNodeStorageSizeInGbs": 500, + "dbServerId": "dbserver1", + "dbSystemId": "db1", + "faultDomain": "domain1", + "hostIpId": "10.0.0.0", + "hostname": "host1", + "lifecycleState": "Available", + "maintenanceType": "VmdbRebootMigration", + "memorySizeInGbs": 100, + "softwareStorageSizeInGb": 1000, + "timeCreated": "2023-10-21T13:44:04.924Z", + "timeMaintenanceWindowEnd": "2023-10-21T13:44:04.924Z", + "timeMaintenanceWindowStart": "2023-10-21T13:44:04.924Z", + "vnic2Id": "ocid.vnic.id2", + "vnicId": "ocid.vnic.id1" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbServers_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbServers_get.json new file mode 100644 index 000000000000..3c27e71aad9e --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbServers_get.json @@ -0,0 +1,42 @@ +{ + "operationId": "DbServers_get", + "title": "DbServers_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudexadatainfrastructurename": "infra1", + "dbserverocid": "ocid1....aaaaaa" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1/dbServers/ocid1", + "type": "Oracle.Database/cloudVmClusters/dbServers", + "properties": { + "ocid": "ocid1", + "displayName": "dbserver1", + "compartmentId": "ocid1....aaaa", + "exadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "cpuCoreCount": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 150, + "vmClusterIds": [ + "ocid1..aaaaa" + ], + "dbNodeIds": [ + "ocid1..aaaaa" + ], + "lifecycleState": "Available", + "maxCpuCount": 1000, + "autonomousVmClusterIds": [ + "ocid1..aaaaa" + ], + "autonomousVirtualMachineIds": [ + "ocid1..aaaaa" + ] + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbServers_listByParent.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbServers_listByParent.json new file mode 100644 index 000000000000..9473e254c85b --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbServers_listByParent.json @@ -0,0 +1,46 @@ +{ + "operationId": "DbServers_listByCloudExadataInfrastructure", + "title": "DbServers_listByCloudExadataInfrastructure", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudexadatainfrastructurename": "infra1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1/dbServers/ocid1", + "type": "Oracle.Database/cloudVmClusters/dbServers", + "properties": { + "ocid": "ocid1", + "displayName": "dbserver1", + "compartmentId": "ocid1....aaaa", + "exadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "cpuCoreCount": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 150, + "vmClusterIds": [ + "ocid1..aaaaa" + ], + "dbNodeIds": [ + "ocid1..aaaaa" + ], + "lifecycleState": "Available", + "maxCpuCount": 1000, + "autonomousVmClusterIds": [ + "ocid1..aaaaa" + ], + "autonomousVirtualMachineIds": [ + "ocid1..aaaaa" + ] + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbSystemShapes_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbSystemShapes_get.json new file mode 100644 index 000000000000..bb0bc5a7cdfc --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbSystemShapes_get.json @@ -0,0 +1,40 @@ +{ + "operationId": "DbSystemShapes_get", + "title": "DbSystemShapes_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "dbsystemshapename": "EXADATA.X9M" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dbSystemShapes/EXADATA.X9M", + "type": "Oracle.Database/locations/dbSystemShapes", + "properties": { + "shapeFamily": "EXADATA", + "availableCoreCount": 100, + "minimumCoreCount": 1, + "runtimeMinimumCoreCount": 1, + "coreCountIncrement": 1, + "minStorageCount": 0, + "maxStorageCount": 100, + "availableDataStoragePerServerInTbs": 100, + "availableMemoryPerNodeInGbs": 10, + "availableDbNodePerNodeInGbs": 10, + "minCoreCountPerNode": 0, + "availableMemoryInGbs": 10, + "minMemoryPerNodeInGbs": 0, + "availableDbNodeStorageInGbs": 10, + "minDbNodeStoragePerNodeInGbs": 0, + "availableDataStorageInTbs": 10, + "minDataStorageInTbs": 0, + "minimumNodeCount": 0, + "maximumNodeCount": 1000, + "availableCoreCountPerNode": 1000 + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbSystemShapes_listByLocation.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbSystemShapes_listByLocation.json new file mode 100644 index 000000000000..24d821e42829 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dbSystemShapes_listByLocation.json @@ -0,0 +1,44 @@ +{ + "operationId": "DbSystemShapes_listByLocation", + "title": "DbSystemShapes_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dbSystemShapes/EXADATA.X9M", + "type": "Oracle.Database/locations/dbSystemShapes", + "properties": { + "shapeFamily": "EXADATA", + "availableCoreCount": 100, + "minimumCoreCount": 1, + "runtimeMinimumCoreCount": 1, + "coreCountIncrement": 1, + "minStorageCount": 0, + "maxStorageCount": 100, + "availableDataStoragePerServerInTbs": 100, + "availableMemoryPerNodeInGbs": 10, + "availableDbNodePerNodeInGbs": 10, + "minCoreCountPerNode": 0, + "availableMemoryInGbs": 10, + "minMemoryPerNodeInGbs": 0, + "availableDbNodeStorageInGbs": 10, + "minDbNodeStoragePerNodeInGbs": 0, + "availableDataStorageInTbs": 10, + "minDataStorageInTbs": 0, + "minimumNodeCount": 0, + "maximumNodeCount": 1000, + "availableCoreCountPerNode": 1000 + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateViews_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateViews_get.json new file mode 100644 index 000000000000..f0be492fc661 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateViews_get.json @@ -0,0 +1,27 @@ +{ + "operationId": "DnsPrivateViews_get", + "title": "DnsPrivateViews_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "dnsprivateviewocid": "ocid1....aaaaaa" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateViews/ocid1....aaaaaa", + "type": "Oracle.Database/locations/dnsPrivateViews", + "properties": { + "ocid": "ocid1....aaaaaa", + "displayName": "example-dns-private-view", + "isProtected": false, + "lifecycleState": "Active", + "self": "https://api.example.com/your-dns-private-view", + "timeCreated": "2023-10-26T12:34:56Z", + "timeUpdated": "2023-10-26T14:00:00Z" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateViews_listByLocation.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateViews_listByLocation.json new file mode 100644 index 000000000000..809a370e806b --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateViews_listByLocation.json @@ -0,0 +1,44 @@ +{ + "operationId": "DnsPrivateViews_listByLocation", + "title": "DnsPrivateViews_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateViews/ocid1....aaaaaa", + "type": "Oracle.Database/locations/dnsPrivateViews", + "properties": { + "ocid": "ocid1....aaaaaa", + "displayName": "example-dns-private-view1", + "isProtected": false, + "lifecycleState": "Active", + "self": "https://api.example.com/view1", + "timeCreated": "2023-10-26T12:34:56Z", + "timeUpdated": "2023-10-26T14:00:00Z" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateViews/ocid1....aaaaab", + "type": "Oracle.Database/locations/dnsPrivateViews", + "properties": { + "ocid": "ocid1....aaaaab", + "displayName": "example-dns-private-view2", + "isProtected": true, + "lifecycleState": "Creating", + "self": "https://api.example.com/view2", + "timeCreated": "2023-10-27T09:45:00Z", + "timeUpdated": "2023-10-27T10:30:00Z" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateZones_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateZones_get.json new file mode 100644 index 000000000000..d79d214d7b2a --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateZones_get.json @@ -0,0 +1,29 @@ +{ + "operationId": "DnsPrivateZones_get", + "title": "DnsPrivateZones_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "dnsprivatezonename": "example-dns-private-zone" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateZones/example-dns-private-zone", + "type": "Oracle.Database/locations/dnsPrivateZones", + "properties": { + "ocid": "your-zone-id", + "isProtected": false, + "lifecycleState": "Active", + "self": "https://api.example.com/your-dns-private-zone", + "serial": 12345, + "version": "1.0.0.0", + "viewId": "your-view-id", + "zoneType": "Primary", + "timeCreated": "2023-10-26T12:34:56Z" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateZones_listByLocation.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateZones_listByLocation.json new file mode 100644 index 000000000000..f0909b5e1841 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/dnsPrivateZones_listByLocation.json @@ -0,0 +1,48 @@ +{ + "operationId": "DnsPrivateZones_listByLocation", + "title": "DnsPrivateZones_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateZones/zone1", + "type": "Oracle.Database/locations/dnsPrivateZones", + "properties": { + "ocid": "zone-id-1", + "isProtected": false, + "lifecycleState": "Active", + "self": "https://api.example.com/zone1", + "serial": 12345, + "version": "1.0.0.0", + "viewId": "view-id-1", + "zoneType": "Primary", + "timeCreated": "2023-10-26T12:34:56Z" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/dnsPrivateZones/zone2", + "type": "Oracle.Database/locations/dnsPrivateZones", + "properties": { + "ocid": "zone-id-2", + "isProtected": true, + "lifecycleState": "Creating", + "self": "https://api.example.com/zone2", + "serial": 54321, + "version": "2.0.0.0", + "viewId": "view-id-2", + "zoneType": "Secondary", + "timeCreated": "2023-10-27T09:45:00Z" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_addStorageCapacity.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_addStorageCapacity.json new file mode 100644 index 000000000000..3d04a8453244 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_addStorageCapacity.json @@ -0,0 +1,95 @@ +{ + "operationId": "CloudExadataInfrastructures_addStorageCapacity", + "title": "CloudExadataInfrastructures_addStorageCapacity", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudexadatainfrastructurename": "infra1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "type": "Oracle.Database/cloudExadataInfrastructures", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaaaa", + "computeCount": 100, + "storageCount": 10, + "totalStorageSizeInGbs": 1000, + "availableStorageSizeInGbs": 1000, + "timeCreated": "2023-02-01T01:01:00", + "lifecycleDetails": "none", + "maintenanceWindow": { + "preference": "NoPreference", + "months": [ + { + "name": "January" + } + ], + "weeksOfMonth": [ + 0 + ], + "daysOfWeek": [ + { + "name": "Monday" + } + ], + "hoursOfDay": [ + 0 + ], + "leadTimeInWeeks": 0, + "patchingMode": "Rolling", + "customActionTimeoutInMins": 120, + "isCustomActionTimeoutEnabled": true, + "isMonthlyPatchingEnabled": true + }, + "estimatedPatchingTime": { + "estimatedDbServerPatchingTime": 3000, + "estimatedNetworkSwitchesPatchingTime": 3000, + "estimatedStorageServerPatchingTime": 3000, + "totalEstimatedPatchingTime": 3000 + }, + "customerContacts": [ + { + "email": "noreply@oracle.com" + } + ], + "provisioningState": "Succeeded", + "shape": "EXADATA.X9M", + "ociUrl": "https://url", + "cpuCount": 10, + "maxCpuCount": 100, + "memorySizeInGbs": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 10, + "maxDbNodeStorageSizeInGbs": 10, + "dataStorageSizeInTbs": 10, + "maxDataStorageInTbs": 1000, + "dbServerVersion": "19.0.0.0", + "storageServerVersion": "0.0", + "activatedStorageCount": 1, + "additionalStorageCount": 1, + "displayName": "infra 1", + "lastMaintenanceRunId": "ocid1..aaaaa", + "nextMaintenanceRunId": "ocid1..aaaaaa", + "monthlyDbServerVersion": "aaaa", + "monthlyStorageServerVersion": "aaaa" + }, + "zones": [ + "1" + ] + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_create.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_create.json new file mode 100644 index 000000000000..f7699d0b8f66 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_create.json @@ -0,0 +1,184 @@ +{ + "operationId": "CloudExadataInfrastructures_createOrUpdate", + "title": "CloudExadataInfrastructures_createOrUpdate", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudexadatainfrastructurename": "infra1", + "resource": { + "properties": { + "computeCount": 100, + "storageCount": 10, + "shape": "EXADATA.X9M", + "displayName": "infra 1" + }, + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "zones": [ + "1" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "type": "Oracle.Database/cloudExadataInfrastructures", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaaaa", + "computeCount": 100, + "storageCount": 10, + "totalStorageSizeInGbs": 1000, + "availableStorageSizeInGbs": 1000, + "timeCreated": "2023-02-01T01:01:00", + "lifecycleDetails": "none", + "maintenanceWindow": { + "preference": "NoPreference", + "months": [ + { + "name": "January" + } + ], + "weeksOfMonth": [ + 0 + ], + "daysOfWeek": [ + { + "name": "Monday" + } + ], + "hoursOfDay": [ + 0 + ], + "leadTimeInWeeks": 0, + "patchingMode": "Rolling", + "customActionTimeoutInMins": 120, + "isCustomActionTimeoutEnabled": true, + "isMonthlyPatchingEnabled": true + }, + "estimatedPatchingTime": { + "estimatedDbServerPatchingTime": 3000, + "estimatedNetworkSwitchesPatchingTime": 3000, + "estimatedStorageServerPatchingTime": 3000, + "totalEstimatedPatchingTime": 3000 + }, + "customerContacts": [ + { + "email": "noreply@oracle.com" + } + ], + "provisioningState": "Succeeded", + "shape": "EXADATA.X9M", + "ociUrl": "https://url", + "cpuCount": 10, + "maxCpuCount": 100, + "memorySizeInGbs": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 10, + "maxDbNodeStorageSizeInGbs": 10, + "dataStorageSizeInTbs": 10, + "maxDataStorageInTbs": 1000, + "dbServerVersion": "19.0.0.0", + "storageServerVersion": "0.0", + "activatedStorageCount": 1, + "additionalStorageCount": 1, + "displayName": "infra 1", + "lastMaintenanceRunId": "ocid1..aaaaa", + "nextMaintenanceRunId": "ocid1..aaaaaa", + "monthlyDbServerVersion": "aaaa", + "monthlyStorageServerVersion": "aaaa" + }, + "zones": [ + "1" + ] + } + }, + "201": { + "headers": { + "Retry-After": 100000000 + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "type": "Oracle.Database/cloudExadataInfrastructures", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaaaa", + "computeCount": 100, + "storageCount": 10, + "totalStorageSizeInGbs": 1000, + "availableStorageSizeInGbs": 1000, + "timeCreated": "2023-02-01T01:01:00", + "lifecycleDetails": "none", + "maintenanceWindow": { + "preference": "NoPreference", + "months": [ + { + "name": "January" + } + ], + "weeksOfMonth": [ + 0 + ], + "daysOfWeek": [ + { + "name": "Monday" + } + ], + "hoursOfDay": [ + 0 + ], + "leadTimeInWeeks": 0, + "patchingMode": "Rolling", + "customActionTimeoutInMins": 120, + "isCustomActionTimeoutEnabled": true, + "isMonthlyPatchingEnabled": true + }, + "estimatedPatchingTime": { + "estimatedDbServerPatchingTime": 3000, + "estimatedNetworkSwitchesPatchingTime": 3000, + "estimatedStorageServerPatchingTime": 3000, + "totalEstimatedPatchingTime": 3000 + }, + "customerContacts": [ + { + "email": "noreply@oracle.com" + } + ], + "provisioningState": "Succeeded", + "shape": "EXADATA.X9M", + "ociUrl": "https://url", + "cpuCount": 10, + "maxCpuCount": 100, + "memorySizeInGbs": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 10, + "maxDbNodeStorageSizeInGbs": 10, + "dataStorageSizeInTbs": 10, + "maxDataStorageInTbs": 1000, + "dbServerVersion": "19.0.0.0", + "storageServerVersion": "0.0", + "activatedStorageCount": 1, + "additionalStorageCount": 1, + "displayName": "infra 1", + "lastMaintenanceRunId": "ocid1..aaaaa", + "nextMaintenanceRunId": "ocid1..aaaaaa", + "monthlyDbServerVersion": "aaaa", + "monthlyStorageServerVersion": "aaaa" + }, + "zones": [ + "1" + ] + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_delete.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_delete.json new file mode 100644 index 000000000000..1a603b9757e7 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_delete.json @@ -0,0 +1,19 @@ +{ + "operationId": "CloudExadataInfrastructures_delete", + "title": "CloudExadataInfrastructures_delete", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudexadatainfrastructurename": "infra1" + }, + "responses": { + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + }, + "204": {} + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_get.json new file mode 100644 index 000000000000..43d9d881581e --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_get.json @@ -0,0 +1,89 @@ +{ + "operationId": "CloudExadataInfrastructures_get", + "title": "CloudExadataInfrastructures_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudexadatainfrastructurename": "infra1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "type": "Oracle.Database/cloudExadataInfrastructures", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaaaa", + "computeCount": 100, + "storageCount": 10, + "totalStorageSizeInGbs": 1000, + "availableStorageSizeInGbs": 1000, + "timeCreated": "2023-02-01T01:01:00", + "lifecycleDetails": "none", + "maintenanceWindow": { + "preference": "NoPreference", + "months": [ + { + "name": "January" + } + ], + "weeksOfMonth": [ + 0 + ], + "daysOfWeek": [ + { + "name": "Monday" + } + ], + "hoursOfDay": [ + 0 + ], + "leadTimeInWeeks": 0, + "patchingMode": "Rolling", + "customActionTimeoutInMins": 120, + "isCustomActionTimeoutEnabled": true, + "isMonthlyPatchingEnabled": true + }, + "estimatedPatchingTime": { + "estimatedDbServerPatchingTime": 3000, + "estimatedNetworkSwitchesPatchingTime": 3000, + "estimatedStorageServerPatchingTime": 3000, + "totalEstimatedPatchingTime": 3000 + }, + "customerContacts": [ + { + "email": "noreply@oracle.com" + } + ], + "provisioningState": "Succeeded", + "shape": "EXADATA.X9M", + "ociUrl": "https://url", + "cpuCount": 10, + "maxCpuCount": 100, + "memorySizeInGbs": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 10, + "maxDbNodeStorageSizeInGbs": 10, + "dataStorageSizeInTbs": 10, + "maxDataStorageInTbs": 1000, + "dbServerVersion": "19.0.0.0", + "storageServerVersion": "0.0", + "activatedStorageCount": 1, + "additionalStorageCount": 1, + "displayName": "infra 1", + "lastMaintenanceRunId": "ocid1..aaaaa", + "nextMaintenanceRunId": "ocid1..aaaaaa", + "monthlyDbServerVersion": "aaaa", + "monthlyStorageServerVersion": "aaaa" + }, + "zones": [ + "1" + ] + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_listByResourceGroup.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_listByResourceGroup.json new file mode 100644 index 000000000000..26bf4cbe7adf --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_listByResourceGroup.json @@ -0,0 +1,93 @@ +{ + "operationId": "CloudExadataInfrastructures_listByResourceGroup", + "title": "CloudExadataInfrastructures_listByResourceGroup", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "type": "Oracle.Database/cloudExadataInfrastructures", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaaaa", + "computeCount": 100, + "storageCount": 10, + "totalStorageSizeInGbs": 1000, + "availableStorageSizeInGbs": 1000, + "timeCreated": "2023-02-01T01:01:00", + "lifecycleDetails": "none", + "maintenanceWindow": { + "preference": "NoPreference", + "months": [ + { + "name": "January" + } + ], + "weeksOfMonth": [ + 0 + ], + "daysOfWeek": [ + { + "name": "Monday" + } + ], + "hoursOfDay": [ + 0 + ], + "leadTimeInWeeks": 0, + "patchingMode": "Rolling", + "customActionTimeoutInMins": 120, + "isCustomActionTimeoutEnabled": true, + "isMonthlyPatchingEnabled": true + }, + "estimatedPatchingTime": { + "estimatedDbServerPatchingTime": 3000, + "estimatedNetworkSwitchesPatchingTime": 3000, + "estimatedStorageServerPatchingTime": 3000, + "totalEstimatedPatchingTime": 3000 + }, + "customerContacts": [ + { + "email": "noreply@oracle.com" + } + ], + "provisioningState": "Succeeded", + "shape": "EXADATA.X9M", + "ociUrl": "https://url", + "cpuCount": 10, + "maxCpuCount": 100, + "memorySizeInGbs": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 10, + "maxDbNodeStorageSizeInGbs": 10, + "dataStorageSizeInTbs": 10, + "maxDataStorageInTbs": 1000, + "dbServerVersion": "19.0.0.0", + "storageServerVersion": "0.0", + "activatedStorageCount": 1, + "additionalStorageCount": 1, + "displayName": "infra 1", + "lastMaintenanceRunId": "ocid1..aaaaa", + "nextMaintenanceRunId": "ocid1..aaaaaa", + "monthlyDbServerVersion": "aaaa", + "monthlyStorageServerVersion": "aaaa" + }, + "zones": [ + "1" + ] + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_listBySubscription.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_listBySubscription.json new file mode 100644 index 000000000000..e734d16fcdee --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_listBySubscription.json @@ -0,0 +1,92 @@ +{ + "operationId": "CloudExadataInfrastructures_listBySubscription", + "title": "CloudExadataInfrastructures_listBySubscription", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "type": "Oracle.Database/cloudExadataInfrastructures", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaaaa", + "computeCount": 100, + "storageCount": 10, + "totalStorageSizeInGbs": 1000, + "availableStorageSizeInGbs": 1000, + "timeCreated": "2023-02-01T01:01:00", + "lifecycleDetails": "none", + "maintenanceWindow": { + "preference": "NoPreference", + "months": [ + { + "name": "January" + } + ], + "weeksOfMonth": [ + 0 + ], + "daysOfWeek": [ + { + "name": "Monday" + } + ], + "hoursOfDay": [ + 0 + ], + "leadTimeInWeeks": 0, + "patchingMode": "Rolling", + "customActionTimeoutInMins": 120, + "isCustomActionTimeoutEnabled": true, + "isMonthlyPatchingEnabled": true + }, + "estimatedPatchingTime": { + "estimatedDbServerPatchingTime": 3000, + "estimatedNetworkSwitchesPatchingTime": 3000, + "estimatedStorageServerPatchingTime": 3000, + "totalEstimatedPatchingTime": 3000 + }, + "customerContacts": [ + { + "email": "noreply@oracle.com" + } + ], + "provisioningState": "Succeeded", + "shape": "EXADATA.X9M", + "ociUrl": "https://url", + "cpuCount": 10, + "maxCpuCount": 100, + "memorySizeInGbs": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 10, + "maxDbNodeStorageSizeInGbs": 10, + "dataStorageSizeInTbs": 10, + "maxDataStorageInTbs": 1000, + "dbServerVersion": "19.0.0.0", + "storageServerVersion": "0.0", + "activatedStorageCount": 1, + "additionalStorageCount": 1, + "displayName": "infra 1", + "lastMaintenanceRunId": "ocid1..aaaaa", + "nextMaintenanceRunId": "ocid1..aaaaaa", + "monthlyDbServerVersion": "aaaa", + "monthlyStorageServerVersion": "aaaa" + }, + "zones": [ + "1" + ] + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_patch.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_patch.json new file mode 100644 index 000000000000..0d416f6de7e5 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/exaInfra_patch.json @@ -0,0 +1,102 @@ +{ + "operationId": "CloudExadataInfrastructures_update", + "title": "CloudExadataInfrastructures_update", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudexadatainfrastructurename": "infra1", + "properties": {}, + "tags": { + "tagK1": "tagV1" + }, + "zones": [ + "1" + ] + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "type": "Oracle.Database/cloudExadataInfrastructures", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaaaa", + "computeCount": 100, + "storageCount": 10, + "totalStorageSizeInGbs": 1000, + "availableStorageSizeInGbs": 1000, + "timeCreated": "2023-02-01T01:01:00", + "lifecycleDetails": "none", + "maintenanceWindow": { + "preference": "NoPreference", + "months": [ + { + "name": "January" + } + ], + "weeksOfMonth": [ + 0 + ], + "daysOfWeek": [ + { + "name": "Monday" + } + ], + "hoursOfDay": [ + 0 + ], + "leadTimeInWeeks": 0, + "patchingMode": "Rolling", + "customActionTimeoutInMins": 120, + "isCustomActionTimeoutEnabled": true, + "isMonthlyPatchingEnabled": true + }, + "estimatedPatchingTime": { + "estimatedDbServerPatchingTime": 3000, + "estimatedNetworkSwitchesPatchingTime": 3000, + "estimatedStorageServerPatchingTime": 3000, + "totalEstimatedPatchingTime": 3000 + }, + "customerContacts": [ + { + "email": "noreply@oracle.com" + } + ], + "provisioningState": "Succeeded", + "shape": "EXADATA.X9M", + "ociUrl": "https://url", + "cpuCount": 10, + "maxCpuCount": 100, + "memorySizeInGbs": 100, + "maxMemoryInGbs": 1000, + "dbNodeStorageSizeInGbs": 10, + "maxDbNodeStorageSizeInGbs": 10, + "dataStorageSizeInTbs": 10, + "maxDataStorageInTbs": 1000, + "dbServerVersion": "19.0.0.0", + "storageServerVersion": "0.0", + "activatedStorageCount": 1, + "additionalStorageCount": 1, + "displayName": "infra 1", + "lastMaintenanceRunId": "ocid1..aaaaa", + "nextMaintenanceRunId": "ocid1..aaaaaa", + "monthlyDbServerVersion": "aaaa", + "monthlyStorageServerVersion": "aaaa" + }, + "zones": [ + "1" + ] + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/giVersions_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/giVersions_get.json new file mode 100644 index 000000000000..6179e07cd607 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/giVersions_get.json @@ -0,0 +1,21 @@ +{ + "operationId": "GiVersions_get", + "title": "GiVersions_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "giversionname": "19.0.0.0" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/giVersions/19.0.0.0", + "type": "Oracle.Database/locations/giVersions", + "properties": { + "version": "19.0.0.0" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/giVersions_listByLocation.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/giVersions_listByLocation.json new file mode 100644 index 000000000000..3fa00083d048 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/giVersions_listByLocation.json @@ -0,0 +1,25 @@ +{ + "operationId": "GiVersions_listByLocation", + "title": "GiVersions_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/giVersions/19.0.0.0", + "type": "Oracle.Database/locations/giVersions", + "properties": { + "version": "19.0.0.0" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/operations_list.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/operations_list.json new file mode 100644 index 000000000000..1b7dcaa8a17a --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/operations_list.json @@ -0,0 +1,25 @@ +{ + "operationId": "Operations_list", + "title": "Operations_list", + "parameters": { + "api-version": "2023-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Oracle.Database/cloudExadataInfrastructures/Read", + "isDataAction": false, + "display": { + "provider": "Oracle.Database", + "resource": "cloudExadataInfrastructures", + "operation": "Get/list Exadata Infrastructure resources", + "description": "Reads Exadata Infrastructure" + } + } + ] + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_create.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_create.json new file mode 100644 index 000000000000..9c2c825bbd1a --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_create.json @@ -0,0 +1,56 @@ +{ + "operationId": "OracleSubscriptions_createOrUpdate", + "title": "OracleSubscriptions_createOrUpdate", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resource": { + "properties": {}, + "plan": { + "name": "plan1", + "publisher": "publisher1", + "product": "product1", + "promotionCode": "none", + "version": "alpha" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default", + "type": "Oracle.Database/oracleSubscriptions", + "properties": { + "provisioningState": "Succeeded", + "saasSubscriptionId": "saas1", + "cloudAccountId": "ocid1..aaaaaa", + "cloudAccountState": "Pending" + }, + "plan": { + "name": "plan1", + "publisher": "publisher1", + "product": "product1", + "promotionCode": "none", + "version": "alpha" + } + } + }, + "201": { + "headers": { + "Retry-After": 100000000 + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default", + "type": "Oracle.Database/oracleSubscriptions", + "properties": {}, + "plan": { + "name": "plan1", + "publisher": "publisher1", + "product": "product1", + "promotionCode": "none", + "version": "alpha" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_delete.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_delete.json new file mode 100644 index 000000000000..8cbd3f41ad03 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_delete.json @@ -0,0 +1,17 @@ +{ + "operationId": "OracleSubscriptions_delete", + "title": "OracleSubscriptions_delete", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + }, + "204": {} + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_get.json new file mode 100644 index 000000000000..2e9ab0c177bf --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_get.json @@ -0,0 +1,29 @@ +{ + "operationId": "OracleSubscriptions_get", + "title": "OracleSubscriptions_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default", + "type": "Oracle.Database/oracleSubscriptions", + "properties": { + "provisioningState": "Succeeded", + "saasSubscriptionId": "saas1", + "cloudAccountId": "ocid1..aaaaaa", + "cloudAccountState": "Pending" + }, + "plan": { + "name": "plan1", + "publisher": "publisher1", + "product": "product1", + "promotionCode": "none", + "version": "alpha" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listActivationLinks.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listActivationLinks.json new file mode 100644 index 000000000000..0a64b6a1434e --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listActivationLinks.json @@ -0,0 +1,22 @@ +{ + "operationId": "OracleSubscriptions_listActivationLinks", + "title": "OracleSubscriptions_listActivationLinks", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "newCloudAccountActivationLink": "https://new-tenancy-activation-link", + "existingCloudAccountActivationLink": "https://existing-tenancy-activation-link" + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listBySubscription.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listBySubscription.json new file mode 100644 index 000000000000..241c0939cd74 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listBySubscription.json @@ -0,0 +1,34 @@ +{ + "operationId": "OracleSubscriptions_listBySubscription", + "title": "OracleSubscriptions_listBySubscription", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default", + "type": "Oracle.Database/oracleSubscriptions", + "properties": { + "provisioningState": "Succeeded", + "saasSubscriptionId": "saas1", + "cloudAccountId": "ocid1..aaaaaa", + "cloudAccountState": "Pending" + }, + "plan": { + "name": "plan1", + "publisher": "publisher1", + "product": "product1", + "promotionCode": "none", + "version": "alpha" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listCloudAccountDetails.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listCloudAccountDetails.json new file mode 100644 index 000000000000..25cb82413da0 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listCloudAccountDetails.json @@ -0,0 +1,22 @@ +{ + "operationId": "OracleSubscriptions_listCloudAccountDetails", + "title": "OracleSubscriptions_listCloudAccountDetails", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "cloudAccountName": "Cloud Account", + "cloudAccountHomeRegion": "East US" + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listSaasSubscriptionDetails.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listSaasSubscriptionDetails.json new file mode 100644 index 000000000000..a4a6c030dbf2 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_listSaasSubscriptionDetails.json @@ -0,0 +1,32 @@ +{ + "operationId": "OracleSubscriptions_listSaasSubscriptionDetails", + "title": "OracleSubscriptions_listSaasSubscriptionDetails", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "id": "1234567890", + "subscriptionName": "Oracle", + "timeCreated": "2022-03-07T00:00:00Z", + "offerId": "offer1", + "planId": "silver", + "saasSubscriptionStatus": "PendingFulfillmentStart", + "publisherId": "Oracle", + "purchaserEmailId": "test@test.com", + "purchaserTenantId": "1234567890", + "termUnit": "P1M", + "isAutoRenew": true, + "isFreeTrial": false + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_patch.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_patch.json new file mode 100644 index 000000000000..bb6419ded628 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/oracleSubscriptions_patch.json @@ -0,0 +1,43 @@ +{ + "operationId": "OracleSubscriptions_update", + "title": "OracleSubscriptions_update", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "properties": {}, + "plan": { + "name": "plan1", + "publisher": "publisher1", + "product": "product1", + "promotionCode": "none", + "version": "alpha" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/oracleSubscriptions/default", + "type": "Oracle.Database/oracleSubscriptions", + "properties": { + "provisioningState": "Succeeded", + "saasSubscriptionId": "saas1", + "cloudAccountId": "ocid1..aaaaaa", + "cloudAccountState": "Pending" + }, + "plan": { + "name": "plan1", + "publisher": "publisher1", + "product": "product1", + "promotionCode": "none", + "version": "alpha" + } + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/systemVersions_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/systemVersions_get.json new file mode 100644 index 000000000000..c4313c80653d --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/systemVersions_get.json @@ -0,0 +1,20 @@ +{ + "operationId": "SystemVersions_Get", + "title": "systemVersions_listSystemVersions", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "systemversionname": "22.x" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/systemVersion/22.1.7.0.0.230113", + "properties": { + "systemVersion": "22.1.7.0.0.230113" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/systemVersions_listByLocation.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/systemVersions_listByLocation.json new file mode 100644 index 000000000000..82998fab4b3a --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/systemVersions_listByLocation.json @@ -0,0 +1,24 @@ +{ + "operationId": "SystemVersions_ListByLocation", + "title": "systemVersions_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/systemVersion/22.1.7.0.0.230113", + "properties": { + "systemVersion": "22.1.7.0.0.230113" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_create.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_create.json new file mode 100644 index 000000000000..18fb92433686 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_create.json @@ -0,0 +1,48 @@ +{ + "operationId": "VirtualNetworkAddresses_createOrUpdate", + "title": "VirtualNetworkAddresses_createOrUpdate", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "virtualnetworkaddressname": "hostname1", + "resource": { + "properties": { + "ipAddress": "192.168.0.1", + "vmOcid": "ocid1..aaaa" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/virtualNetworkAddresses/hostname1", + "type": "Oracle.Database/cloudVmClusters/virtualNetworkAddresses", + "properties": { + "ipAddress": "192.168.0.1", + "vmOcid": "ocid1..aaaa", + "ocid": "ocid1..aaaaaa", + "domain": "domain1", + "lifecycleDetails": "success", + "provisioningState": "Succeeded", + "lifecycleState": "Available", + "timeAssigned": "2023-10-22T00:27:02.119Z" + } + } + }, + "201": { + "headers": { + "Retry-After": 100000000 + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "type": "Oracle.Database/cloudExadataInfrastructures", + "properties": { + "ipAddress": "192.168.0.1", + "vmOcid": "ocid1..aaaa" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_delete.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_delete.json new file mode 100644 index 000000000000..0d618107426e --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_delete.json @@ -0,0 +1,20 @@ +{ + "operationId": "VirtualNetworkAddresses_delete", + "title": "VirtualNetworkAddresses_delete", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "virtualnetworkaddressname": "hostname1" + }, + "responses": { + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + }, + "204": {} + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_get.json new file mode 100644 index 000000000000..d9ddb1b2ee39 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_get.json @@ -0,0 +1,29 @@ +{ + "operationId": "VirtualNetworkAddresses_get", + "title": "VirtualNetworkAddresses_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "virtualnetworkaddressname": "hostname1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/virtualNetworkAddresses/hostname1", + "type": "Oracle.Database/cloudVmClusters/virtualNetworkAddresses", + "properties": { + "ipAddress": "192.168.0.1", + "vmOcid": "ocid1..aaaa", + "ocid": "ocid1..aaaaaa", + "domain": "domain1", + "lifecycleDetails": "success", + "provisioningState": "Succeeded", + "lifecycleState": "Available", + "timeAssigned": "2023-10-22T00:27:02.119Z" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_listByParent.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_listByParent.json new file mode 100644 index 000000000000..72a9e47fa4dc --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/virtualNetworkAddresses_listByParent.json @@ -0,0 +1,33 @@ +{ + "operationId": "VirtualNetworkAddresses_listByCloudVmCluster", + "title": "VirtualNetworkAddresses_listByCloudVmCluster", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1/virtualNetworkAddresses/hostname1", + "type": "Oracle.Database/cloudVmClusters/virtualNetworkAddresses", + "properties": { + "ipAddress": "192.168.0.1", + "vmOcid": "ocid1..aaaa", + "ocid": "ocid1..aaaaaa", + "domain": "domain1", + "lifecycleDetails": "success", + "provisioningState": "Succeeded", + "lifecycleState": "Available", + "timeAssigned": "2023-10-22T00:27:02.119Z" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_addVms.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_addVms.json new file mode 100644 index 000000000000..a57af269ee8b --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_addVms.json @@ -0,0 +1,102 @@ +{ + "operationId": "CloudVmClusters_addVms", + "title": "CloudVmClusters_addVms", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "body": { + "dbServers": [ + "ocid1..aaaa", + "ocid1..aaaaaa" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1", + "type": "Oracle.Database/cloudVmClusters", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaa", + "listenerPort": 1050, + "nodeCount": 100, + "storageSizeInGbs": 1000, + "dataStorageSizeInTbs": 10, + "dbNodeStorageSizeInGbs": 100, + "memorySizeInGbs": 1000, + "timeCreated": "2023-10-22T02:18:35.683Z", + "lifecycleDetails": "success", + "timeZone": "UTC", + "zoneId": "ocid1..aaaa", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 10, + "ocpuCount": 100, + "clusterName": "cluster1", + "dataStoragePercentage": 80, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "systemVersion": "v1", + "diskRedundancy": "High", + "scanIpIds": [ + "10.0.0.1" + ], + "vipIds": [ + "10.0.1.3" + ], + "scanDnsName": "dbdns1", + "scanDnsRecordId": "scandns1", + "shape": "EXADATA.X9M", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "iormConfigCache": { + "dbPlans": [ + { + "dbName": "db1", + "flashCacheLimit": "none", + "share": 32 + } + ], + "lifecycleDetails": "Disabled", + "lifecycleState": "Disabled", + "objective": "LowLatency" + }, + "lastUpdateHistoryEntryId": "none", + "dbServers": [ + "ocid1..aaaa" + ], + "compartmentId": "ocid1..aaaaaa", + "subnetOcid": "ocid1..aaaaaa" + } + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_create.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_create.json new file mode 100644 index 000000000000..647a5a79dbe9 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_create.json @@ -0,0 +1,224 @@ +{ + "operationId": "CloudVmClusters_createOrUpdate", + "title": "CloudVmClusters_createOrUpdate", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "resource": { + "properties": { + "dataStorageSizeInTbs": 1000, + "dbNodeStorageSizeInGbs": 1000, + "memorySizeInGbs": 1000, + "timeZone": "UTC", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 2, + "ocpuCount": 3, + "clusterName": "cluster1", + "dataStoragePercentage": 100, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "nsgCidrs": [ + { + "source": "10.0.0.0/16", + "destinationPortRange": { + "min": 1520, + "max": 1522 + } + }, + { + "source": "10.10.0.0/24" + } + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "backupSubnetCidr": "172.17.5.0/24", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "dbServers": [ + "ocid1..aaaa" + ] + }, + "location": "eastus", + "tags": { + "tagK1": "tagV1" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1", + "type": "Oracle.Database/cloudVmClusters", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaa", + "listenerPort": 1050, + "nodeCount": 100, + "storageSizeInGbs": 1000, + "dataStorageSizeInTbs": 10, + "dbNodeStorageSizeInGbs": 100, + "memorySizeInGbs": 1000, + "timeCreated": "2023-10-22T02:18:35.683Z", + "lifecycleDetails": "success", + "timeZone": "UTC", + "zoneId": "ocid1..aaaa", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 10, + "ocpuCount": 100, + "clusterName": "cluster1", + "dataStoragePercentage": 80, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "backupSubnetCidr": "172.17.5.0/24", + "systemVersion": "v1", + "diskRedundancy": "High", + "scanIpIds": [ + "10.0.0.1" + ], + "vipIds": [ + "10.0.1.3" + ], + "scanDnsName": "dbdns1", + "scanDnsRecordId": "scandns1", + "shape": "EXADATA.X9M", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "iormConfigCache": { + "dbPlans": [ + { + "dbName": "db1", + "flashCacheLimit": "none", + "share": 32 + } + ], + "lifecycleDetails": "Disabled", + "lifecycleState": "Disabled", + "objective": "LowLatency" + }, + "lastUpdateHistoryEntryId": "none", + "dbServers": [ + "ocid1..aaaa" + ], + "compartmentId": "ocid1..aaaaaa", + "subnetOcid": "ocid1..aaaaaa" + } + } + }, + "201": { + "headers": { + "Retry-After": 100000000 + }, + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1", + "type": "Oracle.Database/cloudVmClusters", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "listenerPort": 1050, + "nodeCount": 100, + "storageSizeInGbs": 1000, + "dataStorageSizeInTbs": 10, + "dbNodeStorageSizeInGbs": 100, + "memorySizeInGbs": 1000, + "timeCreated": "2023-10-22T02:18:35.683Z", + "lifecycleDetails": "success", + "timeZone": "UTC", + "zoneId": "ocid1..aaaa", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 10, + "ocpuCount": 100, + "clusterName": "cluster1", + "dataStoragePercentage": 80, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "backupSubnetCidr": "172.17.5.0/24", + "systemVersion": "v1", + "diskRedundancy": "High", + "scanIpIds": [ + "10.0.0.1" + ], + "vipIds": [ + "10.0.1.3" + ], + "scanDnsName": "dbdns1", + "scanDnsRecordId": "scandns1", + "shape": "EXADATA.X9M", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "iormConfigCache": { + "dbPlans": [ + { + "dbName": "db1", + "flashCacheLimit": "none", + "share": 32 + } + ], + "lifecycleDetails": "BootStrapping", + "lifecycleState": "BootStrapping", + "objective": "LowLatency" + }, + "lastUpdateHistoryEntryId": "none", + "dbServers": [ + "ocid1..aaaa" + ], + "compartmentId": "ocid1..aaaaaa", + "subnetOcid": "ocid1..aaaaaa" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_delete.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_delete.json new file mode 100644 index 000000000000..733197e4a5b2 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_delete.json @@ -0,0 +1,19 @@ +{ + "operationId": "CloudVmClusters_delete", + "title": "CloudVmClusters_delete", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1" + }, + "responses": { + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + }, + "204": {} + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_get.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_get.json new file mode 100644 index 000000000000..af68d767155d --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_get.json @@ -0,0 +1,104 @@ +{ + "operationId": "CloudVmClusters_get", + "title": "CloudVmClusters_get", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1", + "type": "Oracle.Database/cloudVmClusters", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaa", + "listenerPort": 1050, + "nodeCount": 100, + "storageSizeInGbs": 1000, + "dataStorageSizeInTbs": 10, + "dbNodeStorageSizeInGbs": 100, + "memorySizeInGbs": 1000, + "timeCreated": "2023-10-22T02:18:35.683Z", + "lifecycleDetails": "success", + "timeZone": "UTC", + "zoneId": "ocid1..aaaa", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 10, + "ocpuCount": 100, + "clusterName": "cluster1", + "dataStoragePercentage": 80, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "nsgCidrs": [ + { + "source": "10.0.0.0/16", + "destinationPortRange": { + "min": 1520, + "max": 1522 + } + }, + { + "source": "10.10.0.0/24" + } + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "backupSubnetCidr": "172.17.5.0/24", + "systemVersion": "v1", + "diskRedundancy": "High", + "scanIpIds": [ + "10.0.0.1" + ], + "vipIds": [ + "10.0.1.3" + ], + "scanDnsName": "dbdns1", + "scanDnsRecordId": "scandns1", + "shape": "EXADATA.X9M", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "nsgUrl": "https://fake", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "iormConfigCache": { + "dbPlans": [ + { + "dbName": "db1", + "flashCacheLimit": "none", + "share": 32 + } + ], + "lifecycleDetails": "Disabled", + "lifecycleState": "Disabled", + "objective": "LowLatency" + }, + "lastUpdateHistoryEntryId": "none", + "dbServers": [ + "ocid1..aaaa" + ], + "compartmentId": "ocid1..aaaaaa", + "subnetOcid": "ocid1..aaaaaa" + } + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listByResourceGroup.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listByResourceGroup.json new file mode 100644 index 000000000000..234dd768ca1e --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listByResourceGroup.json @@ -0,0 +1,95 @@ +{ + "operationId": "CloudVmClusters_listByResourceGroup", + "title": "CloudVmClusters_listByResourceGroup", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1", + "type": "Oracle.Database/cloudVmClusters", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaa", + "listenerPort": 1050, + "nodeCount": 100, + "storageSizeInGbs": 1000, + "dataStorageSizeInTbs": 10, + "dbNodeStorageSizeInGbs": 100, + "memorySizeInGbs": 1000, + "timeCreated": "2023-10-22T02:18:35.683Z", + "lifecycleDetails": "success", + "timeZone": "UTC", + "zoneId": "ocid1..aaaa", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 10, + "ocpuCount": 100, + "clusterName": "cluster1", + "dataStoragePercentage": 80, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "backupSubnetCidr": "172.17.5.0/24", + "systemVersion": "v1", + "diskRedundancy": "High", + "scanIpIds": [ + "10.0.0.1" + ], + "vipIds": [ + "10.0.1.3" + ], + "scanDnsName": "dbdns1", + "scanDnsRecordId": "scandns1", + "shape": "EXADATA.X9M", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "iormConfigCache": { + "dbPlans": [ + { + "dbName": "db1", + "flashCacheLimit": "none", + "share": 32 + } + ], + "lifecycleDetails": "Disabled", + "lifecycleState": "Disabled", + "objective": "LowLatency" + }, + "lastUpdateHistoryEntryId": "none", + "dbServers": [ + "ocid1..aaaa" + ], + "compartmentId": "ocid1..aaaaaa", + "subnetOcid": "ocid1..aaaaaa" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listBySubscription.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listBySubscription.json new file mode 100644 index 000000000000..13a02f4821e1 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listBySubscription.json @@ -0,0 +1,94 @@ +{ + "operationId": "CloudVmClusters_listBySubscription", + "title": "CloudVmClusters_listBySubscription", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1", + "type": "Oracle.Database/cloudVmClusters", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaa", + "listenerPort": 1050, + "nodeCount": 100, + "storageSizeInGbs": 1000, + "dataStorageSizeInTbs": 10, + "dbNodeStorageSizeInGbs": 100, + "memorySizeInGbs": 1000, + "timeCreated": "2023-10-22T02:18:35.683Z", + "lifecycleDetails": "success", + "timeZone": "UTC", + "zoneId": "ocid1..aaaa", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 10, + "ocpuCount": 100, + "clusterName": "cluster1", + "dataStoragePercentage": 80, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "backupSubnetCidr": "172.17.5.0/24", + "systemVersion": "v1", + "diskRedundancy": "High", + "scanIpIds": [ + "10.0.0.1" + ], + "vipIds": [ + "10.0.1.3" + ], + "scanDnsName": "dbdns1", + "scanDnsRecordId": "scandns1", + "shape": "EXADATA.X9M", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "iormConfigCache": { + "dbPlans": [ + { + "dbName": "db1", + "flashCacheLimit": "none", + "share": 32 + } + ], + "lifecycleDetails": "Disabled", + "lifecycleState": "Disabled", + "objective": "LowLatency" + }, + "lastUpdateHistoryEntryId": "none", + "dbServers": [ + "ocid1..aaaa" + ], + "compartmentId": "ocid1..aaaaaa", + "subnetOcid": "ocid1..aaaaaa" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listPrivateIpAddresses.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listPrivateIpAddresses.json new file mode 100644 index 000000000000..f20c1e0c29f8 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_listPrivateIpAddresses.json @@ -0,0 +1,27 @@ +{ + "operationId": "CloudVmClusters_listPrivateIpAddresses", + "title": "CloudVmClusters_listPrivateIpAddresses", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "body": { + "subnetId": "ocid1..aaaaaa", + "vnicId": "ocid1..aaaaa" + } + }, + "responses": { + "200": { + "body": [ + { + "displayName": "ip1", + "hostnameLabel": "hostname1", + "ocid": "ocid1..aaaa", + "ipAddress": "192.168.0.1", + "subnetId": "ocid1..aaaa" + } + ] + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_patch.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_patch.json new file mode 100644 index 000000000000..9f03443f90ca --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_patch.json @@ -0,0 +1,101 @@ +{ + "operationId": "CloudVmClusters_update", + "title": "CloudVmClusters_update", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "properties": {}, + "tags": { + "tagK1": "tagV1" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1", + "type": "Oracle.Database/cloudVmClusters", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaa", + "listenerPort": 1050, + "nodeCount": 100, + "storageSizeInGbs": 1000, + "dataStorageSizeInTbs": 10, + "dbNodeStorageSizeInGbs": 100, + "memorySizeInGbs": 1000, + "timeCreated": "2023-10-22T02:18:35.683Z", + "lifecycleDetails": "success", + "timeZone": "UTC", + "zoneId": "ocid1..aaaa", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 10, + "ocpuCount": 100, + "clusterName": "cluster1", + "dataStoragePercentage": 80, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "backupSubnetCidr": "172.17.5.0/24", + "systemVersion": "v1", + "diskRedundancy": "High", + "scanIpIds": [ + "10.0.0.1" + ], + "vipIds": [ + "10.0.1.3" + ], + "scanDnsName": "dbdns1", + "scanDnsRecordId": "scandns1", + "shape": "EXADATA.X9M", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "iormConfigCache": { + "dbPlans": [ + { + "dbName": "db1", + "flashCacheLimit": "none", + "share": 32 + } + ], + "lifecycleDetails": "Disabled", + "lifecycleState": "Disabled", + "objective": "LowLatency" + }, + "lastUpdateHistoryEntryId": "none", + "dbServers": [ + "ocid1..aaaa" + ], + "compartmentId": "ocid1..aaaaaa", + "subnetOcid": "ocid1..aaaaaa" + } + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_removeVms.json b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_removeVms.json new file mode 100644 index 000000000000..2c4e837e5be3 --- /dev/null +++ b/specification/oracle/Oracle.Database/examples/2023-09-01-preview/vmClusters_removeVms.json @@ -0,0 +1,102 @@ +{ + "operationId": "CloudVmClusters_removeVms", + "title": "CloudVmClusters_removeVms", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "cloudvmclustername": "cluster1", + "body": { + "dbServers": [ + "ocid1..aaaa" + ] + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudVmClusters/cluster1", + "type": "Oracle.Database/cloudVmClusters", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "ocid": "ocid1..aaaa", + "listenerPort": 1050, + "nodeCount": 100, + "storageSizeInGbs": 1000, + "dataStorageSizeInTbs": 10, + "dbNodeStorageSizeInGbs": 100, + "memorySizeInGbs": 1000, + "timeCreated": "2023-10-22T02:18:35.683Z", + "lifecycleDetails": "success", + "timeZone": "UTC", + "zoneId": "ocid1..aaaa", + "hostname": "hostname1", + "domain": "domain1", + "cpuCoreCount": 10, + "ocpuCount": 100, + "clusterName": "cluster1", + "dataStoragePercentage": 80, + "isLocalBackupEnabled": false, + "cloudExadataInfrastructureId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/cloudExadataInfrastructures/infra1", + "isSparseDiskgroupEnabled": false, + "sshPublicKeys": [ + "ssh-key 1" + ], + "licenseModel": "LicenseIncluded", + "scanListenerPortTcp": 1050, + "scanListenerPortTcpSsl": 1025, + "vnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1", + "giVersion": "19.0.0.0", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1", + "backupSubnetCidr": "172.17.5.0/24", + "systemVersion": "v1", + "diskRedundancy": "High", + "scanIpIds": [ + "10.0.0.1" + ], + "vipIds": [ + "10.0.1.3" + ], + "scanDnsName": "dbdns1", + "scanDnsRecordId": "scandns1", + "shape": "EXADATA.X9M", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "dataCollectionOptions": { + "isDiagnosticsEventsEnabled": false, + "isHealthMonitoringEnabled": false, + "isIncidentLogsEnabled": false + }, + "displayName": "cluster 1", + "iormConfigCache": { + "dbPlans": [ + { + "dbName": "db1", + "flashCacheLimit": "none", + "share": 32 + } + ], + "lifecycleDetails": "Disabled", + "lifecycleState": "Disabled", + "objective": "LowLatency" + }, + "lastUpdateHistoryEntryId": "none", + "dbServers": [ + "ocid1..aaaa" + ], + "compartmentId": "ocid1..aaaaaa", + "subnetOcid": "ocid1..aaaaaa" + } + } + }, + "202": { + "headers": { + "Retry-After": 10000000, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/Oracle.Database/main.tsp b/specification/oracle/Oracle.Database/main.tsp new file mode 100644 index 000000000000..616a085c1a96 --- /dev/null +++ b/specification/oracle/Oracle.Database/main.tsp @@ -0,0 +1,40 @@ +import "./operations/exadata/exadatainfrastructureOperations.tsp"; +import "./operations/exadata/dbServersOperations.tsp"; +import "./operations/exadata/vmclusterOperations.tsp"; +import "./operations/exadata/virtualNetworkAddressOperations.tsp"; +import "./operations/exadata/systemVersionOperations.tsp"; +import "./operations/oraclesubscription/oracleSubscriptionOperations.tsp"; +import "./operations/exadata/dbNodesOperations.tsp"; +import "./operations/exadata/giVersionOperations.tsp"; +import "./operations/exadata/dbSystemShapeOperations.tsp"; +import "./operations/exadata/dnsPrivateViewsOperations.tsp"; +import "./operations/exadata/dnsPrivateZonesOperations.tsp"; +import "./operations/autonomousdatabase/autonomousDatabaseOperations.tsp"; +import "./operations/autonomousdatabase/autonomousDatabaseBackupOperations.tsp"; +import "./operations/autonomousdatabase/autonomousDatabaseCharacterSetOperations.tsp"; +import "./operations/autonomousdatabase/autonomousDatabaseNationalCharacterSetOperations.tsp"; +import "./operations/autonomousdatabase/autonomousDatabaseVersionOperations.tsp"; + +import "./versions.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.ResourceManager; +using OpenAPI; +using Autorest; + +@armProviderNamespace +@service({ + title: "Oracle Database Resource Manager", +}) +@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5) +@versioned(Oracle.Database.Versions) +namespace Oracle.Database; + +interface Operations extends Azure.ResourceManager.Operations {} + +@@example(Operations.list, + "./examples/operations_list.json", + "List Operations" +); diff --git a/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseBackupOperations.tsp b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseBackupOperations.tsp new file mode 100644 index 000000000000..b7a0bde9287d --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseBackupOperations.tsp @@ -0,0 +1,43 @@ +import "../../../models/autonomousdatabase/autonomousDatabaseBackup.tsp"; +import "../commons.tsp"; + +using Azure.ResourceManager; +using Autorest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +@armResourceOperations(AutonomousDatabaseBackup) +interface AutonomousDatabaseBackups + extends OracleChildResource< + AutonomousDatabaseBackup, + AutonomousDatabaseBackupProperties + > { + @example( + "./examples/autonomousDatabaseBackup_patch.json", + "Patch Autonomous Database Backup." + ) + update is ArmResourcePatchAsync< + AutonomousDatabaseBackup, + AutonomousDatabaseBackupProperties + >; + + @example( + "./examples/autonomousDatabaseBackup_listByParent.json", + "List Autonomous Database Backups by Autonomous Database." + ) + listByParent is ArmResourceListByParent; +} + +@@example(AutonomousDatabaseBackups.createOrUpdate, + "./examples/autonomousDatabaseBackup_create.json", + "Create Autonomous Database Backup." +); +@@example(AutonomousDatabaseBackups.get, + "./examples/autonomousDatabaseBackup_get.json", + "Get Autonomous Database Backup." +); +@@example(AutonomousDatabaseBackups.delete, + "./examples/autonomousDatabaseBackup_delete.json", + "Delete Autonomous Database Backup." +); diff --git a/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseCharacterSetOperations.tsp b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseCharacterSetOperations.tsp new file mode 100644 index 000000000000..e08e8e50f1c6 --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseCharacterSetOperations.tsp @@ -0,0 +1,20 @@ +import "../../../models/autonomousdatabase/autonomousDatabaseCharacterSet.tsp"; + +using Azure.ResourceManager; +using Autorest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +@armResourceOperations +interface AutonomousDatabaseCharacterSets + extends OracleLocationBasedResource {} + +@@example(AutonomousDatabaseCharacterSets.listByLocation, + "./examples/autonomousDatabaseCharacterSet_listByLocation.json", + "List autonomous db character sets by location" +); +@@example(AutonomousDatabaseCharacterSets.get, + "./examples/autonomousDatabaseCharacterSet_get.json", + "Get autonomous db character set" +); diff --git a/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseNationalCharacterSetOperations.tsp b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseNationalCharacterSetOperations.tsp new file mode 100644 index 000000000000..68265c9e2271 --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseNationalCharacterSetOperations.tsp @@ -0,0 +1,20 @@ +import "../../../models/autonomousdatabase/autonomousDatabaseNationalCharacterSet.tsp"; + +using Azure.ResourceManager; +using Autorest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +@armResourceOperations +interface AutonomousDatabaseNationalCharacterSets + extends OracleLocationBasedResource {} + +@@example(AutonomousDatabaseNationalCharacterSets.listByLocation, + "./examples/autonomousDatabaseNationalCharacterSet_listByLocation.json", + "List autonomous db national character sets by location" +); +@@example(AutonomousDatabaseNationalCharacterSets.get, + "./examples/autonomousDatabaseNationalCharacterSet_get.json", + "Get autonomous db national character set" +); diff --git a/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseOperations.tsp b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseOperations.tsp new file mode 100644 index 000000000000..904388c44365 --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseOperations.tsp @@ -0,0 +1,102 @@ +import "../../../models/autonomousdatabase/autonomousDatabase.tsp"; +import "../commons.tsp"; + +using Azure.ResourceManager; +using Autorest; +namespace Oracle.Database; + +@armResourceOperations(AutonomousDatabase) +interface AutonomousDatabases + extends OracleTrackedResource< + AutonomousDatabase, + AutonomousDatabaseBaseProperties + > { + //OCI switchover API doc: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/SwitchoverAutonomousDatabase + @doc("Perform switchover action on Autonomous Database") + @example( + "./examples/autonomousDatabase_switchover.json", + "Perform switchover action on Autonomous Database" + ) + switchover is ArmResourceActionAsync< + AutonomousDatabase, + PeerDbDetails, + AutonomousDatabase + >; + + //OCI failover API doc: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/FailOverAutonomousDatabase + @doc("Perform failover action on Autonomous Database") + @example( + "./examples/autonomousDatabase_failover.json", + "Perform failover action on Autonomous Database" + ) + failover is ArmResourceActionAsync< + AutonomousDatabase, + PeerDbDetails, + AutonomousDatabase + >; + + //OCI generate wallet API doc: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/GenerateAutonomousDatabaseWallet + @doc("Generate wallet action on Autonomous Database") + @example( + "./examples/autonomousDatabase_generateWallet.json", + "Generate wallet action on Autonomous Database" + ) + generateWallet is ArmResourceActionSync< + AutonomousDatabase, + GenerateAutonomousDatabaseWalletDetails, + AutonomousDatabaseWalletFile + >; + + //OCI RestoreAutonomousDatabase API doc: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/RestoreAutonomousDatabase + @doc("Restores an Autonomous Database based on the provided request parameters.") + @example( + "./examples/autonomousDatabase_restore.json", + "Perform restore action on Autonomous Database" + ) + restore is ArmResourceActionAsync< + AutonomousDatabase, + RestoreAutonomousDatabaseDetails, + AutonomousDatabase + >; + + //OCI ShrinkAutonomousDatabase API doc: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ShrinkAutonomousDatabase + @doc("This operation shrinks the current allocated storage down to the current actual used data storage.") + @example( + "./examples/autonomousDatabase_shrink.json", + "Perform shrink action on Autonomous Database" + ) + shrink is ArmResourceActionAsync< + AutonomousDatabase, + void, + AutonomousDatabase + >; +} + +@@example(AutonomousDatabases.listBySubscription, + "./examples/autonomousDatabase_listBySubscription.json", + "List Autonomous Database by subscription" +); +@@example(AutonomousDatabases.listByResourceGroup, + "./examples/autonomousDatabase_listByResourceGroup.json", + "List Autonomous Database by resource group" +); +@@example(AutonomousDatabases.createOrUpdate, + "./examples/autonomousDatabase_create.json", + "Create Autonomous Database" +); +@@example(AutonomousDatabases.createOrUpdate, + "./examples/autonomousDatabaseClone_create.json", + "Create clone Autonomous Database" +); +@@example(AutonomousDatabases.get, + "./examples/autonomousDatabase_get.json", + "Get Autonomous Database" +); +@@example(AutonomousDatabases.update, + "./examples/autonomousDatabase_patch.json", + "Patch Autonomous Database" +); +@@example(AutonomousDatabases.delete, + "./examples/autonomousDatabase_delete.json", + "Delete Autonomous Database" +); diff --git a/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseVersionOperations.tsp b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseVersionOperations.tsp new file mode 100644 index 000000000000..55e19cb00a8e --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/autonomousdatabase/autonomousDatabaseVersionOperations.tsp @@ -0,0 +1,21 @@ +import "@azure-tools/typespec-azure-resource-manager"; +import "../../../models/autonomousdatabase/autonomousDatabaseVersion.tsp"; + +using Azure.ResourceManager; +using Autorest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +@armResourceOperations +interface AutonomousDatabaseVersions + extends OracleLocationBasedResource {} + +@@example(AutonomousDatabaseVersions.listByLocation, + "./examples/autonomousDatabaseVersion_listByLocation.json", + "List an autonomous versions by location" +); +@@example(AutonomousDatabaseVersions.get, + "./examples/autonomousDatabaseVersion_get.json", + "Get an autonomous version" +); diff --git a/specification/oracle/Oracle.Database/operations/commons.tsp b/specification/oracle/Oracle.Database/operations/commons.tsp new file mode 100644 index 000000000000..822a0dcb58ca --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/commons.tsp @@ -0,0 +1,72 @@ +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.ResourceManager; +using OpenAPI; + +using Azure.ResourceManager.Foundations; + +namespace Oracle.Database; + +@armResourceOperations(T) +interface OracleSubscriptionLevelResource< + T extends Foundations.Resource, + TProperties extends TypeSpec.Reflection.Model +> + extends ResourceListBySubscription, + ResourceCreateAsync, + ResourceRead, + ResourceUpdateAsync, + ResourceDeleteWithoutOkAsync {} + +@armResourceOperations(T) +interface OracleTrackedResource< + T extends Foundations.Resource, + TProperties extends TypeSpec.Reflection.Model +> extends OracleSubscriptionLevelResource { + listByResourceGroup is ArmResourceListByParent; +} + +@armResourceOperations(T) +interface OracleReadOnlyResource { + // TODO: Swagger generator bug, cannot be extracted to interface + // listByParent is ArmResourceListByParent; + get is ArmResourceRead; +} + +@armResourceOperations(T) +interface OracleLocationBasedResource + extends OracleReadOnlyResource { + listByLocation is ArmResourceListByParent; +} + +@armResourceOperations(T) +interface OracleChildResource< + T extends Foundations.Resource, + TProperties extends TypeSpec.Reflection.Model +> + extends ResourceCreateAsync, + ResourceRead, + ResourceDeleteWithoutOkAsync {} + +@armResourceOperations +interface ListActions { + @doc("Generic Async Get operation") + @extension("x-ms-long-running-operation", true) + @extension( + "x-ms-long-running-operation-options", + { + `final-state-via`: "location", + } + ) + @autoRoute + @armResourceAction(TResource) + @post + ArmResourceGetActionAsync< + TResource extends Foundations.Resource, + TResponse, + TBaseParameters = BaseParameters + >( + ...ResourceInstanceParameters, + ): ArmResponse | ArmAcceptedLroResponse | ErrorResponse; +} diff --git a/specification/oracle/Oracle.Database/operations/exadata/dbNodesOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/dbNodesOperations.tsp new file mode 100644 index 000000000000..79680dd6061c --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/dbNodesOperations.tsp @@ -0,0 +1,24 @@ +import "@azure-tools/typespec-azure-resource-manager"; +import "../../../models/exadata/dbNodes.tsp"; + +using Azure.ResourceManager; +using Autorest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +@armResourceOperations +interface DbNodes extends OracleReadOnlyResource { + // TODO: Swagger generator bug, cannot be extracted to interface + @example("./examples/dbNodes_listByParent.json", "List DbNodes by VM Cluster") + listByParent is ArmResourceListByParent; + + @doc("VM actions on DbNode of VM Cluster by the provided filter") + @example( + "./examples/dbNodes_action.json", + "VM actions on DbNodes of VM Cluster" + ) + action is ArmResourceActionAsync; +} + +@@example(DbNodes.get, "./examples/dbNodes_get.json", "Get DbNode"); diff --git a/specification/oracle/Oracle.Database/operations/exadata/dbServersOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/dbServersOperations.tsp new file mode 100644 index 000000000000..01a98b2d27af --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/dbServersOperations.tsp @@ -0,0 +1,22 @@ +import "@azure-tools/typespec-azure-resource-manager"; +import "../../../models/exadata/dbServers.tsp"; + +using Azure.ResourceManager; +using Autorest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +@armResourceOperations +interface DbServers extends OracleReadOnlyResource { + @example( + "./examples/dbServers_listByParent.json", + "List DbServers by Exadata Infrastructure" + ) + listByParent is ArmResourceListByParent; +} + +@@example(DbServers.get, + "./examples/dbServers_get.json", + "Get DbServer by parent" +); diff --git a/specification/oracle/Oracle.Database/operations/exadata/dbSystemShapeOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/dbSystemShapeOperations.tsp new file mode 100644 index 000000000000..ec298b0f12e2 --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/dbSystemShapeOperations.tsp @@ -0,0 +1,18 @@ +import "../../../models/exadata/dbSystemShapes.tsp"; + +using Azure.ResourceManager; +using Autorest; + +namespace Oracle.Database; + +@armResourceOperations +interface DbSystemShapes extends OracleLocationBasedResource {} + +@@example(DbSystemShapes.listByLocation, + "./examples/dbSystemShapes_listByLocation.json", + "List DbSystemShapes by location" +); +@@example(DbSystemShapes.get, + "./examples/dbSystemShapes_get.json", + "Get a DbSystemShape by name" +); diff --git a/specification/oracle/Oracle.Database/operations/exadata/dnsPrivateViewsOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/dnsPrivateViewsOperations.tsp new file mode 100644 index 000000000000..4fc9dd100bfd --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/dnsPrivateViewsOperations.tsp @@ -0,0 +1,18 @@ +import "../../../models/exadata/dnsPrivateViews.tsp"; + +using Azure.ResourceManager; +using Autorest; + +namespace Oracle.Database; + +@armResourceOperations +interface DnsPrivateViews extends OracleLocationBasedResource {} + +@@example(DnsPrivateViews.listByLocation, + "./examples/dnsPrivateViews_listByLocation.json", + "List DnsPrivateViews by location" +); +@@example(DnsPrivateViews.get, + "./examples/dnsPrivateViews_get.json", + "Get a DnsPrivateView by name" +); diff --git a/specification/oracle/Oracle.Database/operations/exadata/dnsPrivateZonesOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/dnsPrivateZonesOperations.tsp new file mode 100644 index 000000000000..a1d18acd98ca --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/dnsPrivateZonesOperations.tsp @@ -0,0 +1,18 @@ +import "../../../models/exadata/dnsPrivateZones.tsp"; + +using Azure.ResourceManager; +using Autorest; + +namespace Oracle.Database; + +@armResourceOperations +interface DnsPrivateZones extends OracleLocationBasedResource {} + +@@example(DnsPrivateZones.listByLocation, + "./examples/dnsPrivateZones_listByLocation.json", + "List DnsPrivateZones by location" +); +@@example(DnsPrivateZones.get, + "./examples/dnsPrivateZones_get.json", + "Get a DnsPrivateZone by name" +); diff --git a/specification/oracle/Oracle.Database/operations/exadata/exadatainfrastructureOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/exadatainfrastructureOperations.tsp new file mode 100644 index 000000000000..d4afa8337da0 --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/exadatainfrastructureOperations.tsp @@ -0,0 +1,51 @@ +import "../commons.tsp"; +import "../../../models/exadata/exadatainfra.tsp"; + +using Azure.ResourceManager; +using Autorest; + +namespace Oracle.Database; + +@armResourceOperations(CloudExadataInfrastructure) +interface CloudExadataInfrastructures + extends OracleTrackedResource< + CloudExadataInfrastructure, + CloudExadataInfrastructureProperties + > { + //OCI addStorageCapacityCloudExadataInfrastructure API doc: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/AddStorageCapacityCloudExadataInfrastructure + @doc("Perform add storage capacity on exadata infra") + @example( + "./examples/exaInfra_addStorageCapacity.json", + "Perform add storage capacity on exadata infra" + ) + addStorageCapacity is ArmResourceActionAsync< + CloudExadataInfrastructure, + void, + CloudExadataInfrastructure + >; +} + +@@example(CloudExadataInfrastructures.listBySubscription, + "./examples/exaInfra_listBySubscription.json", + "List Exadata Infrastructure by subscription" +); +@@example(CloudExadataInfrastructures.listByResourceGroup, + "./examples/exaInfra_listByResourceGroup.json", + "List Exadata Infrastructure by resource group" +); +@@example(CloudExadataInfrastructures.createOrUpdate, + "./examples/exaInfra_create.json", + "Create Exadata Infrastructure" +); +@@example(CloudExadataInfrastructures.get, + "./examples/exaInfra_get.json", + "Get Exadata Infrastructure" +); +@@example(CloudExadataInfrastructures.update, + "./examples/exaInfra_patch.json", + "Patch Exadata Infrastructure" +); +@@example(CloudExadataInfrastructures.delete, + "./examples/exaInfra_delete.json", + "Delete Exadata Infrastructure" +); diff --git a/specification/oracle/Oracle.Database/operations/exadata/giVersionOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/giVersionOperations.tsp new file mode 100644 index 000000000000..9e8f2f617ebd --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/giVersionOperations.tsp @@ -0,0 +1,18 @@ +import "../../../models/exadata/giVersions.tsp"; + +using Azure.ResourceManager; +using Autorest; + +namespace Oracle.Database; + +@armResourceOperations +interface GiVersions extends OracleLocationBasedResource {} + +@@example(GiVersions.listByLocation, + "./examples/giVersions_listByLocation.json", + "List GiVersions by location" +); +@@example(GiVersions.get, + "./examples/giVersions_get.json", + "Get a GiVersion by name" +); diff --git a/specification/oracle/Oracle.Database/operations/exadata/systemVersionOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/systemVersionOperations.tsp new file mode 100644 index 000000000000..481648c95039 --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/systemVersionOperations.tsp @@ -0,0 +1,19 @@ +import "../../../models/exadata/systemVersions.tsp"; + +using Azure.ResourceManager; +using Autorest; + +namespace Oracle.Database; + +@armResourceOperations +interface SystemVersions extends OracleLocationBasedResource {} + +@@example(SystemVersions.listByLocation, + "./examples/systemVersions_listByLocation.json", + "List Exadata System Versions by the provided filter" +); + +@@example(SystemVersions.get, + "./examples/systemVersions_get.json", + "Get Exadata System Version" +); diff --git a/specification/oracle/Oracle.Database/operations/exadata/virtualNetworkAddressOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/virtualNetworkAddressOperations.tsp new file mode 100644 index 000000000000..b70cd518221e --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/virtualNetworkAddressOperations.tsp @@ -0,0 +1,35 @@ +import "@azure-tools/typespec-azure-resource-manager"; +import "../../../models/exadata/virtualNetworkAddress.tsp"; + +using Azure.ResourceManager; +using Autorest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +@armResourceOperations +interface VirtualNetworkAddresses + extends OracleChildResource< + VirtualNetworkAddress, + VirtualNetworkAddressProperties + > { + // TODO: Swagger generator bug, cannot be extracted to interface + @example( + "./examples/virtualNetworkAddresses_listByParent.json", + "List Virtual Network Addresses by VM Cluster" + ) + listByParent is ArmResourceListByParent; +} + +@@example(VirtualNetworkAddresses.createOrUpdate, + "./examples/virtualNetworkAddresses_create.json", + "Create Virtual Network Address" +); +@@example(VirtualNetworkAddresses.get, + "./examples/virtualNetworkAddresses_get.json", + "Get Virtual Network Address" +); +@@example(VirtualNetworkAddresses.delete, + "./examples/virtualNetworkAddresses_delete.json", + "Delete Virtual Network Address" +); diff --git a/specification/oracle/Oracle.Database/operations/exadata/vmclusterOperations.tsp b/specification/oracle/Oracle.Database/operations/exadata/vmclusterOperations.tsp new file mode 100644 index 000000000000..d5bcd6ce3ed0 --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/exadata/vmclusterOperations.tsp @@ -0,0 +1,64 @@ +import "@azure-tools/typespec-azure-resource-manager"; +import "../../../models/exadata/vmcluster.tsp"; +import "../../../models/exadata/privateIpAddresses.tsp"; + +using Azure.ResourceManager; +using Autorest; + +namespace Oracle.Database; + +@armResourceOperations +interface CloudVmClusters + extends OracleTrackedResource { + @doc("Add VMs to the VM Cluster") + @example("./examples/vmClusters_addVms.json", "Add VMs to VM Cluster") + addVms is ArmResourceActionAsync< + CloudVmCluster, + AddRemoveDbNode, + CloudVmCluster + >; + + @doc("Remove VMs from the VM Cluster") + @example("./examples/vmClusters_removeVms.json", "Remove VMs from VM Cluster") + removeVms is ArmResourceActionAsync< + CloudVmCluster, + AddRemoveDbNode, + CloudVmCluster + >; + + @doc("List Private IP Addresses by the provided filter") + @example( + "./examples/vmClusters_listPrivateIpAddresses.json", + "List Private IP Addresses for VM Cluster" + ) + listPrivateIpAddresses is ArmResourceActionSync< + CloudVmCluster, + PrivateIpAddressesFilter, + Array + >; +} + +@@example(CloudVmClusters.listBySubscription, + "./examples/vmClusters_listBySubscription.json", + "List VM Clusters by subscription" +); +@@example(CloudVmClusters.createOrUpdate, + "./examples/vmClusters_create.json", + "Create VM Cluster" +); +@@example(CloudVmClusters.get, + "./examples/vmClusters_get.json", + "Get VM Cluster" +); +@@example(CloudVmClusters.update, + "./examples/vmClusters_patch.json", + "Patch VM Cluster" +); +@@example(CloudVmClusters.delete, + "./examples/vmClusters_delete.json", + "Delete VM Cluster" +); +@@example(CloudVmClusters.listByResourceGroup, + "./examples/vmClusters_listByResourceGroup.json", + "List VM Clusters by resource group" +); diff --git a/specification/oracle/Oracle.Database/operations/oraclesubscription/oracleSubscriptionOperations.tsp b/specification/oracle/Oracle.Database/operations/oraclesubscription/oracleSubscriptionOperations.tsp new file mode 100644 index 000000000000..24189714b5ba --- /dev/null +++ b/specification/oracle/Oracle.Database/operations/oraclesubscription/oracleSubscriptionOperations.tsp @@ -0,0 +1,80 @@ +import "../../../models/oraclesubscription/oracleSubscription.tsp"; + +using Azure.ResourceManager; +using Azure.ResourceManager.Foundations; +using Autorest; + +namespace Oracle.Database; + +@armResourceOperations(OracleSubscription) +interface OracleSubscriptions + extends OracleSubscriptionLevelResource< + OracleSubscription, + OracleSubscriptionProperties + > { + @doc("List Cloud Account Details") + @example( + "./examples/oracleSubscriptions_listCloudAccountDetails.json", + "List Cloud Account details for the Oracle Subscription" + ) + listCloudAccountDetails is ListActions.ArmResourceGetActionAsync< + OracleSubscription, + CloudAccountDetails + >; + + @doc("List Saas Subscription Details") + @example( + "./examples/oracleSubscriptions_listSaasSubscriptionDetails.json", + "List Saas Subscription details for the Oracle Subscription" + ) + listSaasSubscriptionDetails is ListActions.ArmResourceGetActionAsync< + OracleSubscription, + SaasSubscriptionDetails + >; + + @doc("List Activation Links") + @example( + "./examples/oracleSubscriptions_listActivationLinks.json", + "List Activation Links for the Oracle Subscription" + ) + listActivationLinks is ListActions.ArmResourceGetActionAsync< + OracleSubscription, + ActivationLinks + >; + + /** + * @dev Update a resource using the asynchronous call pattern. + * @template Resource The ArmResource to update. + * @template Properties RP-specific property bag for the resource + * @template BaseParameters The http parameters that are part of the request + */ + update is ArmCustomPatchAsync< + OracleSubscription, + ResourceUpdateModel< + OracleSubscription, + OracleSubscriptionProperties + >, + DefaultBaseParameters> + >; +} + +@@example(OracleSubscriptions.listBySubscription, + "./examples/oracleSubscriptions_listBySubscription.json", + "List Oracle Subscriptions by subscription" +); +@@example(OracleSubscriptions.createOrUpdate, + "./examples/oracleSubscriptions_create.json", + "Create or Update Oracle Subscription" +); +@@example(OracleSubscriptions.get, + "./examples/oracleSubscriptions_get.json", + "Get Oracle Subscription" +); +@@example(OracleSubscriptions.update, + "./examples/oracleSubscriptions_patch.json", + "Patch Oracle Subscription" +); +@@example(OracleSubscriptions.delete, + "./examples/oracleSubscriptions_delete.json", + "Delete Oracle Subscription" +); diff --git a/specification/oracle/Oracle.Database/tspconfig.yaml b/specification/oracle/Oracle.Database/tspconfig.yaml new file mode 100644 index 000000000000..c7f8c641b6e4 --- /dev/null +++ b/specification/oracle/Oracle.Database/tspconfig.yaml @@ -0,0 +1,29 @@ +emit: + - "@azure-tools/typespec-autorest" + +options: + "@azure-tools/typespec-autorest": + arm-types-dir: "../../../../../common-types/resource-management" + use-read-only-status-schema: true + azure-resource-provider-folder: "resource-manager" + emitter-output-dir: "{project-root}/.." + examples-directory: "examples" + output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json" + "@azure-tools/typespec-ts": + package-dir: "arm-oracledatabase" + packageDetails: + name: "@azure/arm-oracledatabase" + flavor: azure + "@azure-tools/typespec-java": + package-dir: "azure-resourcemanager-oracledatabase" + namespace: com.azure.resourcemanager.oracledatabase + partial-update: true + flavor: azure + "@azure-tools/typespec-python": + package-dir: "azure-mgmt-oracledatabase" + package-name: "{package-dir}" + flavor: azure + +linter: + extends: + - "@azure-tools/typespec-azure-rulesets/resource-manager" diff --git a/specification/oracle/Oracle.Database/versions.tsp b/specification/oracle/Oracle.Database/versions.tsp new file mode 100644 index 000000000000..d9316d37da43 --- /dev/null +++ b/specification/oracle/Oracle.Database/versions.tsp @@ -0,0 +1,11 @@ +using TypeSpec.Versioning; + +namespace Oracle.Database; + +@doc("Versions for API") +enum Versions { + @useDependency(Azure.Core.Versions.v1_0_Preview_2) + @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1) + @doc("2023-09-01-preview") + v20230901: "2023-09-01-preview", +} diff --git a/specification/oracle/models/autonomousdatabase/adbCommon.tsp b/specification/oracle/models/autonomousdatabase/adbCommon.tsp new file mode 100644 index 000000000000..6fdf436c7d2a --- /dev/null +++ b/specification/oracle/models/autonomousdatabase/adbCommon.tsp @@ -0,0 +1,19 @@ +using OpenAPI; +using TypeSpec.Versioning; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.Core; + +namespace Oracle.Database; + +scalar AutonomousDatabaseId + extends armResourceIdentifier<[ + { + type: "Oracle.Database/autonomousDatabases", + } + ]>; + +@doc("Retention period, in days, for backups.") +@minValue(90) +@maxValue(2558) +scalar RetentionPeriod extends int32; diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp new file mode 100644 index 000000000000..d0f523f1b912 --- /dev/null +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabase.tsp @@ -0,0 +1,982 @@ +import "../common.tsp"; +import "./adbCommon.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +namespace Oracle.Database; + +//https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase + +@minLength(1) +@maxLength(1024) +@doc("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']") +scalar aclString extends string; + +@doc("Autonomous database lifecycle state enum") +union AutonomousDatabaseLifecycleState { + @doc("Indicates that resource in Provisioning state") + Provisioning: "Provisioning", + + @doc("Indicates that resource in Available state") + Available: "Available", + + @doc("Indicates that resource in Stopping state") + Stopping: "Stopping", + + @doc("Indicates that resource in Stopped state") + Stopped: "Stopped", + + @doc("Indicates that resource in Starting state") + Starting: "Starting", + + @doc("Indicates that resource in Terminating state") + Terminating: "Terminating", + + @doc("Indicates that resource in Terminated state") + Terminated: "Terminated", + + @doc("Indicates that resource in Unavailable state") + Unavailable: "Unavailable", + + @doc("Indicates that resource in RestoreInProgress state") + RestoreInProgress: "RestoreInProgress", + + @doc("Indicates that resource in RestoreFailed state") + RestoreFailed: "RestoreFailed", + + @doc("Indicates that resource in BackupInProgress state") + BackupInProgress: "BackupInProgress", + + @doc("Indicates that resource in ScaleInProgress state") + ScaleInProgress: "ScaleInProgress", + + @doc("Indicates that resource is available but needs attention") + AvailableNeedsAttention: "AvailableNeedsAttention", + + @doc("Indicates that resource in Updating state") + Updating: "Updating", + + @doc("Indicates that resource maintenance in progress state") + MaintenanceInProgress: "MaintenanceInProgress", + + @doc("Indicates that resource in Restarting state") + Restarting: "Restarting", + + @doc("Indicates that resource in Recreating state") + Recreating: "Recreating", + + @doc("Indicates that resource role change in progress state") + RoleChangeInProgress: "RoleChangeInProgress", + + @doc("Indicates that resource in Upgrading state") + Upgrading: "Upgrading", + + @doc("IIndicates that resource in Inaccessible state") + Inaccessible: "Inaccessible", + + @doc("Indicates that resource in Standby state") + Standby: "Standby", + + string, +} + +@doc("Refreshable model type enum") +union RefreshableModelType { + @doc("Automatic refreshable model type") + Automatic: "Automatic", + + @doc("Manual refreshable model type") + Manual: "Manual", + + string, +} + +@doc("Repeat cadence type enum") +union RepeatCadenceType { + @doc("Repeat one time") + OneTime: "OneTime", + + @doc("Repeat weekly") + Weekly: "Weekly", + + @doc("Repeat monthly") + Monthly: "Monthly", + + @doc("Repeat yearly") + Yearly: "Yearly", + + string, +} + +@doc("Database type enum") +union DataBaseType { + @doc("Regular DB") + Regular: "Regular", + + @doc("Clone DB") + Clone: "Clone", + + string, +} + +@doc("Compute model enum") +union ComputeModel { + @doc("ECPU model type") + ECPU: "ECPU", + + @doc("OCPU model type") + OCPU: "OCPU", + + string, +} + +@doc("Clone type enum") +union CloneType { + @doc("Full clone") + Full: "Full", + + @doc("Metadata only") + Metadata: "Metadata", + + string, +} + +@doc("Autonomous database maintenance schedule type enum.") +union AutonomousMaintenanceScheduleType { + @doc("Early maintenance schedule") + Early: "Early", + + @doc("Regular maintenance schedule") + Regular: "Regular", + + string, +} + +@doc("Source type enum.") +union SourceType { + @doc("None source") + None: "None", + + @doc("Database source") + Database: "Database", + + @doc("Backup from ID source") + BackupFromId: "BackupFromId", + + @doc("Backup from timestamp source") + BackupFromTimestamp: "BackupFromTimestamp", + + @doc("Clone to refreshable source") + CloneToRefreshable: "CloneToRefreshable", + + @doc("Cross region dataguard source") + CrossRegionDataguard: "CrossRegionDataguard", + + @doc("cross region disaster recovery source") + CrossRegionDisasterRecovery: "CrossRegionDisasterRecovery", + + string, +} + +@doc("TLS authentication type enum.") +union TlsAuthenticationType { + @doc("Server authentication") + Server: "Server", + + @doc("Mutual TLS") + Mutual: "Mutual", + + string, +} + +@doc("Syntax format type enum.") +union SyntaxFormatType { + @doc("Long format") + Long: "Long", + + @doc("Ezconnect format") + Ezconnect: "Ezconnect", + + @doc("Ezconnectplus format") + Ezconnectplus: "Ezconnectplus", + + string, +} + +@doc("Session mode type enum.") +union SessionModeType { + @doc("Direct session mode") + Direct: "Direct", + + @doc("Redirect session mode") + Redirect: "Redirect", + + string, +} + +@doc("Protocol type enum.") +union ProtocolType { + @doc("TCP protocol") + TCP: "TCP", + + @doc("TCPS protocol") + TCPS: "TCPS", + + string, +} + +@doc("Host format type enum.") +union HostFormatType { + @doc("FQDN format") + Fqdn: "Fqdn", + + @doc("IP format") + Ip: "Ip", + + string, +} + +@doc("Consumer group enum.") +union ConsumerGroup { + @doc("High group") + High: "High", + + @doc("Medium group") + Medium: "Medium", + + @doc("Low group") + Low: "Low", + + @doc("TP group") + Tp: "Tp", + + @doc("TPurgent group") + Tpurgent: "Tpurgent", + + string, +} + +@doc("DataSafe status type enum.") +union DataSafeStatusType { + @doc("Registering status") + Registering: "Registering", + + @doc("Registered status") + Registered: "Registered", + + @doc("Deregistering status") + Deregistering: "Deregistering", + + @doc("NotRegistered status") + NotRegistered: "NotRegistered", + + @doc("Failed status") + Failed: "Failed", + + string, +} + +@doc("Permission level type enum.") +union PermissionLevelType { + @doc("Restricted permission level") + Restricted: "Restricted", + + @doc("Unrestricted permission level") + Unrestricted: "Unrestricted", + + string, +} + +@doc("Database edition type enum.") +union DatabaseEditionType { + @doc("Standard edition") + StandardEdition: "StandardEdition", + + @doc("Enterprise edition") + EnterpriseEdition: "EnterpriseEdition", + + string, +} + +@doc("Open mode type enum.") +union OpenModeType { + @doc("ReadOnly mode") + ReadOnly: "ReadOnly", + + @doc("ReadWrite mode") + ReadWrite: "ReadWrite", + + string, +} + +@doc("Operations Insights status type enum.") +union OperationsInsightsStatusType { + @doc("Enabling status") + Enabling: "Enabling", + + @doc("Enabled status") + Enabled: "Enabled", + + @doc("Disabling status") + Disabling: "Disabling", + + @doc("NotEnabled status") + NotEnabled: "NotEnabled", + + @doc("FailedEnabling status") + FailedEnabling: "FailedEnabling", + + @doc("FailedDisabling status") + FailedDisabling: "FailedDisabling", + + string, +} + +@doc("Role type enum.") +union RoleType { + @doc("Primary role") + Primary: "Primary", + + @doc("Standby role") + Standby: "Standby", + + @doc("DisabledStandby role") + DisabledStandby: "DisabledStandby", + + @doc("BackupCopy role") + BackupCopy: "BackupCopy", + + @doc("SnapshotStandby role") + SnapshotStandby: "SnapshotStandby", + + string, +} + +@doc("Refreshable status type enum.") +union RefreshableStatusType { + @doc("Refreshing status") + Refreshing: "Refreshing", + + @doc("NotRefreshing status") + NotRefreshing: "NotRefreshing", + + string, +} + +@doc("Disaster recovery type enum.") +union DisasterRecoveryType { + @doc("ADG type") + Adg: "Adg", + + @doc("Backup based type") + BackupBased: "BackupBased", + + string, +} + +@doc("Generate type enum") +union GenerateType { + @doc("Generate single") + Single: "Single", + + @doc("Generate all") + All: "All", + + string, +} + +@doc("PeerDb Details") +model PeerDbDetails { + @doc("The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer database.") + @minLength(1) + @maxLength(255) + peerDbId?: string; +} + +@doc("Autonomous Disaster Recovery standby database details.") +model AutonomousDatabaseStandbySummary { + @doc("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?: int32; + + @doc("The current state of the Autonomous Database.") + lifecycleState?: AutonomousDatabaseLifecycleState; + + @doc("Additional information about the current lifecycle state.") + lifecycleDetails?: string; + + @doc("The date and time the Autonomous Data Guard role was switched for the standby Autonomous Database.") + timeDataGuardRoleChanged?: string; + + @doc("The date and time the Disaster Recovery role was switched for the standby Autonomous Database.") + timeDisasterRecoveryRoleChanged?: string; +} + +@doc("Details for the long-term backup schedule.") +model LongTermBackUpScheduleDetails { + @doc("The frequency of the long-term backup schedule") + repeatCadence?: RepeatCadenceType; + + @doc("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?: utcDateTime; + + @doc("Retention period, in days, for backups.") + retentionPeriodInDays?: RetentionPeriod; + + @doc("Indicates if the long-term backup schedule should be deleted. The default value is `FALSE`.") + isDisabled?: boolean; +} + +@doc("Information about Oracle APEX Application Development.") +model ApexDetailsType { + @doc("The Oracle APEX Application Development version.") + apexVersion?: string; + + @doc("The Oracle REST Data Services (ORDS) version.") + ordsVersion?: string; +} + +@doc("The connection string profile to allow clients to group, filter and select connection string values based on structured metadata.") +model AllConnectionStringType { + @doc("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.") + @minLength(10) + @maxLength(255) + high?: string; + + @doc("The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements.") + @minLength(10) + @maxLength(255) + low?: string; + + @doc("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.") + @minLength(10) + @maxLength(255) + medium?: string; +} + +@doc("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.") +model ConnectionUrlType { + @doc("Oracle Application Express (APEX) URL.") + @minLength(10) + @maxLength(512) + apexUrl?: string; + + @doc("The URL of the Database Transforms for the Autonomous Database.") + @minLength(10) + @maxLength(512) + databaseTransformsUrl?: string; + + @doc("The URL of the Graph Studio for the Autonomous Database.") + @minLength(10) + @maxLength(512) + graphStudioUrl?: string; + + @doc("The URL of the Oracle Machine Learning (OML) Notebook for the Autonomous Database.") + @minLength(10) + @maxLength(512) + machineLearningNotebookUrl?: string; + + @doc("The URL of the MongoDB API for the Autonomous Database.") + @minLength(10) + @maxLength(512) + mongoDbUrl?: string; + + @doc("The Oracle REST Data Services (ORDS) URL of the Web Access for the Autonomous Database.") + @minLength(10) + @maxLength(512) + ordsUrl?: string; + + @doc("Oracle SQL Developer Web URL.") + @minLength(10) + @maxLength(512) + sqlDevWebUrl?: string; +} + +@doc("The connection string profile to allow clients to group, filter and select connection string values based on structured metadata.") +model ProfileType { + @doc("Consumer group used by the connection.") + consumerGroup?: ConsumerGroup; + + @doc("A user-friendly name for the connection.") + @minLength(1) + @maxLength(255) + displayName: string; + + @doc("Host format used in connection string.") + hostFormat: HostFormatType; + + @doc("True for a regional connection string, applicable to cross-region DG only.") + isRegional?: boolean; + + @doc("Protocol used by the connection.") + protocol: ProtocolType; + + @doc("Specifies whether the listener performs a direct hand-off of the session, or redirects the session.") + sessionMode: SessionModeType; + + @doc("Specifies whether the connection string is using the long (LONG), Easy Connect (EZCONNECT), or Easy Connect Plus (EZCONNECTPLUS) format.") + syntaxFormat: SyntaxFormatType; + + @doc("Specifies whether the TLS handshake is using one-way (SERVER) or mutual (MUTUAL) authentication.") + tlsAuthentication?: TlsAuthenticationType; + + @doc("Connection string value.") + value: string; +} + +@doc("Connection strings to connect to an Oracle Autonomous Database.") +model ConnectionStringType { + @doc("Returns all connection strings that can be used to connect to the Autonomous Database.") + allConnectionStrings?: AllConnectionStringType; + + @doc("The database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements.") + @minLength(10) + @maxLength(255) + dedicated?: string; + + @doc("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.") + @minLength(10) + @maxLength(255) + high?: string; + + @doc("The Low database service provides the least level of resources to each SQL statement, but supports the most number of concurrent SQL statements.") + @minLength(10) + @maxLength(255) + low?: string; + + @doc("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.") + @minLength(10) + @maxLength(255) + medium?: string; + + @doc("A list of connection string profiles to allow clients to group, filter and select connection string values based on structured metadata.") + @OpenAPI.extension("x-ms-identifiers", []) + profiles?: ProfileType[]; +} + +@doc("The list of scheduled operations.") +model ScheduledOperationsType { + @doc("Day of week") + dayOfWeek: DayOfWeek; + + @doc("auto start time. value must be of ISO-8601 format HH:mm") + @minLength(1) + @maxLength(50) + scheduledStartTime?: string; + + @doc("auto stop time. value must be of ISO-8601 format HH:mm") + @minLength(1) + @maxLength(50) + scheduledStopTime?: string; +} + +@doc("Autonomous Database resource model.") +model AutonomousDatabase is TrackedResource { + @doc("The database name.") + @key("autonomousdatabasename") + @path + @segment("autonomousDatabases") + @minLength(1) + @maxLength(30) + @pattern(".*") + name: string; +} + +@doc("Autonomous Database resource model.") +model AutonomousDatabaseProperties extends AutonomousDatabaseBaseProperties { + @doc("Database type to be created.") + dataBaseType: DataBaseType.Regular; +} + +@doc("Autonomous Database clone resource model.") +model AutonomousDatabaseCloneProperties + extends AutonomousDatabaseBaseProperties { + @doc("Database type to be created.") + dataBaseType: DataBaseType.Clone; + + @doc("The source of the database.") + @visibility("create") + source?: SourceType; + + @doc("The Azure ID of the Autonomous Database that was cloned to create the current Autonomous Database.") + @visibility("create", "read") + sourceId: AutonomousDatabaseId; + + @doc("The Autonomous Database clone type.") + @visibility("create") + cloneType: CloneType; + + @doc("Indicates if the refreshable clone can be reconnected to its source database.") + @visibility("read") + isReconnectCloneEnabled?: boolean; + + @doc("Indicates if the Autonomous Database is a refreshable clone.") + @visibility("read") + isRefreshableClone?: boolean; + + @doc("The refresh mode of the clone.") + @visibility("create") + refreshableModel?: RefreshableModelType; + + @doc("The refresh status of the clone.") + @visibility("read") + refreshableStatus?: RefreshableStatusType; + + @doc("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.") + @visibility("read", "update") + timeUntilReconnectCloneEnabled?: string; +} + +@discriminator("dataBaseType") +@doc("Autonomous Database base resource model.") +model AutonomousDatabaseBaseProperties { + @doc("Admin password.") + @visibility("create", "update") + @minLength(12) + @maxLength(30) + adminPassword?: Password; + + @doc("Database type to be created.") + @visibility("create") + dataBaseType: DataBaseType; + + @doc("The maintenance schedule type of the Autonomous Database Serverless.") + @visibility("create", "read", "update") + autonomousMaintenanceScheduleType?: AutonomousMaintenanceScheduleType; + + @doc("The character set for the autonomous database.") + @visibility("create", "read") + @minLength(1) + @maxLength(255) + characterSet?: string; + + @doc("The compute amount (CPUs) available to the database.") + @visibility("create", "read", "update") + @minValue(0.1) + @maxValue(512) + computeCount?: float32; + + @doc("The compute model of the Autonomous Database.") + @visibility("create", "read") + computeModel?: ComputeModel; + + @doc("The number of CPU cores to be made available to the database.") + @visibility("create", "read", "update") + @minValue(1) + @maxValue(128) + cpuCoreCount?: int32; + + @doc("Customer Contacts.") + @visibility("create", "read", "update") + @OpenAPI.extension("x-ms-identifiers", []) + customerContacts?: CustomerContact[]; + + @doc("The quantity of data in the database, in terabytes.") + @visibility("create", "read", "update") + @minValue(1) + @maxValue(384) + dataStorageSizeInTbs?: int32; + + @doc("The size, in gigabytes, of the data volume that will be created and attached to the database.") + @visibility("create", "read", "update") + @minValue(20) + @maxValue(393216) + dataStorageSizeInGbs?: int32; + + @doc("A valid Oracle Database version for Autonomous Database.") + @visibility("create", "read") + @minLength(1) + @maxLength(255) + dbVersion?: string; + + @doc("The Autonomous Database workload type") + @visibility("create", "read") + dbWorkload?: WorkloadType; + + @doc("The user-friendly name for the Autonomous Database.") + @visibility("create", "read", "update") + @minLength(1) + @maxLength(255) + displayName?: string; + + @doc("Indicates if auto scaling is enabled for the Autonomous Database CPU core count.") + @visibility("create", "read", "update") + isAutoScalingEnabled?: boolean; + + @doc("Indicates if auto scaling is enabled for the Autonomous Database storage.") + @visibility("create", "read", "update") + isAutoScalingForStorageEnabled?: boolean; + + @doc("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.") + @visibility("read") + peerDbIds?: string[]; + + @doc("The database OCID of the Disaster Recovery peer database, which is located in a different region from the current peer database.") + @visibility("update") + @minLength(1) + @maxLength(255) + peerDbId?: string; + + @doc("Indicates whether the Autonomous Database has local or called in-region Data Guard enabled.") + @visibility("create", "read", "update") + isLocalDataGuardEnabled?: boolean; + + @doc("Indicates whether the Autonomous Database has Cross Region Data Guard enabled.") + @visibility("read") + isRemoteDataGuardEnabled?: boolean; + + @doc("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.") + @visibility("read") + localDisasterRecoveryType?: DisasterRecoveryType; + + @doc("Local Autonomous Disaster Recovery standby database details.") + @visibility("read") + localStandbyDb?: AutonomousDatabaseStandbySummary; + + @doc("Indicates the number of seconds of data loss for a Data Guard failover.") + @visibility("read") + failedDataRecoveryInSeconds?: int32; + + @doc("Specifies if the Autonomous Database requires mTLS connections.") + @visibility("create", "read", "update") + isMtlsConnectionRequired?: boolean; + + @doc("Specifies if the Autonomous Database preview version is being provisioned.") + @visibility("create") + isPreviewVersionWithServiceTermsAccepted?: boolean; + + @doc("The Oracle license model that applies to the Oracle Autonomous Database. The default is LICENSE_INCLUDED.") + @visibility("create", "read", "update") + licenseModel?: LicenseModel; + + @doc("The character set for the Autonomous Database.") + @visibility("create", "read") + @minLength(1) + @maxLength(255) + ncharacterSet?: string; + + @doc("Additional information about the current lifecycle state.") + @visibility("read") + lifecycleDetails?: string; + + @doc("Azure resource provisioning state.") + @visibility("read") + provisioningState?: AzureResourceProvisioningState; + + @doc("Views lifecycleState") + @visibility("read") + lifecycleState?: AutonomousDatabaseLifecycleState; + + @doc("The list of scheduled operations.") + @visibility("create", "read", "update") + scheduledOperations?: ScheduledOperationsType; + + @doc("The private endpoint Ip address for the resource.") + @visibility("create", "read") + privateEndpointIp?: string; + + @doc("The resource's private endpoint label.") + @visibility("create", "read") + privateEndpointLabel?: string; + + @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") + @visibility("read") + ociUrl?: string; + + @doc("Client subnet") + @visibility("create", "read") + subnetId?: SubnetId; + + @doc("VNET for network connectivity") + @visibility("create", "read") + vnetId?: VnetId; + + @doc("The date and time that the database was created.") + @visibility("read") + timeCreated?: utcDateTime; + + @doc("The date and time when maintenance will begin.") + @visibility("read") + timeMaintenanceBegin?: utcDateTime; + + @doc("The date and time when maintenance will end.") + @visibility("read") + timeMaintenanceEnd?: utcDateTime; + + @doc("The current amount of storage in use for user and system data, in terabytes (TB).") + @visibility("read") + actualUsedDataStorageSizeInTbs?: float64; + + @doc("The amount of storage currently allocated for the database tables and billed for, rounded up.") + @visibility("read") + allocatedStorageSizeInTbs?: float64; + + @doc("Information about Oracle APEX Application Development.") + @visibility("read") + apexDetails?: ApexDetailsType; + + @doc("List of Oracle Database versions available for a database upgrade. If there are no version upgrades available, this list is empty.") + @visibility("read") + availableUpgradeVersions?: string[]; + + @doc("The connection string used to connect to the Autonomous Database.") + @visibility("read") + connectionStrings?: ConnectionStringType; + + @doc("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. ") + @visibility("read") + connectionUrls?: ConnectionUrlType; + + @doc("Status of the Data Safe registration for this Autonomous Database.") + @visibility("read") + dataSafeStatus?: DataSafeStatusType; + + @doc("The Oracle Database Edition that applies to the Autonomous databases.") + @visibility("create", "read", "update") + databaseEdition?: DatabaseEditionType; + + @doc("Autonomous Database ID") + @visibility("create", "read") + autonomousDatabaseId?: AutonomousDatabaseId; + + @doc("The area assigned to In-Memory tables in Autonomous Database.") + @visibility("read") + inMemoryAreaInGbs?: int32; + + @doc("The date and time when the next long-term backup would be created.") + @visibility("read") + nextLongTermBackupTimeStamp?: utcDateTime; + + @doc("Details for the long-term backup schedule.") + @visibility("read", "update") + longTermBackupSchedule?: LongTermBackUpScheduleDetails; + + @doc("Indicates if the Autonomous Database version is a preview version.") + @visibility("read") + isPreview?: boolean; + + @doc("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") + @visibility("update", "read") + @minValue(0) + @maxValue(3600) + localAdgAutoFailoverMaxDataLossLimit?: int32; + + @doc("The amount of memory (in GBs) enabled per ECPU or OCPU.") + @visibility("read") + memoryPerOracleComputeUnitInGbs?: int32; + + @doc("Indicates the Autonomous Database mode.") + @visibility("update", "read") + openMode?: OpenModeType; + + @doc("Status of Operations Insights for this Autonomous Database.") + @visibility("read") + operationsInsightsStatus?: OperationsInsightsStatusType; + + @doc("The Autonomous Database permission level.") + @visibility("read", "update") + permissionLevel?: PermissionLevelType; + + @doc("The private endpoint for the resource.") + @visibility("read") + privateEndpoint?: string; + + @doc("An array of CPU values that an Autonomous Database can be scaled to.") + @visibility("read") + provisionableCpus?: int32[]; + + @doc("The Data Guard role of the Autonomous Container Database or Autonomous Database, if Autonomous Data Guard is enabled.") + @visibility("read", "update") + role?: RoleType; + + @doc("The URL of the Service Console for the Autonomous Database.") + @visibility("read") + @minLength(10) + @maxLength(255) + serviceConsoleUrl?: string; + + @doc("The SQL Web Developer URL for the Oracle Autonomous Database.") + @visibility("read") + @minLength(10) + @maxLength(2048) + sqlWebDeveloperUrl?: string; + + @doc("The list of regions that support the creation of an Autonomous Database clone or an Autonomous Data Guard standby database.") + @visibility("read") + @maxItems(50) + supportedRegionsToCloneTo?: string[]; + + @doc("The date and time the Autonomous Data Guard role was switched for the Autonomous Database.") + @visibility("read") + timeDataGuardRoleChanged?: string; + + @doc("The date and time the Always Free database will be automatically deleted because of inactivity.") + @visibility("read") + timeDeletionOfFreeAutonomousDatabase?: string; + + @doc("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.") + @visibility("read") + timeLocalDataGuardEnabled?: string; + + @doc("The timestamp of the last failover operation.") + @visibility("read") + timeOfLastFailover?: string; + + @doc("The date and time when last refresh happened.") + @visibility("read") + timeOfLastRefresh?: string; + + @doc("The refresh point timestamp (UTC).") + @visibility("read") + timeOfLastRefreshPoint?: string; + + @doc("The timestamp of the last switchover operation for the Autonomous Database.") + @visibility("read") + timeOfLastSwitchover?: string; + + @doc("The date and time the Always Free database will be stopped because of inactivity.") + @visibility("read") + timeReclamationOfFreeAutonomousDatabase?: string; + + @doc("The storage space consumed by Autonomous Database in GBs.") + @visibility("read") + usedDataStorageSizeInGbs?: int32; + + @doc("The amount of storage that has been used, in terabytes.") + @visibility("read") + usedDataStorageSizeInTbs?: int32; + + @doc("Database ocid") + @visibility("read") + ocid?: Ocid; + + @doc("Retention period, in days, for long-term backups") + @visibility("create", "read", "update") + backupRetentionPeriodInDays?: int32; + + @doc("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']") + @visibility("create", "read", "update") + whitelistedIps?: aclString[]; +} + +@doc("Autonomous Database Generate Wallet resource model.") +model GenerateAutonomousDatabaseWalletDetails { + @doc("The type of wallet to generate.") + generateType?: GenerateType; + + @doc("True when requesting regional connection strings in PDB connect info, applicable to cross-region DG only.") + isRegional?: boolean; + + @doc("The password to encrypt the keys inside the wallet") + @minLength(8) + password: Password; +} + +@doc("Autonomous Database Wallet File resource model.") +model AutonomousDatabaseWalletFile { + @doc("The base64 encoded wallet files") + walletFiles: string; +} diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp new file mode 100644 index 000000000000..e361dadf15b4 --- /dev/null +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabaseBackup.tsp @@ -0,0 +1,133 @@ +import "../common.tsp"; +import "./adbCommon.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; + +namespace Oracle.Database; + +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/ + +@doc("Autonomous database backup lifecycle state enum") +union AutonomousDatabaseBackupLifecycleState { + @doc("AutonomousDatabase backup is creating") + Creating: "Creating", + + @doc("AutonomousDatabase backup is active") + Active: "Active", + + @doc("AutonomousDatabase backup is deleting") + Deleting: "Deleting", + + @doc("AutonomousDatabase backup is failed") + Failed: "Failed", + + @doc("AutonomousDatabase backup is updating") + Updating: "Updating", + + string, +} + +@doc("Autonomous database backup type enum") +union AutonomousDatabaseBackupType { + @doc("Incremental backup") + Incremental: "Incremental", + + @doc("Full backup") + Full: "Full", + + @doc("LongTerm backup") + LongTerm: "LongTerm", + + string, +} + +@doc("AutonomousDatabaseBackup resource definition") +@parentResource(AutonomousDatabase) +model AutonomousDatabaseBackup + is ProxyResource { + @doc("AutonomousDatabaseBackup id") + @key("adbbackupid") + @path + @segment("autonomousDatabaseBackups") + @pattern(".*") + name: string; +} + +@doc("AutonomousDatabaseBackup resource model") +model AutonomousDatabaseBackupProperties { + @doc("The OCID of the Autonomous Database.") + @visibility("read") + autonomousDatabaseOcid?: Ocid; + + @doc("The size of the database in terabytes at the time the backup was taken.") + @visibility("read") + databaseSizeInTbs?: float64; + + @doc("A valid Oracle Database version for Autonomous Database.") + @visibility("read") + dbVersion?: string; + + @doc("The user-friendly name for the backup. The name does not have to be unique.") + @visibility("create", "read") + displayName?: string; + + @doc("The OCID of the Autonomous Database backup.") + @visibility("read") + ocid?: Ocid; + + @doc("Indicates whether the backup is user-initiated or automatic.") + @visibility("read") + isAutomatic?: boolean; + + @doc("Indicates whether the backup can be used to restore the associated Autonomous Database.") + @visibility("read") + isRestorable?: boolean; + + @doc("Additional information about the current lifecycle state.") + @visibility("read") + lifecycleDetails?: string; + + @doc("The current state of the backup.") + @visibility("read") + lifecycleState?: AutonomousDatabaseBackupLifecycleState; + + @doc("Retention period, in days, for long-term backups.") + @minValue(60) + @maxValue(3650) + @visibility("read", "create", "update") + retentionPeriodInDays?: int32; + + @doc("The backup size in terabytes (TB).") + @visibility("read") + sizeInTbs?: float64; + + @doc("Timestamp until when the backup will be available.") + @visibility("read") + timeAvailableTil?: utcDateTime; + + @doc("The date and time the backup started.") + @visibility("read") + timeStarted?: string; + + @doc("The date and time the backup completed.") + @visibility("read") + timeEnded?: string; + + @doc("The type of backup.") + @visibility("read") + backupType?: AutonomousDatabaseBackupType; + + @doc("Azure resource provisioning state.") + @visibility("read") + provisioningState?: AzureResourceProvisioningState; +} + +@doc("Details to restore an Oracle Autonomous Database.") +model RestoreAutonomousDatabaseDetails { + @doc("The time to restore the database to.") + timestamp: utcDateTime; +} diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabaseCharacterSet.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabaseCharacterSet.tsp new file mode 100644 index 000000000000..c7068156c821 --- /dev/null +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabaseCharacterSet.tsp @@ -0,0 +1,30 @@ +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +//https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets + +@doc("AutonomousDatabaseCharacterSets resource definition") +@parentResource(SubscriptionLocationResource) +model AutonomousDatabaseCharacterSet + is ProxyResource { + @doc("AutonomousDatabaseCharacterSet name") + @key("adbscharsetname") + @path + @segment("autonomousDatabaseCharacterSets") + @pattern(".*") + name: string; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read-only resource. No provisioning state provided." +@doc("AutonomousDatabaseCharacterSet resource model") +model AutonomousDatabaseCharacterSetProperties { + @doc("The Oracle Autonomous Database supported character sets.") + @visibility("read") + @minLength(1) + @maxLength(255) + characterSet: string; +} diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabaseNationalCharacterSet.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabaseNationalCharacterSet.tsp new file mode 100644 index 000000000000..91891da25d0d --- /dev/null +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabaseNationalCharacterSet.tsp @@ -0,0 +1,30 @@ +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; + +namespace Oracle.Database; + +//https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-character-set-selection.html + +@doc("AutonomousDatabaseNationalCharacterSets resource definition") +@parentResource(SubscriptionLocationResource) +model AutonomousDatabaseNationalCharacterSet + is ProxyResource { + @doc("AutonomousDatabaseNationalCharacterSets name") + @key("adbsncharsetname") + @path + @segment("autonomousDatabaseNationalCharacterSets") + @pattern(".*") + name: string; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read-only resource. No provisioning state provided." +@doc("AutonomousDatabaseNationalCharacterSet resource model") +model AutonomousDatabaseNationalCharacterSetProperties { + @doc("The Oracle Autonomous Database supported national character sets.") + @visibility("read") + @minLength(1) + @maxLength(255) + characterSet: string; +} diff --git a/specification/oracle/models/autonomousdatabase/autonomousDatabaseVersion.tsp b/specification/oracle/models/autonomousdatabase/autonomousDatabaseVersion.tsp new file mode 100644 index 000000000000..8560d62b80fe --- /dev/null +++ b/specification/oracle/models/autonomousdatabase/autonomousDatabaseVersion.tsp @@ -0,0 +1,50 @@ +import "../common.tsp"; + +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; + +namespace Oracle.Database; + +//https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary + +@doc("AutonomousDbVersion resource definition") +@parentResource(SubscriptionLocationResource) +model AutonomousDbVersion is ProxyResource { + @doc("AutonomousDbVersion name") + @key("autonomousdbversionsname") + @path + @segment("autonomousDbVersions") + @pattern(".*") + name: string; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read-only resource. No provisioning state provided." +@doc("AutonomousDbVersion resource model") +model AutonomousDbVersionProperties { + @doc("Supported Autonomous Db versions.") + @visibility("read") + @minLength(1) + @maxLength(255) + version: string; + + @doc("The Autonomous Database workload type") + @visibility("read") + dbWorkload?: WorkloadType; + + @doc("True if this version of the Oracle Database software's default is free.") + @visibility("read") + isDefaultForFree?: boolean; + + @doc("True if this version of the Oracle Database software's default is paid.") + @visibility("read") + isDefaultForPaid?: boolean; + + @doc("True if this version of the Oracle Database software can be used for Always-Free Autonomous Databases.") + @visibility("read") + isFreeTierEnabled?: boolean; + + @doc("True if this version of the Oracle Database software has payments enabled.") + @visibility("read") + isPaidEnabled?: boolean; +} diff --git a/specification/oracle/models/common.tsp b/specification/oracle/models/common.tsp new file mode 100644 index 000000000000..1770a9ab6873 --- /dev/null +++ b/specification/oracle/models/common.tsp @@ -0,0 +1,203 @@ +using OpenAPI; +using TypeSpec.Versioning; +using TypeSpec.Http; +using Azure.ResourceManager; +using Azure.Core; + +namespace Oracle.Database; + +scalar SubnetId + extends armResourceIdentifier<[ + { + type: "Microsoft.Network/virtualNetworks/subnets", + } + ]>; + +scalar VnetId + extends armResourceIdentifier<[ + { + type: "Microsoft.Network/virtualNetworks", + } + ]>; + +@doc("Azure Resource Provisioning State enum") +union AzureResourceProvisioningState { + ResourceProvisioningState, + + @doc("Indicates that resource in Provisioning state") + Provisioning: "Provisioning", + + string, +} + +@doc("WorkloadType enum") +union WorkloadType { + @doc("OLTP - indicates an Autonomous Transaction Processing database") + OLTP: "OLTP", + + @doc("DW - indicates an Autonomous Data Warehouse database") + DW: "DW", + + @doc("AJD - indicates an Autonomous JSON Database") + AJD: "AJD", + + @doc("APEX - indicates an Autonomous Database with the Oracle APEX Application Development workload type.") + APEX: "APEX", + + string, +} + +@doc("DayOfWeek resource properties") +model DayOfWeek { + @doc("Name of the day of the week.") + name: DayOfWeekName; +} + +@doc("The [OCID](/Content/General/Concepts/identifiers.htm) of the resource.") +@minLength(1) +@maxLength(255) +scalar Ocid extends string; + +@doc("LicenseModel enum") +union LicenseModel { + @doc("License included") + LicenseIncluded: "LicenseIncluded", + + @doc("Bring Your Own License") + BringYourOwnLicense: "BringYourOwnLicense", + + string, +} + +@doc("validation result") +model ValidationResult { + @doc("validation status") + status: ValidationStatus; + + @doc("validation error") + error: ValidationError; +} + +@doc("validation status") +union ValidationStatus { + @doc("Validation succeeded") + Succeeded: "Succeeded", + + @doc("Validation failed") + Failed: "Failed", + + string, +} + +@doc("validation error") +model ValidationError { + @doc("error code") + code: string; + + @doc("error message") + message: string; +} + +@doc("CustomerContact resource properties") +model CustomerContact { + @doc("The email address used by Oracle to send notifications regarding databases and infrastructure.") + @minLength(1) + @maxLength(320) + email: string; +} + +@secret +@doc("Password string.") +scalar Password extends string; + +@doc("MonthName enum") +union MonthName { + @doc("January value") + January: "January", + + @doc("February value") + February: "February", + + @doc("March value") + March: "March", + + @doc("April value") + April: "April", + + @doc("May value") + May: "May", + + @doc("June value") + June: "June", + + @doc("July value") + July: "July", + + @doc("August value") + August: "August", + + @doc("September value") + September: "September", + + @doc("October value") + October: "October", + + @doc("November value") + November: "November", + + @doc("December value") + December: "December", + + string, +} + +@doc("DayOfWeekName enum") +union DayOfWeekName { + @doc("Monday value") + Monday: "Monday", + + @doc("Tuesday value") + Tuesday: "Tuesday", + + @doc("Wednesday value") + Wednesday: "Wednesday", + + @doc("Thursday value") + Thursday: "Thursday", + + @doc("Friday value") + Friday: "Friday", + + @doc("Saturday value") + Saturday: "Saturday", + + @doc("Sunday value") + Sunday: "Sunday", + + string, +} + +@doc("Month resource properties") +model Month { + @doc("Name of the month of the year.") + name: MonthName; +} + +@doc("Header to distinguish between resource creation or update") +model MsRpaasNewResourceHeader { + @header("x-ms-rpaas-new-resource") + @doc("Boolean parameter to distinguish between resource creation or update") + @extension("x-default-description", true) + msRpaasNewResource?: boolean; +} + +// only properties are passed for Create Validation extension +model CreateValidationDetails { + ...MsRpaasNewResourceHeader; + properties: T; +} + +// only properties are passed for Patch Validation extension +model PatchValidationDetails { + properties: T; +} diff --git a/specification/oracle/models/exadata/dbNodes.tsp b/specification/oracle/models/exadata/dbNodes.tsp new file mode 100644 index 000000000000..bfb4a295cbaf --- /dev/null +++ b/specification/oracle/models/exadata/dbNodes.tsp @@ -0,0 +1,179 @@ +import "../common.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using Azure.ResourceManager; + +namespace Oracle.Database; + +@doc("The DbNode resource belonging to vmCluster") +@parentResource(CloudVmCluster) +model DbNode is ProxyResource { + @doc("DbNode OCID.") + @key("dbnodeocid") + @segment("dbNodes") + @path + @pattern(".*") + name: Ocid; +} + +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DbNodeSummary +@doc("The properties of DbNodeResource") +model DbNodeProperties { + @doc("DbNode OCID") + @visibility("read") + ocid: Ocid; + + @doc("Additional information about the planned maintenance.") + @visibility("read") + additionalDetails?: string; + + @doc("The OCID of the backup IP address associated with the database node.") + @visibility("read") + backupIpId?: Ocid; + + @doc("The OCID of the second backup VNIC.") + @visibility("read") + backupVnic2Id?: Ocid; + + @doc("The OCID of the backup VNIC.") + @visibility("read") + backupVnicId?: Ocid; + + @doc("The number of CPU cores enabled on the Db node.") + @visibility("read") + cpuCoreCount?: int32; + + @doc("The allocated local node storage in GBs on the Db node.") + @visibility("read") + dbNodeStorageSizeInGbs?: int32; + + @doc("The OCID of the Exacc Db server associated with the database node.") + @visibility("read") + dbServerId?: Ocid; + + @doc("The OCID of the DB system.") + @visibility("read") + dbSystemId: Ocid; + + @doc("The name of the Fault Domain the instance is contained in.") + @minLength(1) + @maxLength(255) + @visibility("read") + faultDomain?: string; + + @doc("The OCID of the host IP address associated with the database node.") + @visibility("read") + hostIpId?: Ocid; + + @doc("The host name for the database node.") + @visibility("read") + hostname?: string; + + @doc("The current state of the database node.") + @visibility("read") + lifecycleState?: DbNodeProvisioningState; + + @doc("Lifecycle details of Db Node.") + @visibility("read") + lifecycleDetails?: string; + + @doc("The type of database node maintenance.") + @visibility("read") + maintenanceType?: DbNodeMaintenanceType; + + @doc("The allocated memory in GBs on the Db node.") + @visibility("read") + memorySizeInGbs?: int32; + + @doc("The size (in GB) of the block storage volume allocation for the DB system. This attribute applies only for virtual machine DB systems.") + @visibility("read") + softwareStorageSizeInGb?: int32; + + @doc("The date and time that the database node was created.") + @visibility("read") + timeCreated?: utcDateTime; + + @doc("End date and time of maintenance window.") + @visibility("read") + timeMaintenanceWindowEnd?: utcDateTime; + + @doc("Start date and time of maintenance window.") + @visibility("read") + timeMaintenanceWindowStart?: utcDateTime; + + @doc("The OCID of the second VNIC.") + @visibility("read") + vnic2Id?: Ocid; + + @doc("The OCID of the VNIC.") + @visibility("read") + vnicId?: Ocid; + + @doc("Azure resource provisioning state.") + @visibility("read") + provisioningState?: ResourceProvisioningState; +} + +@doc("The type of database node maintenance.") +union DbNodeMaintenanceType { + @doc("VMDB reboot migration maintenance type") + VmdbRebootMigration: "VmdbRebootMigration", + + string, +} + +@doc("DnNode provisioning state enum") +union DbNodeProvisioningState { + @doc("Indicates that resource in Provisioning state") + Provisioning: "Provisioning", + + @doc("Indicates that resource in Available state") + Available: "Available", + + @doc("Indicates that resource in Updating state") + Updating: "Updating", + + @doc("Indicates that resource in Stopping state") + Stopping: "Stopping", + + @doc("Indicates that resource in Stopped state") + Stopped: "Stopped", + + @doc("Indicates that resource in Starting state") + Starting: "Starting", + + @doc("Indicates that resource in Terminating state") + Terminating: "Terminating", + + @doc("Indicates that resource in Terminated state") + Terminated: "Terminated", + + @doc("Indicates that resource in Failed state") + Failed: "Failed", + + string, +} + +@doc("DbNode action enum") +union DbNodeActionEnum { + @doc("Start DbNode") + Start: "Start", + + @doc("Stop DbNode") + Stop: "Stop", + + @doc("Soft reset DbNode") + SoftReset: "SoftReset", + + @doc("Reset DbNode") + Reset: "Reset", + + string, +} + +@doc("DbNode action object") +model DbNodeAction { + @doc("Db action") + action: DbNodeActionEnum; +} diff --git a/specification/oracle/models/exadata/dbServers.tsp b/specification/oracle/models/exadata/dbServers.tsp new file mode 100644 index 000000000000..c89a45af5796 --- /dev/null +++ b/specification/oracle/models/exadata/dbServers.tsp @@ -0,0 +1,167 @@ +import "../common.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using Azure.ResourceManager; + +namespace Oracle.Database; + +@doc("DbServer resource model") +@parentResource(CloudExadataInfrastructure) +model DbServer is ProxyResource { + @key("dbserverocid") + @doc("DbServer OCID.") + @segment("dbServers") + @path + @pattern(".*") + name: Ocid; +} + +@doc("DB Server patching status enum") +union DbServerPatchingStatus { + @doc("Patching scheduled") + Scheduled: "Scheduled", + + @doc("Patching in progress") + MaintenanceInProgress: "MaintenanceInProgress", + + @doc("Patching failed") + Failed: "Failed", + + @doc("Patching completed") + Complete: "Complete", + + string, +} + +@doc("DbServer Patching Properties") +model DbServerPatchingDetails { + @doc("Estimated Patch Duration") + @visibility("read") + @minValue(1) + @maxValue(3000) + estimatedPatchDuration?: int32; + + @doc("Patching Status") + @visibility("read") + patchingStatus?: DbServerPatchingStatus; + + @doc("Time Patching Ended") + @visibility("read") + timePatchingEnded?: utcDateTime; + + @doc("Time Patching Started") + @visibility("read") + timePatchingStarted?: utcDateTime; +} + +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DbServerSummary +@doc("DbServer resource properties") +model DbServerProperties { + @doc("Db server name.") + @visibility("read") + ocid?: Ocid; + + @doc("The name for the Db Server.") + @minLength(1) + @maxLength(255) + @visibility("read") + displayName?: string; + + @doc("The OCID of the compartment.") + @visibility("read") + compartmentId?: Ocid; + + @doc("The OCID of the Exadata infrastructure.") + @visibility("read") + exadataInfrastructureId?: Ocid; + + @doc("The number of CPU cores enabled on the Db server.") + @visibility("read") + cpuCoreCount?: int32; + + @doc("dbServerPatching details of the Db server.") + @visibility("read") + dbServerPatchingDetails?: DbServerPatchingDetails; + + @doc("The total memory available in GBs.") + @visibility("read") + maxMemoryInGbs?: int32; + + @doc("The allocated local node storage in GBs on the Db server.") + @visibility("read") + dbNodeStorageSizeInGbs?: int32; + + @doc("The OCID of the VM Clusters associated with the Db server.") + @visibility("read") + vmClusterIds?: Ocid[]; + + @doc("The OCID of the Db nodes associated with the Db server.") + @visibility("read") + dbNodeIds?: Ocid[]; + + @doc("Lifecycle details of dbServer.") + @visibility("read") + lifecycleDetails?: string; + + @doc("DbServer provisioning state.") + @visibility("read") + lifecycleState?: DbServerProvisioningState; + + @doc("The total number of CPU cores available.") + @visibility("read") + maxCpuCount?: int32; + + @doc("The list of OCIDs of the Autonomous VM Clusters associated with the Db server.") + @visibility("read") + autonomousVmClusterIds?: Ocid[]; + + @doc("The list of OCIDs of the Autonomous Virtual Machines associated with the Db server.") + @visibility("read") + autonomousVirtualMachineIds?: Ocid[]; + + @doc("The total max dbNode storage in GBs.") + @visibility("read") + maxDbNodeStorageInGbs?: int32; + + @doc("The total memory size in GBs.") + @visibility("read") + memorySizeInGbs?: int32; + + @doc("The shape of the Db server. The shape determines the amount of CPU, storage, and memory resources available.") + @visibility("read") + @minLength(1) + @maxLength(255) + shape?: string; + + @doc("The date and time that the Db Server was created.") + @visibility("read") + timeCreated?: utcDateTime; + + @doc("Azure resource provisioning state.") + @visibility("read") + provisioningState?: ResourceProvisioningState; +} + +@doc("DbServerProvisioningState enum") +union DbServerProvisioningState { + @doc("Indicates that resource in Creating state") + Creating: "Creating", + + @doc("Indicates that resource in Available state") + Available: "Available", + + @doc("Indicates that resource in Unavailable state") + Unavailable: "Unavailable", + + @doc("Indicates that resource in Deleting state") + Deleting: "Deleting", + + @doc("Indicates that resource in Deleted state") + Deleted: "Deleted", + + @doc("Indicates that resource maintenance in progress state") + MaintenanceInProgress: "MaintenanceInProgress", + + string, +} diff --git a/specification/oracle/models/exadata/dbSystemShapes.tsp b/specification/oracle/models/exadata/dbSystemShapes.tsp new file mode 100644 index 000000000000..c76cf13f1f79 --- /dev/null +++ b/specification/oracle/models/exadata/dbSystemShapes.tsp @@ -0,0 +1,102 @@ +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; + +namespace Oracle.Database; + +@doc("DbSystemShape resource definition") +@parentResource(SubscriptionLocationResource) +model DbSystemShape is ProxyResource { + @doc("DbSystemShape name") + @key("dbsystemshapename") + @path + @segment("dbSystemShapes") + @pattern(".*") + name: string; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read-only resource. No provisioning state provided." +@doc("DbSystemShape resource model") +model DbSystemShapeProperties { + @doc("The family of the shape used for the DB system.") + @visibility("read") + @minLength(1) + @maxLength(255) + shapeFamily?: string; + + @doc("The maximum number of CPU cores that can be enabled on the DB system for this shape.") + @visibility("read") + availableCoreCount: int32; + + @doc("The minimum number of CPU cores that can be enabled on the DB system for this shape.") + @visibility("read") + minimumCoreCount?: int32; + + @doc("The runtime minimum number of CPU cores that can be enabled on the DB system for this shape.") + @visibility("read") + runtimeMinimumCoreCount?: int32; + + @doc("The discrete number by which the CPU core count for this shape can be increased or decreased.") + @visibility("read") + coreCountIncrement?: int32; + + @doc("The minimum number of Exadata storage servers available for the Exadata infrastructure.") + @visibility("read") + minStorageCount?: int32; + + @doc("The maximum number of Exadata storage servers available for the Exadata infrastructure.") + @visibility("read") + maxStorageCount?: int32; + + @doc("The maximum data storage available per storage server for this shape. Only applicable to ExaCC Elastic shapes.") + @visibility("read") + availableDataStoragePerServerInTbs?: float64; + + @doc("The maximum memory available per database node for this shape. Only applicable to ExaCC Elastic shapes.") + @visibility("read") + availableMemoryPerNodeInGbs?: int32; + + @doc("The maximum Db Node storage available per database node for this shape. Only applicable to ExaCC Elastic shapes.") + @visibility("read") + availableDbNodePerNodeInGbs?: int32; + + @doc("The minimum number of CPU cores that can be enabled per node for this shape.") + @visibility("read") + minCoreCountPerNode?: int32; + + @doc("The maximum memory that can be enabled for this shape.") + @visibility("read") + availableMemoryInGbs?: int32; + + @doc("The minimum memory that need be allocated per node for this shape.") + @visibility("read") + minMemoryPerNodeInGbs?: int32; + + @doc("The maximum Db Node storage that can be enabled for this shape.") + @visibility("read") + availableDbNodeStorageInGbs?: int32; + + @doc("The minimum Db Node storage that need be allocated per node for this shape.") + @visibility("read") + minDbNodeStoragePerNodeInGbs?: int32; + + @doc("The maximum DATA storage that can be enabled for this shape.") + @visibility("read") + availableDataStorageInTbs?: int32; + + @doc("The minimum data storage that need be allocated for this shape.") + @visibility("read") + minDataStorageInTbs?: int32; + + @doc("The minimum number of database nodes available for this shape.") + @visibility("read") + minimumNodeCount?: int32; + + @doc("The maximum number of database nodes available for this shape.") + @visibility("read") + maximumNodeCount?: int32; + + @doc("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.") + @visibility("read") + availableCoreCountPerNode?: int32; +} diff --git a/specification/oracle/models/exadata/dnsPrivateViews.tsp b/specification/oracle/models/exadata/dnsPrivateViews.tsp new file mode 100644 index 000000000000..d697db6a5313 --- /dev/null +++ b/specification/oracle/models/exadata/dnsPrivateViews.tsp @@ -0,0 +1,70 @@ +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; + +namespace Oracle.Database; + +// https://docs.oracle.com/en-us/iaas/api/#/en/dns/20180115/ + +@doc("DnsPrivateView resource definition") +@parentResource(SubscriptionLocationResource) +model DnsPrivateView is ProxyResource { + @doc("DnsPrivateView OCID") + @key("dnsprivateviewocid") + @path + @segment("dnsPrivateViews") + @pattern(".*") + name: Ocid; +} + +@doc("Views resource model") +model DnsPrivateViewProperties { + @doc("The OCID of the view") + @visibility("read") + ocid: Ocid; + + @doc("The display name of the view resource") + @visibility("read") + displayName?: string; + + @doc("A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.") + @visibility("read") + isProtected: boolean; + + @doc("Views lifecycleState") + @visibility("read") + lifecycleState?: DnsPrivateViewsLifecycleState; + + @doc("The canonical absolute URL of the resource.") + @visibility("read") + self: string; + + @doc("views timeCreated") + @visibility("read") + timeCreated: utcDateTime; + + @doc("views timeCreated") + @visibility("read") + timeUpdated: utcDateTime; + + @doc("Azure resource provisioning state.") + @visibility("read") + provisioningState?: ResourceProvisioningState; +} + +@doc("DNS Private Views lifecycle state enum") +union DnsPrivateViewsLifecycleState { + @doc("DNS Private View is active") + Active: "Active", + + @doc("DNS Private View is deleted") + Deleted: "Deleted", + + @doc("DNS Private View is deleting") + Deleting: "Deleting", + + @doc("DNS Private View is updating") + Updating: "Updating", + + string, +} diff --git a/specification/oracle/models/exadata/dnsPrivateZones.tsp b/specification/oracle/models/exadata/dnsPrivateZones.tsp new file mode 100644 index 000000000000..7713ed63fb9b --- /dev/null +++ b/specification/oracle/models/exadata/dnsPrivateZones.tsp @@ -0,0 +1,94 @@ +using TypeSpec.Http; +using TypeSpec.Rest; +using Azure.Core; +using Azure.ResourceManager; +using OpenAPI; + +namespace Oracle.Database; + +// https://docs.oracle.com/en-us/iaas/api/#/en/dns/20180115/ + +@doc("DnsPrivateZone resource definition") +@parentResource(SubscriptionLocationResource) +model DnsPrivateZone is ProxyResource { + @doc("DnsPrivateZone name") + @key("dnsprivatezonename") + @path + @segment("dnsPrivateZones") + @pattern(".*") + name: string; +} + +@doc("Zones resource model") +model DnsPrivateZoneProperties { + @doc("The OCID of the Zone") + @visibility("read") + ocid: Ocid; + + @doc("A Boolean flag indicating whether or not parts of the resource are unable to be explicitly managed.") + @visibility("read") + isProtected: boolean; + + @doc("Zones lifecycleState") + @visibility("read") + lifecycleState?: DnsPrivateZonesLifecycleState; + + @doc("The canonical absolute URL of the resource.") + @visibility("read") + self: string; + + @doc("The current serial of the zone. As seen in the zone's SOA record.") + @visibility("read") + serial: int32; + + @doc("Version is the never-repeating, totally-orderable, version of the zone, from which the serial field of the zone's SOA record is derived.") + @visibility("read") + version: string; + + @doc("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.") + @visibility("read") + viewId?: Ocid; + + @doc("The type of the zone. Must be either PRIMARY or SECONDARY. SECONDARY is only supported for GLOBAL zones.") + @visibility("read") + zoneType: ZoneType; + + @doc("Zones timeCreated") + @visibility("read") + timeCreated: utcDateTime; + + @doc("Azure resource provisioning state.") + @visibility("read") + provisioningState?: ResourceProvisioningState; +} + +@doc("DNS Private Zones lifecycle state enum") +union DnsPrivateZonesLifecycleState { + @doc("DNS Private Zones is active") + Active: "Active", + + @doc("DNS Private Zones is creating") + Creating: "Creating", + + @doc("DNS Private Zones is deleted") + Deleted: "Deleted", + + @doc("DNS Private Zones is deleting") + Deleting: "Deleting", + + @doc("DNS Private Zones is updating") + Updating: "Updating", + + string, +} + +@doc("Zone type enum") +union ZoneType { + @doc("Primary zone") + Primary: "Primary", + + @doc("Secondary zone") + Secondary: "Secondary", + + string, +} diff --git a/specification/oracle/models/exadata/exadatainfra.tsp b/specification/oracle/models/exadata/exadatainfra.tsp new file mode 100644 index 000000000000..418513e20dc7 --- /dev/null +++ b/specification/oracle/models/exadata/exadatainfra.tsp @@ -0,0 +1,269 @@ +import "../common.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using Azure.Core; +using Azure.ResourceManager; +using OpenAPI; + +namespace Oracle.Database; + +@doc("Patching mode enum") +union PatchingMode { + @doc("Rolling patching") + Rolling: "Rolling", + + @doc("Non Rolling patching") + NonRolling: "NonRolling", + + string, +} + +@doc("Preference enum") +union Preference { + @doc("No preference") + NoPreference: "NoPreference", + + @doc("Custom preference") + CustomPreference: "CustomPreference", + + string, +} + +@doc("CloudExadataInfrastructureLifecycleState enum") +union CloudExadataInfrastructureLifecycleState { + @doc("Indicates that resource in Provisioning state") + Provisioning: "Provisioning", + + @doc("Indicates that resource in Available state") + Available: "Available", + + @doc("Indicates that resource in Updating state") + Updating: "Updating", + + @doc("Indicates that resource in Terminating state") + Terminating: "Terminating", + + @doc("Indicates that resource in Terminated state") + Terminated: "Terminated", + + @doc("Indicates that resource maintenance in progress state") + MaintenanceInProgress: "MaintenanceInProgress", + + @doc("Indicates that resource in Failed state") + Failed: "Failed", + + string, +} + +@doc("MaintenanceWindow resource properties") +model MaintenanceWindow { + @doc("The maintenance window scheduling preference.") + preference?: Preference; + + @doc("Months during the year when maintenance should be performed.") + @extension("x-ms-identifiers", ["name"]) + months?: Month[]; + + @doc("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?: int32[]; + + @doc("Days during the week when maintenance should be performed.") + @extension("x-ms-identifiers", ["name"]) + daysOfWeek?: DayOfWeek[]; + + @doc("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?: int32[]; + + @doc("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?: int32; + + @doc("Cloud Exadata infrastructure node patching method.") + patchingMode?: PatchingMode; + + // OCI Docs say min value is 15, but when making the call in OCI, observed a value of 0, so setting minimum value to 0. + // Link: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow + @doc("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).") + @minValue(0) + @maxValue(120) + customActionTimeoutInMins?: int32; + + @doc("If true, enables the configuration of a custom action timeout (waiting period) between database server patching operations.") + isCustomActionTimeoutEnabled?: boolean; + + // isMonthlyPatchingEnabled parameter was found in response in OCI, but is not found in OCI Docs: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow + @doc("is Monthly Patching Enabled") + isMonthlyPatchingEnabled?: boolean; +} + +@doc("The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).") +model EstimatedPatchingTime { + @doc("The estimated time required in minutes for database server patching.") + @minValue(1) + @maxValue(3000) + @visibility("read") + estimatedDbServerPatchingTime?: int32; + + @doc("The estimated time required in minutes for network switch patching.") + @minValue(1) + @maxValue(3000) + @visibility("read") + estimatedNetworkSwitchesPatchingTime?: int32; + + @doc("The estimated time required in minutes for storage server patching.") + @minValue(1) + @maxValue(3000) + @visibility("read") + estimatedStorageServerPatchingTime?: int32; + + @doc("The estimated total time required in minutes for all patching operations.") + @minValue(1) + @maxValue(3000) + @visibility("read") + totalEstimatedPatchingTime?: int32; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" +@doc("CloudExadataInfrastructure resource definition") +model CloudExadataInfrastructure + is TrackedResource { + @doc("CloudExadataInfrastructure name") + @key("cloudexadatainfrastructurename") + @path + @segment("cloudExadataInfrastructures") + @pattern(".*") + name: string; + + @doc("CloudExadataInfrastructure zones") + zones: string[]; +} + +@doc("CloudExadataInfrastructure resource model") +model CloudExadataInfrastructureProperties { + @doc("Exadata infra ocid") + @visibility("read") + ocid?: Ocid; + + @doc("The number of compute servers for the cloud Exadata infrastructure.") + @visibility("create", "read", "update") + computeCount?: int32; + + @doc("The number of storage servers for the cloud Exadata infrastructure.") + @visibility("create", "read", "update") + storageCount?: int32; + + @doc("The total storage allocated to the cloud Exadata infrastructure resource, in gigabytes (GB).") + @visibility("read") + totalStorageSizeInGbs?: int32; + + @doc("The available storage can be allocated to the cloud Exadata infrastructure resource, in gigabytes (GB).") + @visibility("read") + availableStorageSizeInGbs?: int32; + + @doc("The date and time the cloud Exadata infrastructure resource was created.") + @visibility("read") + timeCreated?: string; + + @doc("Additional information about the current lifecycle state.") + @visibility("read") + lifecycleDetails?: string; + + @doc("maintenanceWindow property") + @visibility("create", "read", "update") + maintenanceWindow?: MaintenanceWindow; + + @doc("The estimated total time required in minutes for all patching operations (database server, storage server, and network switch patching).") + @visibility("read") + estimatedPatchingTime?: EstimatedPatchingTime; + + @doc("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. ") + @extension("x-ms-identifiers", []) + @visibility("create", "read", "update") + customerContacts?: CustomerContact[]; + + @doc("CloudExadataInfrastructure provisioning state") + @visibility("read") + provisioningState?: AzureResourceProvisioningState; + + @doc("CloudExadataInfrastructure lifecycle state") + @visibility("read") + lifecycleState?: CloudExadataInfrastructureLifecycleState; + + @doc("The model name of the cloud Exadata infrastructure resource.") + @visibility("create", "read") + shape: string; + + @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") + @visibility("read") + ociUrl?: url; + + @doc("The total number of CPU cores allocated.") + @visibility("read") + cpuCount?: int32; + + @doc("The total number of CPU cores available.") + @visibility("read") + maxCpuCount?: int32; + + @doc("The memory allocated in GBs.") + @visibility("read") + memorySizeInGbs?: int32; + + @doc("The total memory available in GBs.") + @visibility("read") + maxMemoryInGbs?: int32; + + @doc("The local node storage to be allocated in GBs.") + @visibility("read") + dbNodeStorageSizeInGbs?: int32; + + @doc("The total local node storage available in GBs.") + @visibility("read") + maxDbNodeStorageSizeInGbs?: int32; + + @doc("The quantity of data in the database, in terabytes.") + @visibility("read") + dataStorageSizeInTbs?: float64; + + @doc("The total available DATA disk group size.") + @visibility("read") + maxDataStorageInTbs?: float64; + + @doc("The software version of the database servers (dom0) in the Exadata infrastructure.") + @visibility("read") + dbServerVersion?: string; + + @doc("The software version of the storage servers (cells) in the Exadata infrastructure.") + @visibility("read") + storageServerVersion?: string; + + @doc("The requested number of additional storage servers activated for the Exadata infrastructure.") + @visibility("read") + activatedStorageCount?: int32; + + @doc("The requested number of additional storage servers for the Exadata infrastructure.") + @visibility("read") + additionalStorageCount?: int32; + + @doc("The name for the Exadata infrastructure.") + @visibility("create", "read", "update") + @minLength(1) + @maxLength(255) + displayName: string; + + @doc("The OCID of the last maintenance run.") + @visibility("read") + lastMaintenanceRunId?: Ocid; + + @doc("The OCID of the next maintenance run.") + @visibility("read") + nextMaintenanceRunId?: Ocid; + + @doc("Monthly Db Server version") + @visibility("read") + monthlyDbServerVersion?: string; + + @doc("Monthly Storage Server version") + @visibility("read") + monthlyStorageServerVersion?: string; +} diff --git a/specification/oracle/models/exadata/giVersions.tsp b/specification/oracle/models/exadata/giVersions.tsp new file mode 100644 index 000000000000..b61ac14c9d23 --- /dev/null +++ b/specification/oracle/models/exadata/giVersions.tsp @@ -0,0 +1,26 @@ +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; + +namespace Oracle.Database; + +@doc("GiVersion resource definition") +@parentResource(SubscriptionLocationResource) +model GiVersion is ProxyResource { + @doc("GiVersion name") + @key("giversionname") + @path + @segment("giVersions") + @pattern(".*") + name: string; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read-only resource. No provisioning state provided." +@doc("GiVersion resource model") +model GiVersionProperties { + @doc("A valid Oracle Grid Infrastructure (GI) software version.") + @visibility("read") + @minLength(1) + @maxLength(255) + version: string; +} diff --git a/specification/oracle/models/exadata/privateIpAddresses.tsp b/specification/oracle/models/exadata/privateIpAddresses.tsp new file mode 100644 index 000000000000..b49500206555 --- /dev/null +++ b/specification/oracle/models/exadata/privateIpAddresses.tsp @@ -0,0 +1,35 @@ +import "../common.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using Azure.ResourceManager; +using Azure.Core; + +namespace Oracle.Database; + +@doc("Private Ip Addresses filter") +model PrivateIpAddressesFilter { + @doc("Subnet OCID") + subnetId: Ocid; + + @doc("VCN OCID") + vnicId: Ocid; +} + +@doc("PrivateIpAddress resource properties") +model PrivateIpAddressProperties { + @doc("PrivateIpAddresses displayName") + displayName: string; + + @doc("PrivateIpAddresses hostnameLabel") + hostnameLabel: string; + + @doc("PrivateIpAddresses Id") + ocid: Ocid; + + @doc("PrivateIpAddresses ipAddress") + ipAddress: string; + + @doc("PrivateIpAddresses subnetId") + subnetId: Ocid; +} diff --git a/specification/oracle/models/exadata/systemVersions.tsp b/specification/oracle/models/exadata/systemVersions.tsp new file mode 100644 index 000000000000..bfd2ed4af0d8 --- /dev/null +++ b/specification/oracle/models/exadata/systemVersions.tsp @@ -0,0 +1,36 @@ +using Azure.ResourceManager; +using TypeSpec.Http; +using TypeSpec.Rest; + +namespace Oracle.Database; + +@doc("SystemVersion resource Definition") +@parentResource(SubscriptionLocationResource) +model SystemVersion is ProxyResource { + @doc("SystemVersion name") + @key("systemversionname") + @path + @segment("systemVersions") + @pattern(".*") + name: string; +} + +@doc("SystemVersions filter") +model SystemVersionsFilter { + @doc("Grid Infrastructure version") + giVersion: string; + + @doc("Exadata shape") + shape: string; + + @doc("Check If we have to list only latest versions") + isLatestVersion?: boolean; +} + +#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" "Read-only resource. No provisioning state provided." +@doc("System Version Resource model") +model SystemVersionProperties { + @doc("A valid Oracle System Version") + @visibility("read") + systemVersion: string; +} diff --git a/specification/oracle/models/exadata/virtualNetworkAddress.tsp b/specification/oracle/models/exadata/virtualNetworkAddress.tsp new file mode 100644 index 000000000000..bd67d5ee610a --- /dev/null +++ b/specification/oracle/models/exadata/virtualNetworkAddress.tsp @@ -0,0 +1,84 @@ +import "../common.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using Azure.Core; +using Azure.ResourceManager; +using OpenAPI; + +namespace Oracle.Database; + +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ApplicationVip/ + +@doc("VirtualNetworkAddressLifecycleState enum") +union VirtualNetworkAddressLifecycleState { + @doc("Indicates that resource in Provisioning state") + Provisioning: "Provisioning", + + @doc("Indicates that resource in Available state") + Available: "Available", + + @doc("Indicates that resource in Terminating state") + Terminating: "Terminating", + + @doc("Indicates that resource in Terminated state") + Terminated: "Terminated", + + @doc("Indicates that resource in Failed state") + Failed: "Failed", + + string, +} + +@doc("Virtual IP resource belonging to a vm cluster resource.") +@parentResource(CloudVmCluster) +model VirtualNetworkAddress is ProxyResource { + @doc("Virtual IP address hostname.") + @key("virtualnetworkaddressname") + @path + @segment("virtualNetworkAddresses") + @minLength(1) + @maxLength(63) + @pattern(".*") + name: string; +} + +@doc("virtualNetworkAddress resource properties") +model VirtualNetworkAddressProperties { + @doc("Virtual network Address address.") + @visibility("create", "read") + ipAddress?: string; + + @doc("Virtual Machine OCID.") + @visibility("create", "read") + vmOcid?: Ocid; + + @doc("Application VIP OCID.") + @visibility("read") + ocid?: Ocid; + + @doc("Virtual network address fully qualified domain name.") + @visibility("read") + domain?: string; + + @doc("Additional information about the current lifecycle state of the application virtual IP (VIP) address.") + @visibility("read") + lifecycleDetails?: string; + + //Subnet should be retrieved from the VM Cluster + // @doc("Client subnet") + // @visibility("create", "read") + // subnetId?: SubnetId; + + @doc("Azure resource provisioning state.") + @visibility("read") + provisioningState?: AzureResourceProvisioningState; + + @doc("virtual network address lifecycle state.") + @visibility("read") + lifecycleState?: VirtualNetworkAddressLifecycleState; + + @doc("The date and time when the create operation for the application virtual IP (VIP) address completed.") + @visibility("read") + timeAssigned?: utcDateTime; +} diff --git a/specification/oracle/models/exadata/vmcluster.tsp b/specification/oracle/models/exadata/vmcluster.tsp new file mode 100644 index 000000000000..e3ea86bd0e51 --- /dev/null +++ b/specification/oracle/models/exadata/vmcluster.tsp @@ -0,0 +1,396 @@ +import "../common.tsp"; + +using TypeSpec.Http; +using TypeSpec.Rest; +using TypeSpec.Versioning; +using Azure.Core; +using Azure.ResourceManager; +using OpenAPI; + +namespace Oracle.Database; + +scalar CloudExadataInfrastructureId + extends armResourceIdentifier<[ + { + type: "Oracle.Database/cloudExadataInfrastructures", + } + ]>; + +@doc("DataCollectionOptions resource properties") +model DataCollectionOptions { + @doc("Indicates whether diagnostic collection is enabled for the VM cluster/Cloud VM cluster/VMBM DBCS.") + isDiagnosticsEventsEnabled?: boolean = false; + + @doc("Indicates whether health monitoring is enabled for the VM cluster / Cloud VM cluster / VMBM DBCS.") + isHealthMonitoringEnabled?: boolean = false; + + @doc("Indicates whether incident logs and trace collection are enabled for the VM cluster / Cloud VM cluster / VMBM DBCS.") + isIncidentLogsEnabled?: boolean = false; +} + +@doc("Update action enum") +union UpdateAction { + @doc("Rolling apply action") + RollingApply: "RollingApply", + + @doc("Non rolling apply action") + NonRollingApply: "NonRollingApply", + + @doc("Pre-check action") + PreCheck: "PreCheck", + + @doc("Rollback action") + RollBack: "RollBack", + + string, +} + +@doc("ExadataIormConfig for cloud vm cluster") +model ExadataIormConfig { + @doc("An array of IORM settings for all the database in the Exadata DB system.") + @extension("x-ms-identifiers", []) + dbPlans?: DbIormConfig[]; + + @doc("Additional information about the current lifecycleState.") + lifecycleDetails?: string; + + @doc("The current state of IORM configuration for the Exadata DB system.") + lifecycleState?: IormLifecycleState; + + @doc("The current value for the IORM objective. The default is AUTO.") + objective?: Objective; +} + +@doc("DbIormConfig for cloud vm cluster") +model DbIormConfig { + @doc("The database name. For the default DbPlan, the dbName is default.") + dbName?: string; + + @doc("The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.") + flashCacheLimit?: string; + + @doc("The relative priority of this database.") + @minValue(1) + @maxValue(32) + share?: int32; +} + +@doc("Objective enum") +union Objective { + @doc("Low latency objective") + LowLatency: "LowLatency", + + @doc("High throughput objective") + HighThroughput: "HighThroughput", + + @doc("Balanced objective") + Balanced: "Balanced", + + @doc("Auto objective") + Auto: "Auto", + + @doc("Basic objective") + Basic: "Basic", + + string, +} + +@doc("ORM lifecycle state enum") +union IormLifecycleState { + @doc("Indicates that resource in Provisioning state") + BootStrapping: "BootStrapping", + + @doc("Indicates that resource in Enabled state") + Enabled: "Enabled", + + @doc("Indicates that resource in Disabled state") + Disabled: "Disabled", + + @doc("Indicates that resource in Updating state") + Updating: "Updating", + + @doc("Indicates that resource in Failed state") + Failed: "Failed", + + string, +} + +@doc("Disk redundancy enum") +union DiskRedundancy { + @doc("High redundancy") + High: "High", + + @doc("Normal redundancy") + Normal: "Normal", + + string, +} + +@doc("Cloud VM Cluster lifecycle state enum") +union CloudVmClusterLifecycleState { + @doc("Indicates that resource in Provisioning state") + Provisioning: "Provisioning", + + @doc("Indicates that resource in Available state") + Available: "Available", + + @doc("Indicates that resource in Updating state") + Updating: "Updating", + + @doc("Indicates that resource in Terminating state") + Terminating: "Terminating", + + @doc("Indicates that resource in Terminated state") + Terminated: "Terminated", + + @doc("Indicates that resource Maintenance in progress state") + MaintenanceInProgress: "MaintenanceInProgress", + + @doc("Indicates that resource in Failed state") + Failed: "Failed", + + string, +} + +@doc("CloudVmCluster resource definition") +model CloudVmCluster is TrackedResource { + @doc("CloudVmCluster name") + @key("cloudvmclustername") + @path + @segment("cloudVmClusters") + @pattern(".*") + name: string; +} + +@doc("Port Range to specify particular destination ports for TCP rules.") +model PortRange { + @doc("The minimum port number, which must not be greater than the maximum port number.") + @minValue(1) + @maxValue(65535) + min: int32; + + @doc("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.") + @minValue(1) + @maxValue(65535) + max: int32; +} + +@doc("A rule for allowing inbound (INGRESS) IP packets") +model NsgCidr { + @doc("Conceptually, this is the range of IP addresses that a packet coming into the instance can come from.") + @minLength(1) + @maxLength(128) + source: string; + + @doc("Destination port range to specify particular destination ports for TCP rules.") + destinationPortRange?: PortRange; +} + +@doc("CloudVmCluster resource model") +model CloudVmClusterProperties { + @doc("Cloud VM Cluster ocid") + @visibility("read") + ocid?: Ocid; + + @doc("The port number configured for the listener on the cloud VM cluster.") + @visibility("read") + listenerPort?: int64; + + @doc("The number of nodes in the cloud VM cluster. ") + @visibility("read") + nodeCount?: int32; + + @doc("The data disk group size to be allocated in GBs per VM.") + @visibility("read", "update") + storageSizeInGbs?: int32; + + @doc("The data disk group size to be allocated in TBs.") + dataStorageSizeInTbs?: float64; + + @doc("The local node storage to be allocated in GBs.") + dbNodeStorageSizeInGbs?: int32; + + @doc("The memory to be allocated in GBs.") + memorySizeInGbs?: int32; + + @doc("The date and time that the cloud VM cluster was created.") + @visibility("read") + timeCreated?: utcDateTime; + + @doc("Additional information about the current lifecycle state.") + @visibility("read") + lifecycleDetails?: string; + + @doc("The time zone of the cloud VM cluster. For details, see [Exadata Infrastructure Time Zones](/Content/Database/References/timezones.htm).") + @visibility("create", "read") + @minLength(1) + @maxLength(255) + timeZone?: string; + + @doc("The OCID of the zone the cloud VM cluster is associated with.") + @visibility("create", "read") + zoneId?: Ocid; + + @doc("The hostname for the cloud VM cluster.") + @visibility("create", "read") + @minLength(1) + @maxLength(23) + hostname: string; + + @doc("The domain name for the cloud VM cluster.") + @visibility("create", "read") + domain?: string; + + @doc("The number of CPU cores enabled on the cloud VM cluster.") + cpuCoreCount: int32; + + @doc("The number of OCPU cores to enable on the cloud VM cluster. Only 1 decimal place is allowed for the fractional part.") + ocpuCount?: float32; + + @doc("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. ") + @visibility("create", "read") + @minLength(1) + @maxLength(11) + clusterName?: string; + + @doc("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. ") + @visibility("create", "read") + dataStoragePercentage?: int32; + + @doc("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. ") + @visibility("create", "read") + isLocalBackupEnabled?: boolean = false; + + @doc("Cloud Exadata Infrastructure ID") + @visibility("create", "read") + cloudExadataInfrastructureId: CloudExadataInfrastructureId; + + @doc("If true, sparse disk group is configured for the cloud VM cluster. If false, sparse disk group is not created. ") + @visibility("create", "read") + isSparseDiskgroupEnabled?: boolean = false; + + @doc("Operating system version of the image.") + @visibility("create", "read") + @minLength(1) + @maxLength(255) + systemVersion?: string; + + @doc("The public key portion of one or more key pairs used for SSH access to the cloud VM cluster.") + sshPublicKeys: string[]; + + @doc("The Oracle license model that applies to the cloud VM cluster. The default is LICENSE_INCLUDED. ") + licenseModel?: LicenseModel; + + @doc("The type of redundancy configured for the cloud Vm cluster. NORMAL is 2-way redundancy. HIGH is 3-way redundancy. ") + @visibility("read") + diskRedundancy?: DiskRedundancy; + + @doc("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.") + @visibility("read") + scanIpIds?: string[]; + + @doc("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.") + @visibility("read") + vipIds?: string[]; + + @doc("The FQDN of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster. ") + @visibility("read") + @minLength(1) + @maxLength(72) + scanDnsName?: string; + + @doc("The TCP Single Client Access Name (SCAN) port. The default port is 1521.") + @visibility("create", "read") + scanListenerPortTcp?: int32; + + @doc("The TCPS Single Client Access Name (SCAN) port. The default port is 2484.") + @visibility("create", "read") + scanListenerPortTcpSsl?: int32; + + @doc("The OCID of the DNS record for the SCAN IP addresses that are associated with the cloud VM cluster.") + @visibility("read") + scanDnsRecordId?: Ocid; + + @doc("The model name of the Exadata hardware running the cloud VM cluster.") + @visibility("read") + @minLength(1) + @maxLength(255) + shape?: string; + + @doc("CloudVmCluster provisioning state") + @visibility("read") + provisioningState?: AzureResourceProvisioningState; + + @doc("CloudVmCluster lifecycle state") + @visibility("read") + lifecycleState?: CloudVmClusterLifecycleState; + + @doc("VNET for network connectivity") + @visibility("create", "read") + vnetId: VnetId; + + @doc("Oracle Grid Infrastructure (GI) software version") + @visibility("create", "read") + giVersion: string; + + @doc("HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.") + @visibility("read") + ociUrl?: url; + + @doc("HTTPS link to OCI Network Security Group exposed to Azure Customer via the Azure Interface.") + @visibility("read") + nsgUrl?: url; + + @doc("Client subnet") + @visibility("create", "read") + subnetId: SubnetId; + + @doc("Client OCI backup subnet CIDR, default is 192.168.252.0/22") + @visibility("create", "read") + @minLength(1) + @maxLength(32) + backupSubnetCidr?: string; + + @doc("CIDR blocks for additional NSG ingress rules. The VNET CIDRs used to provision the VM Cluster will be added by default.") + @visibility("create", "read") + @extension("x-ms-identifiers", []) + nsgCidrs?: NsgCidr[]; + + @doc("Indicates user preferences for the various diagnostic collection options for the VM cluster/Cloud VM cluster/VMBM DBCS.") + dataCollectionOptions?: DataCollectionOptions; + + @doc("Display Name") + @minLength(1) + @maxLength(255) + displayName: string; + + @doc("The list of compute servers to be added to the cloud VM cluster.") + @visibility("update") + computeNodes?: Ocid[]; + + @doc("iormConfigCache details for cloud VM cluster.") + @visibility("read") + iormConfigCache?: ExadataIormConfig; + + @doc("The OCID of the last maintenance update history entry.") + @visibility("read") + lastUpdateHistoryEntryId?: Ocid; + + @doc("The list of DB servers.") + @visibility("create", "read") + dbServers?: Ocid[]; + + @doc("Cluster compartmentId") + @visibility("read") + compartmentId?: Ocid; + + @doc("Cluster subnet ocid") + @visibility("read") + subnetOcid?: Ocid; +} + +@doc("Add/Remove (Virtual Machine) DbNode model") +model AddRemoveDbNode { + @doc("Db servers ocids") + dbServers: Array; +} diff --git a/specification/oracle/models/oraclesubscription/oracleSubscription.tsp b/specification/oracle/models/oraclesubscription/oracleSubscription.tsp new file mode 100644 index 000000000000..35f57cae1404 --- /dev/null +++ b/specification/oracle/models/oraclesubscription/oracleSubscription.tsp @@ -0,0 +1,177 @@ +using TypeSpec.Http; +using TypeSpec.Rest; +using Azure.ResourceManager; + +namespace Oracle.Database; + +@doc("OracleSubscriptionProvisioningState enum") +union OracleSubscriptionProvisioningState { + ResourceProvisioningState, + string, +} + +@singleton +@subscriptionResource +@doc("OracleSubscription resource definition") +@friendlyName("OracleSubscription") +model OracleSubscription + is ProxyResource { + @doc("OracleSubscription name") + @key("oraclesubscriptionname") + @path + @segment("oracleSubscriptions") + @pattern(".*") + name: string; + + #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" + @doc("Details of the resource plan.") + plan?: ResourcePlanType; +} + +// Azure specs do not support update model for resource plan +@doc("ResourcePlanTypeUpdate model definition") +model PlanUpdate { + @doc("A user defined name of the 3rd Party Artifact that is being procured.") + name?: string; + + @doc("The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic") + publisher?: string; + + @doc("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; + + @doc("A publisher provided promotion code as provisioned in Data Market for the said product/artifact.") + promotionCode?: string; + + @doc("The version of the desired product/artifact.") + version?: string; +} + +@doc("CloudAccountProvisioningState enum") +union CloudAccountProvisioningState { + @doc("Pending - Initial state when Oracle cloud account is not configured") + Pending: "Pending", + + @doc("Provisioning - State when Oracle cloud account is being provisioned") + Provisioning: "Provisioning", + + @doc("Available - State when Oracle cloud account cloud linking is complete and it is available") + Available: "Available", + + string, +} + +@doc("Intent enum") +union Intent { + @doc("Retain intent") + Retain: "Retain", + + @doc("Reset intent") + Reset: "Reset", + + string, +} + +@doc("Cloud Account Details model") +model CloudAccountDetails { + @doc("Cloud Account name") + @visibility("read") + cloudAccountName?: string; + + @doc("Cloud Account Home region") + @visibility("read") + cloudAccountHomeRegion?: string; +} + +@doc("SaaS Subscription Details model") +model SaasSubscriptionDetails { + @doc("Purchased SaaS subscription ID") + @visibility("read") + id?: string; + + @doc("SaaS subscription name") + @visibility("read") + subscriptionName?: string; + + @doc("Creation Date and Time") + @visibility("read") + timeCreated?: utcDateTime; + + @doc("Purchased offer ID") + @visibility("read") + offerId?: string; + + @doc("Purchased offer's plan ID") + @visibility("read") + planId?: string; + + @doc("Indicates the status of the Subscription.") + @visibility("read") + saasSubscriptionStatus?: string; + + @doc("Publisher ID") + @visibility("read") + publisherId?: string; + + @doc("Purchaser Email ID") + @visibility("read") + purchaserEmailId?: string; + + @doc("Purchaser Tenant ID") + @visibility("read") + purchaserTenantId?: string; + + @doc("Purchase Term Unit") + @visibility("read") + termUnit?: string; + + @doc("AutoRenew flag") + @visibility("read") + isAutoRenew?: boolean; + + @doc("FreeTrial flag") + @visibility("read") + isFreeTrial?: boolean; +} + +@doc("Activation Links model") +model ActivationLinks { + @doc("New Cloud Account Activation Link") + @visibility("read") + newCloudAccountActivationLink?: string; + + @doc("Existing Cloud Account Activation Link") + @visibility("read") + existingCloudAccountActivationLink?: string; +} + +@doc("Oracle Subscription resource model") +model OracleSubscriptionProperties { + @doc("OracleSubscriptionProvisioningState provisioning state") + @visibility("read") + provisioningState?: OracleSubscriptionProvisioningState; + + @doc("SAAS subscription ID generated by Marketplace") + @visibility("read") + saasSubscriptionId?: string; + + @doc("Cloud Account Id") + @visibility("read") + cloudAccountId?: Ocid; + + @doc("Cloud Account provisioning state.") + @visibility("read") + cloudAccountState?: CloudAccountProvisioningState; + + @doc("Term Unit. P1Y, P3Y, etc, see Durations https://en.wikipedia.org/wiki/ISO_8601") + @visibility("create", "read") + termUnit?: string; + + @doc("Product code for the term unit") + @visibility("update") + productCode?: string; + + @doc("Intent for the update operation") + @visibility("update") + intent?: Intent; +} diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_create.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_create.json index af715c1ea733..be930819f8cc 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_create.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_create.json @@ -9,7 +9,7 @@ "adbbackupid": "1711644130", "resource": { "properties": { - "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", "displayName": "Nightly Backup", "retentionPeriodInDays": 365 } @@ -18,11 +18,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/1711644130", - "type": "Oracle.Database/autonomousDatabaseBackups", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", "properties": { - "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - "databaseSizeInTBs": 2, + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, "dbVersion": "19.6.0.0", "displayName": "Nightly Backup", "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", @@ -31,10 +31,11 @@ "lifecycleDetails": "Backup completed successfully", "lifecycleState": "Active", "retentionPeriodInDays": 365, - "sizeInTBs": 2, + "sizeInTbs": 2, "timeAvailableTil": "2025-01-09T20:44:09.466Z", + "timeStarted": "2024-01-09T19:44:09.466Z", "timeEnded": "2024-01-09T20:44:09.466Z", - "type": "Full", + "backupType": "Full", "provisioningState": "Succeeded" } } @@ -44,11 +45,11 @@ "Retry-After": 100 }, "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/backupdb1", - "type": "Oracle.Database/autonomousDatabaseBackups", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/backupdb1", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", "properties": { - "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - "databaseSizeInTBs": 2, + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, "dbVersion": "19.6.0.0", "displayName": "Nightly Backup", "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", @@ -57,10 +58,11 @@ "lifecycleDetails": "Backup completed successfully", "lifecycleState": "Active", "retentionPeriodInDays": 365, - "sizeInTBs": 2, + "sizeInTbs": 2, "timeAvailableTil": "2025-01-09T20:44:09.466Z", + "timeStarted": "2024-01-09T19:44:09.466Z", "timeEnded": "2024-01-09T20:44:09.466Z", - "type": "Full", + "backupType": "Full", "provisioningState": "Succeeded" } } diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_delete.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_delete.json index 0f35771dc60a..57eb4f861cfe 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_delete.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_delete.json @@ -1,6 +1,6 @@ { - "operationId": "AutonomousDatabaseBackups_delete", - "title": "AutonomousDatabaseBackups_delete", + "operationId": "AutonomousDatabaseBackups_Delete", + "title": "AutonomousDatabaseBackups_Delete", "parameters": { "api-version": "2023-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_get.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_get.json index 0befc17879f0..b1fae97c1bd6 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_get.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_get.json @@ -1,6 +1,6 @@ { - "operationId": "AutonomousDatabaseBackups_get", - "title": "AutonomousDatabaseBackups_get", + "operationId": "AutonomousDatabaseBackups_Get", + "title": "AutonomousDatabaseBackups_Get", "parameters": { "api-version": "2023-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", @@ -11,11 +11,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/1711644130", - "type": "Oracle.Database/autonomousDatabaseBackups", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", "properties": { - "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - "databaseSizeInTBs": 2, + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, "dbVersion": "19.6.0.0", "displayName": "Nightly Backup", "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", @@ -24,10 +24,11 @@ "lifecycleDetails": "Backup completed successfully", "lifecycleState": "Active", "retentionPeriodInDays": 365, - "sizeInTBs": 2, + "sizeInTbs": 2, "timeAvailableTil": "2025-01-09T20:44:09.466Z", + "timeStarted": "2024-01-09T19:44:09.466Z", "timeEnded": "2024-01-09T20:44:09.466Z", - "type": "Full", + "backupType": "Full", "provisioningState": "Succeeded" } } diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_listByParent.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_listByParent.json index d85a57cd54a8..4ebe52f4191c 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_listByParent.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_listByParent.json @@ -1,6 +1,6 @@ { - "operationId": "AutonomousDatabaseBackups_listByResourceGroup", - "title": "AutonomousDatabaseBackups_listByResourceGroup", + "operationId": "AutonomousDatabaseBackups_ListByAutonomousDatabase", + "title": "AutonomousDatabaseBackups_ListByAutonomousDatabase", "parameters": { "api-version": "2023-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", @@ -12,11 +12,11 @@ "body": { "value": [ { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/1711644130", - "type": "Oracle.Database/autonomousDatabaseBackups", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", "properties": { - "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - "databaseSizeInTBs": 2, + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, "dbVersion": "19.6.0.0", "displayName": "Nightly Backup", "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", @@ -25,10 +25,10 @@ "lifecycleDetails": "Backup completed successfully", "lifecycleState": "Active", "retentionPeriodInDays": 365, - "sizeInTBs": 2, + "sizeInTbs": 2, "timeAvailableTil": "2025-01-09T20:44:09.466Z", "timeEnded": "2024-01-09T20:44:09.466Z", - "type": "Full", + "backupType": "Full", "provisioningState": "Succeeded" } } diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_patch.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_patch.json index b7fb3546ca5e..c1c4a32ec58c 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_patch.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseBackup_patch.json @@ -1,6 +1,6 @@ { - "operationId": "AutonomousDatabaseBackups_update", - "title": "AutonomousDatabaseBackups_update", + "operationId": "AutonomousDatabaseBackups_Update", + "title": "AutonomousDatabaseBackups_Update", "parameters": { "api-version": "2023-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", @@ -12,11 +12,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/1711644130", - "type": "Oracle.Database/autonomousDatabaseBackups", + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1/autonomousDatabaseBackups/1711644130", + "type": "Oracle.Database/autonomousDatabases/autonomousDatabaseBackups", "properties": { - "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", - "databaseSizeInTBs": 2, + "autonomousDatabaseOcid": "ocid1.autonomousdatabase.oc1..aaaaa3klq", + "databaseSizeInTbs": 2, "dbVersion": "19.6.0.0", "displayName": "Nightly Backup", "ocid": "ocid1.autonomousdatabasebackup.oc1..aaaaaaaavwpj", @@ -25,8 +25,8 @@ "lifecycleDetails": "Backup updated successfully", "lifecycleState": "Active", "retentionPeriodInDays": 400, - "sizeInTBs": 2, - "type": "Full", + "sizeInTbs": 2, + "backupType": "Full", "provisioningState": "Succeeded" } } diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseClone_create.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseClone_create.json index d71aca700dd0..7046e1177614 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseClone_create.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabaseClone_create.json @@ -17,7 +17,7 @@ "dataStorageSizeInTbs": 1, "characterSet": "AL32UTF8", "ncharacterSet": "AL16UTF16", - "adminPassword": "", + "adminPassword": "********", "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" }, diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_create.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_create.json index 72d9f2dc923d..18862f95d313 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_create.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_create.json @@ -13,7 +13,7 @@ "computeModel": "ECPU", "computeCount": 2, "dataStorageSizeInTbs": 1, - "adminPassword": "", + "adminPassword": "********", "dbVersion": "18.4.0.0", "characterSet": "AL32UTF8", "ncharacterSet": "AL16UTF16", diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_restore.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_restore.json new file mode 100644 index 000000000000..6ad6cbccc9e3 --- /dev/null +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_restore.json @@ -0,0 +1,80 @@ +{ + "operationId": "AutonomousDatabases_Restore", + "title": "AutonomousDatabases_Restore", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1", + "body": { + "timestamp": "2024-04-23T00:00:00.000Z" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "backupRetentionPeriodInDays": 60, + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "RestoreInProgress", + "lifecycleDetails": "", + "nextLongTermBackupTimeStamp": "2024-04-24T21:03:41.000Z", + "longTermBackupSchedule": { + "isDisabled": null, + "repeatCadence": "Weekly", + "retentionPeriodInDays": 365, + "timeOfBackup": "2024-04-21T21:03:41.309Z" + }, + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "202": { + "headers": { + "Retry-After": 100, + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabaseBackups/1711644130/operationStatus" + } + } + } +} diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_shrink.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_shrink.json new file mode 100644 index 000000000000..47e5b0aca287 --- /dev/null +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/autonomousDatabase_shrink.json @@ -0,0 +1,77 @@ +{ + "operationId": "AutonomousDatabase_shrink", + "title": "AutonomousDatabase_shrink", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "rg000", + "autonomousdatabasename": "databasedb1" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "type": "Oracle.Database/autonomousDatabases", + "location": "eastus", + "tags": { + "tagK1": "tagV1" + }, + "properties": { + "autonomousDatabaseId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg000/providers/Oracle.Database/autonomousDatabases/databasedb1", + "actualUsedDataStorageSizeInTbs": null, + "autonomousMaintenanceScheduleType": "Regular", + "backupRetentionPeriodInDays": 90, + "characterSet": "AL32UTF8", + "ncharacterSet": "AL16UTF16", + "computeCount": 2.0, + "computeModel": "ECPU", + "cpuCoreCount": 1, + "customerContacts": null, + "dataStorageSizeInGbs": 1024, + "dataStorageSizeInTbs": 1, + "databaseEdition": "EnterpriseEdition", + "dataBaseType": "Regular", + "dbVersion": "18.4.0.0", + "displayName": "example_autonomous_databasedb1", + "isAutoScalingEnabled": false, + "isAutoScalingForStorageEnabled": false, + "isLocalDataGuardEnabled": false, + "isMtlsConnectionRequired": true, + "licenseModel": "BringYourOwnLicense", + "lifecycleState": "ScaleInProgress", + "lifecycleDetails": "", + "nextLongTermBackupTimeStamp": "2024-04-24T21:03:41.000Z", + "longTermBackupSchedule": { + "isDisabled": null, + "repeatCadence": "Weekly", + "retentionPeriodInDays": 365, + "timeOfBackup": "2024-04-21T21:03:41.309Z" + }, + "privateEndpointIp": null, + "privateEndpointLabel": null, + "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", + "provisioningState": "Succeeded", + "ociUrl": "https://fake", + "timeCreated": "2024-01-09T20:44:09.466Z", + "timeMaintenanceBegin": null, + "timeMaintenanceEnd": null, + "usedDataStorageSizeInGbs": null, + "usedDataStorageSizeInTbs": null, + "ocid": "ocid1..aaaaa", + "whitelistedIps": [ + "1.1.1.1", + "1.1.1.0/24", + "1.1.2.25" + ] + } + } + }, + "202": { + "headers": { + "Retry-After": 100, + "Location": "eastus" + } + } + } +} diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/dbNodes_listByParent.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/dbNodes_listByParent.json index ad295a90ed7c..8599aa52b6e6 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/dbNodes_listByParent.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/dbNodes_listByParent.json @@ -1,6 +1,6 @@ { - "operationId": "DbNodes_listByCloudVmCluster", - "title": "DbNodes_listByCloudVmCluster", + "operationId": "DbNodes_listByParent", + "title": "DbNodes_listByParent", "parameters": { "api-version": "2023-09-01-preview", "subscriptionId": "00000000-0000-0000-0000-000000000000", diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/systemVersions_get.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/systemVersions_get.json new file mode 100644 index 000000000000..c4313c80653d --- /dev/null +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/systemVersions_get.json @@ -0,0 +1,20 @@ +{ + "operationId": "SystemVersions_Get", + "title": "systemVersions_listSystemVersions", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus", + "systemversionname": "22.x" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/systemVersion/22.1.7.0.0.230113", + "properties": { + "systemVersion": "22.1.7.0.0.230113" + } + } + } + } +} diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/systemVersions_listByLocation.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/systemVersions_listByLocation.json new file mode 100644 index 000000000000..82998fab4b3a --- /dev/null +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/examples/systemVersions_listByLocation.json @@ -0,0 +1,24 @@ +{ + "operationId": "SystemVersions_ListByLocation", + "title": "systemVersions_listByLocation", + "parameters": { + "api-version": "2023-09-01-preview", + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "location": "eastus" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Oracle.Database/locations/eastus/systemVersion/22.1.7.0.0.230113", + "properties": { + "systemVersion": "22.1.7.0.0.230113" + } + } + ], + "nextLink": null + } + } + } +} diff --git a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/openapi.json b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/openapi.json index a3e7e33400e7..7240ac650bcc 100644 --- a/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/openapi.json +++ b/specification/oracle/resource-manager/Oracle.Database/preview/2023-09-01-preview/openapi.json @@ -2,7 +2,12 @@ "swagger": "2.0", "info": { "title": "Oracle Database Resource Manager", - "version": "2023-09-01-preview" + "version": "2023-09-01-preview", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] }, "schemes": [ "https" @@ -48,6 +53,9 @@ { "name": "VirtualNetworkAddresses" }, + { + "name": "SystemVersions" + }, { "name": "OracleSubscriptions" }, @@ -300,7 +308,8 @@ "in": "path", "description": "AutonomousDatabaseCharacterSet name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -388,7 +397,8 @@ "in": "path", "description": "AutonomousDatabaseNationalCharacterSets name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -476,7 +486,8 @@ "in": "path", "description": "AutonomousDbVersion name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -564,7 +575,8 @@ "in": "path", "description": "DbSystemShape name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -654,7 +666,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 255 + "maxLength": 255, + "pattern": ".*" } ], "responses": { @@ -742,7 +755,8 @@ "in": "path", "description": "DnsPrivateZone name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -830,7 +844,8 @@ "in": "path", "description": "GiVersion name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -854,6 +869,101 @@ } } }, + "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/systemVersions": { + "get": { + "operationId": "SystemVersions_ListByLocation", + "tags": [ + "SystemVersions" + ], + "description": "List SystemVersion resources by Location", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SystemVersionListResult" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "List Exadata System Versions by the provided filter": { + "$ref": "./examples/systemVersions_listByLocation.json" + }, + "systemVersions_listByLocation": { + "$ref": "./examples/systemVersions_listByLocation.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Oracle.Database/locations/{location}/systemVersions/{systemversionname}": { + "get": { + "operationId": "SystemVersions_Get", + "tags": [ + "SystemVersions" + ], + "description": "Get a SystemVersion", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/LocationParameter" + }, + { + "name": "systemversionname", + "in": "path", + "description": "SystemVersion name", + "required": true, + "type": "string", + "pattern": ".*" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/SystemVersion" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Exadata System Version": { + "$ref": "./examples/systemVersions_get.json" + }, + "systemVersions_listSystemVersions": { + "$ref": "./examples/systemVersions_get.json" + } + } + } + }, "/subscriptions/{subscriptionId}/providers/Oracle.Database/oracleSubscriptions": { "get": { "operationId": "OracleSubscriptions_ListBySubscription", @@ -1021,14 +1131,14 @@ "202": { "description": "Resource update request accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1067,14 +1177,14 @@ "202": { "description": "Resource deletion accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1124,14 +1234,14 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1178,14 +1288,14 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1232,14 +1342,14 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1327,7 +1437,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" } ], "responses": { @@ -1345,6 +1456,9 @@ } }, "x-ms-examples": { + "AutonomousDatabases_Get": { + "$ref": "./examples/autonomousDatabase_get.json" + }, "Get Autonomous Database": { "$ref": "./examples/autonomousDatabase_get.json" } @@ -1373,7 +1487,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "resource", @@ -1413,6 +1528,12 @@ } }, "x-ms-examples": { + "AutonomousDatabases_CreateOrUpdate": { + "$ref": "./examples/autonomousDatabase_create.json" + }, + "AutonomousDatabases_CreateOrUpdate_clone": { + "$ref": "./examples/autonomousDatabaseClone_create.json" + }, "Create Autonomous Database": { "$ref": "./examples/autonomousDatabase_create.json" }, @@ -1448,7 +1569,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "properties", @@ -1470,14 +1592,14 @@ "202": { "description": "Resource update request accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1521,21 +1643,22 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" } ], "responses": { "202": { "description": "Resource deletion accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1584,7 +1707,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" } ], "responses": { @@ -1602,6 +1726,9 @@ } }, "x-ms-examples": { + "AutonomousDatabaseBackups_ListByAutonomousDatabase": { + "$ref": "./examples/autonomousDatabaseBackup_listByParent.json" + }, "List Autonomous Database Backups by Autonomous Database.": { "$ref": "./examples/autonomousDatabaseBackup_listByParent.json" } @@ -1635,14 +1762,16 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "adbbackupid", "in": "path", "description": "AutonomousDatabaseBackup id", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -1660,6 +1789,9 @@ } }, "x-ms-examples": { + "AutonomousDatabaseBackups_Get": { + "$ref": "./examples/autonomousDatabaseBackup_get.json" + }, "Get Autonomous Database Backup.": { "$ref": "./examples/autonomousDatabaseBackup_get.json" } @@ -1688,14 +1820,16 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "adbbackupid", "in": "path", "description": "AutonomousDatabaseBackup id", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "resource", @@ -1735,6 +1869,9 @@ } }, "x-ms-examples": { + "AutonomousDatabaseBackups_CreateOrUpdate": { + "$ref": "./examples/autonomousDatabaseBackup_create.json" + }, "Create Autonomous Database Backup.": { "$ref": "./examples/autonomousDatabaseBackup_create.json" } @@ -1767,14 +1904,16 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "adbbackupid", "in": "path", "description": "AutonomousDatabaseBackup id", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "properties", @@ -1796,14 +1935,14 @@ "202": { "description": "Resource update request accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1815,6 +1954,9 @@ } }, "x-ms-examples": { + "AutonomousDatabaseBackups_Update": { + "$ref": "./examples/autonomousDatabaseBackup_patch.json" + }, "Patch Autonomous Database Backup.": { "$ref": "./examples/autonomousDatabaseBackup_patch.json" } @@ -1847,28 +1989,30 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "adbbackupid", "in": "path", "description": "AutonomousDatabaseBackup id", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { "202": { "description": "Resource deletion accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1883,6 +2027,9 @@ } }, "x-ms-examples": { + "AutonomousDatabaseBackups_Delete": { + "$ref": "./examples/autonomousDatabaseBackup_delete.json" + }, "Delete Autonomous Database Backup.": { "$ref": "./examples/autonomousDatabaseBackup_delete.json" } @@ -1917,7 +2064,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "body", @@ -1939,14 +2087,14 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -1958,6 +2106,9 @@ } }, "x-ms-examples": { + "AutonomousDatabases_Failover": { + "$ref": "./examples/autonomousDatabase_failover.json" + }, "Perform failover action on Autonomous Database": { "$ref": "./examples/autonomousDatabase_failover.json" } @@ -1992,7 +2143,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "body", @@ -2025,13 +2177,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/switchover": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/restore": { "post": { - "operationId": "AutonomousDatabases_Switchover", + "operationId": "AutonomousDatabases_Restore", "tags": [ "AutonomousDatabases" ], - "description": "Perform switchover action on Autonomous Database", + "description": "Restores an Autonomous Database based on the provided request parameters.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" @@ -2049,7 +2201,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 30 + "maxLength": 30, + "pattern": ".*" }, { "name": "body", @@ -2057,7 +2210,7 @@ "description": "The content of the action request", "required": true, "schema": { - "$ref": "#/definitions/PeerDbDetails" + "$ref": "#/definitions/RestoreAutonomousDatabaseDetails" } } ], @@ -2071,14 +2224,160 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "AutonomousDatabases_Restore": { + "$ref": "./examples/autonomousDatabase_restore.json" + }, + "Perform restore action on Autonomous Database": { + "$ref": "./examples/autonomousDatabase_restore.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/shrink": { + "post": { + "operationId": "AutonomousDatabases_Shrink", + "tags": [ + "AutonomousDatabases" + ], + "description": "This operation shrinks the current allocated storage down to the current actual used data storage.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "autonomousdatabasename", + "in": "path", + "description": "The database name.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 30, + "pattern": ".*" + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AutonomousDatabase" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-examples": { + "Perform shrink action on Autonomous Database": { + "$ref": "./examples/autonomousDatabase_shrink.json" + } + }, + "x-ms-long-running-operation-options": { + "final-state-via": "location" + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Oracle.Database/autonomousDatabases/{autonomousdatabasename}/switchover": { + "post": { + "operationId": "AutonomousDatabases_Switchover", + "tags": [ + "AutonomousDatabases" + ], + "description": "Perform switchover action on Autonomous Database", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "name": "autonomousdatabasename", + "in": "path", + "description": "The database name.", + "required": true, + "type": "string", + "minLength": 1, + "maxLength": 30, + "pattern": ".*" + }, + { + "name": "body", + "in": "body", + "description": "The content of the action request", + "required": true, + "schema": { + "$ref": "#/definitions/PeerDbDetails" + } + } + ], + "responses": { + "200": { + "description": "Azure operation completed successfully.", + "schema": { + "$ref": "#/definitions/AutonomousDatabase" + } + }, + "202": { + "description": "Resource operation accepted.", + "headers": { "Location": { "type": "string", "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." } } }, @@ -2090,6 +2389,9 @@ } }, "x-ms-examples": { + "AutonomousDatabases_Switchover": { + "$ref": "./examples/autonomousDatabase_switchover.json" + }, "Perform switchover action on Autonomous Database": { "$ref": "./examples/autonomousDatabase_switchover.json" } @@ -2164,7 +2466,8 @@ "in": "path", "description": "CloudExadataInfrastructure name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -2208,7 +2511,8 @@ "in": "path", "description": "CloudExadataInfrastructure name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "resource", @@ -2278,7 +2582,8 @@ "in": "path", "description": "CloudExadataInfrastructure name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "properties", @@ -2300,14 +2605,14 @@ "202": { "description": "Resource update request accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -2349,21 +2654,22 @@ "in": "path", "description": "CloudExadataInfrastructure name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { "202": { "description": "Resource deletion accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -2410,7 +2716,8 @@ "in": "path", "description": "CloudExadataInfrastructure name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -2423,14 +2730,14 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -2474,7 +2781,8 @@ "in": "path", "description": "CloudExadataInfrastructure name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -2523,7 +2831,8 @@ "in": "path", "description": "CloudExadataInfrastructure name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "dbserverocid", @@ -2532,7 +2841,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 255 + "maxLength": 255, + "pattern": ".*" } ], "responses": { @@ -2620,7 +2930,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -2664,7 +2975,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "resource", @@ -2734,7 +3046,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "properties", @@ -2756,14 +3069,14 @@ "202": { "description": "Resource update request accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -2805,21 +3118,22 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { "202": { "description": "Resource deletion accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -2866,7 +3180,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "body", @@ -2888,14 +3203,14 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -2939,7 +3254,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -2988,7 +3304,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "dbnodeocid", @@ -2997,7 +3314,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 255 + "maxLength": 255, + "pattern": ".*" } ], "responses": { @@ -3043,7 +3361,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "dbnodeocid", @@ -3052,7 +3371,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 255 + "maxLength": 255, + "pattern": ".*" }, { "name": "body", @@ -3074,14 +3394,14 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -3093,6 +3413,9 @@ } }, "x-ms-examples": { + "DbNodes_Action": { + "$ref": "./examples/dbNodes_action.json" + }, "VM actions on DbNodes of VM Cluster": { "$ref": "./examples/dbNodes_action.json" } @@ -3125,7 +3448,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "body", @@ -3184,7 +3508,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "body", @@ -3206,14 +3531,14 @@ "202": { "description": "Resource operation accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -3257,7 +3582,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" } ], "responses": { @@ -3306,7 +3632,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "virtualnetworkaddressname", @@ -3315,7 +3642,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 63 + "maxLength": 63, + "pattern": ".*" } ], "responses": { @@ -3359,7 +3687,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "virtualnetworkaddressname", @@ -3368,7 +3697,8 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 63 + "maxLength": 63, + "pattern": ".*" }, { "name": "resource", @@ -3438,7 +3768,8 @@ "in": "path", "description": "CloudVmCluster name", "required": true, - "type": "string" + "type": "string", + "pattern": ".*" }, { "name": "virtualnetworkaddressname", @@ -3447,21 +3778,22 @@ "required": true, "type": "string", "minLength": 1, - "maxLength": 63 + "maxLength": 63, + "pattern": ".*" } ], "responses": { "202": { "description": "Resource deletion accepted.", "headers": { + "Location": { + "type": "string", + "description": "The Location header contains the URL where the status of the long running operation can be checked." + }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." - }, - "Location": { - "type": "string", - "description": "The Location header contains the URL where the status of the long running operation can be checked." } } }, @@ -3600,7 +3932,7 @@ }, "AutonomousDatabaseBackupLifecycleState": { "type": "string", - "description": "AutonomousDatabaseBackupLifecycleState enum", + "description": "Autonomous database backup lifecycle state enum", "enum": [ "Creating", "Active", @@ -3610,7 +3942,34 @@ ], "x-ms-enum": { "name": "AutonomousDatabaseBackupLifecycleState", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Creating", + "value": "Creating", + "description": "AutonomousDatabase backup is creating" + }, + { + "name": "Active", + "value": "Active", + "description": "AutonomousDatabase backup is active" + }, + { + "name": "Deleting", + "value": "Deleting", + "description": "AutonomousDatabase backup is deleting" + }, + { + "name": "Failed", + "value": "Failed", + "description": "AutonomousDatabase backup is failed" + }, + { + "name": "Updating", + "value": "Updating", + "description": "AutonomousDatabase backup is updating" + } + ] } }, "AutonomousDatabaseBackupListResult": { @@ -3627,8 +3986,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -3639,14 +3997,14 @@ "type": "object", "description": "AutonomousDatabaseBackup resource model", "properties": { - "autonomousDatabaseId": { - "$ref": "#/definitions/AutonomousDatabaseId", + "autonomousDatabaseOcid": { + "$ref": "#/definitions/Ocid", "description": "The OCID of the Autonomous Database.", "readOnly": true }, - "databaseSizeInTBs": { - "type": "integer", - "format": "int32", + "databaseSizeInTbs": { + "type": "number", + "format": "double", "description": "The size of the database in terabytes at the time the backup was taken.", "readOnly": true }, @@ -3692,7 +4050,7 @@ "type": "integer", "format": "int32", "description": "Retention period, in days, for long-term backups.", - "minimum": 90, + "minimum": 60, "maximum": 3650, "x-ms-mutability": [ "read", @@ -3700,9 +4058,9 @@ "create" ] }, - "sizeInTBs": { - "type": "integer", - "format": "int32", + "sizeInTbs": { + "type": "number", + "format": "double", "description": "The backup size in terabytes (TB).", "readOnly": true }, @@ -3712,12 +4070,17 @@ "description": "Timestamp until when the backup will be available.", "readOnly": true }, + "timeStarted": { + "type": "string", + "description": "The date and time the backup started.", + "readOnly": true + }, "timeEnded": { "type": "string", "description": "The date and time the backup completed.", "readOnly": true }, - "type": { + "backupType": { "$ref": "#/definitions/AutonomousDatabaseBackupType", "description": "The type of backup.", "readOnly": true @@ -3727,14 +4090,11 @@ "description": "Azure resource provisioning state.", "readOnly": true } - }, - "required": [ - "autonomousDatabaseId" - ] + } }, "AutonomousDatabaseBackupType": { "type": "string", - "description": "AutonomousDatabaseBackupType enum", + "description": "Autonomous database backup type enum", "enum": [ "Incremental", "Full", @@ -3742,7 +4102,24 @@ ], "x-ms-enum": { "name": "AutonomousDatabaseBackupType", - "modelAsString": true + "modelAsString": true, + "values": [ + { + "name": "Incremental", + "value": "Incremental", + "description": "Incremental backup" + }, + { + "name": "Full", + "value": "Full", + "description": "Full backup" + }, + { + "name": "LongTerm", + "value": "LongTerm", + "description": "LongTerm backup" + } + ] } }, "AutonomousDatabaseBackupUpdate": { @@ -3763,7 +4140,7 @@ "type": "integer", "format": "int32", "description": "Retention period, in days, for long-term backups.", - "minimum": 90, + "minimum": 60, "maximum": 3650, "x-ms-mutability": [ "read", @@ -4153,6 +4530,20 @@ "description": "The area assigned to In-Memory tables in Autonomous Database.", "readOnly": true }, + "nextLongTermBackupTimeStamp": { + "type": "string", + "format": "date-time", + "description": "The date and time when the next long-term backup would be created.", + "readOnly": true + }, + "longTermBackupSchedule": { + "$ref": "#/definitions/LongTermBackUpScheduleDetails", + "description": "Details for the long-term backup schedule.", + "x-ms-mutability": [ + "read", + "update" + ] + }, "isPreview": { "type": "boolean", "description": "Indicates if the Autonomous Database version is a preview version.", @@ -4360,8 +4751,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -4466,7 +4856,7 @@ }, "AutonomousDatabaseLifecycleState": { "type": "string", - "description": "AutonomousDatabaseLifecycleState enum", + "description": "Autonomous database lifecycle state enum", "enum": [ "Provisioning", "Available", @@ -4497,107 +4887,107 @@ { "name": "Provisioning", "value": "Provisioning", - "description": "PROVISIONING value" + "description": "Indicates that resource in Provisioning state" }, { "name": "Available", "value": "Available", - "description": "AVAILABLE value" + "description": "Indicates that resource in Available state" }, { "name": "Stopping", "value": "Stopping", - "description": "STOPPING value" + "description": "Indicates that resource in Stopping state" }, { "name": "Stopped", "value": "Stopped", - "description": "STOPPED value" + "description": "Indicates that resource in Stopped state" }, { "name": "Starting", "value": "Starting", - "description": "STARTING value" + "description": "Indicates that resource in Starting state" }, { "name": "Terminating", "value": "Terminating", - "description": "TERMINATING value" + "description": "Indicates that resource in Terminating state" }, { "name": "Terminated", "value": "Terminated", - "description": "TERMINATED value" + "description": "Indicates that resource in Terminated state" }, { "name": "Unavailable", "value": "Unavailable", - "description": "UNAVAILABLE value" + "description": "Indicates that resource in Unavailable state" }, { "name": "RestoreInProgress", "value": "RestoreInProgress", - "description": "RESTORE_IN_PROGRESS value" + "description": "Indicates that resource in RestoreInProgress state" }, { "name": "RestoreFailed", "value": "RestoreFailed", - "description": "RESTORE_FAILED value" + "description": "Indicates that resource in RestoreFailed state" }, { "name": "BackupInProgress", "value": "BackupInProgress", - "description": "BACKUP_IN_PROGRESS value" + "description": "Indicates that resource in BackupInProgress state" }, { "name": "ScaleInProgress", "value": "ScaleInProgress", - "description": "SCALE_IN_PROGRESS value" + "description": "Indicates that resource in ScaleInProgress state" }, { "name": "AvailableNeedsAttention", "value": "AvailableNeedsAttention", - "description": "AVAILABLE_NEEDS_ATTENTION value" + "description": "Indicates that resource is available but needs attention" }, { "name": "Updating", "value": "Updating", - "description": "UPDATING value" + "description": "Indicates that resource in Updating state" }, { "name": "MaintenanceInProgress", "value": "MaintenanceInProgress", - "description": "MAINTENANCE_IN_PROGRESS value" + "description": "Indicates that resource maintenance in progress state" }, { "name": "Restarting", "value": "Restarting", - "description": "RESTARTING value" + "description": "Indicates that resource in Restarting state" }, { "name": "Recreating", "value": "Recreating", - "description": "RECREATING value" + "description": "Indicates that resource in Recreating state" }, { "name": "RoleChangeInProgress", "value": "RoleChangeInProgress", - "description": "ROLE_CHANGE_IN_PROGRESS value" + "description": "Indicates that resource role change in progress state" }, { "name": "Upgrading", "value": "Upgrading", - "description": "UPGRADING value" + "description": "Indicates that resource in Upgrading state" }, { "name": "Inaccessible", "value": "Inaccessible", - "description": "INACCESSIBLE value" + "description": "IIndicates that resource in Inaccessible state" }, { "name": "Standby", "value": "Standby", - "description": "STANDBY value" + "description": "Indicates that resource in Standby state" } ] } @@ -4616,8 +5006,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -4658,8 +5047,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -4903,6 +5291,14 @@ "create" ] }, + "longTermBackupSchedule": { + "$ref": "#/definitions/LongTermBackUpScheduleDetails", + "description": "Details for the long-term backup schedule.", + "x-ms-mutability": [ + "read", + "update" + ] + }, "localAdgAutoFailoverMaxDataLossLimit": { "type": "integer", "format": "int32", @@ -5009,8 +5405,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -5060,7 +5455,7 @@ }, "AutonomousMaintenanceScheduleType": { "type": "string", - "description": "AutonomousMaintenanceScheduleType enum.", + "description": "Autonomous database maintenance schedule type enum.", "enum": [ "Early", "Regular" @@ -5072,12 +5467,12 @@ { "name": "Early", "value": "Early", - "description": "EARLY value" + "description": "Early maintenance schedule" }, { "name": "Regular", "value": "Regular", - "description": "REGULAR value" + "description": "Regular maintenance schedule" } ] } @@ -5144,7 +5539,7 @@ { "name": "Provisioning", "value": "Provisioning", - "description": "Provisioning value" + "description": "Indicates that resource in Provisioning state" } ] }, @@ -5152,7 +5547,7 @@ }, "CloneType": { "type": "string", - "description": "CloneType enum", + "description": "Clone type enum", "enum": [ "Full", "Metadata" @@ -5164,12 +5559,12 @@ { "name": "Full", "value": "Full", - "description": "FULL value" + "description": "Full clone" }, { "name": "Metadata", "value": "Metadata", - "description": "METADATA value" + "description": "Metadata only" } ] } @@ -5205,17 +5600,17 @@ { "name": "Pending", "value": "Pending", - "description": "Pending value" + "description": "Pending - Initial state when Oracle cloud account is not configured" }, { "name": "Provisioning", "value": "Provisioning", - "description": "Provisioning value" + "description": "Provisioning - State when Oracle cloud account is being provisioned" }, { "name": "Available", "value": "Available", - "description": "Available value" + "description": "Available - State when Oracle cloud account cloud linking is complete and it is available" } ] } @@ -5281,37 +5676,37 @@ { "name": "Provisioning", "value": "Provisioning", - "description": "PROVISIONING value" + "description": "Indicates that resource in Provisioning state" }, { "name": "Available", "value": "Available", - "description": "AVAILABLE value" + "description": "Indicates that resource in Available state" }, { "name": "Updating", "value": "Updating", - "description": "UPDATING value" + "description": "Indicates that resource in Updating state" }, { "name": "Terminating", "value": "Terminating", - "description": "TERMINATING value" + "description": "Indicates that resource in Terminating state" }, { "name": "Terminated", "value": "Terminated", - "description": "TERMINATED value" + "description": "Indicates that resource in Terminated state" }, { "name": "MaintenanceInProgress", "value": "MaintenanceInProgress", - "description": "MAINTENANCE_IN_PROGRESS value" + "description": "Indicates that resource maintenance in progress state" }, { "name": "Failed", "value": "Failed", - "description": "FAILED value" + "description": "Indicates that resource in Failed state" } ] } @@ -5330,8 +5725,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -5436,6 +5830,7 @@ }, "ociUrl": { "type": "string", + "format": "uri", "description": "HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.", "readOnly": true }, @@ -5476,8 +5871,8 @@ "readOnly": true }, "dataStorageSizeInTbs": { - "type": "integer", - "format": "int32", + "type": "number", + "format": "double", "description": "The quantity of data in the database, in terabytes.", "readOnly": true }, @@ -5651,7 +6046,7 @@ }, "CloudVmClusterLifecycleState": { "type": "string", - "description": "CloudVmClusterLifecycleState enum", + "description": "Cloud VM Cluster lifecycle state enum", "enum": [ "Provisioning", "Available", @@ -5668,37 +6063,37 @@ { "name": "Provisioning", "value": "Provisioning", - "description": "PROVISIONING value" + "description": "Indicates that resource in Provisioning state" }, { "name": "Available", "value": "Available", - "description": "AVAILABLE value" + "description": "Indicates that resource in Available state" }, { "name": "Updating", "value": "Updating", - "description": "UPDATING value" + "description": "Indicates that resource in Updating state" }, { "name": "Terminating", "value": "Terminating", - "description": "TERMINATING value" + "description": "Indicates that resource in Terminating state" }, { "name": "Terminated", "value": "Terminated", - "description": "TERMINATED value" + "description": "Indicates that resource in Terminated state" }, { "name": "MaintenanceInProgress", "value": "MaintenanceInProgress", - "description": "MAINTENANCE_IN_PROGRESS value" + "description": "Indicates that resource Maintenance in progress state" }, { "name": "Failed", "value": "Failed", - "description": "FAILED value" + "description": "Indicates that resource in Failed state" } ] } @@ -5717,8 +6112,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -5877,7 +6271,10 @@ "description": "Operating system version of the image.", "minLength": 1, "maxLength": 255, - "readOnly": true + "x-ms-mutability": [ + "read", + "create" + ] }, "sshPublicKeys": { "type": "array", @@ -5976,11 +6373,13 @@ }, "ociUrl": { "type": "string", + "format": "uri", "description": "HTTPS link to OCI resources exposed to Azure Customer via Azure Interface.", "readOnly": true }, "nsgUrl": { "type": "string", + "format": "uri", "description": "HTTPS link to OCI Network Security Group exposed to Azure Customer via the Azure Interface.", "readOnly": true }, @@ -6006,7 +6405,7 @@ "type": "array", "description": "CIDR blocks for additional NSG ingress rules. The VNET CIDRs used to provision the VM Cluster will be added by default.", "items": { - "$ref": "#/definitions/NSGCidr" + "$ref": "#/definitions/NsgCidr" }, "x-ms-identifiers": [], "x-ms-mutability": [ @@ -6167,7 +6566,7 @@ }, "ComputeModel": { "type": "string", - "description": "ComputeModel enum", + "description": "Compute model enum", "enum": [ "ECPU", "OCPU" @@ -6179,12 +6578,12 @@ { "name": "ECPU", "value": "ECPU", - "description": "ECPU value" + "description": "ECPU model type" }, { "name": "OCPU", "value": "OCPU", - "description": "OCPU value" + "description": "OCPU model type" } ] } @@ -6281,7 +6680,7 @@ }, "ConsumerGroup": { "type": "string", - "description": "ConsumerGroup enum.", + "description": "Consumer group enum.", "enum": [ "High", "Medium", @@ -6296,27 +6695,27 @@ { "name": "High", "value": "High", - "description": "HIGH value" + "description": "High group" }, { "name": "Medium", "value": "Medium", - "description": "MEDIUM value" + "description": "Medium group" }, { "name": "Low", "value": "Low", - "description": "LOW value" + "description": "Low group" }, { "name": "Tp", "value": "Tp", - "description": "TP value" + "description": "TP group" }, { "name": "Tpurgent", "value": "Tpurgent", - "description": "TPURGENT value" + "description": "TPurgent group" } ] } @@ -6338,7 +6737,7 @@ }, "DataBaseType": { "type": "string", - "description": "DataBaseType enum", + "description": "Database type enum", "enum": [ "Regular", "Clone" @@ -6350,12 +6749,12 @@ { "name": "Regular", "value": "Regular", - "description": "REGULAR value" + "description": "Regular DB" }, { "name": "Clone", "value": "Clone", - "description": "CLONE value" + "description": "Clone DB" } ] } @@ -6383,7 +6782,7 @@ }, "DataSafeStatusType": { "type": "string", - "description": "DataSafeStatusType enum.", + "description": "DataSafe status type enum.", "enum": [ "Registering", "Registered", @@ -6398,34 +6797,34 @@ { "name": "Registering", "value": "Registering", - "description": "REGISTERING value" + "description": "Registering status" }, { "name": "Registered", "value": "Registered", - "description": "REGISTERED value" + "description": "Registered status" }, { "name": "Deregistering", "value": "Deregistering", - "description": "DEREGISTERING value" + "description": "Deregistering status" }, { "name": "NotRegistered", "value": "NotRegistered", - "description": "NOT_REGISTERED value" + "description": "NotRegistered status" }, { "name": "Failed", "value": "Failed", - "description": "FAILED value" + "description": "Failed status" } ] } }, "DatabaseEditionType": { "type": "string", - "description": "DatabaseEditionType enum.", + "description": "Database edition type enum.", "enum": [ "StandardEdition", "EnterpriseEdition" @@ -6437,12 +6836,12 @@ { "name": "StandardEdition", "value": "StandardEdition", - "description": "STANDARD_EDITION value" + "description": "Standard edition" }, { "name": "EnterpriseEdition", "value": "EnterpriseEdition", - "description": "ENTERPRISE_EDITION value" + "description": "Enterprise edition" } ] } @@ -6628,8 +7027,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -6649,7 +7047,7 @@ { "name": "VmdbRebootMigration", "value": "VmdbRebootMigration", - "description": "Provisioning value" + "description": "VMDB reboot migration maintenance type" } ] } @@ -6809,47 +7207,47 @@ { "name": "Provisioning", "value": "Provisioning", - "description": "PROVISIONING value" + "description": "Indicates that resource in Provisioning state" }, { "name": "Available", "value": "Available", - "description": "AVAILABLE value" + "description": "Indicates that resource in Available state" }, { "name": "Updating", "value": "Updating", - "description": "UPDATING value" + "description": "Indicates that resource in Updating state" }, { "name": "Stopping", "value": "Stopping", - "description": "STOPPING value" + "description": "Indicates that resource in Stopping state" }, { "name": "Stopped", "value": "Stopped", - "description": "STOPPED value" + "description": "Indicates that resource in Stopped state" }, { "name": "Starting", "value": "Starting", - "description": "STARTING value" + "description": "Indicates that resource in Starting state" }, { "name": "Terminating", "value": "Terminating", - "description": "TERMINATING value" + "description": "Indicates that resource in Terminating state" }, { "name": "Terminated", "value": "Terminated", - "description": "TERMINATED value" + "description": "Indicates that resource in Terminated state" }, { "name": "Failed", "value": "Failed", - "description": "FAILED value" + "description": "Indicates that resource in Failed state" } ] } @@ -6888,8 +7286,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -6929,7 +7326,7 @@ }, "DbServerPatchingStatus": { "type": "string", - "description": "Db Server patching status enum", + "description": "DB Server patching status enum", "enum": [ "Scheduled", "MaintenanceInProgress", @@ -6943,22 +7340,22 @@ { "name": "Scheduled", "value": "Scheduled", - "description": "SCHEDULED value" + "description": "Patching scheduled" }, { "name": "MaintenanceInProgress", "value": "MaintenanceInProgress", - "description": "MAINTENANCE_IN_PROGRESS value" + "description": "Patching in progress" }, { "name": "Failed", "value": "Failed", - "description": "FAILED value" + "description": "Patching failed" }, { "name": "Complete", "value": "Complete", - "description": "COMPLETE value" + "description": "Patching completed" } ] } @@ -7110,32 +7507,32 @@ { "name": "Creating", "value": "Creating", - "description": "CREATING value" + "description": "Indicates that resource in Creating state" }, { "name": "Available", "value": "Available", - "description": "AVAILABLE value" + "description": "Indicates that resource in Available state" }, { "name": "Unavailable", "value": "Unavailable", - "description": "UNAVAILABLE value" + "description": "Indicates that resource in Unavailable state" }, { "name": "Deleting", "value": "Deleting", - "description": "DELETING value" + "description": "Indicates that resource in Deleting state" }, { "name": "Deleted", "value": "Deleted", - "description": "DELETED value" + "description": "Indicates that resource in Deleted state" }, { "name": "MaintenanceInProgress", "value": "MaintenanceInProgress", - "description": "MAINTENANCE_IN_PROGRESS value" + "description": "Indicates that resource maintenance in progress state" } ] } @@ -7174,8 +7571,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -7314,7 +7710,7 @@ }, "DisasterRecoveryType": { "type": "string", - "description": "DisasterRecoveryType enum.", + "description": "Disaster recovery type enum.", "enum": [ "Adg", "BackupBased" @@ -7326,19 +7722,19 @@ { "name": "Adg", "value": "Adg", - "description": "ADG value" + "description": "ADG type" }, { "name": "BackupBased", "value": "BackupBased", - "description": "BACKUP_BASED value" + "description": "Backup based type" } ] } }, "DiskRedundancy": { "type": "string", - "description": "DiskRedundancy enum", + "description": "Disk redundancy enum", "enum": [ "High", "Normal" @@ -7350,12 +7746,12 @@ { "name": "High", "value": "High", - "description": "High value" + "description": "High redundancy" }, { "name": "Normal", "value": "Normal", - "description": "Normal value" + "description": "Normal redundancy" } ] } @@ -7394,8 +7790,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -7459,7 +7854,7 @@ }, "DnsPrivateViewsLifecycleState": { "type": "string", - "description": "DnsPrivateViews lifecycle state enum", + "description": "DNS Private Views lifecycle state enum", "enum": [ "Active", "Deleted", @@ -7473,22 +7868,22 @@ { "name": "Active", "value": "Active", - "description": "Active value" + "description": "DNS Private View is active" }, { "name": "Deleted", "value": "Deleted", - "description": "Deleted value" + "description": "DNS Private View is deleted" }, { "name": "Deleting", "value": "Deleting", - "description": "Deleting value" + "description": "DNS Private View is deleting" }, { "name": "Updating", "value": "Updating", - "description": "Updating value" + "description": "DNS Private View is updating" } ] } @@ -7527,8 +7922,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -7604,7 +7998,7 @@ }, "DnsPrivateZonesLifecycleState": { "type": "string", - "description": "DnsPrivateZones lifecycle state enum", + "description": "DNS Private Zones lifecycle state enum", "enum": [ "Active", "Creating", @@ -7619,27 +8013,27 @@ { "name": "Active", "value": "Active", - "description": "Active value" + "description": "DNS Private Zones is active" }, { "name": "Creating", "value": "Creating", - "description": "Creating value" + "description": "DNS Private Zones is creating" }, { "name": "Deleted", "value": "Deleted", - "description": "Deleted value" + "description": "DNS Private Zones is deleted" }, { "name": "Deleting", "value": "Deleting", - "description": "Deleting value" + "description": "DNS Private Zones is deleting" }, { "name": "Updating", "value": "Updating", - "description": "Updating value" + "description": "DNS Private Zones is updating" } ] } @@ -7732,7 +8126,7 @@ }, "GenerateType": { "type": "string", - "description": "GenerateType enum", + "description": "Generate type enum", "enum": [ "Single", "All" @@ -7744,12 +8138,12 @@ { "name": "Single", "value": "Single", - "description": "SINGLE value" + "description": "Generate single" }, { "name": "All", "value": "All", - "description": "ALL value" + "description": "Generate all" } ] } @@ -7788,8 +8182,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -7814,7 +8207,7 @@ }, "HostFormatType": { "type": "string", - "description": "HostFormatType enum.", + "description": "Host format type enum.", "enum": [ "Fqdn", "Ip" @@ -7826,12 +8219,12 @@ { "name": "Fqdn", "value": "Fqdn", - "description": "FQDN value" + "description": "FQDN format" }, { "name": "Ip", "value": "Ip", - "description": "IP value" + "description": "IP format" } ] } @@ -7850,19 +8243,19 @@ { "name": "Retain", "value": "Retain", - "description": "Retain value" + "description": "Retain intent" }, { "name": "Reset", "value": "Reset", - "description": "Reset value" + "description": "Reset intent" } ] } }, "IormLifecycleState": { "type": "string", - "description": "IORMLifecycleState enum", + "description": "ORM lifecycle state enum", "enum": [ "BootStrapping", "Enabled", @@ -7877,27 +8270,27 @@ { "name": "BootStrapping", "value": "BootStrapping", - "description": "BOOTSTRAPPING value" + "description": "Indicates that resource in Provisioning state" }, { "name": "Enabled", "value": "Enabled", - "description": "ENABLED value" + "description": "Indicates that resource in Enabled state" }, { "name": "Disabled", "value": "Disabled", - "description": "DISABLED value" + "description": "Indicates that resource in Disabled state" }, { "name": "Updating", "value": "Updating", - "description": "UPDATING value" + "description": "Indicates that resource in Updating state" }, { "name": "Failed", "value": "Failed", - "description": "FAILED value" + "description": "Indicates that resource in Failed state" } ] } @@ -7916,16 +8309,39 @@ { "name": "LicenseIncluded", "value": "LicenseIncluded", - "description": "LicenseIncluded value" + "description": "License included" }, { "name": "BringYourOwnLicense", "value": "BringYourOwnLicense", - "description": "BringYourOwnLicense value" + "description": "Bring Your Own License" } ] } }, + "LongTermBackUpScheduleDetails": { + "type": "object", + "description": "Details for the long-term backup schedule.", + "properties": { + "repeatCadence": { + "$ref": "#/definitions/RepeatCadenceType", + "description": "The frequency of the long-term backup schedule" + }, + "timeOfBackup": { + "type": "string", + "format": "date-time", + "description": "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." + }, + "retentionPeriodInDays": { + "$ref": "#/definitions/RetentionPeriod", + "description": "Retention period, in days, for backups." + }, + "isDisabled": { + "type": "boolean", + "description": "Indicates if the long-term backup schedule should be deleted. The default value is `FALSE`." + } + } + }, "MaintenanceWindow": { "type": "object", "description": "MaintenanceWindow resource properties", @@ -8093,7 +8509,11 @@ ] } }, - "NSGCidr": { + "MsRpaasNewResourceHeader": { + "type": "object", + "description": "Header to distinguish between resource creation or update" + }, + "NsgCidr": { "type": "object", "description": "A rule for allowing inbound (INGRESS) IP packets", "properties": { @@ -8129,27 +8549,27 @@ { "name": "LowLatency", "value": "LowLatency", - "description": "LOW_LATENCY value" + "description": "Low latency objective" }, { "name": "HighThroughput", "value": "HighThroughput", - "description": "HIGH_THROUGHPUT value" + "description": "High throughput objective" }, { "name": "Balanced", "value": "Balanced", - "description": "BALANCED value" + "description": "Balanced objective" }, { "name": "Auto", "value": "Auto", - "description": "AUTO value" + "description": "Auto objective" }, { "name": "Basic", "value": "Basic", - "description": "BASIC value" + "description": "Basic objective" } ] } @@ -8162,7 +8582,7 @@ }, "OpenModeType": { "type": "string", - "description": "OpenModeType enum.", + "description": "Open mode type enum.", "enum": [ "ReadOnly", "ReadWrite" @@ -8174,19 +8594,19 @@ { "name": "ReadOnly", "value": "ReadOnly", - "description": "READ_ONLY value" + "description": "ReadOnly mode" }, { "name": "ReadWrite", "value": "ReadWrite", - "description": "READ_WRITE value" + "description": "ReadWrite mode" } ] } }, "OperationsInsightsStatusType": { "type": "string", - "description": "OperationsInsightsStatusType enum.", + "description": "Operations Insights status type enum.", "enum": [ "Enabling", "Enabled", @@ -8202,32 +8622,32 @@ { "name": "Enabling", "value": "Enabling", - "description": "ENABLING value" + "description": "Enabling status" }, { "name": "Enabled", "value": "Enabled", - "description": "ENABLED value" + "description": "Enabled status" }, { "name": "Disabling", "value": "Disabling", - "description": "DISABLING value" + "description": "Disabling status" }, { "name": "NotEnabled", "value": "NotEnabled", - "description": "NOT_ENABLED value" + "description": "NotEnabled status" }, { "name": "FailedEnabling", "value": "FailedEnabling", - "description": "FAILED_ENABLING value" + "description": "FailedEnabling status" }, { "name": "FailedDisabling", "value": "FailedDisabling", - "description": "FAILED_DISABLING value" + "description": "FailedDisabling status" } ] } @@ -8270,8 +8690,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -8362,7 +8781,7 @@ "description": "The type used for update operations of the OracleSubscription.", "properties": { "plan": { - "$ref": "#/definitions/ResourcePlanTypeUpdate", + "$ref": "#/definitions/PlanUpdate", "description": "Details of the resource plan." }, "properties": { @@ -8399,7 +8818,7 @@ }, "PatchingMode": { "type": "string", - "description": "PatchingMode enum", + "description": "Patching mode enum", "enum": [ "Rolling", "NonRolling" @@ -8411,12 +8830,12 @@ { "name": "Rolling", "value": "Rolling", - "description": "Rolling value" + "description": "Rolling patching" }, { "name": "NonRolling", "value": "NonRolling", - "description": "Non Rolling value" + "description": "Non Rolling patching" } ] } @@ -8435,7 +8854,7 @@ }, "PermissionLevelType": { "type": "string", - "description": "PermissionLevelType enum.", + "description": "Permission level type enum.", "enum": [ "Restricted", "Unrestricted" @@ -8447,16 +8866,42 @@ { "name": "Restricted", "value": "Restricted", - "description": "RESTRICTED value" + "description": "Restricted permission level" }, { "name": "Unrestricted", "value": "Unrestricted", - "description": "UNRESTRICTED value" + "description": "Unrestricted permission level" } ] } }, + "PlanUpdate": { + "type": "object", + "description": "ResourcePlanTypeUpdate model definition", + "properties": { + "name": { + "type": "string", + "description": "A user defined name of the 3rd Party Artifact that is being procured." + }, + "publisher": { + "type": "string", + "description": "The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic" + }, + "product": { + "type": "string", + "description": "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. " + }, + "promotionCode": { + "type": "string", + "description": "A publisher provided promotion code as provisioned in Data Market for the said product/artifact." + }, + "version": { + "type": "string", + "description": "The version of the desired product/artifact." + } + } + }, "PortRange": { "type": "object", "description": "Port Range to specify particular destination ports for TCP rules.", @@ -8495,12 +8940,12 @@ { "name": "NoPreference", "value": "NoPreference", - "description": "NoPreference value" + "description": "No preference" }, { "name": "CustomPreference", "value": "CustomPreference", - "description": "CustomPreference value" + "description": "Custom preference" } ] } @@ -8610,7 +9055,7 @@ }, "ProtocolType": { "type": "string", - "description": "ProtocolType enum.", + "description": "Protocol type enum.", "enum": [ "TCP", "TCPS" @@ -8622,19 +9067,19 @@ { "name": "TCP", "value": "TCP", - "description": "TCP value" + "description": "TCP protocol" }, { "name": "TCPS", "value": "TCPS", - "description": "TCPS value" + "description": "TCPS protocol" } ] } }, "RefreshableModelType": { "type": "string", - "description": "RefreshableModelType enum", + "description": "Refreshable model type enum", "enum": [ "Automatic", "Manual" @@ -8646,19 +9091,19 @@ { "name": "Automatic", "value": "Automatic", - "description": "AUTOMATIC value" + "description": "Automatic refreshable model type" }, { "name": "Manual", "value": "Manual", - "description": "MANUAL value" + "description": "Manual refreshable model type" } ] } }, "RefreshableStatusType": { "type": "string", - "description": "RefreshableStatusType enum.", + "description": "Refreshable status type enum.", "enum": [ "Refreshing", "NotRefreshing" @@ -8670,45 +9115,76 @@ { "name": "Refreshing", "value": "Refreshing", - "description": "REFRESHING value" + "description": "Refreshing status" }, { "name": "NotRefreshing", "value": "NotRefreshing", - "description": "NOT_REFRESHING value" + "description": "NotRefreshing status" + } + ] + } + }, + "RepeatCadenceType": { + "type": "string", + "description": "Repeat cadence type enum", + "enum": [ + "OneTime", + "Weekly", + "Monthly", + "Yearly" + ], + "x-ms-enum": { + "name": "RepeatCadenceType", + "modelAsString": true, + "values": [ + { + "name": "OneTime", + "value": "OneTime", + "description": "Repeat one time" + }, + { + "name": "Weekly", + "value": "Weekly", + "description": "Repeat weekly" + }, + { + "name": "Monthly", + "value": "Monthly", + "description": "Repeat monthly" + }, + { + "name": "Yearly", + "value": "Yearly", + "description": "Repeat yearly" } ] } }, - "ResourcePlanTypeUpdate": { + "RestoreAutonomousDatabaseDetails": { "type": "object", - "description": "ResourcePlanTypeUpdate model definition", + "description": "Details to restore an Oracle Autonomous Database.", "properties": { - "name": { - "type": "string", - "description": "A user defined name of the 3rd Party Artifact that is being procured." - }, - "publisher": { - "type": "string", - "description": "The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic" - }, - "product": { - "type": "string", - "description": "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. " - }, - "promotionCode": { - "type": "string", - "description": "A publisher provided promotion code as provisioned in Data Market for the said product/artifact." - }, - "version": { + "timestamp": { "type": "string", - "description": "The version of the desired product/artifact." + "format": "date-time", + "description": "The time to restore the database to." } - } + }, + "required": [ + "timestamp" + ] + }, + "RetentionPeriod": { + "type": "integer", + "format": "int32", + "description": "Retention period, in days, for backups.", + "minimum": 90, + "maximum": 2558 }, "RoleType": { "type": "string", - "description": "RoleType enum.", + "description": "Role type enum.", "enum": [ "Primary", "Standby", @@ -8723,27 +9199,27 @@ { "name": "Primary", "value": "Primary", - "description": "PRIMARY value" + "description": "Primary role" }, { "name": "Standby", "value": "Standby", - "description": "STANDBY value" + "description": "Standby role" }, { "name": "DisabledStandby", "value": "DisabledStandby", - "description": "DISABLED_STANDBY value" + "description": "DisabledStandby role" }, { "name": "BackupCopy", "value": "BackupCopy", - "description": "BACKUP_COPY value" + "description": "BackupCopy role" }, { "name": "SnapshotStandby", "value": "SnapshotStandby", - "description": "SNAPSHOT_STANDBY value" + "description": "SnapshotStandby role" } ] } @@ -8864,7 +9340,7 @@ }, "SessionModeType": { "type": "string", - "description": "SessionModeType enum.", + "description": "Session mode type enum.", "enum": [ "Direct", "Redirect" @@ -8876,19 +9352,19 @@ { "name": "Direct", "value": "Direct", - "description": "DIRECT value" + "description": "Direct session mode" }, { "name": "Redirect", "value": "Redirect", - "description": "REDIRECT value" + "description": "Redirect session mode" } ] } }, "SourceType": { "type": "string", - "description": "SourceType enum.", + "description": "Source type enum.", "enum": [ "None", "Database", @@ -8905,37 +9381,37 @@ { "name": "None", "value": "None", - "description": "NONE value" + "description": "None source" }, { "name": "Database", "value": "Database", - "description": "DATABASE value" + "description": "Database source" }, { "name": "BackupFromId", "value": "BackupFromId", - "description": "BACKUP_FROM_ID value" + "description": "Backup from ID source" }, { "name": "BackupFromTimestamp", "value": "BackupFromTimestamp", - "description": "BACKUP_FROM_TIMESTAMP value" + "description": "Backup from timestamp source" }, { "name": "CloneToRefreshable", "value": "CloneToRefreshable", - "description": "CLONE_TO_REFRESHABLE value" + "description": "Clone to refreshable source" }, { "name": "CrossRegionDataguard", "value": "CrossRegionDataguard", - "description": "CROSS_REGION_DATAGUARD value" + "description": "Cross region dataguard source" }, { "name": "CrossRegionDisasterRecovery", "value": "CrossRegionDisasterRecovery", - "description": "CROSS_REGION_DISASTER_RECOVERY value" + "description": "cross region disaster recovery source" } ] } @@ -8954,7 +9430,7 @@ }, "SyntaxFormatType": { "type": "string", - "description": "SyntaxFormatType enum.", + "description": "Syntax format type enum.", "enum": [ "Long", "Ezconnect", @@ -8967,24 +9443,101 @@ { "name": "Long", "value": "Long", - "description": "LONG value" + "description": "Long format" }, { "name": "Ezconnect", "value": "Ezconnect", - "description": "EZCONNECT value" + "description": "Ezconnect format" }, { "name": "Ezconnectplus", "value": "Ezconnectplus", - "description": "EZCONNECTPLUS value" + "description": "Ezconnectplus format" } ] } }, + "SystemVersion": { + "type": "object", + "description": "SystemVersion resource Definition", + "properties": { + "properties": { + "$ref": "#/definitions/SystemVersionProperties", + "description": "The resource-specific properties for this resource.", + "x-ms-client-flatten": true, + "x-ms-mutability": [ + "read", + "create" + ] + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource" + } + ] + }, + "SystemVersionListResult": { + "type": "object", + "description": "The response of a SystemVersion list operation.", + "properties": { + "value": { + "type": "array", + "description": "The SystemVersion items on this page", + "items": { + "$ref": "#/definitions/SystemVersion" + } + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "SystemVersionProperties": { + "type": "object", + "description": "System Version Resource model", + "properties": { + "systemVersion": { + "type": "string", + "description": "A valid Oracle System Version", + "readOnly": true + } + }, + "required": [ + "systemVersion" + ] + }, + "SystemVersionsFilter": { + "type": "object", + "description": "SystemVersions filter", + "properties": { + "giVersion": { + "type": "string", + "description": "Grid Infrastructure version" + }, + "shape": { + "type": "string", + "description": "Exadata shape" + }, + "isLatestVersion": { + "type": "boolean", + "description": "Check If we have to list only latest versions" + } + }, + "required": [ + "giVersion", + "shape" + ] + }, "TlsAuthenticationType": { "type": "string", - "description": "TlsAuthenticationType enum.", + "description": "TLS authentication type enum.", "enum": [ "Server", "Mutual" @@ -8996,19 +9549,19 @@ { "name": "Server", "value": "Server", - "description": "SERVER value" + "description": "Server authentication" }, { "name": "Mutual", "value": "Mutual", - "description": "MUTUAL value" + "description": "Mutual TLS" } ] } }, "UpdateAction": { "type": "string", - "description": "UpdateAction enum", + "description": "Update action enum", "enum": [ "RollingApply", "NonRollingApply", @@ -9022,22 +9575,22 @@ { "name": "RollingApply", "value": "RollingApply", - "description": "ROLLING_APPLY value" + "description": "Rolling apply action" }, { "name": "NonRollingApply", "value": "NonRollingApply", - "description": "NON_ROLLING_APPLY value" + "description": "Non rolling apply action" }, { "name": "PreCheck", "value": "PreCheck", - "description": "PRECHECK value" + "description": "Pre-check action" }, { "name": "RollBack", "value": "RollBack", - "description": "ROLLBACK value" + "description": "Rollback action" } ] } @@ -9092,41 +9645,17 @@ { "name": "Succeeded", "value": "Succeeded", - "description": "Succeeded value" + "description": "Validation succeeded" }, { "name": "Failed", "value": "Failed", - "description": "Failed value" + "description": "Validation failed" } ] }, "readOnly": true }, - "Versions": { - "type": "string", - "description": "Versions for API", - "enum": [ - "2023-09-01-preview", - "internal" - ], - "x-ms-enum": { - "name": "Versions", - "modelAsString": true, - "values": [ - { - "name": "v20230901", - "value": "2023-09-01-preview", - "description": "2023-09-01-preview" - }, - { - "name": "vInternalApi", - "value": "internal", - "description": "internal api - RPaaS to ORP" - } - ] - } - }, "VirtualNetworkAddress": { "type": "object", "description": "Virtual IP resource belonging to a vm cluster resource.", @@ -9164,27 +9693,27 @@ { "name": "Provisioning", "value": "Provisioning", - "description": "Provisioning value" + "description": "Indicates that resource in Provisioning state" }, { "name": "Available", "value": "Available", - "description": "Available value" + "description": "Indicates that resource in Available state" }, { "name": "Terminating", "value": "Terminating", - "description": "Terminating value" + "description": "Indicates that resource in Terminating state" }, { "name": "Terminated", "value": "Terminated", - "description": "Terminated value" + "description": "Indicates that resource in Terminated state" }, { "name": "Failed", "value": "Failed", - "description": "Failed value" + "description": "Indicates that resource in Failed state" } ] } @@ -9203,8 +9732,7 @@ "nextLink": { "type": "string", "format": "uri", - "description": "The link to the next page of items", - "readOnly": true + "description": "The link to the next page of items" } }, "required": [ @@ -9314,7 +9842,7 @@ }, "ZoneType": { "type": "string", - "description": "ZoneType enum", + "description": "Zone type enum", "enum": [ "Primary", "Secondary" @@ -9326,12 +9854,12 @@ { "name": "Primary", "value": "Primary", - "description": "Primary value" + "description": "Primary zone" }, { "name": "Secondary", "value": "Secondary", - "description": "Secondary value" + "description": "Secondary zone" } ] } diff --git a/specification/oracle/suppressions.yaml b/specification/oracle/suppressions.yaml deleted file mode 100644 index b7ac232bac09..000000000000 --- a/specification/oracle/suppressions.yaml +++ /dev/null @@ -1,3 +0,0 @@ -- tool: TypeSpecRequirement - path: resource-manager/Oracle.Database/preview/2023-09-01-preview/openapi.json - reason: Private Preview version, TypeSpec will be added as fast follow \ No newline at end of file