From 59bbe1d026fcc58f7668e5f669125d23570ed50c Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Tue, 30 Apr 2024 04:20:22 +0000 Subject: [PATCH] Releasing version 2.126.1 --- CHANGELOG.rst | 14 + docs/api/data_catalog.rst | 2 + ...ta_catalog.models.ImportLineageDetails.rst | 11 + ..._catalog.models.ImportLineageJobResult.rst | 11 + docs/api/data_safe.rst | 7 + ...ngPolicyHealthReportCompartmentDetails.rst | 11 + ...afe.models.GenerateHealthReportDetails.rst | 11 + ..._safe.models.MaskingPolicyHealthReport.rst | 11 + ...ls.MaskingPolicyHealthReportCollection.rst | 11 + ...MaskingPolicyHealthReportLogCollection.rst | 11 + ...ls.MaskingPolicyHealthReportLogSummary.rst | 11 + ...odels.MaskingPolicyHealthReportSummary.rst | 11 + docs/api/database_management.rst | 27 + ...s.BasicDatabaseConnectionStringDetails.rst | 11 + ...ase_management.models.ConnectorDetails.rst | 11 + ...ement.models.DatabaseConnectionDetails.rst | 11 + ...models.DatabaseConnectionStringDetails.rst | 11 + ...sticsAndManagementFeatureConfiguration.rst | 11 + ...DiagnosticsAndManagementFeatureDetails.rst | 11 + ...nt.models.DatabaseFeatureConfiguration.rst | 11 + ...nagement.models.DatabaseFeatureDetails.rst | 11 + ...isableDatabaseManagementFeatureDetails.rst | 11 + ...tainerDatabaseManagementFeatureDetails.rst | 11 + ...tainerDatabaseManagementFeatureDetails.rst | 11 + ...ggableDatabaseManagementFeatureDetails.rst | 11 + ...ggableDatabaseManagementFeatureDetails.rst | 11 + ...EnableDatabaseManagementFeatureDetails.rst | 11 + ...tainerDatabaseManagementFeatureDetails.rst | 11 + ...tainerDatabaseManagementFeatureDetails.rst | 11 + ...ggableDatabaseManagementFeatureDetails.rst | 11 + ...ggableDatabaseManagementFeatureDetails.rst | 11 + ...gement.models.ExternalConnectorDetails.rst | 11 + ...DiagnosticsAndManagementFeatureDetails.rst | 11 + ....models.ExternalDatabaseFeatureDetails.rst | 11 + ...DiagnosticsAndManagementFeatureDetails.rst | 11 + ...xternalPluggableDatabaseFeatureDetails.rst | 11 + ...management.models.MacsConnectorDetails.rst | 11 + ...ModifyDatabaseManagementFeatureDetails.rst | 11 + ...ggableDatabaseManagementFeatureDetails.rst | 11 + ...models.PrivateEndPointConnectorDetails.rst | 11 + docs/api/recovery.rst | 1 + ...heduleProtectedDatabaseDeletionDetails.rst | 11 + examples/showusage/showusage.py | 2 +- src/oci/data_catalog/data_catalog_client.py | 126 +- src/oci/data_catalog/models/__init__.py | 4 + .../models/import_lineage_details.py | 72 + .../models/import_lineage_job_result.py | 232 ++ .../models/create_workspace_details.py | 35 +- .../models/update_workspace_details.py | 35 +- src/oci/data_integration/models/workspace.py | 35 +- .../models/workspace_summary.py | 35 +- src/oci/data_safe/data_safe_client.py | 846 ++++++- .../data_safe_client_composite_operations.py | 89 + src/oci/data_safe/models/__init__.py | 14 + ...olicy_health_report_compartment_details.py | 72 + .../models/generate_health_report_details.py | 261 ++ .../models/masking_policy_health_report.py | 434 ++++ ...masking_policy_health_report_collection.py | 72 + ...ing_policy_health_report_log_collection.py | 72 + ...asking_policy_health_report_log_summary.py | 220 ++ .../masking_policy_health_report_summary.py | 371 +++ src/oci/data_safe/models/work_request.py | 10 +- .../data_safe/models/work_request_summary.py | 10 +- src/oci/database/database_client.py | 14 +- .../models/autonomous_container_database.py | 12 +- .../autonomous_container_database_summary.py | 12 +- .../database/models/autonomous_database.py | 16 +- .../models/autonomous_database_summary.py | 16 +- src/oci/database/models/cloud_vm_cluster.py | 39 +- .../models/cloud_vm_cluster_summary.py | 39 +- ...e_autonomous_container_database_details.py | 12 +- .../models/create_autonomous_database_base.py | 12 +- ..._autonomous_database_data_guard_details.py | 28 +- ..._cross_region_disaster_recovery_details.py | 25 +- .../database/models/create_db_home_base.py | 35 +- ...reate_db_home_with_db_system_id_details.py | 7 + ...e_with_db_system_id_from_backup_details.py | 7 + ...with_db_system_id_from_database_details.py | 7 + ...eate_db_home_with_vm_cluster_id_details.py | 7 + ..._with_vm_cluster_id_from_backup_details.py | 7 + src/oci/database/models/db_home.py | 35 +- .../models/db_home_from_agent_resource_id.py | 35 +- src/oci/database/models/db_home_summary.py | 35 +- src/oci/database/models/db_system.py | 35 + src/oci/database/models/db_system_summary.py | 35 + .../update_autonomous_database_details.py | 12 +- src/oci/database/models/update_details.py | 39 +- src/oci/database/models/vm_cluster.py | 39 +- src/oci/database/models/vm_cluster_summary.py | 39 +- .../models/vm_cluster_update_details.py | 39 +- .../db_management_client.py | 2099 ++++++++++++++--- ..._management_client_composite_operations.py | 528 +++++ .../diagnosability_client.py | 6 +- .../managed_my_sql_databases_client.py | 6 +- .../database_management/models/__init__.py | 54 + ...asic_database_connection_string_details.py | 160 ++ .../models/child_database.py | 47 +- .../models/connector_details.py | 123 + .../models/database_connection_details.py | 95 + .../database_connection_string_details.py | 103 + ...cs_and_management_feature_configuration.py | 120 + ...gnostics_and_management_feature_details.py | 143 ++ .../models/database_feature_configuration.py | 234 ++ .../models/database_feature_details.py | 155 ++ .../models/db_management_private_endpoint.py | 47 +- .../db_management_private_endpoint_summary.py | 47 +- ...ble_database_management_feature_details.py | 84 + ...ner_database_management_feature_details.py | 84 + ...ner_database_management_feature_details.py | 84 + ...ble_database_management_feature_details.py | 84 + ...ble_database_management_feature_details.py | 84 + ...ble_database_management_feature_details.py | 68 + ...ner_database_management_feature_details.py | 68 + ...ner_database_management_feature_details.py | 68 + ...ble_database_management_feature_details.py | 68 + ...ble_database_management_feature_details.py | 68 + .../models/external_asm.py | 47 +- .../models/external_asm_instance.py | 47 +- .../models/external_asm_instance_summary.py | 47 +- .../models/external_asm_summary.py | 47 +- .../models/external_cluster.py | 47 +- .../models/external_cluster_instance.py | 47 +- .../external_cluster_instance_summary.py | 47 +- .../models/external_cluster_summary.py | 47 +- .../models/external_connector_details.py | 86 + ...gnostics_and_management_feature_details.py | 105 + .../external_database_feature_details.py | 128 + .../models/external_database_summary.py | 47 +- .../models/external_db_home.py | 47 +- .../models/external_db_home_summary.py | 47 +- .../models/external_db_node.py | 47 +- .../models/external_db_node_summary.py | 47 +- .../models/external_db_system.py | 47 +- .../external_db_system_connector_summary.py | 47 +- .../models/external_db_system_discovery.py | 47 +- .../external_db_system_discovery_summary.py | 47 +- .../external_db_system_macs_connector.py | 47 +- .../models/external_db_system_summary.py | 47 +- .../models/external_exadata_infrastructure.py | 47 +- ...external_exadata_infrastructure_summary.py | 47 +- .../external_exadata_storage_connector.py | 47 +- ...ernal_exadata_storage_connector_summary.py | 47 +- .../models/external_exadata_storage_grid.py | 47 +- .../models/external_exadata_storage_server.py | 47 +- ...external_exadata_storage_server_summary.py | 47 +- .../models/external_listener.py | 47 +- .../models/external_listener_summary.py | 47 +- ...gnostics_and_management_feature_details.py | 58 + ...rnal_pluggable_database_feature_details.py | 128 + .../models/heat_wave_cluster_usage_metrics.py | 24 +- .../models/heat_wave_fleet_metrics.py | 4 +- .../models/heat_wave_fleet_summary.py | 10 +- .../models/heat_wave_node.py | 4 +- .../database_management/models/job_summary.py | 47 +- .../models/load_sql_tuning_set_details.py | 10 +- .../models/macs_connector_details.py | 86 + .../models/managed_database.py | 47 +- .../models/managed_database_group.py | 47 +- .../models/managed_database_group_summary.py | 47 +- .../models/managed_database_summary.py | 47 +- .../models/managed_my_sql_database.py | 20 +- ...ify_database_management_feature_details.py | 68 + ...ble_database_management_feature_details.py | 68 + .../models/my_sql_database_usage_metrics.py | 4 +- .../models/my_sql_fleet_metric_definition.py | 31 + .../models/named_credential.py | 47 +- .../models/named_credential_summary.py | 47 +- .../private_end_point_connector_details.py | 86 + .../models/save_sql_tuning_set_as_details.py | 10 +- src/oci/database_management/models/sql_job.py | 47 +- .../models/sql_plan_baseline.py | 96 + .../models/sql_plan_baseline_summary.py | 96 + .../models/sql_tuning_set.py | 16 + .../models/work_request.py | 42 +- .../models/work_request_summary.py | 42 +- src/oci/database_management/perfhub_client.py | 6 +- .../database_management/sql_tuning_client.py | 6 +- src/oci/recovery/database_recovery_client.py | 292 ++- ...se_recovery_client_composite_operations.py | 39 + src/oci/recovery/models/__init__.py | 2 + .../create_protection_policy_details.py | 45 + .../create_recovery_service_subnet_details.py | 76 +- ...rotected_database_configuration_details.py | 10 +- src/oci/recovery/models/metrics.py | 35 +- src/oci/recovery/models/metrics_summary.py | 35 +- src/oci/recovery/models/protected_database.py | 61 +- .../models/protected_database_summary.py | 47 +- src/oci/recovery/models/protection_policy.py | 59 +- .../models/protection_policy_summary.py | 41 +- .../models/recovery_service_subnet.py | 98 +- .../models/recovery_service_subnet_details.py | 10 +- .../models/recovery_service_subnet_summary.py | 98 +- ...ule_protected_database_deletion_details.py | 92 + .../update_protection_policy_details.py | 45 + .../update_recovery_service_subnet_details.py | 68 + src/oci/recovery/models/work_request.py | 10 +- .../recovery/models/work_request_summary.py | 10 +- src/oci/version.py | 2 +- 198 files changed, 12248 insertions(+), 723 deletions(-) create mode 100644 docs/api/data_catalog/models/oci.data_catalog.models.ImportLineageDetails.rst create mode 100644 docs/api/data_catalog/models/oci.data_catalog.models.ImportLineageJobResult.rst create mode 100644 docs/api/data_safe/models/oci.data_safe.models.ChangeMaskingPolicyHealthReportCompartmentDetails.rst create mode 100644 docs/api/data_safe/models/oci.data_safe.models.GenerateHealthReportDetails.rst create mode 100644 docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReport.rst create mode 100644 docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportCollection.rst create mode 100644 docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportLogCollection.rst create mode 100644 docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportLogSummary.rst create mode 100644 docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportSummary.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.BasicDatabaseConnectionStringDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ConnectorDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseConnectionDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseConnectionStringDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureConfiguration.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseFeatureConfiguration.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DisableDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DisableExternalContainerDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DisableExternalNonContainerDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DisableExternalPluggableDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DisablePluggableDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.EnableDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.EnableExternalContainerDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.EnableExternalNonContainerDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.EnableExternalPluggableDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.EnablePluggableDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ExternalConnectorDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ExternalDatabaseDiagnosticsAndManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ExternalDatabaseFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ExternalPluggableDatabaseFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.MacsConnectorDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ModifyDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ModifyPluggableDatabaseManagementFeatureDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.PrivateEndPointConnectorDetails.rst create mode 100644 docs/api/recovery/models/oci.recovery.models.ScheduleProtectedDatabaseDeletionDetails.rst create mode 100644 src/oci/data_catalog/models/import_lineage_details.py create mode 100644 src/oci/data_catalog/models/import_lineage_job_result.py create mode 100644 src/oci/data_safe/models/change_masking_policy_health_report_compartment_details.py create mode 100644 src/oci/data_safe/models/generate_health_report_details.py create mode 100644 src/oci/data_safe/models/masking_policy_health_report.py create mode 100644 src/oci/data_safe/models/masking_policy_health_report_collection.py create mode 100644 src/oci/data_safe/models/masking_policy_health_report_log_collection.py create mode 100644 src/oci/data_safe/models/masking_policy_health_report_log_summary.py create mode 100644 src/oci/data_safe/models/masking_policy_health_report_summary.py create mode 100644 src/oci/database_management/models/basic_database_connection_string_details.py create mode 100644 src/oci/database_management/models/connector_details.py create mode 100644 src/oci/database_management/models/database_connection_details.py create mode 100644 src/oci/database_management/models/database_connection_string_details.py create mode 100644 src/oci/database_management/models/database_diagnostics_and_management_feature_configuration.py create mode 100644 src/oci/database_management/models/database_diagnostics_and_management_feature_details.py create mode 100644 src/oci/database_management/models/database_feature_configuration.py create mode 100644 src/oci/database_management/models/database_feature_details.py create mode 100644 src/oci/database_management/models/disable_database_management_feature_details.py create mode 100644 src/oci/database_management/models/disable_external_container_database_management_feature_details.py create mode 100644 src/oci/database_management/models/disable_external_non_container_database_management_feature_details.py create mode 100644 src/oci/database_management/models/disable_external_pluggable_database_management_feature_details.py create mode 100644 src/oci/database_management/models/disable_pluggable_database_management_feature_details.py create mode 100644 src/oci/database_management/models/enable_database_management_feature_details.py create mode 100644 src/oci/database_management/models/enable_external_container_database_management_feature_details.py create mode 100644 src/oci/database_management/models/enable_external_non_container_database_management_feature_details.py create mode 100644 src/oci/database_management/models/enable_external_pluggable_database_management_feature_details.py create mode 100644 src/oci/database_management/models/enable_pluggable_database_management_feature_details.py create mode 100644 src/oci/database_management/models/external_connector_details.py create mode 100644 src/oci/database_management/models/external_database_diagnostics_and_management_feature_details.py create mode 100644 src/oci/database_management/models/external_database_feature_details.py create mode 100644 src/oci/database_management/models/external_pluggable_database_diagnostics_and_management_feature_details.py create mode 100644 src/oci/database_management/models/external_pluggable_database_feature_details.py create mode 100644 src/oci/database_management/models/macs_connector_details.py create mode 100644 src/oci/database_management/models/modify_database_management_feature_details.py create mode 100644 src/oci/database_management/models/modify_pluggable_database_management_feature_details.py create mode 100644 src/oci/database_management/models/private_end_point_connector_details.py create mode 100644 src/oci/recovery/models/schedule_protected_database_deletion_details.py diff --git a/CHANGELOG.rst b/CHANGELOG.rst index be0c9be129..c2d23fca5e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,20 @@ Change Log All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. +==================== +2.126.1 - 2024-04-30 +==================== + +Added +----- +* Support for enabling unified auditing for DBHome in the Database service +* Support for listing minor Grid Infrastructure (GI) versions available for custom GI software image creation in the Database service +* Support for network security groups in the Recovery Cloud service +* Support for lineage metadata import in the Data Catalog service +* Support for workspace properties in workspace create and update operations in the Data Integration service +* Support for monitoring ExaCC databases in the Database Management service +* Support for validations on target and policy before the masking process in the Data Safe service + ==================== 2.126.0 - 2024-04-23 ==================== diff --git a/docs/api/data_catalog.rst b/docs/api/data_catalog.rst index b29d511302..00890aeba7 100644 --- a/docs/api/data_catalog.rst +++ b/docs/api/data_catalog.rst @@ -113,6 +113,8 @@ Data Catalog oci.data_catalog.models.ImportDataAssetDetails oci.data_catalog.models.ImportDataAssetJobResult oci.data_catalog.models.ImportGlossaryDetails + oci.data_catalog.models.ImportLineageDetails + oci.data_catalog.models.ImportLineageJobResult oci.data_catalog.models.Job oci.data_catalog.models.JobCollection oci.data_catalog.models.JobDefinition diff --git a/docs/api/data_catalog/models/oci.data_catalog.models.ImportLineageDetails.rst b/docs/api/data_catalog/models/oci.data_catalog.models.ImportLineageDetails.rst new file mode 100644 index 0000000000..459f5a96c3 --- /dev/null +++ b/docs/api/data_catalog/models/oci.data_catalog.models.ImportLineageDetails.rst @@ -0,0 +1,11 @@ +ImportLineageDetails +==================== + +.. currentmodule:: oci.data_catalog.models + +.. autoclass:: ImportLineageDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_catalog/models/oci.data_catalog.models.ImportLineageJobResult.rst b/docs/api/data_catalog/models/oci.data_catalog.models.ImportLineageJobResult.rst new file mode 100644 index 0000000000..780d93b2b9 --- /dev/null +++ b/docs/api/data_catalog/models/oci.data_catalog.models.ImportLineageJobResult.rst @@ -0,0 +1,11 @@ +ImportLineageJobResult +====================== + +.. currentmodule:: oci.data_catalog.models + +.. autoclass:: ImportLineageJobResult + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe.rst b/docs/api/data_safe.rst index 11b5da6aba..3451621a76 100644 --- a/docs/api/data_safe.rst +++ b/docs/api/data_safe.rst @@ -77,6 +77,7 @@ Data Safe oci.data_safe.models.ChangeDiscoveryJobCompartmentDetails oci.data_safe.models.ChangeLibraryMaskingFormatCompartmentDetails oci.data_safe.models.ChangeMaskingPolicyCompartmentDetails + oci.data_safe.models.ChangeMaskingPolicyHealthReportCompartmentDetails oci.data_safe.models.ChangeOnPremConnectorCompartmentDetails oci.data_safe.models.ChangeReportCompartmentDetails oci.data_safe.models.ChangeReportDefinitionCompartmentDetails @@ -189,6 +190,7 @@ Data Safe oci.data_safe.models.FormatsForDataType oci.data_safe.models.FormatsForSensitiveType oci.data_safe.models.GenerateDiscoveryReportForDownloadDetails + oci.data_safe.models.GenerateHealthReportDetails oci.data_safe.models.GenerateMaskingPolicyForDownloadDetails oci.data_safe.models.GenerateMaskingReportForDownloadDetails oci.data_safe.models.GenerateOnPremConnectorConfigurationDetails @@ -218,6 +220,11 @@ Data Safe oci.data_safe.models.MaskingObjectSummary oci.data_safe.models.MaskingPolicy oci.data_safe.models.MaskingPolicyCollection + oci.data_safe.models.MaskingPolicyHealthReport + oci.data_safe.models.MaskingPolicyHealthReportCollection + oci.data_safe.models.MaskingPolicyHealthReportLogCollection + oci.data_safe.models.MaskingPolicyHealthReportLogSummary + oci.data_safe.models.MaskingPolicyHealthReportSummary oci.data_safe.models.MaskingPolicySummary oci.data_safe.models.MaskingReport oci.data_safe.models.MaskingReportCollection diff --git a/docs/api/data_safe/models/oci.data_safe.models.ChangeMaskingPolicyHealthReportCompartmentDetails.rst b/docs/api/data_safe/models/oci.data_safe.models.ChangeMaskingPolicyHealthReportCompartmentDetails.rst new file mode 100644 index 0000000000..519ccce5de --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.ChangeMaskingPolicyHealthReportCompartmentDetails.rst @@ -0,0 +1,11 @@ +ChangeMaskingPolicyHealthReportCompartmentDetails +================================================= + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: ChangeMaskingPolicyHealthReportCompartmentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.GenerateHealthReportDetails.rst b/docs/api/data_safe/models/oci.data_safe.models.GenerateHealthReportDetails.rst new file mode 100644 index 0000000000..9698ed6ea1 --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.GenerateHealthReportDetails.rst @@ -0,0 +1,11 @@ +GenerateHealthReportDetails +=========================== + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: GenerateHealthReportDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReport.rst b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReport.rst new file mode 100644 index 0000000000..86e3b969d0 --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReport.rst @@ -0,0 +1,11 @@ +MaskingPolicyHealthReport +========================= + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: MaskingPolicyHealthReport + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportCollection.rst b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportCollection.rst new file mode 100644 index 0000000000..4bcf242cf0 --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportCollection.rst @@ -0,0 +1,11 @@ +MaskingPolicyHealthReportCollection +=================================== + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: MaskingPolicyHealthReportCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportLogCollection.rst b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportLogCollection.rst new file mode 100644 index 0000000000..18246721d4 --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportLogCollection.rst @@ -0,0 +1,11 @@ +MaskingPolicyHealthReportLogCollection +====================================== + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: MaskingPolicyHealthReportLogCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportLogSummary.rst b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportLogSummary.rst new file mode 100644 index 0000000000..441fff5749 --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportLogSummary.rst @@ -0,0 +1,11 @@ +MaskingPolicyHealthReportLogSummary +=================================== + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: MaskingPolicyHealthReportLogSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportSummary.rst b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportSummary.rst new file mode 100644 index 0000000000..ca4dbd420d --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.MaskingPolicyHealthReportSummary.rst @@ -0,0 +1,11 @@ +MaskingPolicyHealthReportSummary +================================ + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: MaskingPolicyHealthReportSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management.rst b/docs/api/database_management.rst index 6296c146de..bb039c42dc 100644 --- a/docs/api/database_management.rst +++ b/docs/api/database_management.rst @@ -79,6 +79,7 @@ Database Management oci.database_management.models.AwrDbWaitEventCollection oci.database_management.models.AwrDbWaitEventSummary oci.database_management.models.AwrQueryResult + oci.database_management.models.BasicDatabaseConnectionStringDetails oci.database_management.models.BasicNamedCredentialContent oci.database_management.models.BasicPreferredCredential oci.database_management.models.ChangeDatabaseParameterDetails @@ -97,6 +98,7 @@ Database Management oci.database_management.models.ClusterCacheMetric oci.database_management.models.ConfigureAutomaticCaptureFiltersDetails oci.database_management.models.ConfigureAutomaticSpmEvolveAdvisorTaskDetails + oci.database_management.models.ConnectorDetails oci.database_management.models.ConsumerGroupPrivilegeCollection oci.database_management.models.ConsumerGroupPrivilegeSummary oci.database_management.models.CpuUtilizationAggregateMetrics @@ -120,9 +122,15 @@ Database Management oci.database_management.models.DatabaseConnectionCredentailsByName oci.database_management.models.DatabaseConnectionCredentials oci.database_management.models.DatabaseConnectionCredentialsByDetails + oci.database_management.models.DatabaseConnectionDetails oci.database_management.models.DatabaseConnectionString + oci.database_management.models.DatabaseConnectionStringDetails oci.database_management.models.DatabaseCredentialDetails oci.database_management.models.DatabaseCredentials + oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureConfiguration + oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureDetails + oci.database_management.models.DatabaseFeatureConfiguration + oci.database_management.models.DatabaseFeatureDetails oci.database_management.models.DatabaseFleetHealthMetrics oci.database_management.models.DatabaseHomeMetricDefinition oci.database_management.models.DatabaseHomeMetrics @@ -149,7 +157,12 @@ Database Management oci.database_management.models.DbmResource oci.database_management.models.DisableAutomaticInitialPlanCaptureDetails oci.database_management.models.DisableAutomaticSpmEvolveAdvisorTaskDetails + oci.database_management.models.DisableDatabaseManagementFeatureDetails + oci.database_management.models.DisableExternalContainerDatabaseManagementFeatureDetails + oci.database_management.models.DisableExternalNonContainerDatabaseManagementFeatureDetails + oci.database_management.models.DisableExternalPluggableDatabaseManagementFeatureDetails oci.database_management.models.DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails + oci.database_management.models.DisablePluggableDatabaseManagementFeatureDetails oci.database_management.models.DisableSqlPlanBaselinesUsageDetails oci.database_management.models.DiscoverExternalExadataInfrastructureDetails oci.database_management.models.DiscoveredExternalAsm @@ -169,10 +182,15 @@ Database Management oci.database_management.models.DropTablespaceDetails oci.database_management.models.EnableAutomaticInitialPlanCaptureDetails oci.database_management.models.EnableAutomaticSpmEvolveAdvisorTaskDetails + oci.database_management.models.EnableDatabaseManagementFeatureDetails + oci.database_management.models.EnableExternalContainerDatabaseManagementFeatureDetails oci.database_management.models.EnableExternalDbSystemDatabaseManagementDetails oci.database_management.models.EnableExternalDbSystemStackMonitoringDetails oci.database_management.models.EnableExternalExadataInfrastructureManagementDetails + oci.database_management.models.EnableExternalNonContainerDatabaseManagementFeatureDetails + oci.database_management.models.EnableExternalPluggableDatabaseManagementFeatureDetails oci.database_management.models.EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails + oci.database_management.models.EnablePluggableDatabaseManagementFeatureDetails oci.database_management.models.EnableSqlPlanBaselinesUsageDetails oci.database_management.models.EntityDiscovered oci.database_management.models.ExecutionPlanStatsComparision @@ -199,8 +217,11 @@ Database Management oci.database_management.models.ExternalClusterScanListenerConfiguration oci.database_management.models.ExternalClusterSummary oci.database_management.models.ExternalClusterVipConfiguration + oci.database_management.models.ExternalConnectorDetails oci.database_management.models.ExternalDatabaseCollection oci.database_management.models.ExternalDatabaseConnectionInfo + oci.database_management.models.ExternalDatabaseDiagnosticsAndManagementFeatureDetails + oci.database_management.models.ExternalDatabaseFeatureDetails oci.database_management.models.ExternalDatabaseInstance oci.database_management.models.ExternalDatabaseSummary oci.database_management.models.ExternalDatabaseSystemDiscoverySummary @@ -252,6 +273,8 @@ Database Management oci.database_management.models.ExternalListenerSummary oci.database_management.models.ExternalListenerTcpEndpoint oci.database_management.models.ExternalListenerTcpsEndpoint + oci.database_management.models.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails + oci.database_management.models.ExternalPluggableDatabaseFeatureDetails oci.database_management.models.ExternalServicedAsm oci.database_management.models.ExternalServicedDatabase oci.database_management.models.ExternalStorageGridDiscoverySummary @@ -297,6 +320,7 @@ Database Management oci.database_management.models.LoadSqlPlanBaselinesFromAwrDetails oci.database_management.models.LoadSqlPlanBaselinesFromCursorCacheDetails oci.database_management.models.LoadSqlTuningSetDetails + oci.database_management.models.MacsConnectorDetails oci.database_management.models.ManagedDatabase oci.database_management.models.ManagedDatabaseCollection oci.database_management.models.ManagedDatabaseCredential @@ -315,6 +339,8 @@ Database Management oci.database_management.models.MetricStatisticsDefinition oci.database_management.models.MetricsAggregationRange oci.database_management.models.MetricsAggregationRangeCollection + oci.database_management.models.ModifyDatabaseManagementFeatureDetails + oci.database_management.models.ModifyPluggableDatabaseManagementFeatureDetails oci.database_management.models.ModifySnapshotSettingsDetails oci.database_management.models.MySqlConfigurationDataCollection oci.database_management.models.MySqlConfigurationDataSummary @@ -358,6 +384,7 @@ Database Management oci.database_management.models.PreferredCredential oci.database_management.models.PreferredCredentialCollection oci.database_management.models.PreferredCredentialSummary + oci.database_management.models.PrivateEndPointConnectorDetails oci.database_management.models.ProxiedForUserCollection oci.database_management.models.ProxiedForUserSummary oci.database_management.models.ProxyUserCollection diff --git a/docs/api/database_management/models/oci.database_management.models.BasicDatabaseConnectionStringDetails.rst b/docs/api/database_management/models/oci.database_management.models.BasicDatabaseConnectionStringDetails.rst new file mode 100644 index 0000000000..6fceba9c0b --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.BasicDatabaseConnectionStringDetails.rst @@ -0,0 +1,11 @@ +BasicDatabaseConnectionStringDetails +==================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: BasicDatabaseConnectionStringDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ConnectorDetails.rst b/docs/api/database_management/models/oci.database_management.models.ConnectorDetails.rst new file mode 100644 index 0000000000..2ecfb97b4d --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ConnectorDetails.rst @@ -0,0 +1,11 @@ +ConnectorDetails +================ + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ConnectorDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseConnectionDetails.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseConnectionDetails.rst new file mode 100644 index 0000000000..fddeb89626 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseConnectionDetails.rst @@ -0,0 +1,11 @@ +DatabaseConnectionDetails +========================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseConnectionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseConnectionStringDetails.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseConnectionStringDetails.rst new file mode 100644 index 0000000000..6df81358ee --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseConnectionStringDetails.rst @@ -0,0 +1,11 @@ +DatabaseConnectionStringDetails +=============================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseConnectionStringDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureConfiguration.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureConfiguration.rst new file mode 100644 index 0000000000..dd06cb822e --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureConfiguration.rst @@ -0,0 +1,11 @@ +DatabaseDiagnosticsAndManagementFeatureConfiguration +==================================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseDiagnosticsAndManagementFeatureConfiguration + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureDetails.rst new file mode 100644 index 0000000000..ea0656d55b --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +DatabaseDiagnosticsAndManagementFeatureDetails +============================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseDiagnosticsAndManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseFeatureConfiguration.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseFeatureConfiguration.rst new file mode 100644 index 0000000000..82f849e83f --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseFeatureConfiguration.rst @@ -0,0 +1,11 @@ +DatabaseFeatureConfiguration +============================ + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseFeatureConfiguration + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseFeatureDetails.rst new file mode 100644 index 0000000000..47b8b9878a --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseFeatureDetails.rst @@ -0,0 +1,11 @@ +DatabaseFeatureDetails +====================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DisableDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.DisableDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..d0232a808d --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DisableDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +DisableDatabaseManagementFeatureDetails +======================================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DisableDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DisableExternalContainerDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.DisableExternalContainerDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..a6605753e8 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DisableExternalContainerDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +DisableExternalContainerDatabaseManagementFeatureDetails +======================================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DisableExternalContainerDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DisableExternalNonContainerDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.DisableExternalNonContainerDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..69f8f3f69c --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DisableExternalNonContainerDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +DisableExternalNonContainerDatabaseManagementFeatureDetails +=========================================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DisableExternalNonContainerDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DisableExternalPluggableDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.DisableExternalPluggableDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..61244d3f44 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DisableExternalPluggableDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +DisableExternalPluggableDatabaseManagementFeatureDetails +======================================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DisableExternalPluggableDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DisablePluggableDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.DisablePluggableDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..dd57c82482 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DisablePluggableDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +DisablePluggableDatabaseManagementFeatureDetails +================================================ + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DisablePluggableDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.EnableDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.EnableDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..6601de1ba7 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.EnableDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +EnableDatabaseManagementFeatureDetails +====================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: EnableDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.EnableExternalContainerDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.EnableExternalContainerDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..1907759a96 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.EnableExternalContainerDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +EnableExternalContainerDatabaseManagementFeatureDetails +======================================================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: EnableExternalContainerDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.EnableExternalNonContainerDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.EnableExternalNonContainerDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..23a6991b52 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.EnableExternalNonContainerDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +EnableExternalNonContainerDatabaseManagementFeatureDetails +========================================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: EnableExternalNonContainerDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.EnableExternalPluggableDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.EnableExternalPluggableDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..ec60535724 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.EnableExternalPluggableDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +EnableExternalPluggableDatabaseManagementFeatureDetails +======================================================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: EnableExternalPluggableDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.EnablePluggableDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.EnablePluggableDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..d44c76d68f --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.EnablePluggableDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +EnablePluggableDatabaseManagementFeatureDetails +=============================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: EnablePluggableDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ExternalConnectorDetails.rst b/docs/api/database_management/models/oci.database_management.models.ExternalConnectorDetails.rst new file mode 100644 index 0000000000..d8524c0dd7 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ExternalConnectorDetails.rst @@ -0,0 +1,11 @@ +ExternalConnectorDetails +======================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ExternalConnectorDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ExternalDatabaseDiagnosticsAndManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.ExternalDatabaseDiagnosticsAndManagementFeatureDetails.rst new file mode 100644 index 0000000000..6d419bbb18 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ExternalDatabaseDiagnosticsAndManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +ExternalDatabaseDiagnosticsAndManagementFeatureDetails +====================================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ExternalDatabaseDiagnosticsAndManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ExternalDatabaseFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.ExternalDatabaseFeatureDetails.rst new file mode 100644 index 0000000000..97eb7f2ed3 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ExternalDatabaseFeatureDetails.rst @@ -0,0 +1,11 @@ +ExternalDatabaseFeatureDetails +============================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ExternalDatabaseFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.rst new file mode 100644 index 0000000000..7523f4cbe1 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails +=============================================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ExternalPluggableDatabaseFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.ExternalPluggableDatabaseFeatureDetails.rst new file mode 100644 index 0000000000..a9e2899efc --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ExternalPluggableDatabaseFeatureDetails.rst @@ -0,0 +1,11 @@ +ExternalPluggableDatabaseFeatureDetails +======================================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ExternalPluggableDatabaseFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.MacsConnectorDetails.rst b/docs/api/database_management/models/oci.database_management.models.MacsConnectorDetails.rst new file mode 100644 index 0000000000..12faaf5963 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.MacsConnectorDetails.rst @@ -0,0 +1,11 @@ +MacsConnectorDetails +==================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: MacsConnectorDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ModifyDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.ModifyDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..d885ca3f5b --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ModifyDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +ModifyDatabaseManagementFeatureDetails +====================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ModifyDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ModifyPluggableDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.ModifyPluggableDatabaseManagementFeatureDetails.rst new file mode 100644 index 0000000000..962f9f0fc8 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ModifyPluggableDatabaseManagementFeatureDetails.rst @@ -0,0 +1,11 @@ +ModifyPluggableDatabaseManagementFeatureDetails +=============================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ModifyPluggableDatabaseManagementFeatureDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.PrivateEndPointConnectorDetails.rst b/docs/api/database_management/models/oci.database_management.models.PrivateEndPointConnectorDetails.rst new file mode 100644 index 0000000000..23ddcc1ae6 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.PrivateEndPointConnectorDetails.rst @@ -0,0 +1,11 @@ +PrivateEndPointConnectorDetails +=============================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: PrivateEndPointConnectorDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/recovery.rst b/docs/api/recovery.rst index fdbf1de080..ced0ac8382 100644 --- a/docs/api/recovery.rst +++ b/docs/api/recovery.rst @@ -38,6 +38,7 @@ Recovery oci.recovery.models.RecoveryServiceSubnetDetails oci.recovery.models.RecoveryServiceSubnetInput oci.recovery.models.RecoveryServiceSubnetSummary + oci.recovery.models.ScheduleProtectedDatabaseDeletionDetails oci.recovery.models.UpdateProtectedDatabaseDetails oci.recovery.models.UpdateProtectionPolicyDetails oci.recovery.models.UpdateRecoveryServiceSubnetDetails diff --git a/docs/api/recovery/models/oci.recovery.models.ScheduleProtectedDatabaseDeletionDetails.rst b/docs/api/recovery/models/oci.recovery.models.ScheduleProtectedDatabaseDeletionDetails.rst new file mode 100644 index 0000000000..4395246b27 --- /dev/null +++ b/docs/api/recovery/models/oci.recovery.models.ScheduleProtectedDatabaseDeletionDetails.rst @@ -0,0 +1,11 @@ +ScheduleProtectedDatabaseDeletionDetails +======================================== + +.. currentmodule:: oci.recovery.models + +.. autoclass:: ScheduleProtectedDatabaseDeletionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/examples/showusage/showusage.py b/examples/showusage/showusage.py index 2aa7497b3a..8a462fc722 100644 --- a/examples/showusage/showusage.py +++ b/examples/showusage/showusage.py @@ -1,5 +1,5 @@ # coding: utf-8 -# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. ########################################################################## diff --git a/src/oci/data_catalog/data_catalog_client.py b/src/oci/data_catalog/data_catalog_client.py index 28e338809a..e212fe4315 100644 --- a/src/oci/data_catalog/data_catalog_client.py +++ b/src/oci/data_catalog/data_catalog_client.py @@ -10086,6 +10086,123 @@ def import_glossary(self, catalog_id, glossary_key, import_glossary_details, **k api_reference_link=api_reference_link, required_arguments=required_arguments) + def import_lineage(self, catalog_id, data_asset_key, import_lineage_details, **kwargs): + """ + Imports lineage metadata. Returns details about the job that performs the import. + + + :param str catalog_id: (required) + Unique catalog identifier. + + :param str data_asset_key: (required) + Unique data asset key. + + :param oci.data_catalog.models.ImportLineageDetails import_lineage_details: (required) + Details needed by the lineage import request. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_catalog.models.ImportLineageJobResult` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use import_lineage API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['catalogId', 'dataAssetKey'] + resource_path = "/catalogs/{catalogId}/dataAssets/{dataAssetKey}/actions/importLineage" + method = "POST" + operation_name = "import_lineage" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/ImportLineage" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"import_lineage got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "catalogId": catalog_id, + "dataAssetKey": data_asset_key + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=import_lineage_details, + response_type="ImportLineageJobResult", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=import_lineage_details, + response_type="ImportLineageJobResult", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def list_aggregated_physical_entities(self, catalog_id, data_asset_key, entity_key, **kwargs): """ List the physical entities aggregated by this logical entity. @@ -12216,6 +12333,9 @@ def list_entities(self, catalog_id, data_asset_key, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param bool is_process: (optional) + A filter to return only process entities. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -12270,7 +12390,8 @@ def list_entities(self, catalog_id, data_asset_key, **kwargs): "sort_order", "limit", "page", - "opc_request_id" + "opc_request_id", + "is_process" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -12349,7 +12470,8 @@ def list_entities(self, catalog_id, data_asset_key, **kwargs): "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing), "limit": kwargs.get("limit", missing), - "page": kwargs.get("page", missing) + "page": kwargs.get("page", missing), + "isProcess": kwargs.get("is_process", missing) } query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} diff --git a/src/oci/data_catalog/models/__init__.py b/src/oci/data_catalog/models/__init__.py index 0e3b5bfe73..e379669f25 100644 --- a/src/oci/data_catalog/models/__init__.py +++ b/src/oci/data_catalog/models/__init__.py @@ -101,6 +101,8 @@ from .import_data_asset_details import ImportDataAssetDetails from .import_data_asset_job_result import ImportDataAssetJobResult from .import_glossary_details import ImportGlossaryDetails +from .import_lineage_details import ImportLineageDetails +from .import_lineage_job_result import ImportLineageJobResult from .job import Job from .job_collection import JobCollection from .job_definition import JobDefinition @@ -283,6 +285,8 @@ "ImportDataAssetDetails": ImportDataAssetDetails, "ImportDataAssetJobResult": ImportDataAssetJobResult, "ImportGlossaryDetails": ImportGlossaryDetails, + "ImportLineageDetails": ImportLineageDetails, + "ImportLineageJobResult": ImportLineageJobResult, "Job": Job, "JobCollection": JobCollection, "JobDefinition": JobDefinition, diff --git a/src/oci/data_catalog/models/import_lineage_details.py b/src/oci/data_catalog/models/import_lineage_details.py new file mode 100644 index 0000000000..02ef331b9d --- /dev/null +++ b/src/oci/data_catalog/models/import_lineage_details.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190325 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ImportLineageDetails(object): + """ + Specifies the lineage contents to be imported. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ImportLineageDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param lineage_payload: + The value to assign to the lineage_payload property of this ImportLineageDetails. + :type lineage_payload: str + + """ + self.swagger_types = { + 'lineage_payload': 'str' + } + + self.attribute_map = { + 'lineage_payload': 'lineagePayload' + } + + self._lineage_payload = None + + @property + def lineage_payload(self): + """ + **[Required]** Gets the lineage_payload of this ImportLineageDetails. + The payload used to import lineage. + + + :return: The lineage_payload of this ImportLineageDetails. + :rtype: str + """ + return self._lineage_payload + + @lineage_payload.setter + def lineage_payload(self, lineage_payload): + """ + Sets the lineage_payload of this ImportLineageDetails. + The payload used to import lineage. + + + :param lineage_payload: The lineage_payload of this ImportLineageDetails. + :type: str + """ + self._lineage_payload = lineage_payload + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_catalog/models/import_lineage_job_result.py b/src/oci/data_catalog/models/import_lineage_job_result.py new file mode 100644 index 0000000000..5d752d1599 --- /dev/null +++ b/src/oci/data_catalog/models/import_lineage_job_result.py @@ -0,0 +1,232 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190325 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ImportLineageJobResult(object): + """ + Information about lineage import operation. + """ + + #: A constant which can be used with the import_job_execution_status property of a ImportLineageJobResult. + #: This constant has a value of "CREATED" + IMPORT_JOB_EXECUTION_STATUS_CREATED = "CREATED" + + #: A constant which can be used with the import_job_execution_status property of a ImportLineageJobResult. + #: This constant has a value of "IN_PROGRESS" + IMPORT_JOB_EXECUTION_STATUS_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the import_job_execution_status property of a ImportLineageJobResult. + #: This constant has a value of "INACTIVE" + IMPORT_JOB_EXECUTION_STATUS_INACTIVE = "INACTIVE" + + #: A constant which can be used with the import_job_execution_status property of a ImportLineageJobResult. + #: This constant has a value of "FAILED" + IMPORT_JOB_EXECUTION_STATUS_FAILED = "FAILED" + + #: A constant which can be used with the import_job_execution_status property of a ImportLineageJobResult. + #: This constant has a value of "SUCCEEDED" + IMPORT_JOB_EXECUTION_STATUS_SUCCEEDED = "SUCCEEDED" + + #: A constant which can be used with the import_job_execution_status property of a ImportLineageJobResult. + #: This constant has a value of "CANCELED" + IMPORT_JOB_EXECUTION_STATUS_CANCELED = "CANCELED" + + #: A constant which can be used with the import_job_execution_status property of a ImportLineageJobResult. + #: This constant has a value of "SUCCEEDED_WITH_WARNINGS" + IMPORT_JOB_EXECUTION_STATUS_SUCCEEDED_WITH_WARNINGS = "SUCCEEDED_WITH_WARNINGS" + + def __init__(self, **kwargs): + """ + Initializes a new ImportLineageJobResult object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param data_asset_key: + The value to assign to the data_asset_key property of this ImportLineageJobResult. + :type data_asset_key: str + + :param import_job_definition_key: + The value to assign to the import_job_definition_key property of this ImportLineageJobResult. + :type import_job_definition_key: str + + :param import_job_key: + The value to assign to the import_job_key property of this ImportLineageJobResult. + :type import_job_key: str + + :param import_job_execution_key: + The value to assign to the import_job_execution_key property of this ImportLineageJobResult. + :type import_job_execution_key: str + + :param import_job_execution_status: + The value to assign to the import_job_execution_status property of this ImportLineageJobResult. + Allowed values for this property are: "CREATED", "IN_PROGRESS", "INACTIVE", "FAILED", "SUCCEEDED", "CANCELED", "SUCCEEDED_WITH_WARNINGS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type import_job_execution_status: str + + """ + self.swagger_types = { + 'data_asset_key': 'str', + 'import_job_definition_key': 'str', + 'import_job_key': 'str', + 'import_job_execution_key': 'str', + 'import_job_execution_status': 'str' + } + + self.attribute_map = { + 'data_asset_key': 'dataAssetKey', + 'import_job_definition_key': 'importJobDefinitionKey', + 'import_job_key': 'importJobKey', + 'import_job_execution_key': 'importJobExecutionKey', + 'import_job_execution_status': 'importJobExecutionStatus' + } + + self._data_asset_key = None + self._import_job_definition_key = None + self._import_job_key = None + self._import_job_execution_key = None + self._import_job_execution_status = None + + @property + def data_asset_key(self): + """ + **[Required]** Gets the data_asset_key of this ImportLineageJobResult. + The unique key of the data asset on which import is triggered. + + + :return: The data_asset_key of this ImportLineageJobResult. + :rtype: str + """ + return self._data_asset_key + + @data_asset_key.setter + def data_asset_key(self, data_asset_key): + """ + Sets the data_asset_key of this ImportLineageJobResult. + The unique key of the data asset on which import is triggered. + + + :param data_asset_key: The data_asset_key of this ImportLineageJobResult. + :type: str + """ + self._data_asset_key = data_asset_key + + @property + def import_job_definition_key(self): + """ + Gets the import_job_definition_key of this ImportLineageJobResult. + The unique key of the job definition resource that is used for the import. + + + :return: The import_job_definition_key of this ImportLineageJobResult. + :rtype: str + """ + return self._import_job_definition_key + + @import_job_definition_key.setter + def import_job_definition_key(self, import_job_definition_key): + """ + Sets the import_job_definition_key of this ImportLineageJobResult. + The unique key of the job definition resource that is used for the import. + + + :param import_job_definition_key: The import_job_definition_key of this ImportLineageJobResult. + :type: str + """ + self._import_job_definition_key = import_job_definition_key + + @property + def import_job_key(self): + """ + Gets the import_job_key of this ImportLineageJobResult. + The unique key of the job for the import. + + + :return: The import_job_key of this ImportLineageJobResult. + :rtype: str + """ + return self._import_job_key + + @import_job_key.setter + def import_job_key(self, import_job_key): + """ + Sets the import_job_key of this ImportLineageJobResult. + The unique key of the job for the import. + + + :param import_job_key: The import_job_key of this ImportLineageJobResult. + :type: str + """ + self._import_job_key = import_job_key + + @property + def import_job_execution_key(self): + """ + **[Required]** Gets the import_job_execution_key of this ImportLineageJobResult. + The unique key of the parent job execution for which the log resource is created. + + + :return: The import_job_execution_key of this ImportLineageJobResult. + :rtype: str + """ + return self._import_job_execution_key + + @import_job_execution_key.setter + def import_job_execution_key(self, import_job_execution_key): + """ + Sets the import_job_execution_key of this ImportLineageJobResult. + The unique key of the parent job execution for which the log resource is created. + + + :param import_job_execution_key: The import_job_execution_key of this ImportLineageJobResult. + :type: str + """ + self._import_job_execution_key = import_job_execution_key + + @property + def import_job_execution_status(self): + """ + Gets the import_job_execution_status of this ImportLineageJobResult. + The state of the import job execution. + + Allowed values for this property are: "CREATED", "IN_PROGRESS", "INACTIVE", "FAILED", "SUCCEEDED", "CANCELED", "SUCCEEDED_WITH_WARNINGS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The import_job_execution_status of this ImportLineageJobResult. + :rtype: str + """ + return self._import_job_execution_status + + @import_job_execution_status.setter + def import_job_execution_status(self, import_job_execution_status): + """ + Sets the import_job_execution_status of this ImportLineageJobResult. + The state of the import job execution. + + + :param import_job_execution_status: The import_job_execution_status of this ImportLineageJobResult. + :type: str + """ + allowed_values = ["CREATED", "IN_PROGRESS", "INACTIVE", "FAILED", "SUCCEEDED", "CANCELED", "SUCCEEDED_WITH_WARNINGS"] + if not value_allowed_none_or_none_sentinel(import_job_execution_status, allowed_values): + import_job_execution_status = 'UNKNOWN_ENUM_VALUE' + self._import_job_execution_status = import_job_execution_status + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_integration/models/create_workspace_details.py b/src/oci/data_integration/models/create_workspace_details.py index cb26ee511f..cfdf1505a3 100644 --- a/src/oci/data_integration/models/create_workspace_details.py +++ b/src/oci/data_integration/models/create_workspace_details.py @@ -84,6 +84,10 @@ def __init__(self, **kwargs): The value to assign to the endpoint_compartment_id property of this CreateWorkspaceDetails. :type endpoint_compartment_id: str + :param workspace_properties: + The value to assign to the workspace_properties property of this CreateWorkspaceDetails. + :type workspace_properties: dict(str, str) + """ self.swagger_types = { 'vcn_id': 'str', @@ -101,7 +105,8 @@ def __init__(self, **kwargs): 'registry_name': 'str', 'registry_compartment_id': 'str', 'endpoint_name': 'str', - 'endpoint_compartment_id': 'str' + 'endpoint_compartment_id': 'str', + 'workspace_properties': 'dict(str, str)' } self.attribute_map = { @@ -120,7 +125,8 @@ def __init__(self, **kwargs): 'registry_name': 'registryName', 'registry_compartment_id': 'registryCompartmentId', 'endpoint_name': 'endpointName', - 'endpoint_compartment_id': 'endpointCompartmentId' + 'endpoint_compartment_id': 'endpointCompartmentId', + 'workspace_properties': 'workspaceProperties' } self._vcn_id = None @@ -139,6 +145,7 @@ def __init__(self, **kwargs): self._registry_compartment_id = None self._endpoint_name = None self._endpoint_compartment_id = None + self._workspace_properties = None @property def vcn_id(self): @@ -536,6 +543,30 @@ def endpoint_compartment_id(self, endpoint_compartment_id): """ self._endpoint_compartment_id = endpoint_compartment_id + @property + def workspace_properties(self): + """ + Gets the workspace_properties of this CreateWorkspaceDetails. + Key-values pairs of workspace for storing properties on the workspace. + + + :return: The workspace_properties of this CreateWorkspaceDetails. + :rtype: dict(str, str) + """ + return self._workspace_properties + + @workspace_properties.setter + def workspace_properties(self, workspace_properties): + """ + Sets the workspace_properties of this CreateWorkspaceDetails. + Key-values pairs of workspace for storing properties on the workspace. + + + :param workspace_properties: The workspace_properties of this CreateWorkspaceDetails. + :type: dict(str, str) + """ + self._workspace_properties = workspace_properties + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/data_integration/models/update_workspace_details.py b/src/oci/data_integration/models/update_workspace_details.py index 087482105c..2b8ce9c093 100644 --- a/src/oci/data_integration/models/update_workspace_details.py +++ b/src/oci/data_integration/models/update_workspace_details.py @@ -36,25 +36,32 @@ def __init__(self, **kwargs): The value to assign to the display_name property of this UpdateWorkspaceDetails. :type display_name: str + :param workspace_properties: + The value to assign to the workspace_properties property of this UpdateWorkspaceDetails. + :type workspace_properties: dict(str, str) + """ self.swagger_types = { 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', 'description': 'str', - 'display_name': 'str' + 'display_name': 'str', + 'workspace_properties': 'dict(str, str)' } self.attribute_map = { 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', 'description': 'description', - 'display_name': 'displayName' + 'display_name': 'displayName', + 'workspace_properties': 'workspaceProperties' } self._freeform_tags = None self._defined_tags = None self._description = None self._display_name = None + self._workspace_properties = None @property def freeform_tags(self): @@ -164,6 +171,30 @@ def display_name(self, display_name): """ self._display_name = display_name + @property + def workspace_properties(self): + """ + Gets the workspace_properties of this UpdateWorkspaceDetails. + Key-values pairs of workspace for storing properties on the workspace. + + + :return: The workspace_properties of this UpdateWorkspaceDetails. + :rtype: dict(str, str) + """ + return self._workspace_properties + + @workspace_properties.setter + def workspace_properties(self, workspace_properties): + """ + Sets the workspace_properties of this UpdateWorkspaceDetails. + Key-values pairs of workspace for storing properties on the workspace. + + + :param workspace_properties: The workspace_properties of this UpdateWorkspaceDetails. + :type: dict(str, str) + """ + self._workspace_properties = workspace_properties + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/data_integration/models/workspace.py b/src/oci/data_integration/models/workspace.py index fd6aa38a9d..319f9df075 100644 --- a/src/oci/data_integration/models/workspace.py +++ b/src/oci/data_integration/models/workspace.py @@ -134,6 +134,10 @@ def __init__(self, **kwargs): The value to assign to the registry_id property of this Workspace. :type registry_id: str + :param workspace_properties: + The value to assign to the workspace_properties property of this Workspace. + :type workspace_properties: dict(str, str) + """ self.swagger_types = { 'vcn_id': 'str', @@ -153,7 +157,8 @@ def __init__(self, **kwargs): 'id': 'str', 'endpoint_id': 'str', 'endpoint_name': 'str', - 'registry_id': 'str' + 'registry_id': 'str', + 'workspace_properties': 'dict(str, str)' } self.attribute_map = { @@ -174,7 +179,8 @@ def __init__(self, **kwargs): 'id': 'id', 'endpoint_id': 'endpointId', 'endpoint_name': 'endpointName', - 'registry_id': 'registryId' + 'registry_id': 'registryId', + 'workspace_properties': 'workspaceProperties' } self._vcn_id = None @@ -195,6 +201,7 @@ def __init__(self, **kwargs): self._endpoint_id = None self._endpoint_name = None self._registry_id = None + self._workspace_properties = None @property def vcn_id(self): @@ -672,6 +679,30 @@ def registry_id(self, registry_id): """ self._registry_id = registry_id + @property + def workspace_properties(self): + """ + Gets the workspace_properties of this Workspace. + key-value pairs of workspace properties + + + :return: The workspace_properties of this Workspace. + :rtype: dict(str, str) + """ + return self._workspace_properties + + @workspace_properties.setter + def workspace_properties(self, workspace_properties): + """ + Sets the workspace_properties of this Workspace. + key-value pairs of workspace properties + + + :param workspace_properties: The workspace_properties of this Workspace. + :type: dict(str, str) + """ + self._workspace_properties = workspace_properties + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/data_integration/models/workspace_summary.py b/src/oci/data_integration/models/workspace_summary.py index c2ad6f3310..89853ae0d6 100644 --- a/src/oci/data_integration/models/workspace_summary.py +++ b/src/oci/data_integration/models/workspace_summary.py @@ -114,6 +114,10 @@ def __init__(self, **kwargs): The value to assign to the registry_id property of this WorkspaceSummary. :type registry_id: str + :param workspace_properties: + The value to assign to the workspace_properties property of this WorkspaceSummary. + :type workspace_properties: dict(str, str) + """ self.swagger_types = { 'id': 'str', @@ -128,7 +132,8 @@ def __init__(self, **kwargs): 'state_message': 'str', 'endpoint_name': 'str', 'endpoint_id': 'str', - 'registry_id': 'str' + 'registry_id': 'str', + 'workspace_properties': 'dict(str, str)' } self.attribute_map = { @@ -144,7 +149,8 @@ def __init__(self, **kwargs): 'state_message': 'stateMessage', 'endpoint_name': 'endpointName', 'endpoint_id': 'endpointId', - 'registry_id': 'registryId' + 'registry_id': 'registryId', + 'workspace_properties': 'workspaceProperties' } self._id = None @@ -160,6 +166,7 @@ def __init__(self, **kwargs): self._endpoint_name = None self._endpoint_id = None self._registry_id = None + self._workspace_properties = None @property def id(self): @@ -483,6 +490,30 @@ def registry_id(self, registry_id): """ self._registry_id = registry_id + @property + def workspace_properties(self): + """ + Gets the workspace_properties of this WorkspaceSummary. + key-value pairs of workspace properties + + + :return: The workspace_properties of this WorkspaceSummary. + :rtype: dict(str, str) + """ + return self._workspace_properties + + @workspace_properties.setter + def workspace_properties(self, workspace_properties): + """ + Sets the workspace_properties of this WorkspaceSummary. + key-value pairs of workspace properties + + + :param workspace_properties: The workspace_properties of this WorkspaceSummary. + :type: dict(str, str) + """ + self._workspace_properties = workspace_properties + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/data_safe/data_safe_client.py b/src/oci/data_safe/data_safe_client.py index 9d92c8ec3c..8954795b40 100644 --- a/src/oci/data_safe/data_safe_client.py +++ b/src/oci/data_safe/data_safe_client.py @@ -2128,6 +2128,125 @@ def change_masking_policy_compartment(self, masking_policy_id, change_masking_po api_reference_link=api_reference_link, required_arguments=required_arguments) + def change_masking_policy_health_report_compartment(self, masking_policy_health_report_id, change_masking_policy_health_report_compartment_details, **kwargs): + """ + Moves the specified masking policy health report and its dependent resources into a different compartment. + + + :param str masking_policy_health_report_id: (required) + The OCID of the masking health report. + + :param oci.data_safe.models.ChangeMaskingPolicyHealthReportCompartmentDetails change_masking_policy_health_report_compartment_details: (required) + Details to change the compartment of a masking policy. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the if-match parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request might be rejected. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use change_masking_policy_health_report_compartment API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maskingPolicyHealthReportId'] + resource_path = "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}/actions/changeCompartment" + method = "POST" + operation_name = "change_masking_policy_health_report_compartment" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ChangeMaskingPolicyHealthReportCompartment" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"change_masking_policy_health_report_compartment got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maskingPolicyHealthReportId": masking_policy_health_report_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_masking_policy_health_report_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_masking_policy_health_report_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def change_on_prem_connector_compartment(self, on_prem_connector_id, change_on_prem_connector_compartment_details, **kwargs): """ Moves the specified on-premises connector into a different compartment. @@ -6981,6 +7100,111 @@ def delete_masking_policy(self, masking_policy_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def delete_masking_policy_health_report(self, masking_policy_health_report_id, **kwargs): + """ + Deletes the specified masking policy health report. + + + :param str masking_policy_health_report_id: (required) + The OCID of the masking health report. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the if-match parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_masking_policy_health_report API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maskingPolicyHealthReportId'] + resource_path = "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}" + method = "DELETE" + operation_name = "delete_masking_policy_health_report" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/DeleteMaskingPolicyHealthReport" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_masking_policy_health_report got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maskingPolicyHealthReportId": masking_policy_health_report_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def delete_on_prem_connector(self, on_prem_connector_id, **kwargs): """ Deletes the specified on-premises connector. @@ -9558,24 +9782,26 @@ def generate_discovery_report_for_download(self, sensitive_data_model_id, genera api_reference_link=api_reference_link, required_arguments=required_arguments) - def generate_masking_policy_for_download(self, masking_policy_id, generate_masking_policy_for_download_details, **kwargs): + def generate_health_report(self, masking_policy_id, generate_health_report_details, **kwargs): """ - Generates a downloadable file corresponding to the specified masking policy. It's - a prerequisite for the DownloadMaskingPolicy operation. Use this endpoint to generate - a masking policy file and then use DownloadMaskingPolicy to download the generated file. - Note that file generation and download are serial operations. The download operation - can't be invoked while the generate operation is in progress. + Performs health check on the masking policy. :param str masking_policy_id: (required) The OCID of the masking policy. - :param oci.data_safe.models.GenerateMaskingPolicyForDownloadDetails generate_masking_policy_for_download_details: (required) - Details to generate a masking policy file. + :param oci.data_safe.models.GenerateHealthReportDetails generate_health_report_details: (required) + Details to perform an health check. :param str opc_request_id: (optional) Unique identifier for the request. + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -9592,25 +9818,26 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use generate_masking_policy_for_download API. + Click `here `__ to see an example of how to use generate_health_report API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. required_arguments = ['maskingPolicyId'] - resource_path = "/maskingPolicies/{maskingPolicyId}/actions/generatePolicyForDownload" + resource_path = "/maskingPolicies/{maskingPolicyId}/actions/generateHealthReport" method = "POST" - operation_name = "generate_masking_policy_for_download" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/GenerateMaskingPolicyForDownload" + operation_name = "generate_health_report" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/GenerateHealthReport" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_retry_token" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"generate_masking_policy_for_download got unknown kwargs: {extra_kwargs!r}") + f"generate_health_report got unknown kwargs: {extra_kwargs!r}") path_params = { "maskingPolicyId": masking_policy_id @@ -9625,7 +9852,8 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -9638,6 +9866,7 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( @@ -9646,7 +9875,7 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski method=method, path_params=path_params, header_params=header_params, - body=generate_masking_policy_for_download_details, + body=generate_health_report_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -9657,25 +9886,26 @@ def generate_masking_policy_for_download(self, masking_policy_id, generate_maski method=method, path_params=path_params, header_params=header_params, - body=generate_masking_policy_for_download_details, + body=generate_health_report_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def generate_masking_report_for_download(self, masking_policy_id, generate_masking_report_for_download_details, **kwargs): + def generate_masking_policy_for_download(self, masking_policy_id, generate_masking_policy_for_download_details, **kwargs): """ - Generates a downloadable masking report. It's a prerequisite for the - DownloadMaskingReport operation. Use this endpoint to generate a - masking report file and then use DownloadMaskingReport to download - the generated file. + Generates a downloadable file corresponding to the specified masking policy. It's + a prerequisite for the DownloadMaskingPolicy operation. Use this endpoint to generate + a masking policy file and then use DownloadMaskingPolicy to download the generated file. + Note that file generation and download are serial operations. The download operation + can't be invoked while the generate operation is in progress. :param str masking_policy_id: (required) The OCID of the masking policy. - :param oci.data_safe.models.GenerateMaskingReportForDownloadDetails generate_masking_report_for_download_details: (required) - Details to generate a downloadable masking report. + :param oci.data_safe.models.GenerateMaskingPolicyForDownloadDetails generate_masking_policy_for_download_details: (required) + Details to generate a masking policy file. :param str opc_request_id: (optional) Unique identifier for the request. @@ -9696,14 +9926,14 @@ def generate_masking_report_for_download(self, masking_policy_id, generate_maski :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use generate_masking_report_for_download API. + Click `here `__ to see an example of how to use generate_masking_policy_for_download API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. required_arguments = ['maskingPolicyId'] - resource_path = "/maskingPolicies/{maskingPolicyId}/actions/generateReportForDownload" + resource_path = "/maskingPolicies/{maskingPolicyId}/actions/generatePolicyForDownload" method = "POST" - operation_name = "generate_masking_report_for_download" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/GenerateMaskingReportForDownload" + operation_name = "generate_masking_policy_for_download" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/GenerateMaskingPolicyForDownload" # Don't accept unknown kwargs expected_kwargs = [ @@ -9714,7 +9944,7 @@ def generate_masking_report_for_download(self, masking_policy_id, generate_maski extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"generate_masking_report_for_download got unknown kwargs: {extra_kwargs!r}") + f"generate_masking_policy_for_download got unknown kwargs: {extra_kwargs!r}") path_params = { "maskingPolicyId": masking_policy_id @@ -9750,7 +9980,7 @@ def generate_masking_report_for_download(self, masking_policy_id, generate_maski method=method, path_params=path_params, header_params=header_params, - body=generate_masking_report_for_download_details, + body=generate_masking_policy_for_download_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -9761,7 +9991,111 @@ def generate_masking_report_for_download(self, masking_policy_id, generate_maski method=method, path_params=path_params, header_params=header_params, - body=generate_masking_report_for_download_details, + body=generate_masking_policy_for_download_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def generate_masking_report_for_download(self, masking_policy_id, generate_masking_report_for_download_details, **kwargs): + """ + Generates a downloadable masking report. It's a prerequisite for the + DownloadMaskingReport operation. Use this endpoint to generate a + masking report file and then use DownloadMaskingReport to download + the generated file. + + + :param str masking_policy_id: (required) + The OCID of the masking policy. + + :param oci.data_safe.models.GenerateMaskingReportForDownloadDetails generate_masking_report_for_download_details: (required) + Details to generate a downloadable masking report. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use generate_masking_report_for_download API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maskingPolicyId'] + resource_path = "/maskingPolicies/{maskingPolicyId}/actions/generateReportForDownload" + method = "POST" + operation_name = "generate_masking_report_for_download" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicy/GenerateMaskingReportForDownload" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"generate_masking_report_for_download got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maskingPolicyId": masking_policy_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=generate_masking_report_for_download_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=generate_masking_report_for_download_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -12417,6 +12751,104 @@ def get_masking_policy(self, masking_policy_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def get_masking_policy_health_report(self, masking_policy_health_report_id, **kwargs): + """ + Gets the details of the specified masking policy health report. + + + :param str masking_policy_health_report_id: (required) + The OCID of the masking health report. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_safe.models.MaskingPolicyHealthReport` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_masking_policy_health_report API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maskingPolicyHealthReportId'] + resource_path = "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}" + method = "GET" + operation_name = "get_masking_policy_health_report" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/GetMaskingPolicyHealthReport" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_masking_policy_health_report got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maskingPolicyHealthReportId": masking_policy_health_report_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="MaskingPolicyHealthReport", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="MaskingPolicyHealthReport", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def get_masking_report(self, masking_report_id, **kwargs): """ Gets the details of the specified masking report. @@ -21396,6 +21828,358 @@ def list_masking_policies(self, compartment_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def list_masking_policy_health_report_logs(self, masking_policy_health_report_id, **kwargs): + """ + Gets a list of errors and warnings from a masking policy health check. + + + :param str masking_policy_health_report_id: (required) + The OCID of the masking health report. + + :param int limit: (optional) + For list pagination. The maximum number of items to return per page in a paginated \"List\" call. For details about how pagination works, see `List Pagination`__. + + __ https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str page: (optional) + For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous \"List\" call. For details about how pagination works, see `List Pagination`__. + + __ https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_order: (optional) + The sort order to use, either ascending (ASC) or descending (DESC). + + Allowed values are: "ASC", "DESC" + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param str sort_by: (optional) + sort by + + Allowed values are: "logType" + + :param str message_type: (optional) + A filter to return only the resources that match the specified log message type. + + Allowed values are: "PASS", "WARNING", "ERROR" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_safe.models.MaskingPolicyHealthReportLogCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_masking_policy_health_report_logs API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maskingPolicyHealthReportId'] + resource_path = "/maskingPolicyHealthReports/{maskingPolicyHealthReportId}/logs" + method = "GET" + operation_name = "list_masking_policy_health_report_logs" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReportLogs" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "limit", + "page", + "sort_order", + "opc_request_id", + "sort_by", + "message_type" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_masking_policy_health_report_logs got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maskingPolicyHealthReportId": masking_policy_health_report_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["logType"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + if 'message_type' in kwargs: + message_type_allowed_values = ["PASS", "WARNING", "ERROR"] + if kwargs['message_type'] not in message_type_allowed_values: + raise ValueError( + f"Invalid value for `message_type`, must be one of { message_type_allowed_values }" + ) + + query_params = { + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing), + "messageType": kwargs.get("message_type", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + response_type="MaskingPolicyHealthReportLogCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + response_type="MaskingPolicyHealthReportLogCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_masking_policy_health_reports(self, compartment_id, **kwargs): + """ + Gets a list of masking policy health reports based on the specified query parameters. + + + :param str compartment_id: (required) + A filter to return only resources that match the specified compartment OCID. + + :param str masking_policy_health_report_id: (optional) + A filter to return only the resources that match the specified masking policy health report OCID. + + :param int limit: (optional) + For list pagination. The maximum number of items to return per page in a paginated \"List\" call. For details about how pagination works, see `List Pagination`__. + + __ https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str page: (optional) + For list pagination. The page token representing the page at which to start retrieving results. It is usually retrieved from a previous \"List\" call. For details about how pagination works, see `List Pagination`__. + + __ https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param bool compartment_id_in_subtree: (optional) + Default is false. + When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' setting. + + :param str access_level: (optional) + Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. + Setting this to ACCESSIBLE returns only those compartments for which the + user has INSPECT permissions directly or indirectly (permissions can be on a + resource in a subcompartment). When set to RESTRICTED permissions are checked and no partial results are displayed. + + Allowed values are: "RESTRICTED", "ACCESSIBLE" + + :param str sort_by: (optional) + sort by + + Allowed values are: "displayName", "timeCreated" + + :param str sort_order: (optional) + The sort order to use, either ascending (ASC) or descending (DESC). + + Allowed values are: "ASC", "DESC" + + :param str display_name: (optional) + A filter to return only resources that match the specified display name. + + :param str target_id: (optional) + A filter to return only items related to a specific target OCID. + + :param str masking_policy_id: (optional) + A filter to return only the resources that match the specified masking policy OCID. + + :param str lifecycle_state: (optional) + A filter to return only the resources that match the specified lifecycle states. + + Allowed values are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "NEEDS_ATTENTION", "FAILED" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_safe.models.MaskingPolicyHealthReportCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_masking_policy_health_reports API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/maskingPolicyHealthReports" + method = "GET" + operation_name = "list_masking_policy_health_reports" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReports" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "masking_policy_health_report_id", + "limit", + "page", + "opc_request_id", + "compartment_id_in_subtree", + "access_level", + "sort_by", + "sort_order", + "display_name", + "target_id", + "masking_policy_id", + "lifecycle_state" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_masking_policy_health_reports got unknown kwargs: {extra_kwargs!r}") + + if 'access_level' in kwargs: + access_level_allowed_values = ["RESTRICTED", "ACCESSIBLE"] + if kwargs['access_level'] not in access_level_allowed_values: + raise ValueError( + f"Invalid value for `access_level`, must be one of { access_level_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["displayName", "timeCreated"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'lifecycle_state' in kwargs: + lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "NEEDS_ATTENTION", "FAILED"] + if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: + raise ValueError( + f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" + ) + + query_params = { + "maskingPolicyHealthReportId": kwargs.get("masking_policy_health_report_id", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "compartmentId": compartment_id, + "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), + "accessLevel": kwargs.get("access_level", missing), + "sortBy": kwargs.get("sort_by", missing), + "sortOrder": kwargs.get("sort_order", missing), + "displayName": kwargs.get("display_name", missing), + "targetId": kwargs.get("target_id", missing), + "maskingPolicyId": kwargs.get("masking_policy_id", missing), + "lifecycleState": kwargs.get("lifecycle_state", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="MaskingPolicyHealthReportCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="MaskingPolicyHealthReportCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def list_masking_reports(self, compartment_id, **kwargs): """ Gets a list of masking reports based on the specified query parameters. diff --git a/src/oci/data_safe/data_safe_client_composite_operations.py b/src/oci/data_safe/data_safe_client_composite_operations.py index 70a577329a..e595a8ac9f 100644 --- a/src/oci/data_safe/data_safe_client_composite_operations.py +++ b/src/oci/data_safe/data_safe_client_composite_operations.py @@ -1945,6 +1945,53 @@ def delete_masking_policy_and_wait_for_state(self, masking_policy_id, wait_for_s except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def delete_masking_policy_health_report_and_wait_for_state(self, masking_policy_health_report_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.data_safe.DataSafeClient.delete_masking_policy_health_report` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` + to enter the given state(s). + + :param str masking_policy_health_report_id: (required) + The OCID of the masking health report. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.delete_masking_policy_health_report` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = None + try: + operation_result = self.client.delete_masking_policy_health_report(masking_policy_health_report_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def delete_on_prem_connector_and_wait_for_state(self, on_prem_connector_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.data_safe.DataSafeClient.delete_on_prem_connector` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` @@ -2644,6 +2691,48 @@ def generate_discovery_report_for_download_and_wait_for_state(self, sensitive_da except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def generate_health_report_and_wait_for_state(self, masking_policy_id, generate_health_report_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.data_safe.DataSafeClient.generate_health_report` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` + to enter the given state(s). + + :param str masking_policy_id: (required) + The OCID of the masking policy. + + :param oci.data_safe.models.GenerateHealthReportDetails generate_health_report_details: (required) + Details to perform an health check. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.generate_health_report` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.generate_health_report(masking_policy_id, generate_health_report_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def generate_masking_policy_for_download_and_wait_for_state(self, masking_policy_id, generate_masking_policy_for_download_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.data_safe.DataSafeClient.generate_masking_policy_for_download` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` diff --git a/src/oci/data_safe/models/__init__.py b/src/oci/data_safe/models/__init__.py index 8b9d2d828a..03df532c7d 100644 --- a/src/oci/data_safe/models/__init__.py +++ b/src/oci/data_safe/models/__init__.py @@ -65,6 +65,7 @@ from .change_discovery_job_compartment_details import ChangeDiscoveryJobCompartmentDetails from .change_library_masking_format_compartment_details import ChangeLibraryMaskingFormatCompartmentDetails from .change_masking_policy_compartment_details import ChangeMaskingPolicyCompartmentDetails +from .change_masking_policy_health_report_compartment_details import ChangeMaskingPolicyHealthReportCompartmentDetails from .change_on_prem_connector_compartment_details import ChangeOnPremConnectorCompartmentDetails from .change_report_compartment_details import ChangeReportCompartmentDetails from .change_report_definition_compartment_details import ChangeReportDefinitionCompartmentDetails @@ -177,6 +178,7 @@ from .formats_for_data_type import FormatsForDataType from .formats_for_sensitive_type import FormatsForSensitiveType from .generate_discovery_report_for_download_details import GenerateDiscoveryReportForDownloadDetails +from .generate_health_report_details import GenerateHealthReportDetails from .generate_masking_policy_for_download_details import GenerateMaskingPolicyForDownloadDetails from .generate_masking_report_for_download_details import GenerateMaskingReportForDownloadDetails from .generate_on_prem_connector_configuration_details import GenerateOnPremConnectorConfigurationDetails @@ -206,6 +208,11 @@ from .masking_object_summary import MaskingObjectSummary from .masking_policy import MaskingPolicy from .masking_policy_collection import MaskingPolicyCollection +from .masking_policy_health_report import MaskingPolicyHealthReport +from .masking_policy_health_report_collection import MaskingPolicyHealthReportCollection +from .masking_policy_health_report_log_collection import MaskingPolicyHealthReportLogCollection +from .masking_policy_health_report_log_summary import MaskingPolicyHealthReportLogSummary +from .masking_policy_health_report_summary import MaskingPolicyHealthReportSummary from .masking_policy_summary import MaskingPolicySummary from .masking_report import MaskingReport from .masking_report_collection import MaskingReportCollection @@ -460,6 +467,7 @@ "ChangeDiscoveryJobCompartmentDetails": ChangeDiscoveryJobCompartmentDetails, "ChangeLibraryMaskingFormatCompartmentDetails": ChangeLibraryMaskingFormatCompartmentDetails, "ChangeMaskingPolicyCompartmentDetails": ChangeMaskingPolicyCompartmentDetails, + "ChangeMaskingPolicyHealthReportCompartmentDetails": ChangeMaskingPolicyHealthReportCompartmentDetails, "ChangeOnPremConnectorCompartmentDetails": ChangeOnPremConnectorCompartmentDetails, "ChangeReportCompartmentDetails": ChangeReportCompartmentDetails, "ChangeReportDefinitionCompartmentDetails": ChangeReportDefinitionCompartmentDetails, @@ -572,6 +580,7 @@ "FormatsForDataType": FormatsForDataType, "FormatsForSensitiveType": FormatsForSensitiveType, "GenerateDiscoveryReportForDownloadDetails": GenerateDiscoveryReportForDownloadDetails, + "GenerateHealthReportDetails": GenerateHealthReportDetails, "GenerateMaskingPolicyForDownloadDetails": GenerateMaskingPolicyForDownloadDetails, "GenerateMaskingReportForDownloadDetails": GenerateMaskingReportForDownloadDetails, "GenerateOnPremConnectorConfigurationDetails": GenerateOnPremConnectorConfigurationDetails, @@ -601,6 +610,11 @@ "MaskingObjectSummary": MaskingObjectSummary, "MaskingPolicy": MaskingPolicy, "MaskingPolicyCollection": MaskingPolicyCollection, + "MaskingPolicyHealthReport": MaskingPolicyHealthReport, + "MaskingPolicyHealthReportCollection": MaskingPolicyHealthReportCollection, + "MaskingPolicyHealthReportLogCollection": MaskingPolicyHealthReportLogCollection, + "MaskingPolicyHealthReportLogSummary": MaskingPolicyHealthReportLogSummary, + "MaskingPolicyHealthReportSummary": MaskingPolicyHealthReportSummary, "MaskingPolicySummary": MaskingPolicySummary, "MaskingReport": MaskingReport, "MaskingReportCollection": MaskingReportCollection, diff --git a/src/oci/data_safe/models/change_masking_policy_health_report_compartment_details.py b/src/oci/data_safe/models/change_masking_policy_health_report_compartment_details.py new file mode 100644 index 0000000000..71c0df3029 --- /dev/null +++ b/src/oci/data_safe/models/change_masking_policy_health_report_compartment_details.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ChangeMaskingPolicyHealthReportCompartmentDetails(object): + """ + Details to change the compartment of a masking policy. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ChangeMaskingPolicyHealthReportCompartmentDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param compartment_id: + The value to assign to the compartment_id property of this ChangeMaskingPolicyHealthReportCompartmentDetails. + :type compartment_id: str + + """ + self.swagger_types = { + 'compartment_id': 'str' + } + + self.attribute_map = { + 'compartment_id': 'compartmentId' + } + + self._compartment_id = None + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this ChangeMaskingPolicyHealthReportCompartmentDetails. + The OCID of the compartment where the masking policy should be moved. + + + :return: The compartment_id of this ChangeMaskingPolicyHealthReportCompartmentDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this ChangeMaskingPolicyHealthReportCompartmentDetails. + The OCID of the compartment where the masking policy should be moved. + + + :param compartment_id: The compartment_id of this ChangeMaskingPolicyHealthReportCompartmentDetails. + :type: str + """ + self._compartment_id = compartment_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/generate_health_report_details.py b/src/oci/data_safe/models/generate_health_report_details.py new file mode 100644 index 0000000000..72859853f7 --- /dev/null +++ b/src/oci/data_safe/models/generate_health_report_details.py @@ -0,0 +1,261 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class GenerateHealthReportDetails(object): + """ + Details to use when performing health check on a masking policy. + """ + + #: A constant which can be used with the check_type property of a GenerateHealthReportDetails. + #: This constant has a value of "ALL" + CHECK_TYPE_ALL = "ALL" + + def __init__(self, **kwargs): + """ + Initializes a new GenerateHealthReportDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param check_type: + The value to assign to the check_type property of this GenerateHealthReportDetails. + Allowed values for this property are: "ALL" + :type check_type: str + + :param target_id: + The value to assign to the target_id property of this GenerateHealthReportDetails. + :type target_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this GenerateHealthReportDetails. + :type compartment_id: str + + :param tablespace: + The value to assign to the tablespace property of this GenerateHealthReportDetails. + :type tablespace: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this GenerateHealthReportDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this GenerateHealthReportDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'check_type': 'str', + 'target_id': 'str', + 'compartment_id': 'str', + 'tablespace': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'check_type': 'checkType', + 'target_id': 'targetId', + 'compartment_id': 'compartmentId', + 'tablespace': 'tablespace', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._check_type = None + self._target_id = None + self._compartment_id = None + self._tablespace = None + self._freeform_tags = None + self._defined_tags = None + + @property + def check_type(self): + """ + Gets the check_type of this GenerateHealthReportDetails. + The type of health check. The default behaviour is to perform all health checks. + + Allowed values for this property are: "ALL" + + + :return: The check_type of this GenerateHealthReportDetails. + :rtype: str + """ + return self._check_type + + @check_type.setter + def check_type(self, check_type): + """ + Sets the check_type of this GenerateHealthReportDetails. + The type of health check. The default behaviour is to perform all health checks. + + + :param check_type: The check_type of this GenerateHealthReportDetails. + :type: str + """ + allowed_values = ["ALL"] + if not value_allowed_none_or_none_sentinel(check_type, allowed_values): + raise ValueError( + f"Invalid value for `check_type`, must be None or one of {allowed_values}" + ) + self._check_type = check_type + + @property + def target_id(self): + """ + Gets the target_id of this GenerateHealthReportDetails. + The OCID of the target database to use for the masking policy + health check. The targetId associated with the masking policy + is used if this is not passed. + + + :return: The target_id of this GenerateHealthReportDetails. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """ + Sets the target_id of this GenerateHealthReportDetails. + The OCID of the target database to use for the masking policy + health check. The targetId associated with the masking policy + is used if this is not passed. + + + :param target_id: The target_id of this GenerateHealthReportDetails. + :type: str + """ + self._target_id = target_id + + @property + def compartment_id(self): + """ + Gets the compartment_id of this GenerateHealthReportDetails. + The OCID of the compartment where the health report resource should be created. + + + :return: The compartment_id of this GenerateHealthReportDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this GenerateHealthReportDetails. + The OCID of the compartment where the health report resource should be created. + + + :param compartment_id: The compartment_id of this GenerateHealthReportDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def tablespace(self): + """ + Gets the tablespace of this GenerateHealthReportDetails. + The tablespace that should be used to estimate space. + If no tablespace is provided, the DEFAULT tablespace is used. + + + :return: The tablespace of this GenerateHealthReportDetails. + :rtype: str + """ + return self._tablespace + + @tablespace.setter + def tablespace(self, tablespace): + """ + Sets the tablespace of this GenerateHealthReportDetails. + The tablespace that should be used to estimate space. + If no tablespace is provided, the DEFAULT tablespace is used. + + + :param tablespace: The tablespace of this GenerateHealthReportDetails. + :type: str + """ + self._tablespace = tablespace + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this GenerateHealthReportDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__ + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this GenerateHealthReportDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this GenerateHealthReportDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__ + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this GenerateHealthReportDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this GenerateHealthReportDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__ + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this GenerateHealthReportDetails. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this GenerateHealthReportDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__ + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this GenerateHealthReportDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/masking_policy_health_report.py b/src/oci/data_safe/models/masking_policy_health_report.py new file mode 100644 index 0000000000..89c9f159da --- /dev/null +++ b/src/oci/data_safe/models/masking_policy_health_report.py @@ -0,0 +1,434 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class MaskingPolicyHealthReport(object): + """ + The masking policy health report. + """ + + #: A constant which can be used with the lifecycle_state property of a MaskingPolicyHealthReport. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a MaskingPolicyHealthReport. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a MaskingPolicyHealthReport. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a MaskingPolicyHealthReport. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a MaskingPolicyHealthReport. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new MaskingPolicyHealthReport object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this MaskingPolicyHealthReport. + :type id: str + + :param masking_policy_id: + The value to assign to the masking_policy_id property of this MaskingPolicyHealthReport. + :type masking_policy_id: str + + :param target_id: + The value to assign to the target_id property of this MaskingPolicyHealthReport. + :type target_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this MaskingPolicyHealthReport. + :type compartment_id: str + + :param display_name: + The value to assign to the display_name property of this MaskingPolicyHealthReport. + :type display_name: str + + :param time_created: + The value to assign to the time_created property of this MaskingPolicyHealthReport. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this MaskingPolicyHealthReport. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MaskingPolicyHealthReport. + Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type lifecycle_state: str + + :param description: + The value to assign to the description property of this MaskingPolicyHealthReport. + :type description: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this MaskingPolicyHealthReport. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MaskingPolicyHealthReport. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'masking_policy_id': 'str', + 'target_id': 'str', + 'compartment_id': 'str', + 'display_name': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'description': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'id': 'id', + 'masking_policy_id': 'maskingPolicyId', + 'target_id': 'targetId', + 'compartment_id': 'compartmentId', + 'display_name': 'displayName', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'description': 'description', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._id = None + self._masking_policy_id = None + self._target_id = None + self._compartment_id = None + self._display_name = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._description = None + self._freeform_tags = None + self._defined_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this MaskingPolicyHealthReport. + The OCID of the health report. + + + :return: The id of this MaskingPolicyHealthReport. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this MaskingPolicyHealthReport. + The OCID of the health report. + + + :param id: The id of this MaskingPolicyHealthReport. + :type: str + """ + self._id = id + + @property + def masking_policy_id(self): + """ + **[Required]** Gets the masking_policy_id of this MaskingPolicyHealthReport. + The OCID of the masking policy. + + + :return: The masking_policy_id of this MaskingPolicyHealthReport. + :rtype: str + """ + return self._masking_policy_id + + @masking_policy_id.setter + def masking_policy_id(self, masking_policy_id): + """ + Sets the masking_policy_id of this MaskingPolicyHealthReport. + The OCID of the masking policy. + + + :param masking_policy_id: The masking_policy_id of this MaskingPolicyHealthReport. + :type: str + """ + self._masking_policy_id = masking_policy_id + + @property + def target_id(self): + """ + **[Required]** Gets the target_id of this MaskingPolicyHealthReport. + The OCID of the target database for which this report was created. + + + :return: The target_id of this MaskingPolicyHealthReport. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """ + Sets the target_id of this MaskingPolicyHealthReport. + The OCID of the target database for which this report was created. + + + :param target_id: The target_id of this MaskingPolicyHealthReport. + :type: str + """ + self._target_id = target_id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this MaskingPolicyHealthReport. + The OCID of the compartment that contains the health report. + + + :return: The compartment_id of this MaskingPolicyHealthReport. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this MaskingPolicyHealthReport. + The OCID of the compartment that contains the health report. + + + :param compartment_id: The compartment_id of this MaskingPolicyHealthReport. + :type: str + """ + self._compartment_id = compartment_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this MaskingPolicyHealthReport. + The display name of the health report. + + + :return: The display_name of this MaskingPolicyHealthReport. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this MaskingPolicyHealthReport. + The display name of the health report. + + + :param display_name: The display_name of this MaskingPolicyHealthReport. + :type: str + """ + self._display_name = display_name + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this MaskingPolicyHealthReport. + The date and time the report was created, in the format defined by `RFC3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this MaskingPolicyHealthReport. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this MaskingPolicyHealthReport. + The date and time the report was created, in the format defined by `RFC3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this MaskingPolicyHealthReport. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this MaskingPolicyHealthReport. + The date and time the report was last updated, in the format defined by `RFC3339`__ + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this MaskingPolicyHealthReport. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this MaskingPolicyHealthReport. + The date and time the report was last updated, in the format defined by `RFC3339`__ + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this MaskingPolicyHealthReport. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this MaskingPolicyHealthReport. + The current state of the health report. + + Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this MaskingPolicyHealthReport. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this MaskingPolicyHealthReport. + The current state of the health report. + + + :param lifecycle_state: The lifecycle_state of this MaskingPolicyHealthReport. + :type: str + """ + allowed_values = ["CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def description(self): + """ + Gets the description of this MaskingPolicyHealthReport. + The description of the masking health report. + + + :return: The description of this MaskingPolicyHealthReport. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this MaskingPolicyHealthReport. + The description of the masking health report. + + + :param description: The description of this MaskingPolicyHealthReport. + :type: str + """ + self._description = description + + @property + def freeform_tags(self): + """ + **[Required]** Gets the freeform_tags of this MaskingPolicyHealthReport. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__ + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this MaskingPolicyHealthReport. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this MaskingPolicyHealthReport. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__ + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this MaskingPolicyHealthReport. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + **[Required]** Gets the defined_tags of this MaskingPolicyHealthReport. + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__ + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this MaskingPolicyHealthReport. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this MaskingPolicyHealthReport. + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__ + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this MaskingPolicyHealthReport. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/masking_policy_health_report_collection.py b/src/oci/data_safe/models/masking_policy_health_report_collection.py new file mode 100644 index 0000000000..4d60b0f1e5 --- /dev/null +++ b/src/oci/data_safe/models/masking_policy_health_report_collection.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class MaskingPolicyHealthReportCollection(object): + """ + A collection of masking policy health report objects. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MaskingPolicyHealthReportCollection object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param items: + The value to assign to the items property of this MaskingPolicyHealthReportCollection. + :type items: list[oci.data_safe.models.MaskingPolicyHealthReportSummary] + + """ + self.swagger_types = { + 'items': 'list[MaskingPolicyHealthReportSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this MaskingPolicyHealthReportCollection. + An array of masking policy health report objects. + + + :return: The items of this MaskingPolicyHealthReportCollection. + :rtype: list[oci.data_safe.models.MaskingPolicyHealthReportSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this MaskingPolicyHealthReportCollection. + An array of masking policy health report objects. + + + :param items: The items of this MaskingPolicyHealthReportCollection. + :type: list[oci.data_safe.models.MaskingPolicyHealthReportSummary] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/masking_policy_health_report_log_collection.py b/src/oci/data_safe/models/masking_policy_health_report_log_collection.py new file mode 100644 index 0000000000..752a7d9943 --- /dev/null +++ b/src/oci/data_safe/models/masking_policy_health_report_log_collection.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class MaskingPolicyHealthReportLogCollection(object): + """ + A collection of masking policy health log objects. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MaskingPolicyHealthReportLogCollection object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param items: + The value to assign to the items property of this MaskingPolicyHealthReportLogCollection. + :type items: list[oci.data_safe.models.MaskingPolicyHealthReportLogSummary] + + """ + self.swagger_types = { + 'items': 'list[MaskingPolicyHealthReportLogSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this MaskingPolicyHealthReportLogCollection. + An array of masking policy health report objects. + + + :return: The items of this MaskingPolicyHealthReportLogCollection. + :rtype: list[oci.data_safe.models.MaskingPolicyHealthReportLogSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this MaskingPolicyHealthReportLogCollection. + An array of masking policy health report objects. + + + :param items: The items of this MaskingPolicyHealthReportLogCollection. + :type: list[oci.data_safe.models.MaskingPolicyHealthReportLogSummary] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/masking_policy_health_report_log_summary.py b/src/oci/data_safe/models/masking_policy_health_report_log_summary.py new file mode 100644 index 0000000000..4928d4b828 --- /dev/null +++ b/src/oci/data_safe/models/masking_policy_health_report_log_summary.py @@ -0,0 +1,220 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class MaskingPolicyHealthReportLogSummary(object): + """ + A log entry related to the pre-masking health check. + """ + + #: A constant which can be used with the message_type property of a MaskingPolicyHealthReportLogSummary. + #: This constant has a value of "PASS" + MESSAGE_TYPE_PASS = "PASS" + + #: A constant which can be used with the message_type property of a MaskingPolicyHealthReportLogSummary. + #: This constant has a value of "WARNING" + MESSAGE_TYPE_WARNING = "WARNING" + + #: A constant which can be used with the message_type property of a MaskingPolicyHealthReportLogSummary. + #: This constant has a value of "ERROR" + MESSAGE_TYPE_ERROR = "ERROR" + + def __init__(self, **kwargs): + """ + Initializes a new MaskingPolicyHealthReportLogSummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param message_type: + The value to assign to the message_type property of this MaskingPolicyHealthReportLogSummary. + Allowed values for this property are: "PASS", "WARNING", "ERROR", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type message_type: str + + :param timestamp: + The value to assign to the timestamp property of this MaskingPolicyHealthReportLogSummary. + :type timestamp: datetime + + :param message: + The value to assign to the message property of this MaskingPolicyHealthReportLogSummary. + :type message: str + + :param remediation: + The value to assign to the remediation property of this MaskingPolicyHealthReportLogSummary. + :type remediation: str + + :param description: + The value to assign to the description property of this MaskingPolicyHealthReportLogSummary. + :type description: str + + """ + self.swagger_types = { + 'message_type': 'str', + 'timestamp': 'datetime', + 'message': 'str', + 'remediation': 'str', + 'description': 'str' + } + + self.attribute_map = { + 'message_type': 'messageType', + 'timestamp': 'timestamp', + 'message': 'message', + 'remediation': 'remediation', + 'description': 'description' + } + + self._message_type = None + self._timestamp = None + self._message = None + self._remediation = None + self._description = None + + @property + def message_type(self): + """ + **[Required]** Gets the message_type of this MaskingPolicyHealthReportLogSummary. + The log entry type. + + Allowed values for this property are: "PASS", "WARNING", "ERROR", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The message_type of this MaskingPolicyHealthReportLogSummary. + :rtype: str + """ + return self._message_type + + @message_type.setter + def message_type(self, message_type): + """ + Sets the message_type of this MaskingPolicyHealthReportLogSummary. + The log entry type. + + + :param message_type: The message_type of this MaskingPolicyHealthReportLogSummary. + :type: str + """ + allowed_values = ["PASS", "WARNING", "ERROR"] + if not value_allowed_none_or_none_sentinel(message_type, allowed_values): + message_type = 'UNKNOWN_ENUM_VALUE' + self._message_type = message_type + + @property + def timestamp(self): + """ + **[Required]** Gets the timestamp of this MaskingPolicyHealthReportLogSummary. + The date and time the log entry was created, in the format defined by `RFC3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The timestamp of this MaskingPolicyHealthReportLogSummary. + :rtype: datetime + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """ + Sets the timestamp of this MaskingPolicyHealthReportLogSummary. + The date and time the log entry was created, in the format defined by `RFC3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param timestamp: The timestamp of this MaskingPolicyHealthReportLogSummary. + :type: datetime + """ + self._timestamp = timestamp + + @property + def message(self): + """ + **[Required]** Gets the message of this MaskingPolicyHealthReportLogSummary. + A human-readable log entry. + + + :return: The message of this MaskingPolicyHealthReportLogSummary. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this MaskingPolicyHealthReportLogSummary. + A human-readable log entry. + + + :param message: The message of this MaskingPolicyHealthReportLogSummary. + :type: str + """ + self._message = message + + @property + def remediation(self): + """ + Gets the remediation of this MaskingPolicyHealthReportLogSummary. + A human-readable log entry to remedy any error or warnings in the masking policy. + + + :return: The remediation of this MaskingPolicyHealthReportLogSummary. + :rtype: str + """ + return self._remediation + + @remediation.setter + def remediation(self, remediation): + """ + Sets the remediation of this MaskingPolicyHealthReportLogSummary. + A human-readable log entry to remedy any error or warnings in the masking policy. + + + :param remediation: The remediation of this MaskingPolicyHealthReportLogSummary. + :type: str + """ + self._remediation = remediation + + @property + def description(self): + """ + **[Required]** Gets the description of this MaskingPolicyHealthReportLogSummary. + A human-readable description for the log entry. + + + :return: The description of this MaskingPolicyHealthReportLogSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this MaskingPolicyHealthReportLogSummary. + A human-readable description for the log entry. + + + :param description: The description of this MaskingPolicyHealthReportLogSummary. + :type: str + """ + self._description = description + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/masking_policy_health_report_summary.py b/src/oci/data_safe/models/masking_policy_health_report_summary.py new file mode 100644 index 0000000000..c9aa4ba3db --- /dev/null +++ b/src/oci/data_safe/models/masking_policy_health_report_summary.py @@ -0,0 +1,371 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class MaskingPolicyHealthReportSummary(object): + """ + Summary of a masking policy health report. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MaskingPolicyHealthReportSummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this MaskingPolicyHealthReportSummary. + :type id: str + + :param masking_policy_id: + The value to assign to the masking_policy_id property of this MaskingPolicyHealthReportSummary. + :type masking_policy_id: str + + :param target_id: + The value to assign to the target_id property of this MaskingPolicyHealthReportSummary. + :type target_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this MaskingPolicyHealthReportSummary. + :type compartment_id: str + + :param display_name: + The value to assign to the display_name property of this MaskingPolicyHealthReportSummary. + :type display_name: str + + :param time_created: + The value to assign to the time_created property of this MaskingPolicyHealthReportSummary. + :type time_created: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MaskingPolicyHealthReportSummary. + :type lifecycle_state: str + + :param description: + The value to assign to the description property of this MaskingPolicyHealthReportSummary. + :type description: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this MaskingPolicyHealthReportSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MaskingPolicyHealthReportSummary. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'masking_policy_id': 'str', + 'target_id': 'str', + 'compartment_id': 'str', + 'display_name': 'str', + 'time_created': 'datetime', + 'lifecycle_state': 'str', + 'description': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'id': 'id', + 'masking_policy_id': 'maskingPolicyId', + 'target_id': 'targetId', + 'compartment_id': 'compartmentId', + 'display_name': 'displayName', + 'time_created': 'timeCreated', + 'lifecycle_state': 'lifecycleState', + 'description': 'description', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._id = None + self._masking_policy_id = None + self._target_id = None + self._compartment_id = None + self._display_name = None + self._time_created = None + self._lifecycle_state = None + self._description = None + self._freeform_tags = None + self._defined_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this MaskingPolicyHealthReportSummary. + The OCID of the health report. + + + :return: The id of this MaskingPolicyHealthReportSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this MaskingPolicyHealthReportSummary. + The OCID of the health report. + + + :param id: The id of this MaskingPolicyHealthReportSummary. + :type: str + """ + self._id = id + + @property + def masking_policy_id(self): + """ + **[Required]** Gets the masking_policy_id of this MaskingPolicyHealthReportSummary. + The OCID of the masking policy. + + + :return: The masking_policy_id of this MaskingPolicyHealthReportSummary. + :rtype: str + """ + return self._masking_policy_id + + @masking_policy_id.setter + def masking_policy_id(self, masking_policy_id): + """ + Sets the masking_policy_id of this MaskingPolicyHealthReportSummary. + The OCID of the masking policy. + + + :param masking_policy_id: The masking_policy_id of this MaskingPolicyHealthReportSummary. + :type: str + """ + self._masking_policy_id = masking_policy_id + + @property + def target_id(self): + """ + **[Required]** Gets the target_id of this MaskingPolicyHealthReportSummary. + The OCID of the target database for which this report was created. + + + :return: The target_id of this MaskingPolicyHealthReportSummary. + :rtype: str + """ + return self._target_id + + @target_id.setter + def target_id(self, target_id): + """ + Sets the target_id of this MaskingPolicyHealthReportSummary. + The OCID of the target database for which this report was created. + + + :param target_id: The target_id of this MaskingPolicyHealthReportSummary. + :type: str + """ + self._target_id = target_id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this MaskingPolicyHealthReportSummary. + The OCID of the compartment that contains the health report. + + + :return: The compartment_id of this MaskingPolicyHealthReportSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this MaskingPolicyHealthReportSummary. + The OCID of the compartment that contains the health report. + + + :param compartment_id: The compartment_id of this MaskingPolicyHealthReportSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this MaskingPolicyHealthReportSummary. + The display name of the health report. + + + :return: The display_name of this MaskingPolicyHealthReportSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this MaskingPolicyHealthReportSummary. + The display name of the health report. + + + :param display_name: The display_name of this MaskingPolicyHealthReportSummary. + :type: str + """ + self._display_name = display_name + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this MaskingPolicyHealthReportSummary. + The date and time the report was created, in the format defined by `RFC3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this MaskingPolicyHealthReportSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this MaskingPolicyHealthReportSummary. + The date and time the report was created, in the format defined by `RFC3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this MaskingPolicyHealthReportSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this MaskingPolicyHealthReportSummary. + The current state of the health report. + + + :return: The lifecycle_state of this MaskingPolicyHealthReportSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this MaskingPolicyHealthReportSummary. + The current state of the health report. + + + :param lifecycle_state: The lifecycle_state of this MaskingPolicyHealthReportSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def description(self): + """ + Gets the description of this MaskingPolicyHealthReportSummary. + The description of the masking health report. + + + :return: The description of this MaskingPolicyHealthReportSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this MaskingPolicyHealthReportSummary. + The description of the masking health report. + + + :param description: The description of this MaskingPolicyHealthReportSummary. + :type: str + """ + self._description = description + + @property + def freeform_tags(self): + """ + **[Required]** Gets the freeform_tags of this MaskingPolicyHealthReportSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__ + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this MaskingPolicyHealthReportSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this MaskingPolicyHealthReportSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see `Resource Tags`__ + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this MaskingPolicyHealthReportSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + **[Required]** Gets the defined_tags of this MaskingPolicyHealthReportSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__ + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this MaskingPolicyHealthReportSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this MaskingPolicyHealthReportSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__ + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this MaskingPolicyHealthReportSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/work_request.py b/src/oci/data_safe/models/work_request.py index dd5dc9ec7d..19f24fa778 100644 --- a/src/oci/data_safe/models/work_request.py +++ b/src/oci/data_safe/models/work_request.py @@ -507,6 +507,10 @@ class WorkRequest(object): #: This constant has a value of "APPLY_DIFFERENCE" OPERATION_TYPE_APPLY_DIFFERENCE = "APPLY_DIFFERENCE" + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "MASK_POLICY_GENERATE_HEALTH_REPORT" + OPERATION_TYPE_MASK_POLICY_GENERATE_HEALTH_REPORT = "MASK_POLICY_GENERATE_HEALTH_REPORT" + #: A constant which can be used with the operation_type property of a WorkRequest. #: This constant has a value of "ABORT_MASKING" OPERATION_TYPE_ABORT_MASKING = "ABORT_MASKING" @@ -578,7 +582,7 @@ def __init__(self, **kwargs): :param operation_type: The value to assign to the operation_type property of this WorkRequest. - Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -657,7 +661,7 @@ def operation_type(self): **[Required]** Gets the operation_type of this WorkRequest. The resources that are affected by the work request. - Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -676,7 +680,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequest. :type: str """ - allowed_values = ["ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION"] + allowed_values = ["ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION"] if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): operation_type = 'UNKNOWN_ENUM_VALUE' self._operation_type = operation_type diff --git a/src/oci/data_safe/models/work_request_summary.py b/src/oci/data_safe/models/work_request_summary.py index 9d8415c289..c30b230b83 100644 --- a/src/oci/data_safe/models/work_request_summary.py +++ b/src/oci/data_safe/models/work_request_summary.py @@ -503,6 +503,10 @@ class WorkRequestSummary(object): #: This constant has a value of "APPLY_DIFFERENCE" OPERATION_TYPE_APPLY_DIFFERENCE = "APPLY_DIFFERENCE" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "MASK_POLICY_GENERATE_HEALTH_REPORT" + OPERATION_TYPE_MASK_POLICY_GENERATE_HEALTH_REPORT = "MASK_POLICY_GENERATE_HEALTH_REPORT" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. #: This constant has a value of "ABORT_MASKING" OPERATION_TYPE_ABORT_MASKING = "ABORT_MASKING" @@ -574,7 +578,7 @@ def __init__(self, **kwargs): :param operation_type: The value to assign to the operation_type property of this WorkRequestSummary. - Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -653,7 +657,7 @@ def operation_type(self): **[Required]** Gets the operation_type of this WorkRequestSummary. The asynchronous operation tracked by this work request. - Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -672,7 +676,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequestSummary. :type: str """ - allowed_values = ["ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION"] + allowed_values = ["ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION"] if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): operation_type = 'UNKNOWN_ENUM_VALUE' self._operation_type = operation_type diff --git a/src/oci/database/database_client.py b/src/oci/database/database_client.py index 0661124ed9..193319122a 100644 --- a/src/oci/database/database_client.py +++ b/src/oci/database/database_client.py @@ -24222,8 +24222,9 @@ def list_database_software_images(self, compartment_id, **kwargs): :param str sort_by: (optional) The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + Default order for PATCHSET is descending. - Allowed values are: "TIMECREATED", "DISPLAYNAME" + Allowed values are: "TIMECREATED", "DISPLAYNAME", "PATCHSET" :param str sort_order: (optional) The sort order to use, either ascending (`ASC`) or descending (`DESC`). @@ -24248,6 +24249,9 @@ def list_database_software_images(self, compartment_id, **kwargs): Allowed values are: "VM_BM_SHAPE", "EXADATA_SHAPE", "EXACC_SHAPE" + :param str patch_set_greater_than_or_equal_to: (optional) + A filter to return only resources with `patchSet` greater than or equal to given value. + :param bool is_upgrade_supported: (optional) If provided, filters the results to the set of database versions which are supported for Upgrade. @@ -24288,6 +24292,7 @@ def list_database_software_images(self, compartment_id, **kwargs): "display_name", "image_type", "image_shape_family", + "patch_set_greater_than_or_equal_to", "is_upgrade_supported" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] @@ -24296,7 +24301,7 @@ def list_database_software_images(self, compartment_id, **kwargs): f"list_database_software_images got unknown kwargs: {extra_kwargs!r}") if 'sort_by' in kwargs: - sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"] + sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME", "PATCHSET"] if kwargs['sort_by'] not in sort_by_allowed_values: raise ValueError( f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" @@ -24340,6 +24345,7 @@ def list_database_software_images(self, compartment_id, **kwargs): "displayName": kwargs.get("display_name", missing), "imageType": kwargs.get("image_type", missing), "imageShapeFamily": kwargs.get("image_shape_family", missing), + "patchSetGreaterThanOrEqualTo": kwargs.get("patch_set_greater_than_or_equal_to", missing), "isUpgradeSupported": kwargs.get("is_upgrade_supported", missing) } query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} @@ -27321,7 +27327,7 @@ def list_flex_components(self, compartment_id, **kwargs): def list_gi_versions(self, compartment_id, **kwargs): """ - Gets a list of supported GI versions for the Exadata Cloud@Customer VM cluster. + Gets a list of supported GI versions. :param str compartment_id: (required) @@ -37032,7 +37038,7 @@ def update_external_pluggable_database(self, external_pluggable_database_id, upd def update_key_store(self, key_store_id, update_key_store_details, **kwargs): """ - If no database is associated with the key store, edit the key store. + Edit the key store. :param str key_store_id: (required) diff --git a/src/oci/database/models/autonomous_container_database.py b/src/oci/database/models/autonomous_container_database.py index a145a23b54..f7d38b877c 100644 --- a/src/oci/database/models/autonomous_container_database.py +++ b/src/oci/database/models/autonomous_container_database.py @@ -1722,7 +1722,7 @@ def time_of_last_backup(self, time_of_last_backup): def db_split_threshold(self): """ Gets the db_split_threshold of this AutonomousContainerDatabase. - The value above which an Autonomous Database will be split across multiple nodes. This value defaults to 16 when the \"CPU per VM\" value on the Autonomous VM Cluster is greater than 16. Otherwise, it defaults to the \"CPU per VM\" value. + The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. :return: The db_split_threshold of this AutonomousContainerDatabase. @@ -1734,7 +1734,7 @@ def db_split_threshold(self): def db_split_threshold(self, db_split_threshold): """ Sets the db_split_threshold of this AutonomousContainerDatabase. - The value above which an Autonomous Database will be split across multiple nodes. This value defaults to 16 when the \"CPU per VM\" value on the Autonomous VM Cluster is greater than 16. Otherwise, it defaults to the \"CPU per VM\" value. + The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. :param db_split_threshold: The db_split_threshold of this AutonomousContainerDatabase. @@ -1746,7 +1746,7 @@ def db_split_threshold(self, db_split_threshold): def vm_failover_reservation(self): """ Gets the vm_failover_reservation of this AutonomousContainerDatabase. - The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. :return: The vm_failover_reservation of this AutonomousContainerDatabase. @@ -1758,7 +1758,7 @@ def vm_failover_reservation(self): def vm_failover_reservation(self, vm_failover_reservation): """ Sets the vm_failover_reservation of this AutonomousContainerDatabase. - The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. :param vm_failover_reservation: The vm_failover_reservation of this AutonomousContainerDatabase. @@ -1770,7 +1770,7 @@ def vm_failover_reservation(self, vm_failover_reservation): def distribution_affinity(self): """ Gets the distribution_affinity of this AutonomousContainerDatabase. - This option determines whether to open an Autonomous Database across the maximum number of nodes or the least number of nodes. The default will be for the minimum number of VMs. + Determines whether an Autonomous Database must be opened across the maximum number of nodes or the least number of nodes. By default, Minimum nodes is selected. Allowed values for this property are: "MINIMUM_DISTRIBUTION", "MAXIMUM_DISTRIBUTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -1785,7 +1785,7 @@ def distribution_affinity(self): def distribution_affinity(self, distribution_affinity): """ Sets the distribution_affinity of this AutonomousContainerDatabase. - This option determines whether to open an Autonomous Database across the maximum number of nodes or the least number of nodes. The default will be for the minimum number of VMs. + Determines whether an Autonomous Database must be opened across the maximum number of nodes or the least number of nodes. By default, Minimum nodes is selected. :param distribution_affinity: The distribution_affinity of this AutonomousContainerDatabase. diff --git a/src/oci/database/models/autonomous_container_database_summary.py b/src/oci/database/models/autonomous_container_database_summary.py index 214c1c9985..ad9fe41fe3 100644 --- a/src/oci/database/models/autonomous_container_database_summary.py +++ b/src/oci/database/models/autonomous_container_database_summary.py @@ -1722,7 +1722,7 @@ def time_of_last_backup(self, time_of_last_backup): def db_split_threshold(self): """ Gets the db_split_threshold of this AutonomousContainerDatabaseSummary. - The value above which an Autonomous Database will be split across multiple nodes. This value defaults to 16 when the \"CPU per VM\" value on the Autonomous VM Cluster is greater than 16. Otherwise, it defaults to the \"CPU per VM\" value. + The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. :return: The db_split_threshold of this AutonomousContainerDatabaseSummary. @@ -1734,7 +1734,7 @@ def db_split_threshold(self): def db_split_threshold(self, db_split_threshold): """ Sets the db_split_threshold of this AutonomousContainerDatabaseSummary. - The value above which an Autonomous Database will be split across multiple nodes. This value defaults to 16 when the \"CPU per VM\" value on the Autonomous VM Cluster is greater than 16. Otherwise, it defaults to the \"CPU per VM\" value. + The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. :param db_split_threshold: The db_split_threshold of this AutonomousContainerDatabaseSummary. @@ -1746,7 +1746,7 @@ def db_split_threshold(self, db_split_threshold): def vm_failover_reservation(self): """ Gets the vm_failover_reservation of this AutonomousContainerDatabaseSummary. - The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. :return: The vm_failover_reservation of this AutonomousContainerDatabaseSummary. @@ -1758,7 +1758,7 @@ def vm_failover_reservation(self): def vm_failover_reservation(self, vm_failover_reservation): """ Sets the vm_failover_reservation of this AutonomousContainerDatabaseSummary. - The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. :param vm_failover_reservation: The vm_failover_reservation of this AutonomousContainerDatabaseSummary. @@ -1770,7 +1770,7 @@ def vm_failover_reservation(self, vm_failover_reservation): def distribution_affinity(self): """ Gets the distribution_affinity of this AutonomousContainerDatabaseSummary. - This option determines whether to open an Autonomous Database across the maximum number of nodes or the least number of nodes. The default will be for the minimum number of VMs. + Determines whether an Autonomous Database must be opened across the maximum number of nodes or the least number of nodes. By default, Minimum nodes is selected. Allowed values for this property are: "MINIMUM_DISTRIBUTION", "MAXIMUM_DISTRIBUTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -1785,7 +1785,7 @@ def distribution_affinity(self): def distribution_affinity(self, distribution_affinity): """ Sets the distribution_affinity of this AutonomousContainerDatabaseSummary. - This option determines whether to open an Autonomous Database across the maximum number of nodes or the least number of nodes. The default will be for the minimum number of VMs. + Determines whether an Autonomous Database must be opened across the maximum number of nodes or the least number of nodes. By default, Minimum nodes is selected. :param distribution_affinity: The distribution_affinity of this AutonomousContainerDatabaseSummary. diff --git a/src/oci/database/models/autonomous_database.py b/src/oci/database/models/autonomous_database.py index 278dbf2138..31bd99dda6 100644 --- a/src/oci/database/models/autonomous_database.py +++ b/src/oci/database/models/autonomous_database.py @@ -2591,7 +2591,9 @@ def db_workload(self, db_workload): def is_dev_tier(self): """ Gets the is_dev_tier of this AutonomousDatabase. - This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev , memory and CPU cannot be scaled + Autonomous Database for Developers are free Autonomous Databases that developers can use to build and test new applications.With Autonomous these database instancess instances, you can try new Autonomous Database features for free and apply them to ongoing or new development projects. Developer database comes with limited resources and is, therefore, not suitable for large-scale testing and production deployments. When you need more compute or storage resources, you can transition to a paid database licensing by cloning your developer database into a regular Autonomous Database. See `Autonomous Database documentation`__ for more details. + + __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html :return: The is_dev_tier of this AutonomousDatabase. @@ -2603,7 +2605,9 @@ def is_dev_tier(self): def is_dev_tier(self, is_dev_tier): """ Sets the is_dev_tier of this AutonomousDatabase. - This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev , memory and CPU cannot be scaled + Autonomous Database for Developers are free Autonomous Databases that developers can use to build and test new applications.With Autonomous these database instancess instances, you can try new Autonomous Database features for free and apply them to ongoing or new development projects. Developer database comes with limited resources and is, therefore, not suitable for large-scale testing and production deployments. When you need more compute or storage resources, you can transition to a paid database licensing by cloning your developer database into a regular Autonomous Database. See `Autonomous Database documentation`__ for more details. + + __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html :param is_dev_tier: The is_dev_tier of this AutonomousDatabase. @@ -3663,7 +3667,7 @@ def time_local_data_guard_enabled(self, time_local_data_guard_enabled): def dataguard_region_type(self): """ Gets the dataguard_region_type of this AutonomousDatabase. - The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. + **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. Allowed values for this property are: "PRIMARY_DG_REGION", "REMOTE_STANDBY_DG_REGION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -3678,7 +3682,7 @@ def dataguard_region_type(self): def dataguard_region_type(self, dataguard_region_type): """ Sets the dataguard_region_type of this AutonomousDatabase. - The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. + **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. :param dataguard_region_type: The dataguard_region_type of this AutonomousDatabase. @@ -4131,7 +4135,7 @@ def local_disaster_recovery_type(self, local_disaster_recovery_type): def disaster_recovery_region_type(self): """ Gets the disaster_recovery_region_type of this AutonomousDatabase. - The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. + **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. Allowed values for this property are: "PRIMARY", "REMOTE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -4146,7 +4150,7 @@ def disaster_recovery_region_type(self): def disaster_recovery_region_type(self, disaster_recovery_region_type): """ Sets the disaster_recovery_region_type of this AutonomousDatabase. - The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. + **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. :param disaster_recovery_region_type: The disaster_recovery_region_type of this AutonomousDatabase. diff --git a/src/oci/database/models/autonomous_database_summary.py b/src/oci/database/models/autonomous_database_summary.py index 8b13a9674f..13bc3f2a91 100644 --- a/src/oci/database/models/autonomous_database_summary.py +++ b/src/oci/database/models/autonomous_database_summary.py @@ -2593,7 +2593,9 @@ def db_workload(self, db_workload): def is_dev_tier(self): """ Gets the is_dev_tier of this AutonomousDatabaseSummary. - This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev , memory and CPU cannot be scaled + Autonomous Database for Developers are free Autonomous Databases that developers can use to build and test new applications.With Autonomous these database instancess instances, you can try new Autonomous Database features for free and apply them to ongoing or new development projects. Developer database comes with limited resources and is, therefore, not suitable for large-scale testing and production deployments. When you need more compute or storage resources, you can transition to a paid database licensing by cloning your developer database into a regular Autonomous Database. See `Autonomous Database documentation`__ for more details. + + __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html :return: The is_dev_tier of this AutonomousDatabaseSummary. @@ -2605,7 +2607,9 @@ def is_dev_tier(self): def is_dev_tier(self, is_dev_tier): """ Sets the is_dev_tier of this AutonomousDatabaseSummary. - This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev , memory and CPU cannot be scaled + Autonomous Database for Developers are free Autonomous Databases that developers can use to build and test new applications.With Autonomous these database instancess instances, you can try new Autonomous Database features for free and apply them to ongoing or new development projects. Developer database comes with limited resources and is, therefore, not suitable for large-scale testing and production deployments. When you need more compute or storage resources, you can transition to a paid database licensing by cloning your developer database into a regular Autonomous Database. See `Autonomous Database documentation`__ for more details. + + __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html :param is_dev_tier: The is_dev_tier of this AutonomousDatabaseSummary. @@ -3665,7 +3669,7 @@ def time_local_data_guard_enabled(self, time_local_data_guard_enabled): def dataguard_region_type(self): """ Gets the dataguard_region_type of this AutonomousDatabaseSummary. - The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. + **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. Allowed values for this property are: "PRIMARY_DG_REGION", "REMOTE_STANDBY_DG_REGION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -3680,7 +3684,7 @@ def dataguard_region_type(self): def dataguard_region_type(self, dataguard_region_type): """ Sets the dataguard_region_type of this AutonomousDatabaseSummary. - The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. + **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database Serverless, Autonomous Data Guard associations have designated primary and standby regions, and these region types do not change when the database changes roles. The standby regions in Autonomous Data Guard associations can be the same region designated as the primary region, or they can be remote regions. Certain database administrative operations may be available only in the primary region of the Autonomous Data Guard association, and cannot be performed when the database using the primary role is operating in a remote Autonomous Data Guard standby region. :param dataguard_region_type: The dataguard_region_type of this AutonomousDatabaseSummary. @@ -4133,7 +4137,7 @@ def local_disaster_recovery_type(self, local_disaster_recovery_type): def disaster_recovery_region_type(self): """ Gets the disaster_recovery_region_type of this AutonomousDatabaseSummary. - The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. + **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. Allowed values for this property are: "PRIMARY", "REMOTE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -4148,7 +4152,7 @@ def disaster_recovery_region_type(self): def disaster_recovery_region_type(self, disaster_recovery_region_type): """ Sets the disaster_recovery_region_type of this AutonomousDatabaseSummary. - The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. + **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database Serverless instances, DR associations have designated primary and standby regions. These region types do not change when the database changes roles. The standby region in DR associations can be the same region as the primary region, or they can be in a remote regions. Some database administration operations may be available only in the primary region of the DR association, and cannot be performed when the database using the primary role is operating in a remote region. :param disaster_recovery_region_type: The disaster_recovery_region_type of this AutonomousDatabaseSummary. diff --git a/src/oci/database/models/cloud_vm_cluster.py b/src/oci/database/models/cloud_vm_cluster.py index 6b3102fdf4..acb9ea0d53 100644 --- a/src/oci/database/models/cloud_vm_cluster.py +++ b/src/oci/database/models/cloud_vm_cluster.py @@ -258,6 +258,10 @@ def __init__(self, **kwargs): The value to assign to the data_collection_options property of this CloudVmCluster. :type data_collection_options: oci.database.models.DataCollectionOptions + :param gi_software_image_id: + The value to assign to the gi_software_image_id property of this CloudVmCluster. + :type gi_software_image_id: str + """ self.swagger_types = { 'iorm_config_cache': 'ExadataIormConfig', @@ -306,7 +310,8 @@ def __init__(self, **kwargs): 'zone_id': 'str', 'scan_listener_port_tcp': 'int', 'scan_listener_port_tcp_ssl': 'int', - 'data_collection_options': 'DataCollectionOptions' + 'data_collection_options': 'DataCollectionOptions', + 'gi_software_image_id': 'str' } self.attribute_map = { @@ -356,7 +361,8 @@ def __init__(self, **kwargs): 'zone_id': 'zoneId', 'scan_listener_port_tcp': 'scanListenerPortTcp', 'scan_listener_port_tcp_ssl': 'scanListenerPortTcpSsl', - 'data_collection_options': 'dataCollectionOptions' + 'data_collection_options': 'dataCollectionOptions', + 'gi_software_image_id': 'giSoftwareImageId' } self._iorm_config_cache = None @@ -406,6 +412,7 @@ def __init__(self, **kwargs): self._scan_listener_port_tcp = None self._scan_listener_port_tcp_ssl = None self._data_collection_options = None + self._gi_software_image_id = None @property def iorm_config_cache(self): @@ -1667,6 +1674,34 @@ def data_collection_options(self, data_collection_options): """ self._data_collection_options = data_collection_options + @property + def gi_software_image_id(self): + """ + Gets the gi_software_image_id of this CloudVmCluster. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The gi_software_image_id of this CloudVmCluster. + :rtype: str + """ + return self._gi_software_image_id + + @gi_software_image_id.setter + def gi_software_image_id(self, gi_software_image_id): + """ + Sets the gi_software_image_id of this CloudVmCluster. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param gi_software_image_id: The gi_software_image_id of this CloudVmCluster. + :type: str + """ + self._gi_software_image_id = gi_software_image_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/cloud_vm_cluster_summary.py b/src/oci/database/models/cloud_vm_cluster_summary.py index 032254f959..39efec8d5d 100644 --- a/src/oci/database/models/cloud_vm_cluster_summary.py +++ b/src/oci/database/models/cloud_vm_cluster_summary.py @@ -254,6 +254,10 @@ def __init__(self, **kwargs): The value to assign to the data_collection_options property of this CloudVmClusterSummary. :type data_collection_options: oci.database.models.DataCollectionOptions + :param gi_software_image_id: + The value to assign to the gi_software_image_id property of this CloudVmClusterSummary. + :type gi_software_image_id: str + """ self.swagger_types = { 'id': 'str', @@ -301,7 +305,8 @@ def __init__(self, **kwargs): 'zone_id': 'str', 'scan_listener_port_tcp': 'int', 'scan_listener_port_tcp_ssl': 'int', - 'data_collection_options': 'DataCollectionOptions' + 'data_collection_options': 'DataCollectionOptions', + 'gi_software_image_id': 'str' } self.attribute_map = { @@ -350,7 +355,8 @@ def __init__(self, **kwargs): 'zone_id': 'zoneId', 'scan_listener_port_tcp': 'scanListenerPortTcp', 'scan_listener_port_tcp_ssl': 'scanListenerPortTcpSsl', - 'data_collection_options': 'dataCollectionOptions' + 'data_collection_options': 'dataCollectionOptions', + 'gi_software_image_id': 'giSoftwareImageId' } self._id = None @@ -399,6 +405,7 @@ def __init__(self, **kwargs): self._scan_listener_port_tcp = None self._scan_listener_port_tcp_ssl = None self._data_collection_options = None + self._gi_software_image_id = None @property def id(self): @@ -1640,6 +1647,34 @@ def data_collection_options(self, data_collection_options): """ self._data_collection_options = data_collection_options + @property + def gi_software_image_id(self): + """ + Gets the gi_software_image_id of this CloudVmClusterSummary. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The gi_software_image_id of this CloudVmClusterSummary. + :rtype: str + """ + return self._gi_software_image_id + + @gi_software_image_id.setter + def gi_software_image_id(self, gi_software_image_id): + """ + Sets the gi_software_image_id of this CloudVmClusterSummary. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param gi_software_image_id: The gi_software_image_id of this CloudVmClusterSummary. + :type: str + """ + self._gi_software_image_id = gi_software_image_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/create_autonomous_container_database_details.py b/src/oci/database/models/create_autonomous_container_database_details.py index 365ee139b7..1f3fb06c62 100644 --- a/src/oci/database/models/create_autonomous_container_database_details.py +++ b/src/oci/database/models/create_autonomous_container_database_details.py @@ -1184,7 +1184,7 @@ def key_store_id(self, key_store_id): def db_split_threshold(self): """ Gets the db_split_threshold of this CreateAutonomousContainerDatabaseDetails. - The value above which an Autonomous Database will be split across multiple nodes. This value defaults to 16 when the \"CPU per VM\" value on the Autonomous VM Cluster is greater than 16. Otherwise, it defaults to the \"CPU per VM\" value. + The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. :return: The db_split_threshold of this CreateAutonomousContainerDatabaseDetails. @@ -1196,7 +1196,7 @@ def db_split_threshold(self): def db_split_threshold(self, db_split_threshold): """ Sets the db_split_threshold of this CreateAutonomousContainerDatabaseDetails. - The value above which an Autonomous Database will be split across multiple nodes. This value defaults to 16 when the \"CPU per VM\" value on the Autonomous VM Cluster is greater than 16. Otherwise, it defaults to the \"CPU per VM\" value. + The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The default value of this attribute is 16 for OCPUs and 64 for ECPUs. :param db_split_threshold: The db_split_threshold of this CreateAutonomousContainerDatabaseDetails. @@ -1208,7 +1208,7 @@ def db_split_threshold(self, db_split_threshold): def vm_failover_reservation(self): """ Gets the vm_failover_reservation of this CreateAutonomousContainerDatabaseDetails. - The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. :return: The vm_failover_reservation of this CreateAutonomousContainerDatabaseDetails. @@ -1220,7 +1220,7 @@ def vm_failover_reservation(self): def vm_failover_reservation(self, vm_failover_reservation): """ Sets the vm_failover_reservation of this CreateAutonomousContainerDatabaseDetails. - The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, 25%, and 50%, with 50% being the default option. :param vm_failover_reservation: The vm_failover_reservation of this CreateAutonomousContainerDatabaseDetails. @@ -1232,7 +1232,7 @@ def vm_failover_reservation(self, vm_failover_reservation): def distribution_affinity(self): """ Gets the distribution_affinity of this CreateAutonomousContainerDatabaseDetails. - This option determines whether to open an Autonomous Database across the maximum number of nodes or the least number of nodes. The default will be for the minimum number of VMs. + Determines whether an Autonomous Database must be opened across a minimum or maximum of nodes. By default, Minimum nodes is selected. Allowed values for this property are: "MINIMUM_DISTRIBUTION", "MAXIMUM_DISTRIBUTION" @@ -1246,7 +1246,7 @@ def distribution_affinity(self): def distribution_affinity(self, distribution_affinity): """ Sets the distribution_affinity of this CreateAutonomousContainerDatabaseDetails. - This option determines whether to open an Autonomous Database across the maximum number of nodes or the least number of nodes. The default will be for the minimum number of VMs. + Determines whether an Autonomous Database must be opened across a minimum or maximum of nodes. By default, Minimum nodes is selected. :param distribution_affinity: The distribution_affinity of this CreateAutonomousContainerDatabaseDetails. diff --git a/src/oci/database/models/create_autonomous_database_base.py b/src/oci/database/models/create_autonomous_database_base.py index ed99b5c321..0fc439e843 100644 --- a/src/oci/database/models/create_autonomous_database_base.py +++ b/src/oci/database/models/create_autonomous_database_base.py @@ -1119,7 +1119,9 @@ def is_auto_scaling_enabled(self, is_auto_scaling_enabled): def is_dev_tier(self): """ Gets the is_dev_tier of this CreateAutonomousDatabaseBase. - This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev , memory and CPU cannot be scaled + Autonomous Database for Developers are free Autonomous Databases that developers can use to build and test new applications.With Autonomous these database instancess instances, you can try new Autonomous Database features for free and apply them to ongoing or new development projects. Developer database comes with limited resources and is, therefore, not suitable for large-scale testing and production deployments. When you need more compute or storage resources, you can transition to a paid database licensing by cloning your developer database into a regular Autonomous Database. See `Autonomous Database documentation`__ for more details. + + __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html :return: The is_dev_tier of this CreateAutonomousDatabaseBase. @@ -1131,7 +1133,9 @@ def is_dev_tier(self): def is_dev_tier(self, is_dev_tier): """ Sets the is_dev_tier of this CreateAutonomousDatabaseBase. - This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev , memory and CPU cannot be scaled + Autonomous Database for Developers are free Autonomous Databases that developers can use to build and test new applications.With Autonomous these database instancess instances, you can try new Autonomous Database features for free and apply them to ongoing or new development projects. Developer database comes with limited resources and is, therefore, not suitable for large-scale testing and production deployments. When you need more compute or storage resources, you can transition to a paid database licensing by cloning your developer database into a regular Autonomous Database. See `Autonomous Database documentation`__ for more details. + + __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html :param is_dev_tier: The is_dev_tier of this CreateAutonomousDatabaseBase. @@ -1907,7 +1911,7 @@ def is_auto_scaling_for_storage_enabled(self, is_auto_scaling_for_storage_enable def database_edition(self): """ Gets the database_edition of this CreateAutonomousDatabaseBase. - The Oracle Database Edition that applies to the Autonomous databases. + The Oracle Database Edition that applies to the Autonomous databases. This parameter accepts options `STANDARD_EDITION` and `ENTERPRISE_EDITION`. :return: The database_edition of this CreateAutonomousDatabaseBase. @@ -1919,7 +1923,7 @@ def database_edition(self): def database_edition(self, database_edition): """ Sets the database_edition of this CreateAutonomousDatabaseBase. - The Oracle Database Edition that applies to the Autonomous databases. + The Oracle Database Edition that applies to the Autonomous databases. This parameter accepts options `STANDARD_EDITION` and `ENTERPRISE_EDITION`. :param database_edition: The database_edition of this CreateAutonomousDatabaseBase. diff --git a/src/oci/database/models/create_cross_region_autonomous_database_data_guard_details.py b/src/oci/database/models/create_cross_region_autonomous_database_data_guard_details.py index 859bde6898..38265a2a20 100644 --- a/src/oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +++ b/src/oci/database/models/create_cross_region_autonomous_database_data_guard_details.py @@ -31,30 +31,6 @@ class CreateCrossRegionAutonomousDatabaseDataGuardDetails(CreateAutonomousDataba - cpuCoreCount - dataStorageSizeInTB - dbVersion - Example I - Creating a cross-region standby with required parameters only, with OCPU: - `{ - \"compartmentId\": \"ocid.compartment.oc1..<unique_ID>\", - \"cpuCoreCount\": 1, - \"dbName\": \"adatabasedb1\", - \"sourceId\": \"ocid1.autonomousdatabase.oc1.phx..<unique_ID>\", - \"dataStorageSizeInTBs\": 1, - \"source\": \"CROSS_REGION_DATAGUARD\", - \"adminPassword\" : \"<password>\", - }` - Example II - Creating a cross-region standby that specifies optional parameters in addition to the required parameters, with ECPU: - `{ - \"compartmentId\": \"ocid.compartment.oc1..<unique_ID>\", - \"computeModel\": \"ECPU\", - \"computeCount\": 2, - \"dbName\": \"adatabasedb1\", - \"sourceId\": \"ocid1.autonomousdatabase.oc1.phx..<unique_ID>\", - \"dataStorageSizeInTBs\": 1, - \"source\": \"CROSS_REGION_DATAGUARD\", - \"adminPassword\" : \"<password>\", - \"dbVersion\": \"19c\", - \"licenseModel\": \"LICENSE_INCLUDED\", - \"isAutoScalingForStorageEnabled\": \"true\" - }` __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#REST_APIs """ @@ -433,7 +409,7 @@ def __init__(self, **kwargs): def source_id(self): """ **[Required]** Gets the source_id of this CreateCrossRegionAutonomousDatabaseDataGuardDetails. - The `OCID`__ of the source Autonomous Database that will be used to create a new standby database for the Data Guard association. + The `OCID`__ of the source Autonomous Database that will be used to create a new peer database for the Data Guard association. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm @@ -447,7 +423,7 @@ def source_id(self): def source_id(self, source_id): """ Sets the source_id of this CreateCrossRegionAutonomousDatabaseDataGuardDetails. - The `OCID`__ of the source Autonomous Database that will be used to create a new standby database for the Data Guard association. + The `OCID`__ of the source Autonomous Database that will be used to create a new peer database for the Data Guard association. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm diff --git a/src/oci/database/models/create_cross_region_disaster_recovery_details.py b/src/oci/database/models/create_cross_region_disaster_recovery_details.py index 8b993cbcdf..fa2dd705ec 100644 --- a/src/oci/database/models/create_cross_region_disaster_recovery_details.py +++ b/src/oci/database/models/create_cross_region_disaster_recovery_details.py @@ -32,27 +32,6 @@ class CreateCrossRegionDisasterRecoveryDetails(CreateAutonomousDatabaseBase): - licenseModel - whitelistedIps - isMtlsConnectionRequired - Example I - Creating a cross-region standby with required parameters only: - `{ - \"compartmentId\": \"ocid.compartment.oc1..<unique_ID>\", - \"sourceId\": \"ocid1.autonomousdatabase.oc1.phx..<unique_ID>\", - \"source\": \"CROSS_REGION_DISASTER_RECOVERY\", - \"remoteDisasterRecoveryType\": \"BACKUP_BASED\" - }` - Example II - Creating a cross-region standby that specifies optional parameters in addition to the required parameters: - `{ - \"compartmentId\": \"ocid.compartment.oc1..<unique_ID>\", - \"ecpuCount\": 2, - \"dbName\": \"adatabasedb1\", - \"sourceId\": \"ocid1.autonomousdatabase.oc1.phx..<unique_ID>\", - \"dataStorageSizeInTBs\": 1, - \"source\": \"CROSS_REGION_DISASTER_RECOVERY\", - \"adminPassword\" : \"<password>\", - \"dbVersion\": \"19c\", - \"licenseModel\": \"LICENSE_INCLUDED\", - \"isAutoScalingForStorageEnabled\": \"true\", - \"remoteDisasterRecoveryType\": \"BACKUP_BASED\" - }` """ def __init__(self, **kwargs): @@ -443,7 +422,7 @@ def __init__(self, **kwargs): def source_id(self): """ **[Required]** Gets the source_id of this CreateCrossRegionDisasterRecoveryDetails. - The `OCID`__ of the source Autonomous Database that will be used to create a new standby database for the DR association. + The `OCID`__ of the source Autonomous Database that will be used to create a new peer database for the DR association. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm @@ -457,7 +436,7 @@ def source_id(self): def source_id(self, source_id): """ Sets the source_id of this CreateCrossRegionDisasterRecoveryDetails. - The `OCID`__ of the source Autonomous Database that will be used to create a new standby database for the DR association. + The `OCID`__ of the source Autonomous Database that will be used to create a new peer database for the DR association. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm diff --git a/src/oci/database/models/create_db_home_base.py b/src/oci/database/models/create_db_home_base.py index 229c3537f3..5303c783b2 100644 --- a/src/oci/database/models/create_db_home_base.py +++ b/src/oci/database/models/create_db_home_base.py @@ -83,6 +83,10 @@ def __init__(self, **kwargs): The value to assign to the is_desupported_version property of this CreateDbHomeBase. :type is_desupported_version: bool + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this CreateDbHomeBase. + :type is_unified_auditing_enabled: bool + """ self.swagger_types = { 'display_name': 'str', @@ -92,7 +96,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', 'source': 'str', - 'is_desupported_version': 'bool' + 'is_desupported_version': 'bool', + 'is_unified_auditing_enabled': 'bool' } self.attribute_map = { @@ -103,7 +108,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', 'source': 'source', - 'is_desupported_version': 'isDesupportedVersion' + 'is_desupported_version': 'isDesupportedVersion', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled' } self._display_name = None @@ -114,6 +120,7 @@ def __init__(self, **kwargs): self._defined_tags = None self._source = None self._is_desupported_version = None + self._is_unified_auditing_enabled = None @staticmethod def get_subtype(object_dictionary): @@ -359,6 +366,30 @@ def is_desupported_version(self, is_desupported_version): """ self._is_desupported_version = is_desupported_version + @property + def is_unified_auditing_enabled(self): + """ + Gets the is_unified_auditing_enabled of this CreateDbHomeBase. + Indicates whether unified autiding is enabled or not. Set to True to enable unified auditing on respective DBHome. + + + :return: The is_unified_auditing_enabled of this CreateDbHomeBase. + :rtype: bool + """ + return self._is_unified_auditing_enabled + + @is_unified_auditing_enabled.setter + def is_unified_auditing_enabled(self, is_unified_auditing_enabled): + """ + Sets the is_unified_auditing_enabled of this CreateDbHomeBase. + Indicates whether unified autiding is enabled or not. Set to True to enable unified auditing on respective DBHome. + + + :param is_unified_auditing_enabled: The is_unified_auditing_enabled of this CreateDbHomeBase. + :type: bool + """ + self._is_unified_auditing_enabled = is_unified_auditing_enabled + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/create_db_home_with_db_system_id_details.py b/src/oci/database/models/create_db_home_with_db_system_id_details.py index 8a4f1eb8ad..fbc2482662 100644 --- a/src/oci/database/models/create_db_home_with_db_system_id_details.py +++ b/src/oci/database/models/create_db_home_with_db_system_id_details.py @@ -54,6 +54,10 @@ def __init__(self, **kwargs): The value to assign to the is_desupported_version property of this CreateDbHomeWithDbSystemIdDetails. :type is_desupported_version: bool + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this CreateDbHomeWithDbSystemIdDetails. + :type is_unified_auditing_enabled: bool + :param db_system_id: The value to assign to the db_system_id property of this CreateDbHomeWithDbSystemIdDetails. :type db_system_id: str @@ -76,6 +80,7 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'source': 'str', 'is_desupported_version': 'bool', + 'is_unified_auditing_enabled': 'bool', 'db_system_id': 'str', 'db_version': 'str', 'database': 'CreateDatabaseDetails' @@ -90,6 +95,7 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'source': 'source', 'is_desupported_version': 'isDesupportedVersion', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled', 'db_system_id': 'dbSystemId', 'db_version': 'dbVersion', 'database': 'database' @@ -103,6 +109,7 @@ def __init__(self, **kwargs): self._defined_tags = None self._source = None self._is_desupported_version = None + self._is_unified_auditing_enabled = None self._db_system_id = None self._db_version = None self._database = None diff --git a/src/oci/database/models/create_db_home_with_db_system_id_from_backup_details.py b/src/oci/database/models/create_db_home_with_db_system_id_from_backup_details.py index 67e434f869..9cbadf1663 100644 --- a/src/oci/database/models/create_db_home_with_db_system_id_from_backup_details.py +++ b/src/oci/database/models/create_db_home_with_db_system_id_from_backup_details.py @@ -54,6 +54,10 @@ def __init__(self, **kwargs): The value to assign to the is_desupported_version property of this CreateDbHomeWithDbSystemIdFromBackupDetails. :type is_desupported_version: bool + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this CreateDbHomeWithDbSystemIdFromBackupDetails. + :type is_unified_auditing_enabled: bool + :param db_system_id: The value to assign to the db_system_id property of this CreateDbHomeWithDbSystemIdFromBackupDetails. :type db_system_id: str @@ -72,6 +76,7 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'source': 'str', 'is_desupported_version': 'bool', + 'is_unified_auditing_enabled': 'bool', 'db_system_id': 'str', 'database': 'CreateDatabaseFromBackupDetails' } @@ -85,6 +90,7 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'source': 'source', 'is_desupported_version': 'isDesupportedVersion', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled', 'db_system_id': 'dbSystemId', 'database': 'database' } @@ -97,6 +103,7 @@ def __init__(self, **kwargs): self._defined_tags = None self._source = None self._is_desupported_version = None + self._is_unified_auditing_enabled = None self._db_system_id = None self._database = None self._source = 'DB_BACKUP' diff --git a/src/oci/database/models/create_db_home_with_db_system_id_from_database_details.py b/src/oci/database/models/create_db_home_with_db_system_id_from_database_details.py index bc9f08c730..6b26566390 100644 --- a/src/oci/database/models/create_db_home_with_db_system_id_from_database_details.py +++ b/src/oci/database/models/create_db_home_with_db_system_id_from_database_details.py @@ -54,6 +54,10 @@ def __init__(self, **kwargs): The value to assign to the is_desupported_version property of this CreateDbHomeWithDbSystemIdFromDatabaseDetails. :type is_desupported_version: bool + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this CreateDbHomeWithDbSystemIdFromDatabaseDetails. + :type is_unified_auditing_enabled: bool + :param db_system_id: The value to assign to the db_system_id property of this CreateDbHomeWithDbSystemIdFromDatabaseDetails. :type db_system_id: str @@ -72,6 +76,7 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'source': 'str', 'is_desupported_version': 'bool', + 'is_unified_auditing_enabled': 'bool', 'db_system_id': 'str', 'database': 'CreateDatabaseFromAnotherDatabaseDetails' } @@ -85,6 +90,7 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'source': 'source', 'is_desupported_version': 'isDesupportedVersion', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled', 'db_system_id': 'dbSystemId', 'database': 'database' } @@ -97,6 +103,7 @@ def __init__(self, **kwargs): self._defined_tags = None self._source = None self._is_desupported_version = None + self._is_unified_auditing_enabled = None self._db_system_id = None self._database = None self._source = 'DATABASE' diff --git a/src/oci/database/models/create_db_home_with_vm_cluster_id_details.py b/src/oci/database/models/create_db_home_with_vm_cluster_id_details.py index 666e0411d0..b8b3281f73 100644 --- a/src/oci/database/models/create_db_home_with_vm_cluster_id_details.py +++ b/src/oci/database/models/create_db_home_with_vm_cluster_id_details.py @@ -54,6 +54,10 @@ def __init__(self, **kwargs): The value to assign to the is_desupported_version property of this CreateDbHomeWithVmClusterIdDetails. :type is_desupported_version: bool + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this CreateDbHomeWithVmClusterIdDetails. + :type is_unified_auditing_enabled: bool + :param vm_cluster_id: The value to assign to the vm_cluster_id property of this CreateDbHomeWithVmClusterIdDetails. :type vm_cluster_id: str @@ -76,6 +80,7 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'source': 'str', 'is_desupported_version': 'bool', + 'is_unified_auditing_enabled': 'bool', 'vm_cluster_id': 'str', 'db_version': 'str', 'database': 'CreateDatabaseDetails' @@ -90,6 +95,7 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'source': 'source', 'is_desupported_version': 'isDesupportedVersion', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled', 'vm_cluster_id': 'vmClusterId', 'db_version': 'dbVersion', 'database': 'database' @@ -103,6 +109,7 @@ def __init__(self, **kwargs): self._defined_tags = None self._source = None self._is_desupported_version = None + self._is_unified_auditing_enabled = None self._vm_cluster_id = None self._db_version = None self._database = None diff --git a/src/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.py b/src/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.py index c11bb37656..500648c097 100644 --- a/src/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.py +++ b/src/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.py @@ -54,6 +54,10 @@ def __init__(self, **kwargs): The value to assign to the is_desupported_version property of this CreateDbHomeWithVmClusterIdFromBackupDetails. :type is_desupported_version: bool + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this CreateDbHomeWithVmClusterIdFromBackupDetails. + :type is_unified_auditing_enabled: bool + :param vm_cluster_id: The value to assign to the vm_cluster_id property of this CreateDbHomeWithVmClusterIdFromBackupDetails. :type vm_cluster_id: str @@ -72,6 +76,7 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'source': 'str', 'is_desupported_version': 'bool', + 'is_unified_auditing_enabled': 'bool', 'vm_cluster_id': 'str', 'database': 'CreateDatabaseFromBackupDetails' } @@ -85,6 +90,7 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'source': 'source', 'is_desupported_version': 'isDesupportedVersion', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled', 'vm_cluster_id': 'vmClusterId', 'database': 'database' } @@ -97,6 +103,7 @@ def __init__(self, **kwargs): self._defined_tags = None self._source = None self._is_desupported_version = None + self._is_unified_auditing_enabled = None self._vm_cluster_id = None self._database = None self._source = 'VM_CLUSTER_BACKUP' diff --git a/src/oci/database/models/db_home.py b/src/oci/database/models/db_home.py index 40e34e3510..73f88be95c 100644 --- a/src/oci/database/models/db_home.py +++ b/src/oci/database/models/db_home.py @@ -110,6 +110,10 @@ def __init__(self, **kwargs): The value to assign to the database_software_image_id property of this DbHome. :type database_software_image_id: str + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this DbHome. + :type is_unified_auditing_enabled: bool + """ self.swagger_types = { 'id': 'str', @@ -127,7 +131,8 @@ def __init__(self, **kwargs): 'one_off_patches': 'list[str]', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', - 'database_software_image_id': 'str' + 'database_software_image_id': 'str', + 'is_unified_auditing_enabled': 'bool' } self.attribute_map = { @@ -146,7 +151,8 @@ def __init__(self, **kwargs): 'one_off_patches': 'oneOffPatches', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', - 'database_software_image_id': 'databaseSoftwareImageId' + 'database_software_image_id': 'databaseSoftwareImageId', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled' } self._id = None @@ -165,6 +171,7 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._database_software_image_id = None + self._is_unified_auditing_enabled = None @property def id(self): @@ -596,6 +603,30 @@ def database_software_image_id(self, database_software_image_id): """ self._database_software_image_id = database_software_image_id + @property + def is_unified_auditing_enabled(self): + """ + Gets the is_unified_auditing_enabled of this DbHome. + Indicates whether unified autiding is enabled or not. + + + :return: The is_unified_auditing_enabled of this DbHome. + :rtype: bool + """ + return self._is_unified_auditing_enabled + + @is_unified_auditing_enabled.setter + def is_unified_auditing_enabled(self, is_unified_auditing_enabled): + """ + Sets the is_unified_auditing_enabled of this DbHome. + Indicates whether unified autiding is enabled or not. + + + :param is_unified_auditing_enabled: The is_unified_auditing_enabled of this DbHome. + :type: bool + """ + self._is_unified_auditing_enabled = is_unified_auditing_enabled + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/db_home_from_agent_resource_id.py b/src/oci/database/models/db_home_from_agent_resource_id.py index 64f8fc203b..71756e9e51 100644 --- a/src/oci/database/models/db_home_from_agent_resource_id.py +++ b/src/oci/database/models/db_home_from_agent_resource_id.py @@ -109,6 +109,10 @@ def __init__(self, **kwargs): The value to assign to the database_software_image_id property of this DbHomeFromAgentResourceId. :type database_software_image_id: str + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this DbHomeFromAgentResourceId. + :type is_unified_auditing_enabled: bool + """ self.swagger_types = { 'id': 'str', @@ -126,7 +130,8 @@ def __init__(self, **kwargs): 'one_off_patches': 'list[str]', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', - 'database_software_image_id': 'str' + 'database_software_image_id': 'str', + 'is_unified_auditing_enabled': 'bool' } self.attribute_map = { @@ -145,7 +150,8 @@ def __init__(self, **kwargs): 'one_off_patches': 'oneOffPatches', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', - 'database_software_image_id': 'databaseSoftwareImageId' + 'database_software_image_id': 'databaseSoftwareImageId', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled' } self._id = None @@ -164,6 +170,7 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._database_software_image_id = None + self._is_unified_auditing_enabled = None @property def id(self): @@ -596,6 +603,30 @@ def database_software_image_id(self, database_software_image_id): """ self._database_software_image_id = database_software_image_id + @property + def is_unified_auditing_enabled(self): + """ + Gets the is_unified_auditing_enabled of this DbHomeFromAgentResourceId. + Indicates whether unified autiding is enabled or not. + + + :return: The is_unified_auditing_enabled of this DbHomeFromAgentResourceId. + :rtype: bool + """ + return self._is_unified_auditing_enabled + + @is_unified_auditing_enabled.setter + def is_unified_auditing_enabled(self, is_unified_auditing_enabled): + """ + Sets the is_unified_auditing_enabled of this DbHomeFromAgentResourceId. + Indicates whether unified autiding is enabled or not. + + + :param is_unified_auditing_enabled: The is_unified_auditing_enabled of this DbHomeFromAgentResourceId. + :type: bool + """ + self._is_unified_auditing_enabled = is_unified_auditing_enabled + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/db_home_summary.py b/src/oci/database/models/db_home_summary.py index 2217bdebc5..d21cac4dff 100644 --- a/src/oci/database/models/db_home_summary.py +++ b/src/oci/database/models/db_home_summary.py @@ -122,6 +122,10 @@ def __init__(self, **kwargs): The value to assign to the database_software_image_id property of this DbHomeSummary. :type database_software_image_id: str + :param is_unified_auditing_enabled: + The value to assign to the is_unified_auditing_enabled property of this DbHomeSummary. + :type is_unified_auditing_enabled: bool + """ self.swagger_types = { 'id': 'str', @@ -139,7 +143,8 @@ def __init__(self, **kwargs): 'one_off_patches': 'list[str]', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', - 'database_software_image_id': 'str' + 'database_software_image_id': 'str', + 'is_unified_auditing_enabled': 'bool' } self.attribute_map = { @@ -158,7 +163,8 @@ def __init__(self, **kwargs): 'one_off_patches': 'oneOffPatches', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', - 'database_software_image_id': 'databaseSoftwareImageId' + 'database_software_image_id': 'databaseSoftwareImageId', + 'is_unified_auditing_enabled': 'isUnifiedAuditingEnabled' } self._id = None @@ -177,6 +183,7 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._database_software_image_id = None + self._is_unified_auditing_enabled = None @property def id(self): @@ -608,6 +615,30 @@ def database_software_image_id(self, database_software_image_id): """ self._database_software_image_id = database_software_image_id + @property + def is_unified_auditing_enabled(self): + """ + Gets the is_unified_auditing_enabled of this DbHomeSummary. + Indicates whether unified autiding is enabled or not. + + + :return: The is_unified_auditing_enabled of this DbHomeSummary. + :rtype: bool + """ + return self._is_unified_auditing_enabled + + @is_unified_auditing_enabled.setter + def is_unified_auditing_enabled(self, is_unified_auditing_enabled): + """ + Sets the is_unified_auditing_enabled of this DbHomeSummary. + Indicates whether unified autiding is enabled or not. + + + :param is_unified_auditing_enabled: The is_unified_auditing_enabled of this DbHomeSummary. + :type: bool + """ + self._is_unified_auditing_enabled = is_unified_auditing_enabled + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/db_system.py b/src/oci/database/models/db_system.py index 34119d5966..d86724e86a 100644 --- a/src/oci/database/models/db_system.py +++ b/src/oci/database/models/db_system.py @@ -140,6 +140,10 @@ def __init__(self, **kwargs): The value to assign to the backup_network_nsg_ids property of this DbSystem. :type backup_network_nsg_ids: list[str] + :param gi_software_image_id: + The value to assign to the gi_software_image_id property of this DbSystem. + :type gi_software_image_id: str + :param memory_size_in_gbs: The value to assign to the memory_size_in_gbs property of this DbSystem. :type memory_size_in_gbs: int @@ -318,6 +322,7 @@ def __init__(self, **kwargs): 'backup_subnet_id': 'str', 'nsg_ids': 'list[str]', 'backup_network_nsg_ids': 'list[str]', + 'gi_software_image_id': 'str', 'memory_size_in_gbs': 'int', 'storage_volume_performance_mode': 'str', 'shape': 'str', @@ -370,6 +375,7 @@ def __init__(self, **kwargs): 'backup_subnet_id': 'backupSubnetId', 'nsg_ids': 'nsgIds', 'backup_network_nsg_ids': 'backupNetworkNsgIds', + 'gi_software_image_id': 'giSoftwareImageId', 'memory_size_in_gbs': 'memorySizeInGBs', 'storage_volume_performance_mode': 'storageVolumePerformanceMode', 'shape': 'shape', @@ -421,6 +427,7 @@ def __init__(self, **kwargs): self._backup_subnet_id = None self._nsg_ids = None self._backup_network_nsg_ids = None + self._gi_software_image_id = None self._memory_size_in_gbs = None self._storage_volume_performance_mode = None self._shape = None @@ -749,6 +756,34 @@ def backup_network_nsg_ids(self, backup_network_nsg_ids): """ self._backup_network_nsg_ids = backup_network_nsg_ids + @property + def gi_software_image_id(self): + """ + Gets the gi_software_image_id of this DbSystem. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The gi_software_image_id of this DbSystem. + :rtype: str + """ + return self._gi_software_image_id + + @gi_software_image_id.setter + def gi_software_image_id(self, gi_software_image_id): + """ + Sets the gi_software_image_id of this DbSystem. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param gi_software_image_id: The gi_software_image_id of this DbSystem. + :type: str + """ + self._gi_software_image_id = gi_software_image_id + @property def memory_size_in_gbs(self): """ diff --git a/src/oci/database/models/db_system_summary.py b/src/oci/database/models/db_system_summary.py index 68bdac1a29..ed74900fa1 100644 --- a/src/oci/database/models/db_system_summary.py +++ b/src/oci/database/models/db_system_summary.py @@ -165,6 +165,10 @@ def __init__(self, **kwargs): The value to assign to the backup_network_nsg_ids property of this DbSystemSummary. :type backup_network_nsg_ids: list[str] + :param gi_software_image_id: + The value to assign to the gi_software_image_id property of this DbSystemSummary. + :type gi_software_image_id: str + :param memory_size_in_gbs: The value to assign to the memory_size_in_gbs property of this DbSystemSummary. :type memory_size_in_gbs: int @@ -342,6 +346,7 @@ def __init__(self, **kwargs): 'backup_subnet_id': 'str', 'nsg_ids': 'list[str]', 'backup_network_nsg_ids': 'list[str]', + 'gi_software_image_id': 'str', 'memory_size_in_gbs': 'int', 'storage_volume_performance_mode': 'str', 'shape': 'str', @@ -393,6 +398,7 @@ def __init__(self, **kwargs): 'backup_subnet_id': 'backupSubnetId', 'nsg_ids': 'nsgIds', 'backup_network_nsg_ids': 'backupNetworkNsgIds', + 'gi_software_image_id': 'giSoftwareImageId', 'memory_size_in_gbs': 'memorySizeInGBs', 'storage_volume_performance_mode': 'storageVolumePerformanceMode', 'shape': 'shape', @@ -443,6 +449,7 @@ def __init__(self, **kwargs): self._backup_subnet_id = None self._nsg_ids = None self._backup_network_nsg_ids = None + self._gi_software_image_id = None self._memory_size_in_gbs = None self._storage_volume_performance_mode = None self._shape = None @@ -751,6 +758,34 @@ def backup_network_nsg_ids(self, backup_network_nsg_ids): """ self._backup_network_nsg_ids = backup_network_nsg_ids + @property + def gi_software_image_id(self): + """ + Gets the gi_software_image_id of this DbSystemSummary. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The gi_software_image_id of this DbSystemSummary. + :rtype: str + """ + return self._gi_software_image_id + + @gi_software_image_id.setter + def gi_software_image_id(self, gi_software_image_id): + """ + Sets the gi_software_image_id of this DbSystemSummary. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param gi_software_image_id: The gi_software_image_id of this DbSystemSummary. + :type: str + """ + self._gi_software_image_id = gi_software_image_id + @property def memory_size_in_gbs(self): """ diff --git a/src/oci/database/models/update_autonomous_database_details.py b/src/oci/database/models/update_autonomous_database_details.py index e8ee49e37a..8a5ec67b51 100644 --- a/src/oci/database/models/update_autonomous_database_details.py +++ b/src/oci/database/models/update_autonomous_database_details.py @@ -604,7 +604,9 @@ def long_term_backup_schedule(self, long_term_backup_schedule): def is_dev_tier(self): """ Gets the is_dev_tier of this UpdateAutonomousDatabaseDetails. - This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev , memory and CPU cannot be scaled + Autonomous Database for Developers are free Autonomous Databases that developers can use to build and test new applications.With Autonomous these database instancess instances, you can try new Autonomous Database features for free and apply them to ongoing or new development projects. Developer database comes with limited resources and is, therefore, not suitable for large-scale testing and production deployments. When you need more compute or storage resources, you can transition to a paid database licensing by cloning your developer database into a regular Autonomous Database. See `Autonomous Database documentation`__ for more details. + + __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html :return: The is_dev_tier of this UpdateAutonomousDatabaseDetails. @@ -616,7 +618,9 @@ def is_dev_tier(self): def is_dev_tier(self, is_dev_tier): """ Sets the is_dev_tier of this UpdateAutonomousDatabaseDetails. - This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev , memory and CPU cannot be scaled + Autonomous Database for Developers are free Autonomous Databases that developers can use to build and test new applications.With Autonomous these database instancess instances, you can try new Autonomous Database features for free and apply them to ongoing or new development projects. Developer database comes with limited resources and is, therefore, not suitable for large-scale testing and production deployments. When you need more compute or storage resources, you can transition to a paid database licensing by cloning your developer database into a regular Autonomous Database. See `Autonomous Database documentation`__ for more details. + + __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html :param is_dev_tier: The is_dev_tier of this UpdateAutonomousDatabaseDetails. @@ -1893,7 +1897,7 @@ def is_auto_scaling_for_storage_enabled(self, is_auto_scaling_for_storage_enable def database_edition(self): """ Gets the database_edition of this UpdateAutonomousDatabaseDetails. - The Oracle Database Edition that applies to the Autonomous databases. + The Oracle Database Edition that applies to the Autonomous databases. This parameter accepts options `STANDARD_EDITION` and `ENTERPRISE_EDITION`. This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. @@ -1907,7 +1911,7 @@ def database_edition(self): def database_edition(self, database_edition): """ Sets the database_edition of this UpdateAutonomousDatabaseDetails. - The Oracle Database Edition that applies to the Autonomous databases. + The Oracle Database Edition that applies to the Autonomous databases. This parameter accepts options `STANDARD_EDITION` and `ENTERPRISE_EDITION`. This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, dbWorkload, privateEndpointLabel, nsgIds, dbVersion, dbName, scheduledOperations, dbToolsDetails, or isFreeTier. diff --git a/src/oci/database/models/update_details.py b/src/oci/database/models/update_details.py index ec29b541b6..a177815817 100644 --- a/src/oci/database/models/update_details.py +++ b/src/oci/database/models/update_details.py @@ -45,19 +45,26 @@ def __init__(self, **kwargs): Allowed values for this property are: "ROLLING_APPLY", "NON_ROLLING_APPLY", "PRECHECK", "ROLLBACK" :type update_action: str + :param gi_software_image_id: + The value to assign to the gi_software_image_id property of this UpdateDetails. + :type gi_software_image_id: str + """ self.swagger_types = { 'update_id': 'str', - 'update_action': 'str' + 'update_action': 'str', + 'gi_software_image_id': 'str' } self.attribute_map = { 'update_id': 'updateId', - 'update_action': 'updateAction' + 'update_action': 'updateAction', + 'gi_software_image_id': 'giSoftwareImageId' } self._update_id = None self._update_action = None + self._gi_software_image_id = None @property def update_id(self): @@ -118,6 +125,34 @@ def update_action(self, update_action): ) self._update_action = update_action + @property + def gi_software_image_id(self): + """ + Gets the gi_software_image_id of this UpdateDetails. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The gi_software_image_id of this UpdateDetails. + :rtype: str + """ + return self._gi_software_image_id + + @gi_software_image_id.setter + def gi_software_image_id(self, gi_software_image_id): + """ + Sets the gi_software_image_id of this UpdateDetails. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param gi_software_image_id: The gi_software_image_id of this UpdateDetails. + :type: str + """ + self._gi_software_image_id = gi_software_image_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/vm_cluster.py b/src/oci/database/models/vm_cluster.py index 4536a76176..c918aa12d5 100644 --- a/src/oci/database/models/vm_cluster.py +++ b/src/oci/database/models/vm_cluster.py @@ -172,6 +172,10 @@ def __init__(self, **kwargs): The value to assign to the data_collection_options property of this VmCluster. :type data_collection_options: oci.database.models.DataCollectionOptions + :param gi_software_image_id: + The value to assign to the gi_software_image_id property of this VmCluster. + :type gi_software_image_id: str + """ self.swagger_types = { 'id': 'str', @@ -201,7 +205,8 @@ def __init__(self, **kwargs): 'availability_domain': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', - 'data_collection_options': 'DataCollectionOptions' + 'data_collection_options': 'DataCollectionOptions', + 'gi_software_image_id': 'str' } self.attribute_map = { @@ -232,7 +237,8 @@ def __init__(self, **kwargs): 'availability_domain': 'availabilityDomain', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', - 'data_collection_options': 'dataCollectionOptions' + 'data_collection_options': 'dataCollectionOptions', + 'gi_software_image_id': 'giSoftwareImageId' } self._id = None @@ -263,6 +269,7 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._data_collection_options = None + self._gi_software_image_id = None @property def id(self): @@ -984,6 +991,34 @@ def data_collection_options(self, data_collection_options): """ self._data_collection_options = data_collection_options + @property + def gi_software_image_id(self): + """ + Gets the gi_software_image_id of this VmCluster. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The gi_software_image_id of this VmCluster. + :rtype: str + """ + return self._gi_software_image_id + + @gi_software_image_id.setter + def gi_software_image_id(self, gi_software_image_id): + """ + Sets the gi_software_image_id of this VmCluster. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param gi_software_image_id: The gi_software_image_id of this VmCluster. + :type: str + """ + self._gi_software_image_id = gi_software_image_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/vm_cluster_summary.py b/src/oci/database/models/vm_cluster_summary.py index 510fee4ed5..a6e297f7d7 100644 --- a/src/oci/database/models/vm_cluster_summary.py +++ b/src/oci/database/models/vm_cluster_summary.py @@ -172,6 +172,10 @@ def __init__(self, **kwargs): The value to assign to the data_collection_options property of this VmClusterSummary. :type data_collection_options: oci.database.models.DataCollectionOptions + :param gi_software_image_id: + The value to assign to the gi_software_image_id property of this VmClusterSummary. + :type gi_software_image_id: str + """ self.swagger_types = { 'id': 'str', @@ -201,7 +205,8 @@ def __init__(self, **kwargs): 'availability_domain': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', - 'data_collection_options': 'DataCollectionOptions' + 'data_collection_options': 'DataCollectionOptions', + 'gi_software_image_id': 'str' } self.attribute_map = { @@ -232,7 +237,8 @@ def __init__(self, **kwargs): 'availability_domain': 'availabilityDomain', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', - 'data_collection_options': 'dataCollectionOptions' + 'data_collection_options': 'dataCollectionOptions', + 'gi_software_image_id': 'giSoftwareImageId' } self._id = None @@ -263,6 +269,7 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._data_collection_options = None + self._gi_software_image_id = None @property def id(self): @@ -984,6 +991,34 @@ def data_collection_options(self, data_collection_options): """ self._data_collection_options = data_collection_options + @property + def gi_software_image_id(self): + """ + Gets the gi_software_image_id of this VmClusterSummary. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The gi_software_image_id of this VmClusterSummary. + :rtype: str + """ + return self._gi_software_image_id + + @gi_software_image_id.setter + def gi_software_image_id(self, gi_software_image_id): + """ + Sets the gi_software_image_id of this VmClusterSummary. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param gi_software_image_id: The gi_software_image_id of this VmClusterSummary. + :type: str + """ + self._gi_software_image_id = gi_software_image_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/vm_cluster_update_details.py b/src/oci/database/models/vm_cluster_update_details.py index a19e0b06da..409bba8462 100644 --- a/src/oci/database/models/vm_cluster_update_details.py +++ b/src/oci/database/models/vm_cluster_update_details.py @@ -41,19 +41,26 @@ def __init__(self, **kwargs): Allowed values for this property are: "ROLLING_APPLY", "PRECHECK", "ROLLBACK" :type update_action: str + :param gi_software_image_id: + The value to assign to the gi_software_image_id property of this VmClusterUpdateDetails. + :type gi_software_image_id: str + """ self.swagger_types = { 'update_id': 'str', - 'update_action': 'str' + 'update_action': 'str', + 'gi_software_image_id': 'str' } self.attribute_map = { 'update_id': 'updateId', - 'update_action': 'updateAction' + 'update_action': 'updateAction', + 'gi_software_image_id': 'giSoftwareImageId' } self._update_id = None self._update_action = None + self._gi_software_image_id = None @property def update_id(self): @@ -114,6 +121,34 @@ def update_action(self, update_action): ) self._update_action = update_action + @property + def gi_software_image_id(self): + """ + Gets the gi_software_image_id of this VmClusterUpdateDetails. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The gi_software_image_id of this VmClusterUpdateDetails. + :rtype: str + """ + return self._gi_software_image_id + + @gi_software_image_id.setter + def gi_software_image_id(self, gi_software_image_id): + """ + Sets the gi_software_image_id of this VmClusterUpdateDetails. + The `OCID`__ of a grid infrastructure software image. This is a database software image of the type `GRID_IMAGE`. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param gi_software_image_id: The gi_software_image_id of this VmClusterUpdateDetails. + :type: str + """ + self._gi_software_image_id = gi_software_image_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/db_management_client.py b/src/oci/database_management/db_management_client.py index c2c63b94af..70511e4e5a 100644 --- a/src/oci/database_management/db_management_client.py +++ b/src/oci/database_management/db_management_client.py @@ -22,9 +22,9 @@ class DbManagementClient(object): """ - Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics - for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and - running a SQL job on a Managed Database or Managed Database Group. + Use the Database Management API to monitor and manage resources such as + Oracle Databases, MySQL Databases, and External Database Systems. + For more information, see [Database Management](/iaas/database-management/home.htm). """ def __init__(self, config, **kwargs): @@ -4360,17 +4360,19 @@ def disable_automatic_spm_evolve_advisor_task(self, managed_database_id, disable api_reference_link=api_reference_link, required_arguments=required_arguments) - def disable_external_db_system_database_management(self, external_db_system_id, **kwargs): + def disable_database_management_feature(self, database_id, disable_database_management_feature_details, **kwargs): """ - Disables Database Management service for all the components of the specified - external DB system (except databases). + Disables a Database Management feature for the specified Oracle cloud database. - :param str external_db_system_id: (required) - The `OCID`__ of the external DB system. + :param str database_id: (required) + The `OCID`__ of the Database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + :param oci.database_management.models.DisableDatabaseManagementFeatureDetails disable_database_management_feature_details: (required) + The details required to disable a Database Management feature for an Oracle cloud database. + :param str opc_request_id: (optional) The client request ID for tracing. @@ -4404,14 +4406,14 @@ def disable_external_db_system_database_management(self, external_db_system_id, :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use disable_external_db_system_database_management API. + Click `here `__ to see an example of how to use disable_database_management_feature API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['externalDbSystemId'] - resource_path = "/externalDbSystems/{externalDbSystemId}/actions/disableDatabaseManagement" + required_arguments = ['databaseId'] + resource_path = "/databases/{databaseId}/actions/disableDatabaseManagement" method = "POST" - operation_name = "disable_external_db_system_database_management" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/DisableExternalDbSystemDatabaseManagement" + operation_name = "disable_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableDatabaseManagementFeature" # Don't accept unknown kwargs expected_kwargs = [ @@ -4424,10 +4426,10 @@ def disable_external_db_system_database_management(self, external_db_system_id, extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"disable_external_db_system_database_management got unknown kwargs: {extra_kwargs!r}") + f"disable_database_management_feature got unknown kwargs: {extra_kwargs!r}") path_params = { - "externalDbSystemId": external_db_system_id + "databaseId": database_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -4463,6 +4465,7 @@ def disable_external_db_system_database_management(self, external_db_system_id, method=method, path_params=path_params, header_params=header_params, + body=disable_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -4473,22 +4476,25 @@ def disable_external_db_system_database_management(self, external_db_system_id, method=method, path_params=path_params, header_params=header_params, + body=disable_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def disable_external_db_system_stack_monitoring(self, external_db_system_id, **kwargs): + def disable_external_container_database_management_feature(self, external_container_database_id, disable_external_container_database_management_feature_details, **kwargs): """ - Disables Stack Monitoring for all the components of the specified - external DB system (except databases). + Disables a Database Management feature for the specified external container database. - :param str external_db_system_id: (required) - The `OCID`__ of the external DB system. + :param str external_container_database_id: (required) + The `OCID`__ of the external container database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + :param oci.database_management.models.DisableExternalContainerDatabaseManagementFeatureDetails disable_external_container_database_management_feature_details: (required) + The details required to disable a Database Management feature for an external container database. + :param str opc_request_id: (optional) The client request ID for tracing. @@ -4522,14 +4528,14 @@ def disable_external_db_system_stack_monitoring(self, external_db_system_id, **k :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use disable_external_db_system_stack_monitoring API. + Click `here `__ to see an example of how to use disable_external_container_database_management_feature API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['externalDbSystemId'] - resource_path = "/externalDbSystems/{externalDbSystemId}/actions/disableStackMonitoring" + required_arguments = ['externalContainerDatabaseId'] + resource_path = "/externalcontainerdatabases/{externalContainerDatabaseId}/actions/disableDatabaseManagement" method = "POST" - operation_name = "disable_external_db_system_stack_monitoring" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/DisableExternalDbSystemStackMonitoring" + operation_name = "disable_external_container_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalContainerDatabaseManagementFeature" # Don't accept unknown kwargs expected_kwargs = [ @@ -4542,10 +4548,10 @@ def disable_external_db_system_stack_monitoring(self, external_db_system_id, **k extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"disable_external_db_system_stack_monitoring got unknown kwargs: {extra_kwargs!r}") + f"disable_external_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") path_params = { - "externalDbSystemId": external_db_system_id + "externalContainerDatabaseId": external_container_database_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -4581,6 +4587,7 @@ def disable_external_db_system_stack_monitoring(self, external_db_system_id, **k method=method, path_params=path_params, header_params=header_params, + body=disable_external_container_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -4591,25 +4598,20 @@ def disable_external_db_system_stack_monitoring(self, external_db_system_id, **k method=method, path_params=path_params, header_params=header_params, + body=disable_external_container_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def disable_external_exadata_infrastructure_management(self, external_exadata_infrastructure_id, **kwargs): + def disable_external_db_system_database_management(self, external_db_system_id, **kwargs): """ - Disables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId. - It covers the following components: - - - Exadata infrastructure - - Exadata storage grid - - Exadata storage server - - Note that Database Management will not be disabled for the DB systems within the Exadata infrastructure and should be disabled explicitly, if required. + Disables Database Management service for all the components of the specified + external DB system (except databases). - :param str external_exadata_infrastructure_id: (required) - The `OCID`__ of the Exadata infrastructure. + :param str external_db_system_id: (required) + The `OCID`__ of the external DB system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm @@ -4646,14 +4648,14 @@ def disable_external_exadata_infrastructure_management(self, external_exadata_in :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use disable_external_exadata_infrastructure_management API. + Click `here `__ to see an example of how to use disable_external_db_system_database_management API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['externalExadataInfrastructureId'] - resource_path = "/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/disableDatabaseManagement" + required_arguments = ['externalDbSystemId'] + resource_path = "/externalDbSystems/{externalDbSystemId}/actions/disableDatabaseManagement" method = "POST" - operation_name = "disable_external_exadata_infrastructure_management" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/DisableExternalExadataInfrastructureManagement" + operation_name = "disable_external_db_system_database_management" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/DisableExternalDbSystemDatabaseManagement" # Don't accept unknown kwargs expected_kwargs = [ @@ -4666,10 +4668,10 @@ def disable_external_exadata_infrastructure_management(self, external_exadata_in extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"disable_external_exadata_infrastructure_management got unknown kwargs: {extra_kwargs!r}") + f"disable_external_db_system_database_management got unknown kwargs: {extra_kwargs!r}") path_params = { - "externalExadataInfrastructureId": external_exadata_infrastructure_id + "externalDbSystemId": external_db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -4720,29 +4722,38 @@ def disable_external_exadata_infrastructure_management(self, external_exadata_in api_reference_link=api_reference_link, required_arguments=required_arguments) - def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_database_id, disable_high_frequency_automatic_spm_evolve_advisor_task_details, **kwargs): + def disable_external_db_system_stack_monitoring(self, external_db_system_id, **kwargs): """ - Disables the high-frequency Automatic SPM Evolve Advisor task. - - It is available only on Oracle Exadata Database Machine, Oracle Database Exadata - Cloud Service (ExaCS) and Oracle Database Exadata Cloud@Customer (ExaCC). + Disables Stack Monitoring for all the components of the specified + external DB system (except databases). - :param str managed_database_id: (required) - The `OCID`__ of the Managed Database. + :param str external_db_system_id: (required) + The `OCID`__ of the external DB system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails disable_high_frequency_automatic_spm_evolve_advisor_task_details: (required) - The details required to disable high frequency Automatic SPM Evolve Advisor task. - :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -4755,28 +4766,30 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use disable_high_frequency_automatic_spm_evolve_advisor_task API. + Click `here `__ to see an example of how to use disable_external_db_system_stack_monitoring API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['managedDatabaseId'] - resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableHighFrequencyAutomaticSpmEvolveAdvisorTask" + required_arguments = ['externalDbSystemId'] + resource_path = "/externalDbSystems/{externalDbSystemId}/actions/disableStackMonitoring" method = "POST" - operation_name = "disable_high_frequency_automatic_spm_evolve_advisor_task" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableHighFrequencyAutomaticSpmEvolveAdvisorTask" + operation_name = "disable_external_db_system_stack_monitoring" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/DisableExternalDbSystemStackMonitoring" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_retry_token", + "if_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"disable_high_frequency_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") + f"disable_external_db_system_stack_monitoring got unknown kwargs: {extra_kwargs!r}") path_params = { - "managedDatabaseId": managed_database_id + "externalDbSystemId": external_db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -4788,7 +4801,9 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -4796,9 +4811,12 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( @@ -4807,7 +4825,6 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab method=method, path_params=path_params, header_params=header_params, - body=disable_high_frequency_automatic_spm_evolve_advisor_task_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -4818,34 +4835,49 @@ def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_datab method=method, path_params=path_params, header_params=header_params, - body=disable_high_frequency_automatic_spm_evolve_advisor_task_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan_baselines_usage_details, **kwargs): + def disable_external_exadata_infrastructure_management(self, external_exadata_infrastructure_id, **kwargs): """ - Disables the use of SQL plan baselines stored in SQL Management Base. + Disables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId. + It covers the following components: - When disabled, the optimizer does not use any SQL plan baselines. + - Exadata infrastructure + - Exadata storage grid + - Exadata storage server + Note that Database Management will not be disabled for the DB systems within the Exadata infrastructure and should be disabled explicitly, if required. - :param str managed_database_id: (required) - The `OCID`__ of the Managed Database. - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + :param str external_exadata_infrastructure_id: (required) + The `OCID`__ of the Exadata infrastructure. - :param oci.database_management.models.DisableSqlPlanBaselinesUsageDetails disable_sql_plan_baselines_usage_details: (required) - The details required to disable SQL plan baseline usage. + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -4858,28 +4890,30 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use disable_sql_plan_baselines_usage API. + Click `here `__ to see an example of how to use disable_external_exadata_infrastructure_management API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['managedDatabaseId'] - resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableSqlPlanBaselinesUsage" + required_arguments = ['externalExadataInfrastructureId'] + resource_path = "/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/disableDatabaseManagement" method = "POST" - operation_name = "disable_sql_plan_baselines_usage" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableSqlPlanBaselinesUsage" + operation_name = "disable_external_exadata_infrastructure_management" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/DisableExternalExadataInfrastructureManagement" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_retry_token", + "if_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"disable_sql_plan_baselines_usage got unknown kwargs: {extra_kwargs!r}") + f"disable_external_exadata_infrastructure_management got unknown kwargs: {extra_kwargs!r}") path_params = { - "managedDatabaseId": managed_database_id + "externalExadataInfrastructureId": external_exadata_infrastructure_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -4891,7 +4925,9 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -4899,9 +4935,12 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( @@ -4910,7 +4949,6 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan method=method, path_params=path_params, header_params=header_params, - body=disable_sql_plan_baselines_usage_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -4921,37 +4959,23 @@ def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan method=method, path_params=path_params, header_params=header_params, - body=disable_sql_plan_baselines_usage_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def discover_external_exadata_infrastructure(self, discover_external_exadata_infrastructure_details, **kwargs): + def disable_external_non_container_database_management_feature(self, external_non_container_database_id, disable_external_non_container_database_management_feature_details, **kwargs): """ - Completes the Exadata system prechecking on the following: - - - Verifies if the DB systems are valid RAC DB systems or return 400 status code with NON_RAC_DATABASE_SYSTEM error code. - - Verifies if the ASM connector defined for each DB system or return 400 status code with CONNECTOR_NOT_DEFINED error code. - - Verifies if the agents associated with ASM are valid and could be used for the Exadata storage servers or return 400 status code with - INVALID_AGENT error code. - - Verifies if it is an Exadata system or return 400 status code with INVALID_EXADATA_SYSTEM error code. - - Starts the discovery process for the Exadata system infrastructure. The following resources/components are discovered + Disables a Database Management feature for the specified external non-container database. - - Exadata storage servers from each DB systems - - Exadata storage grid for all Exadata storage servers - - Exadata infrastructure - The same API covers both new discovery and rediscovery cases. - For the new discovery case, new managed resources/sub-resources are created or the existing ones are overridden. - For rediscovery case, the existing managed resources/sub-resources are checked to find out which ones should be added or which ones - should be - removed based on the unique key defined for each resource/sub-resource. + :param str external_non_container_database_id: (required) + The `OCID`__ of the external non-container database. + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.DiscoverExternalExadataInfrastructureDetails discover_external_exadata_infrastructure_details: (required) - The details required to discover and monitor the Exadata infrastructure. + :param oci.database_management.models.DisableExternalNonContainerDatabaseManagementFeatureDetails disable_external_non_container_database_management_feature_details: (required) + The details required to disable a Database Management feature for an external non-container database. :param str opc_request_id: (optional) The client request ID for tracing. @@ -4982,18 +5006,18 @@ def discover_external_exadata_infrastructure(self, discover_external_exadata_inf allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ExternalExadataInfrastructureDiscovery` + :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use discover_external_exadata_infrastructure API. + Click `here `__ to see an example of how to use disable_external_non_container_database_management_feature API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = [] - resource_path = "/externalExadataInfrastructures/actions/discoverExadataInfrastructure" + required_arguments = ['externalNonContainerDatabaseId'] + resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}/actions/disableDatabaseManagement" method = "POST" - operation_name = "discover_external_exadata_infrastructure" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/DiscoverExternalExadataInfrastructure" + operation_name = "disable_external_non_container_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalNonContainerDatabaseManagementFeature" # Don't accept unknown kwargs expected_kwargs = [ @@ -5006,7 +5030,17 @@ def discover_external_exadata_infrastructure(self, discover_external_exadata_inf extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"discover_external_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") + f"disable_external_non_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "externalNonContainerDatabaseId": external_non_container_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { "accept": "application/json", @@ -5033,9 +5067,9 @@ def discover_external_exadata_infrastructure(self, discover_external_exadata_inf self.base_client.call_api, resource_path=resource_path, method=method, + path_params=path_params, header_params=header_params, - body=discover_external_exadata_infrastructure_details, - response_type="ExternalExadataInfrastructureDiscovery", + body=disable_external_non_container_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5044,34 +5078,48 @@ def discover_external_exadata_infrastructure(self, discover_external_exadata_inf return self.base_client.call_api( resource_path=resource_path, method=method, + path_params=path_params, header_params=header_params, - body=discover_external_exadata_infrastructure_details, - response_type="ExternalExadataInfrastructureDiscovery", + body=disable_external_non_container_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_details, **kwargs): + def disable_external_pluggable_database_management_feature(self, external_pluggable_database_id, disable_external_pluggable_database_management_feature_details, **kwargs): """ - Drops a single plan or all plans associated with a SQL statement. + Disables a Database Management feature for the specified external pluggable database. - :param str managed_database_id: (required) - The `OCID`__ of the Managed Database. + :param str external_pluggable_database_id: (required) + The `OCID`__ of the external pluggable database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.DropSqlPlanBaselinesDetails drop_sql_plan_baselines_details: (required) - The details required to drop SQL plan baselines. + :param oci.database_management.models.DisableExternalPluggableDatabaseManagementFeatureDetails disable_external_pluggable_database_management_feature_details: (required) + The details required to disable a Database Management feature for an external pluggable database. :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -5084,28 +5132,30 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use drop_sql_plan_baselines API. + Click `here `__ to see an example of how to use disable_external_pluggable_database_management_feature API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['managedDatabaseId'] - resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/dropSqlPlanBaselines" + required_arguments = ['externalPluggableDatabaseId'] + resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}/actions/disableDatabaseManagement" method = "POST" - operation_name = "drop_sql_plan_baselines" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DropSqlPlanBaselines" + operation_name = "disable_external_pluggable_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalPluggableDatabaseManagementFeature" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_retry_token", + "if_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"drop_sql_plan_baselines got unknown kwargs: {extra_kwargs!r}") + f"disable_external_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") path_params = { - "managedDatabaseId": managed_database_id + "externalPluggableDatabaseId": external_pluggable_database_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -5117,7 +5167,9 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -5125,9 +5177,12 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( @@ -5136,7 +5191,7 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d method=method, path_params=path_params, header_params=header_params, - body=drop_sql_plan_baselines_details, + body=disable_external_pluggable_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5147,15 +5202,18 @@ def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_d method=method, path_params=path_params, header_params=header_params, - body=drop_sql_plan_baselines_details, + body=disable_external_pluggable_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_details, **kwargs): + def disable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_database_id, disable_high_frequency_automatic_spm_evolve_advisor_task_details, **kwargs): """ - Drops the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId. + Disables the high-frequency Automatic SPM Evolve Advisor task. + + It is available only on Oracle Exadata Database Machine, Oracle Database Exadata + Cloud Service (ExaCS) and Oracle Database Exadata Cloud@Customer (ExaCC). :param str managed_database_id: (required) @@ -5163,11 +5221,109 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param str tablespace_name: (required) - The name of the tablespace. + :param oci.database_management.models.DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails disable_high_frequency_automatic_spm_evolve_advisor_task_details: (required) + The details required to disable high frequency Automatic SPM Evolve Advisor task. - :param oci.database_management.models.DropTablespaceDetails drop_tablespace_details: (required) - The details required to drop a tablespace. + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use disable_high_frequency_automatic_spm_evolve_advisor_task API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['managedDatabaseId'] + resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableHighFrequencyAutomaticSpmEvolveAdvisorTask" + method = "POST" + operation_name = "disable_high_frequency_automatic_spm_evolve_advisor_task" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableHighFrequencyAutomaticSpmEvolveAdvisorTask" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"disable_high_frequency_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "managedDatabaseId": managed_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=disable_high_frequency_automatic_spm_evolve_advisor_task_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=disable_high_frequency_automatic_spm_evolve_advisor_task_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def disable_pluggable_database_management_feature(self, pluggable_database_id, disable_pluggable_database_management_feature_details, **kwargs): + """ + Disables a Database Management feature for the specified Oracle cloud pluggable database. + + + :param str pluggable_database_id: (required) + The `OCID`__ of the Oracle cloud pluggable database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.DisablePluggableDatabaseManagementFeatureDetails disable_pluggable_database_management_feature_details: (required) + The details required to disable a Database Management feature for an Oracle cloud pluggable database. :param str opc_request_id: (optional) The client request ID for tracing. @@ -5179,10 +5335,17 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -5191,34 +5354,34 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.TablespaceAdminStatus` + :return: A :class:`~oci.response.Response` object with data of type None :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use drop_tablespace API. + Click `here `__ to see an example of how to use disable_pluggable_database_management_feature API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['managedDatabaseId', 'tablespaceName'] - resource_path = "/managedDatabases/{managedDatabaseId}/tablespaces/{tablespaceName}/actions/dropTablespace" + required_arguments = ['pluggableDatabaseId'] + resource_path = "/pluggabledatabases/{pluggableDatabaseId}/actions/disableDatabaseManagement" method = "POST" - operation_name = "drop_tablespace" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/Tablespace/DropTablespace" + operation_name = "disable_pluggable_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisablePluggableDatabaseManagementFeature" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "if_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"drop_tablespace got unknown kwargs: {extra_kwargs!r}") + f"disable_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") path_params = { - "managedDatabaseId": managed_database_id, - "tablespaceName": tablespace_name + "pluggableDatabaseId": pluggable_database_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -5231,7 +5394,114 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=disable_pluggable_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=disable_pluggable_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def disable_sql_plan_baselines_usage(self, managed_database_id, disable_sql_plan_baselines_usage_details, **kwargs): + """ + Disables the use of SQL plan baselines stored in SQL Management Base. + + When disabled, the optimizer does not use any SQL plan baselines. + + + :param str managed_database_id: (required) + The `OCID`__ of the Managed Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.DisableSqlPlanBaselinesUsageDetails disable_sql_plan_baselines_usage_details: (required) + The details required to disable SQL plan baseline usage. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use disable_sql_plan_baselines_usage API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['managedDatabaseId'] + resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/disableSqlPlanBaselinesUsage" + method = "POST" + operation_name = "disable_sql_plan_baselines_usage" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableSqlPlanBaselinesUsage" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"disable_sql_plan_baselines_usage got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "managedDatabaseId": managed_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -5240,6 +5510,936 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ client_retry_strategy=self.retry_strategy ) + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=disable_sql_plan_baselines_usage_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=disable_sql_plan_baselines_usage_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def discover_external_exadata_infrastructure(self, discover_external_exadata_infrastructure_details, **kwargs): + """ + Completes the Exadata system prechecking on the following: + + - Verifies if the DB systems are valid RAC DB systems or return 400 status code with NON_RAC_DATABASE_SYSTEM error code. + - Verifies if the ASM connector defined for each DB system or return 400 status code with CONNECTOR_NOT_DEFINED error code. + - Verifies if the agents associated with ASM are valid and could be used for the Exadata storage servers or return 400 status code with + INVALID_AGENT error code. + - Verifies if it is an Exadata system or return 400 status code with INVALID_EXADATA_SYSTEM error code. + + Starts the discovery process for the Exadata system infrastructure. The following resources/components are discovered + + - Exadata storage servers from each DB systems + - Exadata storage grid for all Exadata storage servers + - Exadata infrastructure + + The same API covers both new discovery and rediscovery cases. + For the new discovery case, new managed resources/sub-resources are created or the existing ones are overridden. + For rediscovery case, the existing managed resources/sub-resources are checked to find out which ones should be added or which ones + should be + removed based on the unique key defined for each resource/sub-resource. + + + :param oci.database_management.models.DiscoverExternalExadataInfrastructureDetails discover_external_exadata_infrastructure_details: (required) + The details required to discover and monitor the Exadata infrastructure. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.ExternalExadataInfrastructureDiscovery` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use discover_external_exadata_infrastructure API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/externalExadataInfrastructures/actions/discoverExadataInfrastructure" + method = "POST" + operation_name = "discover_external_exadata_infrastructure" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/DiscoverExternalExadataInfrastructure" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"discover_external_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=discover_external_exadata_infrastructure_details, + response_type="ExternalExadataInfrastructureDiscovery", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=discover_external_exadata_infrastructure_details, + response_type="ExternalExadataInfrastructureDiscovery", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def drop_sql_plan_baselines(self, managed_database_id, drop_sql_plan_baselines_details, **kwargs): + """ + Drops a single plan or all plans associated with a SQL statement. + + + :param str managed_database_id: (required) + The `OCID`__ of the Managed Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.DropSqlPlanBaselinesDetails drop_sql_plan_baselines_details: (required) + The details required to drop SQL plan baselines. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use drop_sql_plan_baselines API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['managedDatabaseId'] + resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/dropSqlPlanBaselines" + method = "POST" + operation_name = "drop_sql_plan_baselines" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DropSqlPlanBaselines" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"drop_sql_plan_baselines got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "managedDatabaseId": managed_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=drop_sql_plan_baselines_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=drop_sql_plan_baselines_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_details, **kwargs): + """ + Drops the tablespace specified by tablespaceName within the Managed Database specified by managedDatabaseId. + + + :param str managed_database_id: (required) + The `OCID`__ of the Managed Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str tablespace_name: (required) + The name of the tablespace. + + :param oci.database_management.models.DropTablespaceDetails drop_tablespace_details: (required) + The details required to drop a tablespace. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.TablespaceAdminStatus` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use drop_tablespace API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['managedDatabaseId', 'tablespaceName'] + resource_path = "/managedDatabases/{managedDatabaseId}/tablespaces/{tablespaceName}/actions/dropTablespace" + method = "POST" + operation_name = "drop_tablespace" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/Tablespace/DropTablespace" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"drop_tablespace got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "managedDatabaseId": managed_database_id, + "tablespaceName": tablespace_name + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=drop_tablespace_details, + response_type="TablespaceAdminStatus", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=drop_tablespace_details, + response_type="TablespaceAdminStatus", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def enable_automatic_initial_plan_capture(self, managed_database_id, enable_automatic_initial_plan_capture_details, **kwargs): + """ + Enables automatic initial plan capture. When enabled, the database checks whether + executed SQL statements are eligible for automatic capture. It creates initial + plan baselines for eligible statements. + + By default, the database creates a SQL plan baseline for every eligible repeatable + statement, including all recursive SQL and monitoring SQL. Thus, automatic capture + may result in the creation of an extremely large number of plan baselines. To limit + the statements that are eligible for plan baselines, configure filters. + + + :param str managed_database_id: (required) + The `OCID`__ of the Managed Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableAutomaticInitialPlanCaptureDetails enable_automatic_initial_plan_capture_details: (required) + The details required to enable automatic initial plan capture. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use enable_automatic_initial_plan_capture API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['managedDatabaseId'] + resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableAutomaticInitialPlanCapture" + method = "POST" + operation_name = "enable_automatic_initial_plan_capture" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableAutomaticInitialPlanCapture" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"enable_automatic_initial_plan_capture got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "managedDatabaseId": managed_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=enable_automatic_initial_plan_capture_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=enable_automatic_initial_plan_capture_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_automatic_spm_evolve_advisor_task_details, **kwargs): + """ + Enables the Automatic SPM Evolve Advisor task. By default, the automatic task + `SYS_AUTO_SPM_EVOLVE_TASK` runs every day in the scheduled maintenance window. + + The SPM Evolve Advisor performs the following tasks: + + - Checks AWR for top SQL + - Looks for alternative plans in all available sources + - Adds unaccepted plans to the plan history + - Tests the execution of as many plans as possible during the maintenance window + - Adds the alternative plan to the baseline if it performs better than the current plan + + One client controls both Automatic SQL Tuning Advisor and Automatic SPM Evolve Advisor. + Thus, the same task enables or disables both. + + + :param str managed_database_id: (required) + The `OCID`__ of the Managed Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableAutomaticSpmEvolveAdvisorTaskDetails enable_automatic_spm_evolve_advisor_task_details: (required) + The details required to enable Automatic SPM Evolve Advisor task. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use enable_automatic_spm_evolve_advisor_task API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['managedDatabaseId'] + resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableAutomaticSpmEvolveAdvisorTask" + method = "POST" + operation_name = "enable_automatic_spm_evolve_advisor_task" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableAutomaticSpmEvolveAdvisorTask" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"enable_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "managedDatabaseId": managed_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=enable_automatic_spm_evolve_advisor_task_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=enable_automatic_spm_evolve_advisor_task_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def enable_database_management_feature(self, database_id, enable_database_management_feature_details, **kwargs): + """ + Enables a Database Management feature for the specified cloud database. + + + :param str database_id: (required) + The `OCID`__ of the Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableDatabaseManagementFeatureDetails enable_database_management_feature_details: (required) + The details required to enable a Database Management feature for an Oracle cloud database. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use enable_database_management_feature API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['databaseId'] + resource_path = "/databases/{databaseId}/actions/enableDatabaseManagement" + method = "POST" + operation_name = "enable_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableDatabaseManagementFeature" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"enable_database_management_feature got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "databaseId": database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=enable_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=enable_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def enable_external_container_database_management_feature(self, external_container_database_id, enable_external_container_database_management_feature_details, **kwargs): + """ + Enables a Database Management feature for the specified external container database. + + + :param str external_container_database_id: (required) + The `OCID`__ of the external container database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableExternalContainerDatabaseManagementFeatureDetails enable_external_container_database_management_feature_details: (required) + The details required to enable a Database Management feature for an external container database. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use enable_external_container_database_management_feature API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['externalContainerDatabaseId'] + resource_path = "/externalcontainerdatabases/{externalContainerDatabaseId}/actions/enableDatabaseManagement" + method = "POST" + operation_name = "enable_external_container_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalContainerDatabaseManagementFeature" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"enable_external_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "externalContainerDatabaseId": external_container_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=enable_external_container_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=enable_external_container_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def enable_external_db_system_database_management(self, external_db_system_id, enable_external_db_system_database_management_details, **kwargs): + """ + Enables Database Management service for all the components of the specified + external DB system (except databases). + + + :param str external_db_system_id: (required) + The `OCID`__ of the external DB system. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableExternalDbSystemDatabaseManagementDetails enable_external_db_system_database_management_details: (required) + The details required to enable Database Management for an external DB system. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use enable_external_db_system_database_management API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['externalDbSystemId'] + resource_path = "/externalDbSystems/{externalDbSystemId}/actions/enableDatabaseManagement" + method = "POST" + operation_name = "enable_external_db_system_database_management" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/EnableExternalDbSystemDatabaseManagement" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"enable_external_db_system_database_management got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "externalDbSystemId": external_db_system_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): self.base_client.add_opc_retry_token_if_needed(header_params) @@ -5251,8 +6451,7 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ method=method, path_params=path_params, header_params=header_params, - body=drop_tablespace_details, - response_type="TablespaceAdminStatus", + body=enable_external_db_system_database_management_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5263,40 +6462,47 @@ def drop_tablespace(self, managed_database_id, tablespace_name, drop_tablespace_ method=method, path_params=path_params, header_params=header_params, - body=drop_tablespace_details, - response_type="TablespaceAdminStatus", + body=enable_external_db_system_database_management_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def enable_automatic_initial_plan_capture(self, managed_database_id, enable_automatic_initial_plan_capture_details, **kwargs): + def enable_external_db_system_stack_monitoring(self, external_db_system_id, enable_external_db_system_stack_monitoring_details, **kwargs): """ - Enables automatic initial plan capture. When enabled, the database checks whether - executed SQL statements are eligible for automatic capture. It creates initial - plan baselines for eligible statements. - - By default, the database creates a SQL plan baseline for every eligible repeatable - statement, including all recursive SQL and monitoring SQL. Thus, automatic capture - may result in the creation of an extremely large number of plan baselines. To limit - the statements that are eligible for plan baselines, configure filters. + Enables Stack Monitoring for all the components of the specified + external DB system (except databases). - :param str managed_database_id: (required) - The `OCID`__ of the Managed Database. + :param str external_db_system_id: (required) + The `OCID`__ of the external DB system. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.EnableAutomaticInitialPlanCaptureDetails enable_automatic_initial_plan_capture_details: (required) - The details required to enable automatic initial plan capture. + :param oci.database_management.models.EnableExternalDbSystemStackMonitoringDetails enable_external_db_system_stack_monitoring_details: (required) + The details required to enable Stack Monitoring for an external DB system. :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -5309,28 +6515,30 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use enable_automatic_initial_plan_capture API. + Click `here `__ to see an example of how to use enable_external_db_system_stack_monitoring API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['managedDatabaseId'] - resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableAutomaticInitialPlanCapture" + required_arguments = ['externalDbSystemId'] + resource_path = "/externalDbSystems/{externalDbSystemId}/actions/enableStackMonitoring" method = "POST" - operation_name = "enable_automatic_initial_plan_capture" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableAutomaticInitialPlanCapture" + operation_name = "enable_external_db_system_stack_monitoring" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/EnableExternalDbSystemStackMonitoring" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_retry_token", + "if_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"enable_automatic_initial_plan_capture got unknown kwargs: {extra_kwargs!r}") + f"enable_external_db_system_stack_monitoring got unknown kwargs: {extra_kwargs!r}") path_params = { - "managedDatabaseId": managed_database_id + "externalDbSystemId": external_db_system_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -5342,7 +6550,9 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -5350,9 +6560,12 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( @@ -5361,7 +6574,7 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto method=method, path_params=path_params, header_params=header_params, - body=enable_automatic_initial_plan_capture_details, + body=enable_external_db_system_stack_monitoring_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5372,44 +6585,51 @@ def enable_automatic_initial_plan_capture(self, managed_database_id, enable_auto method=method, path_params=path_params, header_params=header_params, - body=enable_automatic_initial_plan_capture_details, + body=enable_external_db_system_stack_monitoring_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_automatic_spm_evolve_advisor_task_details, **kwargs): + def enable_external_exadata_infrastructure_management(self, external_exadata_infrastructure_id, enable_external_exadata_infrastructure_management_details, **kwargs): """ - Enables the Automatic SPM Evolve Advisor task. By default, the automatic task - `SYS_AUTO_SPM_EVOLVE_TASK` runs every day in the scheduled maintenance window. - - The SPM Evolve Advisor performs the following tasks: - - - Checks AWR for top SQL - - Looks for alternative plans in all available sources - - Adds unaccepted plans to the plan history - - Tests the execution of as many plans as possible during the maintenance window - - Adds the alternative plan to the baseline if it performs better than the current plan + Enables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId. It covers the following + components: - One client controls both Automatic SQL Tuning Advisor and Automatic SPM Evolve Advisor. - Thus, the same task enables or disables both. + - Exadata infrastructure + - Exadata storage grid + - Exadata storage server - :param str managed_database_id: (required) - The `OCID`__ of the Managed Database. + :param str external_exadata_infrastructure_id: (required) + The `OCID`__ of the Exadata infrastructure. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.EnableAutomaticSpmEvolveAdvisorTaskDetails enable_automatic_spm_evolve_advisor_task_details: (required) - The details required to enable Automatic SPM Evolve Advisor task. + :param oci.database_management.models.EnableExternalExadataInfrastructureManagementDetails enable_external_exadata_infrastructure_management_details: (required) + The details required to enable management for the Exadata infrastructure. :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -5422,28 +6642,30 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use enable_automatic_spm_evolve_advisor_task API. + Click `here `__ to see an example of how to use enable_external_exadata_infrastructure_management API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['managedDatabaseId'] - resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableAutomaticSpmEvolveAdvisorTask" + required_arguments = ['externalExadataInfrastructureId'] + resource_path = "/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/enableDatabaseManagement" method = "POST" - operation_name = "enable_automatic_spm_evolve_advisor_task" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableAutomaticSpmEvolveAdvisorTask" + operation_name = "enable_external_exadata_infrastructure_management" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/EnableExternalExadataInfrastructureManagement" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_retry_token", + "if_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"enable_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") + f"enable_external_exadata_infrastructure_management got unknown kwargs: {extra_kwargs!r}") path_params = { - "managedDatabaseId": managed_database_id + "externalExadataInfrastructureId": external_exadata_infrastructure_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -5455,7 +6677,9 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -5463,9 +6687,12 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( @@ -5474,7 +6701,7 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a method=method, path_params=path_params, header_params=header_params, - body=enable_automatic_spm_evolve_advisor_task_details, + body=enable_external_exadata_infrastructure_management_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5485,25 +6712,24 @@ def enable_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_a method=method, path_params=path_params, header_params=header_params, - body=enable_automatic_spm_evolve_advisor_task_details, + body=enable_external_exadata_infrastructure_management_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def enable_external_db_system_database_management(self, external_db_system_id, enable_external_db_system_database_management_details, **kwargs): + def enable_external_non_container_database_management_feature(self, external_non_container_database_id, enable_external_non_container_database_management_feature_details, **kwargs): """ - Enables Database Management service for all the components of the specified - external DB system (except databases). + Enables Database Management feature for the specified external non-container database. - :param str external_db_system_id: (required) - The `OCID`__ of the external DB system. + :param str external_non_container_database_id: (required) + The `OCID`__ of the external non-container database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.EnableExternalDbSystemDatabaseManagementDetails enable_external_db_system_database_management_details: (required) - The details required to enable Database Management for an external DB system. + :param oci.database_management.models.EnableExternalNonContainerDatabaseManagementFeatureDetails enable_external_non_container_database_management_feature_details: (required) + The details required to enable a Database Management feature for an external non-container database. :param str opc_request_id: (optional) The client request ID for tracing. @@ -5538,14 +6764,14 @@ def enable_external_db_system_database_management(self, external_db_system_id, e :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use enable_external_db_system_database_management API. + Click `here `__ to see an example of how to use enable_external_non_container_database_management_feature API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['externalDbSystemId'] - resource_path = "/externalDbSystems/{externalDbSystemId}/actions/enableDatabaseManagement" + required_arguments = ['externalNonContainerDatabaseId'] + resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}/actions/enableDatabaseManagement" method = "POST" - operation_name = "enable_external_db_system_database_management" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/EnableExternalDbSystemDatabaseManagement" + operation_name = "enable_external_non_container_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalNonContainerDatabaseManagementFeature" # Don't accept unknown kwargs expected_kwargs = [ @@ -5558,10 +6784,10 @@ def enable_external_db_system_database_management(self, external_db_system_id, e extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"enable_external_db_system_database_management got unknown kwargs: {extra_kwargs!r}") + f"enable_external_non_container_database_management_feature got unknown kwargs: {extra_kwargs!r}") path_params = { - "externalDbSystemId": external_db_system_id + "externalNonContainerDatabaseId": external_non_container_database_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -5597,7 +6823,7 @@ def enable_external_db_system_database_management(self, external_db_system_id, e method=method, path_params=path_params, header_params=header_params, - body=enable_external_db_system_database_management_details, + body=enable_external_non_container_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5608,25 +6834,24 @@ def enable_external_db_system_database_management(self, external_db_system_id, e method=method, path_params=path_params, header_params=header_params, - body=enable_external_db_system_database_management_details, + body=enable_external_non_container_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def enable_external_db_system_stack_monitoring(self, external_db_system_id, enable_external_db_system_stack_monitoring_details, **kwargs): + def enable_external_pluggable_database_management_feature(self, external_pluggable_database_id, enable_external_pluggable_database_management_feature_details, **kwargs): """ - Enables Stack Monitoring for all the components of the specified - external DB system (except databases). + Enables a Database Management feature for the specified external pluggable database. - :param str external_db_system_id: (required) - The `OCID`__ of the external DB system. + :param str external_pluggable_database_id: (required) + The `OCID`__ of the external pluggable database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.EnableExternalDbSystemStackMonitoringDetails enable_external_db_system_stack_monitoring_details: (required) - The details required to enable Stack Monitoring for an external DB system. + :param oci.database_management.models.EnableExternalPluggableDatabaseManagementFeatureDetails enable_external_pluggable_database_management_feature_details: (required) + The details required to enable a Database Management feature for an external pluggable database. :param str opc_request_id: (optional) The client request ID for tracing. @@ -5661,14 +6886,14 @@ def enable_external_db_system_stack_monitoring(self, external_db_system_id, enab :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use enable_external_db_system_stack_monitoring API. + Click `here `__ to see an example of how to use enable_external_pluggable_database_management_feature API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['externalDbSystemId'] - resource_path = "/externalDbSystems/{externalDbSystemId}/actions/enableStackMonitoring" + required_arguments = ['externalPluggableDatabaseId'] + resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}/actions/enableDatabaseManagement" method = "POST" - operation_name = "enable_external_db_system_stack_monitoring" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalDbSystem/EnableExternalDbSystemStackMonitoring" + operation_name = "enable_external_pluggable_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalPluggableDatabaseManagementFeature" # Don't accept unknown kwargs expected_kwargs = [ @@ -5681,10 +6906,10 @@ def enable_external_db_system_stack_monitoring(self, external_db_system_id, enab extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"enable_external_db_system_stack_monitoring got unknown kwargs: {extra_kwargs!r}") + f"enable_external_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") path_params = { - "externalDbSystemId": external_db_system_id + "externalPluggableDatabaseId": external_pluggable_database_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -5720,7 +6945,7 @@ def enable_external_db_system_stack_monitoring(self, external_db_system_id, enab method=method, path_params=path_params, header_params=header_params, - body=enable_external_db_system_stack_monitoring_details, + body=enable_external_pluggable_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5731,51 +6956,40 @@ def enable_external_db_system_stack_monitoring(self, external_db_system_id, enab method=method, path_params=path_params, header_params=header_params, - body=enable_external_db_system_stack_monitoring_details, + body=enable_external_pluggable_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def enable_external_exadata_infrastructure_management(self, external_exadata_infrastructure_id, enable_external_exadata_infrastructure_management_details, **kwargs): + def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_high_frequency_automatic_spm_evolve_advisor_task_details, **kwargs): """ - Enables Database Management for the Exadata infrastructure specified by externalExadataInfrastructureId. It covers the following - components: + Enables the high-frequency Automatic SPM Evolve Advisor task. The high-frequency + task runs every hour and runs for no longer than 30 minutes. These settings + are not configurable. - - Exadata infrastructure - - Exadata storage grid - - Exadata storage server + The high-frequency task complements the standard Automatic SPM Evolve Advisor task. + They are independent and are scheduled through two different frameworks. + + It is available only on Oracle Exadata Database Machine, Oracle Database Exadata + Cloud Service (ExaCS) and Oracle Database Exadata Cloud@Customer (ExaCC). - :param str external_exadata_infrastructure_id: (required) - The `OCID`__ of the Exadata infrastructure. + :param str managed_database_id: (required) + The `OCID`__ of the Managed Database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.EnableExternalExadataInfrastructureManagementDetails enable_external_exadata_infrastructure_management_details: (required) - The details required to enable management for the Exadata infrastructure. + :param oci.database_management.models.EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails enable_high_frequency_automatic_spm_evolve_advisor_task_details: (required) + The details required to enable high frequency Automatic SPM Evolve Advisor task. :param str opc_request_id: (optional) The client request ID for tracing. - :param str opc_retry_token: (optional) - A token that uniquely identifies a request so it can be retried in case of a timeout or - server error without risk of executing that same action again. Retry tokens expire after 24 - hours, but can be invalidated before then due to conflicting operations. For example, if a resource - has been deleted and purged from the system, then a retry of the original creation request - might be rejected. - - :param str if_match: (optional) - For optimistic concurrency control. In the PUT or DELETE call - for a resource, set the `if-match` parameter to the value of the - etag from a previous GET or POST response for that resource. - The resource will be updated or deleted only if the etag you - provide matches the resource's current etag value. - :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -5788,30 +7002,28 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use enable_external_exadata_infrastructure_management API. + Click `here `__ to see an example of how to use enable_high_frequency_automatic_spm_evolve_advisor_task API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['externalExadataInfrastructureId'] - resource_path = "/externalExadataInfrastructures/{externalExadataInfrastructureId}/actions/enableDatabaseManagement" + required_arguments = ['managedDatabaseId'] + resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableHighFrequencyAutomaticSpmEvolveAdvisorTask" method = "POST" - operation_name = "enable_external_exadata_infrastructure_management" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalExadataInfrastructure/EnableExternalExadataInfrastructureManagement" + operation_name = "enable_high_frequency_automatic_spm_evolve_advisor_task" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableHighFrequencyAutomaticSpmEvolveAdvisorTask" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id", - "opc_retry_token", - "if_match" + "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"enable_external_exadata_infrastructure_management got unknown kwargs: {extra_kwargs!r}") + f"enable_high_frequency_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") path_params = { - "externalExadataInfrastructureId": external_exadata_infrastructure_id + "managedDatabaseId": managed_database_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -5823,9 +7035,7 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing), - "if-match": kwargs.get("if_match", missing) + "opc-request-id": kwargs.get("opc_request_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -5833,12 +7043,9 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) - if retry_strategy is None: - retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): - self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( @@ -5847,7 +7054,7 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf method=method, path_params=path_params, header_params=header_params, - body=enable_external_exadata_infrastructure_management_details, + body=enable_high_frequency_automatic_spm_evolve_advisor_task_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5858,40 +7065,46 @@ def enable_external_exadata_infrastructure_management(self, external_exadata_inf method=method, path_params=path_params, header_params=header_params, - body=enable_external_exadata_infrastructure_management_details, + body=enable_high_frequency_automatic_spm_evolve_advisor_task_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_database_id, enable_high_frequency_automatic_spm_evolve_advisor_task_details, **kwargs): + def enable_pluggable_database_management_feature(self, pluggable_database_id, enable_pluggable_database_management_feature_details, **kwargs): """ - Enables the high-frequency Automatic SPM Evolve Advisor task. The high-frequency - task runs every hour and runs for no longer than 30 minutes. These settings - are not configurable. - - The high-frequency task complements the standard Automatic SPM Evolve Advisor task. - They are independent and are scheduled through two different frameworks. - - It is available only on Oracle Exadata Database Machine, Oracle Database Exadata - Cloud Service (ExaCS) and Oracle Database Exadata Cloud@Customer (ExaCC). - + Enables a Database Management feature for the specified Oracle cloud pluggable database. - :param str managed_database_id: (required) - The `OCID`__ of the Managed Database. + + :param str pluggable_database_id: (required) + The `OCID`__ of the Oracle cloud pluggable database. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param oci.database_management.models.EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails enable_high_frequency_automatic_spm_evolve_advisor_task_details: (required) - The details required to enable high frequency Automatic SPM Evolve Advisor task. + :param oci.database_management.models.EnablePluggableDatabaseManagementFeatureDetails enable_pluggable_database_management_feature_details: (required) + The details required to enable a Database Management feature for an Oracle cloud pluggable database. :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -5904,28 +7117,30 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use enable_high_frequency_automatic_spm_evolve_advisor_task API. + Click `here `__ to see an example of how to use enable_pluggable_database_management_feature API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['managedDatabaseId'] - resource_path = "/managedDatabases/{managedDatabaseId}/sqlPlanBaselines/actions/enableHighFrequencyAutomaticSpmEvolveAdvisorTask" + required_arguments = ['pluggableDatabaseId'] + resource_path = "/pluggabledatabases/{pluggableDatabaseId}/actions/enableDatabaseManagement" method = "POST" - operation_name = "enable_high_frequency_automatic_spm_evolve_advisor_task" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableHighFrequencyAutomaticSpmEvolveAdvisorTask" + operation_name = "enable_pluggable_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnablePluggableDatabaseManagementFeature" # Don't accept unknown kwargs expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_retry_token", + "if_match" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"enable_high_frequency_automatic_spm_evolve_advisor_task got unknown kwargs: {extra_kwargs!r}") + f"enable_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") path_params = { - "managedDatabaseId": managed_database_id + "pluggableDatabaseId": pluggable_database_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -5937,7 +7152,9 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -5945,9 +7162,12 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) self.base_client.add_opc_client_retries_header(header_params) retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) return retry_strategy.make_retrying_call( @@ -5956,7 +7176,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa method=method, path_params=path_params, header_params=header_params, - body=enable_high_frequency_automatic_spm_evolve_advisor_task_details, + body=enable_pluggable_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -5967,7 +7187,7 @@ def enable_high_frequency_automatic_spm_evolve_advisor_task(self, managed_databa method=method, path_params=path_params, header_params=header_params, - body=enable_high_frequency_automatic_spm_evolve_advisor_task_details, + body=enable_pluggable_database_management_feature_details, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -13084,6 +14304,11 @@ def list_external_databases(self, **kwargs): __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + :param str external_database_id: (optional) + The `OCID`__ of the external database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + :param str display_name: (optional) A filter to only return the resources that match the entire display name. @@ -13140,6 +14365,7 @@ def list_external_databases(self, **kwargs): "retry_strategy", "compartment_id", "external_db_system_id", + "external_database_id", "display_name", "page", "limit", @@ -13169,6 +14395,7 @@ def list_external_databases(self, **kwargs): query_params = { "compartmentId": kwargs.get("compartment_id", missing), "externalDbSystemId": kwargs.get("external_db_system_id", missing), + "externalDatabaseId": kwargs.get("external_database_id", missing), "displayName": kwargs.get("display_name", missing), "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing), @@ -18554,6 +19781,250 @@ def load_sql_plan_baselines_from_cursor_cache(self, managed_database_id, load_sq api_reference_link=api_reference_link, required_arguments=required_arguments) + def modify_database_management_feature(self, database_id, modify_database_management_feature_details, **kwargs): + """ + Modifies a Database Management feature for the specified Oracle cloud database. + + + :param str database_id: (required) + The `OCID`__ of the Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.ModifyDatabaseManagementFeatureDetails modify_database_management_feature_details: (required) + The details required to modify a Database Management feature for an Oracle cloud database. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use modify_database_management_feature API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['databaseId'] + resource_path = "/databases/{databaseId}/actions/modifyDatabaseManagement" + method = "POST" + operation_name = "modify_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifyDatabaseManagementFeature" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"modify_database_management_feature got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "databaseId": database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=modify_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=modify_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def modify_pluggable_database_management_feature(self, pluggable_database_id, modify_pluggable_database_management_feature_details, **kwargs): + """ + Modifies the Database Management feature for the specified Oracle cloud pluggable database. + + + :param str pluggable_database_id: (required) + The `OCID`__ of the Oracle cloud pluggable database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.ModifyPluggableDatabaseManagementFeatureDetails modify_pluggable_database_management_feature_details: (required) + The details required to modify a Database Management feature for an Oracle cloud pluggable database. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use modify_pluggable_database_management_feature API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['pluggableDatabaseId'] + resource_path = "/pluggabledatabases/{pluggableDatabaseId}/actions/modifyDatabaseManagement" + method = "POST" + operation_name = "modify_pluggable_database_management_feature" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifyPluggableDatabaseManagementFeature" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"modify_pluggable_database_management_feature got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "pluggableDatabaseId": pluggable_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=modify_pluggable_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=modify_pluggable_database_management_feature_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def patch_external_db_system_discovery(self, external_db_system_discovery_id, patch_external_db_system_discovery_details, **kwargs): """ Patches the external DB system discovery specified by `externalDbSystemDiscoveryId`. diff --git a/src/oci/database_management/db_management_client_composite_operations.py b/src/oci/database_management/db_management_client_composite_operations.py index def95ceecf..c9742024db 100644 --- a/src/oci/database_management/db_management_client_composite_operations.py +++ b/src/oci/database_management/db_management_client_composite_operations.py @@ -1039,6 +1039,94 @@ def delete_named_credential_and_wait_for_state(self, named_credential_id, wait_f except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def disable_database_management_feature_and_wait_for_state(self, database_id, disable_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.disable_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str database_id: (required) + The `OCID`__ of the Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.DisableDatabaseManagementFeatureDetails disable_database_management_feature_details: (required) + The details required to disable a Database Management feature for an Oracle cloud database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.disable_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.disable_database_management_feature(database_id, disable_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def disable_external_container_database_management_feature_and_wait_for_state(self, external_container_database_id, disable_external_container_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.disable_external_container_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str external_container_database_id: (required) + The `OCID`__ of the external container database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.DisableExternalContainerDatabaseManagementFeatureDetails disable_external_container_database_management_feature_details: (required) + The details required to disable a Database Management feature for an external container database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.disable_external_container_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.disable_external_container_database_management_feature(external_container_database_id, disable_external_container_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def disable_external_db_system_database_management_and_wait_for_state(self, external_db_system_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.database_management.DbManagementClient.disable_external_db_system_database_management` and waits for the :py:class:`~oci.database_management.models.WorkRequest` @@ -1162,6 +1250,226 @@ def disable_external_exadata_infrastructure_management_and_wait_for_state(self, except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def disable_external_non_container_database_management_feature_and_wait_for_state(self, external_non_container_database_id, disable_external_non_container_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.disable_external_non_container_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str external_non_container_database_id: (required) + The `OCID`__ of the external non-container database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.DisableExternalNonContainerDatabaseManagementFeatureDetails disable_external_non_container_database_management_feature_details: (required) + The details required to disable a Database Management feature for an external non-container database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.disable_external_non_container_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.disable_external_non_container_database_management_feature(external_non_container_database_id, disable_external_non_container_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def disable_external_pluggable_database_management_feature_and_wait_for_state(self, external_pluggable_database_id, disable_external_pluggable_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.disable_external_pluggable_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str external_pluggable_database_id: (required) + The `OCID`__ of the external pluggable database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.DisableExternalPluggableDatabaseManagementFeatureDetails disable_external_pluggable_database_management_feature_details: (required) + The details required to disable a Database Management feature for an external pluggable database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.disable_external_pluggable_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.disable_external_pluggable_database_management_feature(external_pluggable_database_id, disable_external_pluggable_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def disable_pluggable_database_management_feature_and_wait_for_state(self, pluggable_database_id, disable_pluggable_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.disable_pluggable_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str pluggable_database_id: (required) + The `OCID`__ of the Oracle cloud pluggable database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.DisablePluggableDatabaseManagementFeatureDetails disable_pluggable_database_management_feature_details: (required) + The details required to disable a Database Management feature for an Oracle cloud pluggable database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.disable_pluggable_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.disable_pluggable_database_management_feature(pluggable_database_id, disable_pluggable_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def enable_database_management_feature_and_wait_for_state(self, database_id, enable_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.enable_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str database_id: (required) + The `OCID`__ of the Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableDatabaseManagementFeatureDetails enable_database_management_feature_details: (required) + The details required to enable a Database Management feature for an Oracle cloud database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.enable_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.enable_database_management_feature(database_id, enable_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def enable_external_container_database_management_feature_and_wait_for_state(self, external_container_database_id, enable_external_container_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.enable_external_container_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str external_container_database_id: (required) + The `OCID`__ of the external container database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableExternalContainerDatabaseManagementFeatureDetails enable_external_container_database_management_feature_details: (required) + The details required to enable a Database Management feature for an external container database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.enable_external_container_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.enable_external_container_database_management_feature(external_container_database_id, enable_external_container_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def enable_external_db_system_database_management_and_wait_for_state(self, external_db_system_id, enable_external_db_system_database_management_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.database_management.DbManagementClient.enable_external_db_system_database_management` and waits for the :py:class:`~oci.database_management.models.WorkRequest` @@ -1294,6 +1602,226 @@ def enable_external_exadata_infrastructure_management_and_wait_for_state(self, e except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def enable_external_non_container_database_management_feature_and_wait_for_state(self, external_non_container_database_id, enable_external_non_container_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.enable_external_non_container_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str external_non_container_database_id: (required) + The `OCID`__ of the external non-container database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableExternalNonContainerDatabaseManagementFeatureDetails enable_external_non_container_database_management_feature_details: (required) + The details required to enable a Database Management feature for an external non-container database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.enable_external_non_container_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.enable_external_non_container_database_management_feature(external_non_container_database_id, enable_external_non_container_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def enable_external_pluggable_database_management_feature_and_wait_for_state(self, external_pluggable_database_id, enable_external_pluggable_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.enable_external_pluggable_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str external_pluggable_database_id: (required) + The `OCID`__ of the external pluggable database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnableExternalPluggableDatabaseManagementFeatureDetails enable_external_pluggable_database_management_feature_details: (required) + The details required to enable a Database Management feature for an external pluggable database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.enable_external_pluggable_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.enable_external_pluggable_database_management_feature(external_pluggable_database_id, enable_external_pluggable_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def enable_pluggable_database_management_feature_and_wait_for_state(self, pluggable_database_id, enable_pluggable_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.enable_pluggable_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str pluggable_database_id: (required) + The `OCID`__ of the Oracle cloud pluggable database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.EnablePluggableDatabaseManagementFeatureDetails enable_pluggable_database_management_feature_details: (required) + The details required to enable a Database Management feature for an Oracle cloud pluggable database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.enable_pluggable_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.enable_pluggable_database_management_feature(pluggable_database_id, enable_pluggable_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def modify_database_management_feature_and_wait_for_state(self, database_id, modify_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.modify_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str database_id: (required) + The `OCID`__ of the Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.ModifyDatabaseManagementFeatureDetails modify_database_management_feature_details: (required) + The details required to modify a Database Management feature for an Oracle cloud database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.modify_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.modify_database_management_feature(database_id, modify_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def modify_pluggable_database_management_feature_and_wait_for_state(self, pluggable_database_id, modify_pluggable_database_management_feature_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.modify_pluggable_database_management_feature` and waits for the :py:class:`~oci.database_management.models.WorkRequest` + to enter the given state(s). + + :param str pluggable_database_id: (required) + The `OCID`__ of the Oracle cloud pluggable database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.ModifyPluggableDatabaseManagementFeatureDetails modify_pluggable_database_management_feature_details: (required) + The details required to modify a Database Management feature for an Oracle cloud pluggable database. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.modify_pluggable_database_management_feature` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.modify_pluggable_database_management_feature(pluggable_database_id, modify_pluggable_database_management_feature_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_db_management_private_endpoint_and_wait_for_state(self, db_management_private_endpoint_id, update_db_management_private_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.database_management.DbManagementClient.update_db_management_private_endpoint` and waits for the :py:class:`~oci.database_management.models.DbManagementPrivateEndpoint` acted upon diff --git a/src/oci/database_management/diagnosability_client.py b/src/oci/database_management/diagnosability_client.py index 62bb9996e1..8f8a9b8e8d 100644 --- a/src/oci/database_management/diagnosability_client.py +++ b/src/oci/database_management/diagnosability_client.py @@ -22,9 +22,9 @@ class DiagnosabilityClient(object): """ - Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics - for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and - running a SQL job on a Managed Database or Managed Database Group. + Use the Database Management API to monitor and manage resources such as + Oracle Databases, MySQL Databases, and External Database Systems. + For more information, see [Database Management](/iaas/database-management/home.htm). """ def __init__(self, config, **kwargs): diff --git a/src/oci/database_management/managed_my_sql_databases_client.py b/src/oci/database_management/managed_my_sql_databases_client.py index 081fca81cd..e1bcd08c94 100644 --- a/src/oci/database_management/managed_my_sql_databases_client.py +++ b/src/oci/database_management/managed_my_sql_databases_client.py @@ -22,9 +22,9 @@ class ManagedMySqlDatabasesClient(object): """ - Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics - for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and - running a SQL job on a Managed Database or Managed Database Group. + Use the Database Management API to monitor and manage resources such as + Oracle Databases, MySQL Databases, and External Database Systems. + For more information, see [Database Management](/iaas/database-management/home.htm). """ def __init__(self, config, **kwargs): diff --git a/src/oci/database_management/models/__init__.py b/src/oci/database_management/models/__init__.py index cd9c499e5e..37143f47af 100644 --- a/src/oci/database_management/models/__init__.py +++ b/src/oci/database_management/models/__init__.py @@ -59,6 +59,7 @@ from .awr_db_wait_event_collection import AwrDbWaitEventCollection from .awr_db_wait_event_summary import AwrDbWaitEventSummary from .awr_query_result import AwrQueryResult +from .basic_database_connection_string_details import BasicDatabaseConnectionStringDetails from .basic_named_credential_content import BasicNamedCredentialContent from .basic_preferred_credential import BasicPreferredCredential from .change_database_parameter_details import ChangeDatabaseParameterDetails @@ -77,6 +78,7 @@ from .cluster_cache_metric import ClusterCacheMetric from .configure_automatic_capture_filters_details import ConfigureAutomaticCaptureFiltersDetails from .configure_automatic_spm_evolve_advisor_task_details import ConfigureAutomaticSpmEvolveAdvisorTaskDetails +from .connector_details import ConnectorDetails from .consumer_group_privilege_collection import ConsumerGroupPrivilegeCollection from .consumer_group_privilege_summary import ConsumerGroupPrivilegeSummary from .cpu_utilization_aggregate_metrics import CpuUtilizationAggregateMetrics @@ -100,9 +102,15 @@ from .database_connection_credentails_by_name import DatabaseConnectionCredentailsByName from .database_connection_credentials import DatabaseConnectionCredentials from .database_connection_credentials_by_details import DatabaseConnectionCredentialsByDetails +from .database_connection_details import DatabaseConnectionDetails from .database_connection_string import DatabaseConnectionString +from .database_connection_string_details import DatabaseConnectionStringDetails from .database_credential_details import DatabaseCredentialDetails from .database_credentials import DatabaseCredentials +from .database_diagnostics_and_management_feature_configuration import DatabaseDiagnosticsAndManagementFeatureConfiguration +from .database_diagnostics_and_management_feature_details import DatabaseDiagnosticsAndManagementFeatureDetails +from .database_feature_configuration import DatabaseFeatureConfiguration +from .database_feature_details import DatabaseFeatureDetails from .database_fleet_health_metrics import DatabaseFleetHealthMetrics from .database_home_metric_definition import DatabaseHomeMetricDefinition from .database_home_metrics import DatabaseHomeMetrics @@ -129,7 +137,12 @@ from .dbm_resource import DbmResource from .disable_automatic_initial_plan_capture_details import DisableAutomaticInitialPlanCaptureDetails from .disable_automatic_spm_evolve_advisor_task_details import DisableAutomaticSpmEvolveAdvisorTaskDetails +from .disable_database_management_feature_details import DisableDatabaseManagementFeatureDetails +from .disable_external_container_database_management_feature_details import DisableExternalContainerDatabaseManagementFeatureDetails +from .disable_external_non_container_database_management_feature_details import DisableExternalNonContainerDatabaseManagementFeatureDetails +from .disable_external_pluggable_database_management_feature_details import DisableExternalPluggableDatabaseManagementFeatureDetails from .disable_high_frequency_automatic_spm_evolve_advisor_task_details import DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails +from .disable_pluggable_database_management_feature_details import DisablePluggableDatabaseManagementFeatureDetails from .disable_sql_plan_baselines_usage_details import DisableSqlPlanBaselinesUsageDetails from .discover_external_exadata_infrastructure_details import DiscoverExternalExadataInfrastructureDetails from .discovered_external_asm import DiscoveredExternalAsm @@ -149,10 +162,15 @@ from .drop_tablespace_details import DropTablespaceDetails from .enable_automatic_initial_plan_capture_details import EnableAutomaticInitialPlanCaptureDetails from .enable_automatic_spm_evolve_advisor_task_details import EnableAutomaticSpmEvolveAdvisorTaskDetails +from .enable_database_management_feature_details import EnableDatabaseManagementFeatureDetails +from .enable_external_container_database_management_feature_details import EnableExternalContainerDatabaseManagementFeatureDetails from .enable_external_db_system_database_management_details import EnableExternalDbSystemDatabaseManagementDetails from .enable_external_db_system_stack_monitoring_details import EnableExternalDbSystemStackMonitoringDetails from .enable_external_exadata_infrastructure_management_details import EnableExternalExadataInfrastructureManagementDetails +from .enable_external_non_container_database_management_feature_details import EnableExternalNonContainerDatabaseManagementFeatureDetails +from .enable_external_pluggable_database_management_feature_details import EnableExternalPluggableDatabaseManagementFeatureDetails from .enable_high_frequency_automatic_spm_evolve_advisor_task_details import EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails +from .enable_pluggable_database_management_feature_details import EnablePluggableDatabaseManagementFeatureDetails from .enable_sql_plan_baselines_usage_details import EnableSqlPlanBaselinesUsageDetails from .entity_discovered import EntityDiscovered from .execution_plan_stats_comparision import ExecutionPlanStatsComparision @@ -179,8 +197,11 @@ from .external_cluster_scan_listener_configuration import ExternalClusterScanListenerConfiguration from .external_cluster_summary import ExternalClusterSummary from .external_cluster_vip_configuration import ExternalClusterVipConfiguration +from .external_connector_details import ExternalConnectorDetails from .external_database_collection import ExternalDatabaseCollection from .external_database_connection_info import ExternalDatabaseConnectionInfo +from .external_database_diagnostics_and_management_feature_details import ExternalDatabaseDiagnosticsAndManagementFeatureDetails +from .external_database_feature_details import ExternalDatabaseFeatureDetails from .external_database_instance import ExternalDatabaseInstance from .external_database_summary import ExternalDatabaseSummary from .external_database_system_discovery_summary import ExternalDatabaseSystemDiscoverySummary @@ -232,6 +253,8 @@ from .external_listener_summary import ExternalListenerSummary from .external_listener_tcp_endpoint import ExternalListenerTcpEndpoint from .external_listener_tcps_endpoint import ExternalListenerTcpsEndpoint +from .external_pluggable_database_diagnostics_and_management_feature_details import ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails +from .external_pluggable_database_feature_details import ExternalPluggableDatabaseFeatureDetails from .external_serviced_asm import ExternalServicedAsm from .external_serviced_database import ExternalServicedDatabase from .external_storage_grid_discovery_summary import ExternalStorageGridDiscoverySummary @@ -277,6 +300,7 @@ from .load_sql_plan_baselines_from_awr_details import LoadSqlPlanBaselinesFromAwrDetails from .load_sql_plan_baselines_from_cursor_cache_details import LoadSqlPlanBaselinesFromCursorCacheDetails from .load_sql_tuning_set_details import LoadSqlTuningSetDetails +from .macs_connector_details import MacsConnectorDetails from .managed_database import ManagedDatabase from .managed_database_collection import ManagedDatabaseCollection from .managed_database_credential import ManagedDatabaseCredential @@ -295,6 +319,8 @@ from .metric_statistics_definition import MetricStatisticsDefinition from .metrics_aggregation_range import MetricsAggregationRange from .metrics_aggregation_range_collection import MetricsAggregationRangeCollection +from .modify_database_management_feature_details import ModifyDatabaseManagementFeatureDetails +from .modify_pluggable_database_management_feature_details import ModifyPluggableDatabaseManagementFeatureDetails from .modify_snapshot_settings_details import ModifySnapshotSettingsDetails from .my_sql_configuration_data_collection import MySqlConfigurationDataCollection from .my_sql_configuration_data_summary import MySqlConfigurationDataSummary @@ -338,6 +364,7 @@ from .preferred_credential import PreferredCredential from .preferred_credential_collection import PreferredCredentialCollection from .preferred_credential_summary import PreferredCredentialSummary +from .private_end_point_connector_details import PrivateEndPointConnectorDetails from .proxied_for_user_collection import ProxiedForUserCollection from .proxied_for_user_summary import ProxiedForUserSummary from .proxy_user_collection import ProxyUserCollection @@ -521,6 +548,7 @@ "AwrDbWaitEventCollection": AwrDbWaitEventCollection, "AwrDbWaitEventSummary": AwrDbWaitEventSummary, "AwrQueryResult": AwrQueryResult, + "BasicDatabaseConnectionStringDetails": BasicDatabaseConnectionStringDetails, "BasicNamedCredentialContent": BasicNamedCredentialContent, "BasicPreferredCredential": BasicPreferredCredential, "ChangeDatabaseParameterDetails": ChangeDatabaseParameterDetails, @@ -539,6 +567,7 @@ "ClusterCacheMetric": ClusterCacheMetric, "ConfigureAutomaticCaptureFiltersDetails": ConfigureAutomaticCaptureFiltersDetails, "ConfigureAutomaticSpmEvolveAdvisorTaskDetails": ConfigureAutomaticSpmEvolveAdvisorTaskDetails, + "ConnectorDetails": ConnectorDetails, "ConsumerGroupPrivilegeCollection": ConsumerGroupPrivilegeCollection, "ConsumerGroupPrivilegeSummary": ConsumerGroupPrivilegeSummary, "CpuUtilizationAggregateMetrics": CpuUtilizationAggregateMetrics, @@ -562,9 +591,15 @@ "DatabaseConnectionCredentailsByName": DatabaseConnectionCredentailsByName, "DatabaseConnectionCredentials": DatabaseConnectionCredentials, "DatabaseConnectionCredentialsByDetails": DatabaseConnectionCredentialsByDetails, + "DatabaseConnectionDetails": DatabaseConnectionDetails, "DatabaseConnectionString": DatabaseConnectionString, + "DatabaseConnectionStringDetails": DatabaseConnectionStringDetails, "DatabaseCredentialDetails": DatabaseCredentialDetails, "DatabaseCredentials": DatabaseCredentials, + "DatabaseDiagnosticsAndManagementFeatureConfiguration": DatabaseDiagnosticsAndManagementFeatureConfiguration, + "DatabaseDiagnosticsAndManagementFeatureDetails": DatabaseDiagnosticsAndManagementFeatureDetails, + "DatabaseFeatureConfiguration": DatabaseFeatureConfiguration, + "DatabaseFeatureDetails": DatabaseFeatureDetails, "DatabaseFleetHealthMetrics": DatabaseFleetHealthMetrics, "DatabaseHomeMetricDefinition": DatabaseHomeMetricDefinition, "DatabaseHomeMetrics": DatabaseHomeMetrics, @@ -591,7 +626,12 @@ "DbmResource": DbmResource, "DisableAutomaticInitialPlanCaptureDetails": DisableAutomaticInitialPlanCaptureDetails, "DisableAutomaticSpmEvolveAdvisorTaskDetails": DisableAutomaticSpmEvolveAdvisorTaskDetails, + "DisableDatabaseManagementFeatureDetails": DisableDatabaseManagementFeatureDetails, + "DisableExternalContainerDatabaseManagementFeatureDetails": DisableExternalContainerDatabaseManagementFeatureDetails, + "DisableExternalNonContainerDatabaseManagementFeatureDetails": DisableExternalNonContainerDatabaseManagementFeatureDetails, + "DisableExternalPluggableDatabaseManagementFeatureDetails": DisableExternalPluggableDatabaseManagementFeatureDetails, "DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails": DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails, + "DisablePluggableDatabaseManagementFeatureDetails": DisablePluggableDatabaseManagementFeatureDetails, "DisableSqlPlanBaselinesUsageDetails": DisableSqlPlanBaselinesUsageDetails, "DiscoverExternalExadataInfrastructureDetails": DiscoverExternalExadataInfrastructureDetails, "DiscoveredExternalAsm": DiscoveredExternalAsm, @@ -611,10 +651,15 @@ "DropTablespaceDetails": DropTablespaceDetails, "EnableAutomaticInitialPlanCaptureDetails": EnableAutomaticInitialPlanCaptureDetails, "EnableAutomaticSpmEvolveAdvisorTaskDetails": EnableAutomaticSpmEvolveAdvisorTaskDetails, + "EnableDatabaseManagementFeatureDetails": EnableDatabaseManagementFeatureDetails, + "EnableExternalContainerDatabaseManagementFeatureDetails": EnableExternalContainerDatabaseManagementFeatureDetails, "EnableExternalDbSystemDatabaseManagementDetails": EnableExternalDbSystemDatabaseManagementDetails, "EnableExternalDbSystemStackMonitoringDetails": EnableExternalDbSystemStackMonitoringDetails, "EnableExternalExadataInfrastructureManagementDetails": EnableExternalExadataInfrastructureManagementDetails, + "EnableExternalNonContainerDatabaseManagementFeatureDetails": EnableExternalNonContainerDatabaseManagementFeatureDetails, + "EnableExternalPluggableDatabaseManagementFeatureDetails": EnableExternalPluggableDatabaseManagementFeatureDetails, "EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails": EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails, + "EnablePluggableDatabaseManagementFeatureDetails": EnablePluggableDatabaseManagementFeatureDetails, "EnableSqlPlanBaselinesUsageDetails": EnableSqlPlanBaselinesUsageDetails, "EntityDiscovered": EntityDiscovered, "ExecutionPlanStatsComparision": ExecutionPlanStatsComparision, @@ -641,8 +686,11 @@ "ExternalClusterScanListenerConfiguration": ExternalClusterScanListenerConfiguration, "ExternalClusterSummary": ExternalClusterSummary, "ExternalClusterVipConfiguration": ExternalClusterVipConfiguration, + "ExternalConnectorDetails": ExternalConnectorDetails, "ExternalDatabaseCollection": ExternalDatabaseCollection, "ExternalDatabaseConnectionInfo": ExternalDatabaseConnectionInfo, + "ExternalDatabaseDiagnosticsAndManagementFeatureDetails": ExternalDatabaseDiagnosticsAndManagementFeatureDetails, + "ExternalDatabaseFeatureDetails": ExternalDatabaseFeatureDetails, "ExternalDatabaseInstance": ExternalDatabaseInstance, "ExternalDatabaseSummary": ExternalDatabaseSummary, "ExternalDatabaseSystemDiscoverySummary": ExternalDatabaseSystemDiscoverySummary, @@ -694,6 +742,8 @@ "ExternalListenerSummary": ExternalListenerSummary, "ExternalListenerTcpEndpoint": ExternalListenerTcpEndpoint, "ExternalListenerTcpsEndpoint": ExternalListenerTcpsEndpoint, + "ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails": ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails, + "ExternalPluggableDatabaseFeatureDetails": ExternalPluggableDatabaseFeatureDetails, "ExternalServicedAsm": ExternalServicedAsm, "ExternalServicedDatabase": ExternalServicedDatabase, "ExternalStorageGridDiscoverySummary": ExternalStorageGridDiscoverySummary, @@ -739,6 +789,7 @@ "LoadSqlPlanBaselinesFromAwrDetails": LoadSqlPlanBaselinesFromAwrDetails, "LoadSqlPlanBaselinesFromCursorCacheDetails": LoadSqlPlanBaselinesFromCursorCacheDetails, "LoadSqlTuningSetDetails": LoadSqlTuningSetDetails, + "MacsConnectorDetails": MacsConnectorDetails, "ManagedDatabase": ManagedDatabase, "ManagedDatabaseCollection": ManagedDatabaseCollection, "ManagedDatabaseCredential": ManagedDatabaseCredential, @@ -757,6 +808,8 @@ "MetricStatisticsDefinition": MetricStatisticsDefinition, "MetricsAggregationRange": MetricsAggregationRange, "MetricsAggregationRangeCollection": MetricsAggregationRangeCollection, + "ModifyDatabaseManagementFeatureDetails": ModifyDatabaseManagementFeatureDetails, + "ModifyPluggableDatabaseManagementFeatureDetails": ModifyPluggableDatabaseManagementFeatureDetails, "ModifySnapshotSettingsDetails": ModifySnapshotSettingsDetails, "MySqlConfigurationDataCollection": MySqlConfigurationDataCollection, "MySqlConfigurationDataSummary": MySqlConfigurationDataSummary, @@ -800,6 +853,7 @@ "PreferredCredential": PreferredCredential, "PreferredCredentialCollection": PreferredCredentialCollection, "PreferredCredentialSummary": PreferredCredentialSummary, + "PrivateEndPointConnectorDetails": PrivateEndPointConnectorDetails, "ProxiedForUserCollection": ProxiedForUserCollection, "ProxiedForUserSummary": ProxiedForUserSummary, "ProxyUserCollection": ProxyUserCollection, diff --git a/src/oci/database_management/models/basic_database_connection_string_details.py b/src/oci/database_management/models/basic_database_connection_string_details.py new file mode 100644 index 0000000000..6be43c7a18 --- /dev/null +++ b/src/oci/database_management/models/basic_database_connection_string_details.py @@ -0,0 +1,160 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .database_connection_string_details import DatabaseConnectionStringDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class BasicDatabaseConnectionStringDetails(DatabaseConnectionStringDetails): + """ + The details of the Oracle Database basic connection string. + """ + + #: A constant which can be used with the protocol property of a BasicDatabaseConnectionStringDetails. + #: This constant has a value of "TCP" + PROTOCOL_TCP = "TCP" + + #: A constant which can be used with the protocol property of a BasicDatabaseConnectionStringDetails. + #: This constant has a value of "TCPS" + PROTOCOL_TCPS = "TCPS" + + def __init__(self, **kwargs): + """ + Initializes a new BasicDatabaseConnectionStringDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.BasicDatabaseConnectionStringDetails.connection_type` attribute + of this class is ``BASIC`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connection_type: + The value to assign to the connection_type property of this BasicDatabaseConnectionStringDetails. + Allowed values for this property are: "BASIC" + :type connection_type: str + + :param service: + The value to assign to the service property of this BasicDatabaseConnectionStringDetails. + :type service: str + + :param port: + The value to assign to the port property of this BasicDatabaseConnectionStringDetails. + :type port: int + + :param protocol: + The value to assign to the protocol property of this BasicDatabaseConnectionStringDetails. + Allowed values for this property are: "TCP", "TCPS" + :type protocol: str + + """ + self.swagger_types = { + 'connection_type': 'str', + 'service': 'str', + 'port': 'int', + 'protocol': 'str' + } + + self.attribute_map = { + 'connection_type': 'connectionType', + 'service': 'service', + 'port': 'port', + 'protocol': 'protocol' + } + + self._connection_type = None + self._service = None + self._port = None + self._protocol = None + self._connection_type = 'BASIC' + + @property + def service(self): + """ + **[Required]** Gets the service of this BasicDatabaseConnectionStringDetails. + The service name of the database. + + + :return: The service of this BasicDatabaseConnectionStringDetails. + :rtype: str + """ + return self._service + + @service.setter + def service(self, service): + """ + Sets the service of this BasicDatabaseConnectionStringDetails. + The service name of the database. + + + :param service: The service of this BasicDatabaseConnectionStringDetails. + :type: str + """ + self._service = service + + @property + def port(self): + """ + **[Required]** Gets the port of this BasicDatabaseConnectionStringDetails. + The port number used to connect to the database. + + + :return: The port of this BasicDatabaseConnectionStringDetails. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this BasicDatabaseConnectionStringDetails. + The port number used to connect to the database. + + + :param port: The port of this BasicDatabaseConnectionStringDetails. + :type: int + """ + self._port = port + + @property + def protocol(self): + """ + **[Required]** Gets the protocol of this BasicDatabaseConnectionStringDetails. + The protocol used to connect to the database. + + Allowed values for this property are: "TCP", "TCPS" + + + :return: The protocol of this BasicDatabaseConnectionStringDetails. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this BasicDatabaseConnectionStringDetails. + The protocol used to connect to the database. + + + :param protocol: The protocol of this BasicDatabaseConnectionStringDetails. + :type: str + """ + allowed_values = ["TCP", "TCPS"] + if not value_allowed_none_or_none_sentinel(protocol, allowed_values): + raise ValueError( + f"Invalid value for `protocol`, must be None or one of {allowed_values}" + ) + self._protocol = protocol + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/child_database.py b/src/oci/database_management/models/child_database.py index b3593e44cb..1fec1420f7 100644 --- a/src/oci/database_management/models/child_database.py +++ b/src/oci/database_management/models/child_database.py @@ -152,6 +152,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ChildDatabase. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ChildDatabase. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -163,7 +167,8 @@ def __init__(self, **kwargs): 'database_sub_type': 'str', 'time_added': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -176,7 +181,8 @@ def __init__(self, **kwargs): 'database_sub_type': 'databaseSubType', 'time_added': 'timeAdded', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -189,6 +195,7 @@ def __init__(self, **kwargs): self._time_added = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -480,6 +487,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ChildDatabase. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ChildDatabase. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ChildDatabase. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ChildDatabase. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/connector_details.py b/src/oci/database_management/models/connector_details.py new file mode 100644 index 0000000000..403da025f1 --- /dev/null +++ b/src/oci/database_management/models/connector_details.py @@ -0,0 +1,123 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ConnectorDetails(object): + """ + The connector details required to connect to an Oracle cloud database. + """ + + #: A constant which can be used with the connector_type property of a ConnectorDetails. + #: This constant has a value of "PE" + CONNECTOR_TYPE_PE = "PE" + + #: A constant which can be used with the connector_type property of a ConnectorDetails. + #: This constant has a value of "MACS" + CONNECTOR_TYPE_MACS = "MACS" + + #: A constant which can be used with the connector_type property of a ConnectorDetails. + #: This constant has a value of "EXTERNAL" + CONNECTOR_TYPE_EXTERNAL = "EXTERNAL" + + def __init__(self, **kwargs): + """ + Initializes a new ConnectorDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database_management.models.ExternalConnectorDetails` + * :class:`~oci.database_management.models.MacsConnectorDetails` + * :class:`~oci.database_management.models.PrivateEndPointConnectorDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connector_type: + The value to assign to the connector_type property of this ConnectorDetails. + Allowed values for this property are: "PE", "MACS", "EXTERNAL" + :type connector_type: str + + """ + self.swagger_types = { + 'connector_type': 'str' + } + + self.attribute_map = { + 'connector_type': 'connectorType' + } + + self._connector_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['connectorType'] + + if type == 'EXTERNAL': + return 'ExternalConnectorDetails' + + if type == 'MACS': + return 'MacsConnectorDetails' + + if type == 'PE': + return 'PrivateEndPointConnectorDetails' + else: + return 'ConnectorDetails' + + @property + def connector_type(self): + """ + **[Required]** Gets the connector_type of this ConnectorDetails. + The list of supported connection types: + - PE: Private endpoint + - MACS: Management agent + - EXTERNAL: External database connector + + Allowed values for this property are: "PE", "MACS", "EXTERNAL" + + + :return: The connector_type of this ConnectorDetails. + :rtype: str + """ + return self._connector_type + + @connector_type.setter + def connector_type(self, connector_type): + """ + Sets the connector_type of this ConnectorDetails. + The list of supported connection types: + - PE: Private endpoint + - MACS: Management agent + - EXTERNAL: External database connector + + + :param connector_type: The connector_type of this ConnectorDetails. + :type: str + """ + allowed_values = ["PE", "MACS", "EXTERNAL"] + if not value_allowed_none_or_none_sentinel(connector_type, allowed_values): + raise ValueError( + f"Invalid value for `connector_type`, must be None or one of {allowed_values}" + ) + self._connector_type = connector_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_connection_details.py b/src/oci/database_management/models/database_connection_details.py new file mode 100644 index 0000000000..4b55ba90a5 --- /dev/null +++ b/src/oci/database_management/models/database_connection_details.py @@ -0,0 +1,95 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseConnectionDetails(object): + """ + The connection details required to connect to the database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseConnectionDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connection_string: + The value to assign to the connection_string property of this DatabaseConnectionDetails. + :type connection_string: oci.database_management.models.DatabaseConnectionStringDetails + + :param connection_credentials: + The value to assign to the connection_credentials property of this DatabaseConnectionDetails. + :type connection_credentials: oci.database_management.models.DatabaseConnectionCredentials + + """ + self.swagger_types = { + 'connection_string': 'DatabaseConnectionStringDetails', + 'connection_credentials': 'DatabaseConnectionCredentials' + } + + self.attribute_map = { + 'connection_string': 'connectionString', + 'connection_credentials': 'connectionCredentials' + } + + self._connection_string = None + self._connection_credentials = None + + @property + def connection_string(self): + """ + **[Required]** Gets the connection_string of this DatabaseConnectionDetails. + + :return: The connection_string of this DatabaseConnectionDetails. + :rtype: oci.database_management.models.DatabaseConnectionStringDetails + """ + return self._connection_string + + @connection_string.setter + def connection_string(self, connection_string): + """ + Sets the connection_string of this DatabaseConnectionDetails. + + :param connection_string: The connection_string of this DatabaseConnectionDetails. + :type: oci.database_management.models.DatabaseConnectionStringDetails + """ + self._connection_string = connection_string + + @property + def connection_credentials(self): + """ + **[Required]** Gets the connection_credentials of this DatabaseConnectionDetails. + + :return: The connection_credentials of this DatabaseConnectionDetails. + :rtype: oci.database_management.models.DatabaseConnectionCredentials + """ + return self._connection_credentials + + @connection_credentials.setter + def connection_credentials(self, connection_credentials): + """ + Sets the connection_credentials of this DatabaseConnectionDetails. + + :param connection_credentials: The connection_credentials of this DatabaseConnectionDetails. + :type: oci.database_management.models.DatabaseConnectionCredentials + """ + self._connection_credentials = connection_credentials + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_connection_string_details.py b/src/oci/database_management/models/database_connection_string_details.py new file mode 100644 index 0000000000..ebadc20012 --- /dev/null +++ b/src/oci/database_management/models/database_connection_string_details.py @@ -0,0 +1,103 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseConnectionStringDetails(object): + """ + The details of the Oracle Database connection string. + """ + + #: A constant which can be used with the connection_type property of a DatabaseConnectionStringDetails. + #: This constant has a value of "BASIC" + CONNECTION_TYPE_BASIC = "BASIC" + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseConnectionStringDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database_management.models.BasicDatabaseConnectionStringDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connection_type: + The value to assign to the connection_type property of this DatabaseConnectionStringDetails. + Allowed values for this property are: "BASIC" + :type connection_type: str + + """ + self.swagger_types = { + 'connection_type': 'str' + } + + self.attribute_map = { + 'connection_type': 'connectionType' + } + + self._connection_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['connectionType'] + + if type == 'BASIC': + return 'BasicDatabaseConnectionStringDetails' + else: + return 'DatabaseConnectionStringDetails' + + @property + def connection_type(self): + """ + **[Required]** Gets the connection_type of this DatabaseConnectionStringDetails. + The list of supported connection types: + - BASIC: Basic connection details + + Allowed values for this property are: "BASIC" + + + :return: The connection_type of this DatabaseConnectionStringDetails. + :rtype: str + """ + return self._connection_type + + @connection_type.setter + def connection_type(self, connection_type): + """ + Sets the connection_type of this DatabaseConnectionStringDetails. + The list of supported connection types: + - BASIC: Basic connection details + + + :param connection_type: The connection_type of this DatabaseConnectionStringDetails. + :type: str + """ + allowed_values = ["BASIC"] + if not value_allowed_none_or_none_sentinel(connection_type, allowed_values): + raise ValueError( + f"Invalid value for `connection_type`, must be None or one of {allowed_values}" + ) + self._connection_type = connection_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_diagnostics_and_management_feature_configuration.py b/src/oci/database_management/models/database_diagnostics_and_management_feature_configuration.py new file mode 100644 index 0000000000..7f0f245779 --- /dev/null +++ b/src/oci/database_management/models/database_diagnostics_and_management_feature_configuration.py @@ -0,0 +1,120 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .database_feature_configuration import DatabaseFeatureConfiguration +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseDiagnosticsAndManagementFeatureConfiguration(DatabaseFeatureConfiguration): + """ + The details required to enable the Diagnostics and Management feature. + """ + + #: A constant which can be used with the license_model property of a DatabaseDiagnosticsAndManagementFeatureConfiguration. + #: This constant has a value of "LICENSE_INCLUDED" + LICENSE_MODEL_LICENSE_INCLUDED = "LICENSE_INCLUDED" + + #: A constant which can be used with the license_model property of a DatabaseDiagnosticsAndManagementFeatureConfiguration. + #: This constant has a value of "BRING_YOUR_OWN_LICENSE" + LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseDiagnosticsAndManagementFeatureConfiguration object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureConfiguration.feature` attribute + of this class is ``DIAGNOSTICS_AND_MANAGEMENT`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + :param feature_status: + The value to assign to the feature_status property of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + Allowed values for this property are: "ENABLED", "NOT_ENABLED", "UNSUPPORTED", "FAILED_ENABLING", "FAILED_DISABLING", "FAILED", "ENABLED_WITH_WARNINGS", "PENDING_DISABLE", "ENABLING", "DISABLING" + :type feature_status: str + + :param connector_details: + The value to assign to the connector_details property of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + :type connector_details: oci.database_management.models.ConnectorDetails + + :param database_connection_details: + The value to assign to the database_connection_details property of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + :type database_connection_details: oci.database_management.models.DatabaseConnectionDetails + + :param license_model: + The value to assign to the license_model property of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE" + :type license_model: str + + """ + self.swagger_types = { + 'feature': 'str', + 'feature_status': 'str', + 'connector_details': 'ConnectorDetails', + 'database_connection_details': 'DatabaseConnectionDetails', + 'license_model': 'str' + } + + self.attribute_map = { + 'feature': 'feature', + 'feature_status': 'featureStatus', + 'connector_details': 'connectorDetails', + 'database_connection_details': 'databaseConnectionDetails', + 'license_model': 'licenseModel' + } + + self._feature = None + self._feature_status = None + self._connector_details = None + self._database_connection_details = None + self._license_model = None + self._feature = 'DIAGNOSTICS_AND_MANAGEMENT' + + @property + def license_model(self): + """ + Gets the license_model of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + The Oracle license model that applies to the external database. + + Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE" + + + :return: The license_model of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + :rtype: str + """ + return self._license_model + + @license_model.setter + def license_model(self, license_model): + """ + Sets the license_model of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + The Oracle license model that applies to the external database. + + + :param license_model: The license_model of this DatabaseDiagnosticsAndManagementFeatureConfiguration. + :type: str + """ + allowed_values = ["LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"] + if not value_allowed_none_or_none_sentinel(license_model, allowed_values): + raise ValueError( + f"Invalid value for `license_model`, must be None or one of {allowed_values}" + ) + self._license_model = license_model + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_diagnostics_and_management_feature_details.py b/src/oci/database_management/models/database_diagnostics_and_management_feature_details.py new file mode 100644 index 0000000000..8eb8aa864f --- /dev/null +++ b/src/oci/database_management/models/database_diagnostics_and_management_feature_details.py @@ -0,0 +1,143 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .database_feature_details import DatabaseFeatureDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseDiagnosticsAndManagementFeatureDetails(DatabaseFeatureDetails): + """ + The details required to enable the Diagnostics and Management feature. + """ + + #: A constant which can be used with the management_type property of a DatabaseDiagnosticsAndManagementFeatureDetails. + #: This constant has a value of "BASIC" + MANAGEMENT_TYPE_BASIC = "BASIC" + + #: A constant which can be used with the management_type property of a DatabaseDiagnosticsAndManagementFeatureDetails. + #: This constant has a value of "ADVANCED" + MANAGEMENT_TYPE_ADVANCED = "ADVANCED" + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseDiagnosticsAndManagementFeatureDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureDetails.feature` attribute + of this class is ``DIAGNOSTICS_AND_MANAGEMENT`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DatabaseDiagnosticsAndManagementFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + :param database_connection_details: + The value to assign to the database_connection_details property of this DatabaseDiagnosticsAndManagementFeatureDetails. + :type database_connection_details: oci.database_management.models.DatabaseConnectionDetails + + :param connector_details: + The value to assign to the connector_details property of this DatabaseDiagnosticsAndManagementFeatureDetails. + :type connector_details: oci.database_management.models.ConnectorDetails + + :param management_type: + The value to assign to the management_type property of this DatabaseDiagnosticsAndManagementFeatureDetails. + Allowed values for this property are: "BASIC", "ADVANCED" + :type management_type: str + + :param is_auto_enable_pluggable_database: + The value to assign to the is_auto_enable_pluggable_database property of this DatabaseDiagnosticsAndManagementFeatureDetails. + :type is_auto_enable_pluggable_database: bool + + """ + self.swagger_types = { + 'feature': 'str', + 'database_connection_details': 'DatabaseConnectionDetails', + 'connector_details': 'ConnectorDetails', + 'management_type': 'str', + 'is_auto_enable_pluggable_database': 'bool' + } + + self.attribute_map = { + 'feature': 'feature', + 'database_connection_details': 'databaseConnectionDetails', + 'connector_details': 'connectorDetails', + 'management_type': 'managementType', + 'is_auto_enable_pluggable_database': 'isAutoEnablePluggableDatabase' + } + + self._feature = None + self._database_connection_details = None + self._connector_details = None + self._management_type = None + self._is_auto_enable_pluggable_database = None + self._feature = 'DIAGNOSTICS_AND_MANAGEMENT' + + @property + def management_type(self): + """ + **[Required]** Gets the management_type of this DatabaseDiagnosticsAndManagementFeatureDetails. + The management type for the database. + + Allowed values for this property are: "BASIC", "ADVANCED" + + + :return: The management_type of this DatabaseDiagnosticsAndManagementFeatureDetails. + :rtype: str + """ + return self._management_type + + @management_type.setter + def management_type(self, management_type): + """ + Sets the management_type of this DatabaseDiagnosticsAndManagementFeatureDetails. + The management type for the database. + + + :param management_type: The management_type of this DatabaseDiagnosticsAndManagementFeatureDetails. + :type: str + """ + allowed_values = ["BASIC", "ADVANCED"] + if not value_allowed_none_or_none_sentinel(management_type, allowed_values): + raise ValueError( + f"Invalid value for `management_type`, must be None or one of {allowed_values}" + ) + self._management_type = management_type + + @property + def is_auto_enable_pluggable_database(self): + """ + Gets the is_auto_enable_pluggable_database of this DatabaseDiagnosticsAndManagementFeatureDetails. + Indicates whether the pluggable database can be enabled automatically. + + + :return: The is_auto_enable_pluggable_database of this DatabaseDiagnosticsAndManagementFeatureDetails. + :rtype: bool + """ + return self._is_auto_enable_pluggable_database + + @is_auto_enable_pluggable_database.setter + def is_auto_enable_pluggable_database(self, is_auto_enable_pluggable_database): + """ + Sets the is_auto_enable_pluggable_database of this DatabaseDiagnosticsAndManagementFeatureDetails. + Indicates whether the pluggable database can be enabled automatically. + + + :param is_auto_enable_pluggable_database: The is_auto_enable_pluggable_database of this DatabaseDiagnosticsAndManagementFeatureDetails. + :type: bool + """ + self._is_auto_enable_pluggable_database = is_auto_enable_pluggable_database + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_feature_configuration.py b/src/oci/database_management/models/database_feature_configuration.py new file mode 100644 index 0000000000..741a397b30 --- /dev/null +++ b/src/oci/database_management/models/database_feature_configuration.py @@ -0,0 +1,234 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseFeatureConfiguration(object): + """ + The details of an external database feature configuration. + """ + + #: A constant which can be used with the feature property of a DatabaseFeatureConfiguration. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "ENABLED" + FEATURE_STATUS_ENABLED = "ENABLED" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "NOT_ENABLED" + FEATURE_STATUS_NOT_ENABLED = "NOT_ENABLED" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "UNSUPPORTED" + FEATURE_STATUS_UNSUPPORTED = "UNSUPPORTED" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "FAILED_ENABLING" + FEATURE_STATUS_FAILED_ENABLING = "FAILED_ENABLING" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "FAILED_DISABLING" + FEATURE_STATUS_FAILED_DISABLING = "FAILED_DISABLING" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "FAILED" + FEATURE_STATUS_FAILED = "FAILED" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "ENABLED_WITH_WARNINGS" + FEATURE_STATUS_ENABLED_WITH_WARNINGS = "ENABLED_WITH_WARNINGS" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "PENDING_DISABLE" + FEATURE_STATUS_PENDING_DISABLE = "PENDING_DISABLE" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "ENABLING" + FEATURE_STATUS_ENABLING = "ENABLING" + + #: A constant which can be used with the feature_status property of a DatabaseFeatureConfiguration. + #: This constant has a value of "DISABLING" + FEATURE_STATUS_DISABLING = "DISABLING" + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseFeatureConfiguration object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureConfiguration` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DatabaseFeatureConfiguration. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + :param feature_status: + The value to assign to the feature_status property of this DatabaseFeatureConfiguration. + Allowed values for this property are: "ENABLED", "NOT_ENABLED", "UNSUPPORTED", "FAILED_ENABLING", "FAILED_DISABLING", "FAILED", "ENABLED_WITH_WARNINGS", "PENDING_DISABLE", "ENABLING", "DISABLING" + :type feature_status: str + + :param connector_details: + The value to assign to the connector_details property of this DatabaseFeatureConfiguration. + :type connector_details: oci.database_management.models.ConnectorDetails + + :param database_connection_details: + The value to assign to the database_connection_details property of this DatabaseFeatureConfiguration. + :type database_connection_details: oci.database_management.models.DatabaseConnectionDetails + + """ + self.swagger_types = { + 'feature': 'str', + 'feature_status': 'str', + 'connector_details': 'ConnectorDetails', + 'database_connection_details': 'DatabaseConnectionDetails' + } + + self.attribute_map = { + 'feature': 'feature', + 'feature_status': 'featureStatus', + 'connector_details': 'connectorDetails', + 'database_connection_details': 'databaseConnectionDetails' + } + + self._feature = None + self._feature_status = None + self._connector_details = None + self._database_connection_details = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['feature'] + + if type == 'DIAGNOSTICS_AND_MANAGEMENT': + return 'DatabaseDiagnosticsAndManagementFeatureConfiguration' + else: + return 'DatabaseFeatureConfiguration' + + @property + def feature(self): + """ + **[Required]** Gets the feature of this DatabaseFeatureConfiguration. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this DatabaseFeatureConfiguration. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this DatabaseFeatureConfiguration. + The name of the Database Management feature. + + + :param feature: The feature of this DatabaseFeatureConfiguration. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + @property + def feature_status(self): + """ + **[Required]** Gets the feature_status of this DatabaseFeatureConfiguration. + The list of statuses for Database Management features. + + Allowed values for this property are: "ENABLED", "NOT_ENABLED", "UNSUPPORTED", "FAILED_ENABLING", "FAILED_DISABLING", "FAILED", "ENABLED_WITH_WARNINGS", "PENDING_DISABLE", "ENABLING", "DISABLING" + + + :return: The feature_status of this DatabaseFeatureConfiguration. + :rtype: str + """ + return self._feature_status + + @feature_status.setter + def feature_status(self, feature_status): + """ + Sets the feature_status of this DatabaseFeatureConfiguration. + The list of statuses for Database Management features. + + + :param feature_status: The feature_status of this DatabaseFeatureConfiguration. + :type: str + """ + allowed_values = ["ENABLED", "NOT_ENABLED", "UNSUPPORTED", "FAILED_ENABLING", "FAILED_DISABLING", "FAILED", "ENABLED_WITH_WARNINGS", "PENDING_DISABLE", "ENABLING", "DISABLING"] + if not value_allowed_none_or_none_sentinel(feature_status, allowed_values): + raise ValueError( + f"Invalid value for `feature_status`, must be None or one of {allowed_values}" + ) + self._feature_status = feature_status + + @property + def connector_details(self): + """ + Gets the connector_details of this DatabaseFeatureConfiguration. + + :return: The connector_details of this DatabaseFeatureConfiguration. + :rtype: oci.database_management.models.ConnectorDetails + """ + return self._connector_details + + @connector_details.setter + def connector_details(self, connector_details): + """ + Sets the connector_details of this DatabaseFeatureConfiguration. + + :param connector_details: The connector_details of this DatabaseFeatureConfiguration. + :type: oci.database_management.models.ConnectorDetails + """ + self._connector_details = connector_details + + @property + def database_connection_details(self): + """ + Gets the database_connection_details of this DatabaseFeatureConfiguration. + + :return: The database_connection_details of this DatabaseFeatureConfiguration. + :rtype: oci.database_management.models.DatabaseConnectionDetails + """ + return self._database_connection_details + + @database_connection_details.setter + def database_connection_details(self, database_connection_details): + """ + Sets the database_connection_details of this DatabaseFeatureConfiguration. + + :param database_connection_details: The database_connection_details of this DatabaseFeatureConfiguration. + :type: oci.database_management.models.DatabaseConnectionDetails + """ + self._database_connection_details = database_connection_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_feature_details.py b/src/oci/database_management/models/database_feature_details.py new file mode 100644 index 0000000000..6d2ccf1809 --- /dev/null +++ b/src/oci/database_management/models/database_feature_details.py @@ -0,0 +1,155 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseFeatureDetails(object): + """ + The details required to enable the specified Database Management feature. + """ + + #: A constant which can be used with the feature property of a DatabaseFeatureDetails. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseFeatureDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database_management.models.DatabaseDiagnosticsAndManagementFeatureDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DatabaseFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + :param database_connection_details: + The value to assign to the database_connection_details property of this DatabaseFeatureDetails. + :type database_connection_details: oci.database_management.models.DatabaseConnectionDetails + + :param connector_details: + The value to assign to the connector_details property of this DatabaseFeatureDetails. + :type connector_details: oci.database_management.models.ConnectorDetails + + """ + self.swagger_types = { + 'feature': 'str', + 'database_connection_details': 'DatabaseConnectionDetails', + 'connector_details': 'ConnectorDetails' + } + + self.attribute_map = { + 'feature': 'feature', + 'database_connection_details': 'databaseConnectionDetails', + 'connector_details': 'connectorDetails' + } + + self._feature = None + self._database_connection_details = None + self._connector_details = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['feature'] + + if type == 'DIAGNOSTICS_AND_MANAGEMENT': + return 'DatabaseDiagnosticsAndManagementFeatureDetails' + else: + return 'DatabaseFeatureDetails' + + @property + def feature(self): + """ + **[Required]** Gets the feature of this DatabaseFeatureDetails. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this DatabaseFeatureDetails. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this DatabaseFeatureDetails. + The name of the Database Management feature. + + + :param feature: The feature of this DatabaseFeatureDetails. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + @property + def database_connection_details(self): + """ + **[Required]** Gets the database_connection_details of this DatabaseFeatureDetails. + + :return: The database_connection_details of this DatabaseFeatureDetails. + :rtype: oci.database_management.models.DatabaseConnectionDetails + """ + return self._database_connection_details + + @database_connection_details.setter + def database_connection_details(self, database_connection_details): + """ + Sets the database_connection_details of this DatabaseFeatureDetails. + + :param database_connection_details: The database_connection_details of this DatabaseFeatureDetails. + :type: oci.database_management.models.DatabaseConnectionDetails + """ + self._database_connection_details = database_connection_details + + @property + def connector_details(self): + """ + **[Required]** Gets the connector_details of this DatabaseFeatureDetails. + + :return: The connector_details of this DatabaseFeatureDetails. + :rtype: oci.database_management.models.ConnectorDetails + """ + return self._connector_details + + @connector_details.setter + def connector_details(self, connector_details): + """ + Sets the connector_details of this DatabaseFeatureDetails. + + :param connector_details: The connector_details of this DatabaseFeatureDetails. + :type: oci.database_management.models.ConnectorDetails + """ + self._connector_details = connector_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/db_management_private_endpoint.py b/src/oci/database_management/models/db_management_private_endpoint.py index d2cc9f2f5d..bb0b79dfa7 100644 --- a/src/oci/database_management/models/db_management_private_endpoint.py +++ b/src/oci/database_management/models/db_management_private_endpoint.py @@ -98,6 +98,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this DbManagementPrivateEndpoint. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this DbManagementPrivateEndpoint. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -112,7 +116,8 @@ def __init__(self, **kwargs): 'lifecycle_state': 'str', 'nsg_ids': 'list[str]', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -128,7 +133,8 @@ def __init__(self, **kwargs): 'lifecycle_state': 'lifecycleState', 'nsg_ids': 'nsgIds', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -144,6 +150,7 @@ def __init__(self, **kwargs): self._nsg_ids = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -499,6 +506,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this DbManagementPrivateEndpoint. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this DbManagementPrivateEndpoint. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this DbManagementPrivateEndpoint. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this DbManagementPrivateEndpoint. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/db_management_private_endpoint_summary.py b/src/oci/database_management/models/db_management_private_endpoint_summary.py index 4fcba9a741..2c111ab430 100644 --- a/src/oci/database_management/models/db_management_private_endpoint_summary.py +++ b/src/oci/database_management/models/db_management_private_endpoint_summary.py @@ -86,6 +86,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this DbManagementPrivateEndpointSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this DbManagementPrivateEndpointSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -97,7 +101,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'lifecycle_state': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -110,7 +115,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'lifecycle_state': 'lifecycleState', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -123,6 +129,7 @@ def __init__(self, **kwargs): self._lifecycle_state = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -406,6 +413,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this DbManagementPrivateEndpointSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this DbManagementPrivateEndpointSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this DbManagementPrivateEndpointSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this DbManagementPrivateEndpointSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/disable_database_management_feature_details.py b/src/oci/database_management/models/disable_database_management_feature_details.py new file mode 100644 index 0000000000..72c30acb78 --- /dev/null +++ b/src/oci/database_management/models/disable_database_management_feature_details.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DisableDatabaseManagementFeatureDetails(object): + """ + The details required to disable Database Management features for an Oracle cloud database. + """ + + #: A constant which can be used with the feature property of a DisableDatabaseManagementFeatureDetails. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + def __init__(self, **kwargs): + """ + Initializes a new DisableDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DisableDatabaseManagementFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + """ + self.swagger_types = { + 'feature': 'str' + } + + self.attribute_map = { + 'feature': 'feature' + } + + self._feature = None + + @property + def feature(self): + """ + **[Required]** Gets the feature of this DisableDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this DisableDatabaseManagementFeatureDetails. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this DisableDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + + :param feature: The feature of this DisableDatabaseManagementFeatureDetails. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/disable_external_container_database_management_feature_details.py b/src/oci/database_management/models/disable_external_container_database_management_feature_details.py new file mode 100644 index 0000000000..173a820634 --- /dev/null +++ b/src/oci/database_management/models/disable_external_container_database_management_feature_details.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DisableExternalContainerDatabaseManagementFeatureDetails(object): + """ + The details required to disable a Database Management feature for an external container database. + """ + + #: A constant which can be used with the feature property of a DisableExternalContainerDatabaseManagementFeatureDetails. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + def __init__(self, **kwargs): + """ + Initializes a new DisableExternalContainerDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DisableExternalContainerDatabaseManagementFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + """ + self.swagger_types = { + 'feature': 'str' + } + + self.attribute_map = { + 'feature': 'feature' + } + + self._feature = None + + @property + def feature(self): + """ + **[Required]** Gets the feature of this DisableExternalContainerDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this DisableExternalContainerDatabaseManagementFeatureDetails. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this DisableExternalContainerDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + + :param feature: The feature of this DisableExternalContainerDatabaseManagementFeatureDetails. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/disable_external_non_container_database_management_feature_details.py b/src/oci/database_management/models/disable_external_non_container_database_management_feature_details.py new file mode 100644 index 0000000000..7c53e7a055 --- /dev/null +++ b/src/oci/database_management/models/disable_external_non_container_database_management_feature_details.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DisableExternalNonContainerDatabaseManagementFeatureDetails(object): + """ + The details required to disable a Database Management feature for an external non-container database. + """ + + #: A constant which can be used with the feature property of a DisableExternalNonContainerDatabaseManagementFeatureDetails. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + def __init__(self, **kwargs): + """ + Initializes a new DisableExternalNonContainerDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DisableExternalNonContainerDatabaseManagementFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + """ + self.swagger_types = { + 'feature': 'str' + } + + self.attribute_map = { + 'feature': 'feature' + } + + self._feature = None + + @property + def feature(self): + """ + **[Required]** Gets the feature of this DisableExternalNonContainerDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this DisableExternalNonContainerDatabaseManagementFeatureDetails. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this DisableExternalNonContainerDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + + :param feature: The feature of this DisableExternalNonContainerDatabaseManagementFeatureDetails. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/disable_external_pluggable_database_management_feature_details.py b/src/oci/database_management/models/disable_external_pluggable_database_management_feature_details.py new file mode 100644 index 0000000000..64977391bf --- /dev/null +++ b/src/oci/database_management/models/disable_external_pluggable_database_management_feature_details.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DisableExternalPluggableDatabaseManagementFeatureDetails(object): + """ + The details required to disable a Database Management feature for an external pluggable database. + """ + + #: A constant which can be used with the feature property of a DisableExternalPluggableDatabaseManagementFeatureDetails. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + def __init__(self, **kwargs): + """ + Initializes a new DisableExternalPluggableDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DisableExternalPluggableDatabaseManagementFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + """ + self.swagger_types = { + 'feature': 'str' + } + + self.attribute_map = { + 'feature': 'feature' + } + + self._feature = None + + @property + def feature(self): + """ + **[Required]** Gets the feature of this DisableExternalPluggableDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this DisableExternalPluggableDatabaseManagementFeatureDetails. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this DisableExternalPluggableDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + + :param feature: The feature of this DisableExternalPluggableDatabaseManagementFeatureDetails. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/disable_pluggable_database_management_feature_details.py b/src/oci/database_management/models/disable_pluggable_database_management_feature_details.py new file mode 100644 index 0000000000..d3bb34a643 --- /dev/null +++ b/src/oci/database_management/models/disable_pluggable_database_management_feature_details.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DisablePluggableDatabaseManagementFeatureDetails(object): + """ + The details required to disable a Database Management feature for an Oracle cloud pluggable database. + """ + + #: A constant which can be used with the feature property of a DisablePluggableDatabaseManagementFeatureDetails. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + def __init__(self, **kwargs): + """ + Initializes a new DisablePluggableDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this DisablePluggableDatabaseManagementFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + """ + self.swagger_types = { + 'feature': 'str' + } + + self.attribute_map = { + 'feature': 'feature' + } + + self._feature = None + + @property + def feature(self): + """ + **[Required]** Gets the feature of this DisablePluggableDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this DisablePluggableDatabaseManagementFeatureDetails. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this DisablePluggableDatabaseManagementFeatureDetails. + The name of the Database Management feature. + + + :param feature: The feature of this DisablePluggableDatabaseManagementFeatureDetails. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/enable_database_management_feature_details.py b/src/oci/database_management/models/enable_database_management_feature_details.py new file mode 100644 index 0000000000..91eb129447 --- /dev/null +++ b/src/oci/database_management/models/enable_database_management_feature_details.py @@ -0,0 +1,68 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class EnableDatabaseManagementFeatureDetails(object): + """ + The details required to enable Database Management features for an Oracle cloud database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EnableDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature_details: + The value to assign to the feature_details property of this EnableDatabaseManagementFeatureDetails. + :type feature_details: oci.database_management.models.DatabaseFeatureDetails + + """ + self.swagger_types = { + 'feature_details': 'DatabaseFeatureDetails' + } + + self.attribute_map = { + 'feature_details': 'featureDetails' + } + + self._feature_details = None + + @property + def feature_details(self): + """ + **[Required]** Gets the feature_details of this EnableDatabaseManagementFeatureDetails. + + :return: The feature_details of this EnableDatabaseManagementFeatureDetails. + :rtype: oci.database_management.models.DatabaseFeatureDetails + """ + return self._feature_details + + @feature_details.setter + def feature_details(self, feature_details): + """ + Sets the feature_details of this EnableDatabaseManagementFeatureDetails. + + :param feature_details: The feature_details of this EnableDatabaseManagementFeatureDetails. + :type: oci.database_management.models.DatabaseFeatureDetails + """ + self._feature_details = feature_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/enable_external_container_database_management_feature_details.py b/src/oci/database_management/models/enable_external_container_database_management_feature_details.py new file mode 100644 index 0000000000..9d1d7a7254 --- /dev/null +++ b/src/oci/database_management/models/enable_external_container_database_management_feature_details.py @@ -0,0 +1,68 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class EnableExternalContainerDatabaseManagementFeatureDetails(object): + """ + The details required to enable a Database Management feature for an external container database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EnableExternalContainerDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature_details: + The value to assign to the feature_details property of this EnableExternalContainerDatabaseManagementFeatureDetails. + :type feature_details: oci.database_management.models.ExternalDatabaseFeatureDetails + + """ + self.swagger_types = { + 'feature_details': 'ExternalDatabaseFeatureDetails' + } + + self.attribute_map = { + 'feature_details': 'featureDetails' + } + + self._feature_details = None + + @property + def feature_details(self): + """ + **[Required]** Gets the feature_details of this EnableExternalContainerDatabaseManagementFeatureDetails. + + :return: The feature_details of this EnableExternalContainerDatabaseManagementFeatureDetails. + :rtype: oci.database_management.models.ExternalDatabaseFeatureDetails + """ + return self._feature_details + + @feature_details.setter + def feature_details(self, feature_details): + """ + Sets the feature_details of this EnableExternalContainerDatabaseManagementFeatureDetails. + + :param feature_details: The feature_details of this EnableExternalContainerDatabaseManagementFeatureDetails. + :type: oci.database_management.models.ExternalDatabaseFeatureDetails + """ + self._feature_details = feature_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/enable_external_non_container_database_management_feature_details.py b/src/oci/database_management/models/enable_external_non_container_database_management_feature_details.py new file mode 100644 index 0000000000..ddd487289f --- /dev/null +++ b/src/oci/database_management/models/enable_external_non_container_database_management_feature_details.py @@ -0,0 +1,68 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class EnableExternalNonContainerDatabaseManagementFeatureDetails(object): + """ + The details required to enable a Database Management feature for an external non-container database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EnableExternalNonContainerDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature_details: + The value to assign to the feature_details property of this EnableExternalNonContainerDatabaseManagementFeatureDetails. + :type feature_details: oci.database_management.models.ExternalDatabaseFeatureDetails + + """ + self.swagger_types = { + 'feature_details': 'ExternalDatabaseFeatureDetails' + } + + self.attribute_map = { + 'feature_details': 'featureDetails' + } + + self._feature_details = None + + @property + def feature_details(self): + """ + **[Required]** Gets the feature_details of this EnableExternalNonContainerDatabaseManagementFeatureDetails. + + :return: The feature_details of this EnableExternalNonContainerDatabaseManagementFeatureDetails. + :rtype: oci.database_management.models.ExternalDatabaseFeatureDetails + """ + return self._feature_details + + @feature_details.setter + def feature_details(self, feature_details): + """ + Sets the feature_details of this EnableExternalNonContainerDatabaseManagementFeatureDetails. + + :param feature_details: The feature_details of this EnableExternalNonContainerDatabaseManagementFeatureDetails. + :type: oci.database_management.models.ExternalDatabaseFeatureDetails + """ + self._feature_details = feature_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/enable_external_pluggable_database_management_feature_details.py b/src/oci/database_management/models/enable_external_pluggable_database_management_feature_details.py new file mode 100644 index 0000000000..a63fd89109 --- /dev/null +++ b/src/oci/database_management/models/enable_external_pluggable_database_management_feature_details.py @@ -0,0 +1,68 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class EnableExternalPluggableDatabaseManagementFeatureDetails(object): + """ + The details required to enable a Database Management feature for an external pluggable database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EnableExternalPluggableDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature_details: + The value to assign to the feature_details property of this EnableExternalPluggableDatabaseManagementFeatureDetails. + :type feature_details: oci.database_management.models.ExternalPluggableDatabaseFeatureDetails + + """ + self.swagger_types = { + 'feature_details': 'ExternalPluggableDatabaseFeatureDetails' + } + + self.attribute_map = { + 'feature_details': 'featureDetails' + } + + self._feature_details = None + + @property + def feature_details(self): + """ + **[Required]** Gets the feature_details of this EnableExternalPluggableDatabaseManagementFeatureDetails. + + :return: The feature_details of this EnableExternalPluggableDatabaseManagementFeatureDetails. + :rtype: oci.database_management.models.ExternalPluggableDatabaseFeatureDetails + """ + return self._feature_details + + @feature_details.setter + def feature_details(self, feature_details): + """ + Sets the feature_details of this EnableExternalPluggableDatabaseManagementFeatureDetails. + + :param feature_details: The feature_details of this EnableExternalPluggableDatabaseManagementFeatureDetails. + :type: oci.database_management.models.ExternalPluggableDatabaseFeatureDetails + """ + self._feature_details = feature_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/enable_pluggable_database_management_feature_details.py b/src/oci/database_management/models/enable_pluggable_database_management_feature_details.py new file mode 100644 index 0000000000..3e210455be --- /dev/null +++ b/src/oci/database_management/models/enable_pluggable_database_management_feature_details.py @@ -0,0 +1,68 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class EnablePluggableDatabaseManagementFeatureDetails(object): + """ + The details required to enable a Database Management feature for an Oracle cloud pluggable database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EnablePluggableDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature_details: + The value to assign to the feature_details property of this EnablePluggableDatabaseManagementFeatureDetails. + :type feature_details: oci.database_management.models.DatabaseFeatureDetails + + """ + self.swagger_types = { + 'feature_details': 'DatabaseFeatureDetails' + } + + self.attribute_map = { + 'feature_details': 'featureDetails' + } + + self._feature_details = None + + @property + def feature_details(self): + """ + **[Required]** Gets the feature_details of this EnablePluggableDatabaseManagementFeatureDetails. + + :return: The feature_details of this EnablePluggableDatabaseManagementFeatureDetails. + :rtype: oci.database_management.models.DatabaseFeatureDetails + """ + return self._feature_details + + @feature_details.setter + def feature_details(self, feature_details): + """ + Sets the feature_details of this EnablePluggableDatabaseManagementFeatureDetails. + + :param feature_details: The feature_details of this EnablePluggableDatabaseManagementFeatureDetails. + :type: oci.database_management.models.DatabaseFeatureDetails + """ + self._feature_details = feature_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/external_asm.py b/src/oci/database_management/models/external_asm.py index 927aa68dc0..e9f3cb009e 100644 --- a/src/oci/database_management/models/external_asm.py +++ b/src/oci/database_management/models/external_asm.py @@ -126,6 +126,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalAsm. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalAsm. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -145,7 +149,8 @@ def __init__(self, **kwargs): 'time_updated': 'datetime', 'version': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -166,7 +171,8 @@ def __init__(self, **kwargs): 'time_updated': 'timeUpdated', 'version': 'version', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -187,6 +193,7 @@ def __init__(self, **kwargs): self._version = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -660,6 +667,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalAsm. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalAsm. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalAsm. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalAsm. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_asm_instance.py b/src/oci/database_management/models/external_asm_instance.py index fbd8de0ba7..55c9aa6e42 100644 --- a/src/oci/database_management/models/external_asm_instance.py +++ b/src/oci/database_management/models/external_asm_instance.py @@ -110,6 +110,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalAsmInstance. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalAsmInstance. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -126,7 +130,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -144,7 +149,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -162,6 +168,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -565,6 +572,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalAsmInstance. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalAsmInstance. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalAsmInstance. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalAsmInstance. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_asm_instance_summary.py b/src/oci/database_management/models/external_asm_instance_summary.py index ac179c1cef..98823eb7ef 100644 --- a/src/oci/database_management/models/external_asm_instance_summary.py +++ b/src/oci/database_management/models/external_asm_instance_summary.py @@ -80,6 +80,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalAsmInstanceSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalAsmInstanceSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -96,7 +100,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -114,7 +119,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -132,6 +138,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -529,6 +536,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalAsmInstanceSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalAsmInstanceSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalAsmInstanceSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalAsmInstanceSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_asm_summary.py b/src/oci/database_management/models/external_asm_summary.py index 4a41a776f0..a2ade2500e 100644 --- a/src/oci/database_management/models/external_asm_summary.py +++ b/src/oci/database_management/models/external_asm_summary.py @@ -68,6 +68,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalAsmSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalAsmSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -81,7 +85,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -96,7 +101,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -111,6 +117,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -432,6 +439,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalAsmSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalAsmSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalAsmSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalAsmSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_cluster.py b/src/oci/database_management/models/external_cluster.py index 821677565c..7befdf59e5 100644 --- a/src/oci/database_management/models/external_cluster.py +++ b/src/oci/database_management/models/external_cluster.py @@ -134,6 +134,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalCluster. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalCluster. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -155,7 +159,8 @@ def __init__(self, **kwargs): 'time_updated': 'datetime', 'version': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -178,7 +183,8 @@ def __init__(self, **kwargs): 'time_updated': 'timeUpdated', 'version': 'version', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -201,6 +207,7 @@ def __init__(self, **kwargs): self._version = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -722,6 +729,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalCluster. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalCluster. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalCluster. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalCluster. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_cluster_instance.py b/src/oci/database_management/models/external_cluster_instance.py index 70c3d34954..78c9917092 100644 --- a/src/oci/database_management/models/external_cluster_instance.py +++ b/src/oci/database_management/models/external_cluster_instance.py @@ -136,6 +136,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalClusterInstance. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalClusterInstance. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -155,7 +159,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -176,7 +181,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -197,6 +203,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -682,6 +689,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalClusterInstance. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalClusterInstance. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalClusterInstance. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalClusterInstance. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_cluster_instance_summary.py b/src/oci/database_management/models/external_cluster_instance_summary.py index 5c8bf9fc3a..8f49a5310e 100644 --- a/src/oci/database_management/models/external_cluster_instance_summary.py +++ b/src/oci/database_management/models/external_cluster_instance_summary.py @@ -92,6 +92,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalClusterInstanceSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalClusterInstanceSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -111,7 +115,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -132,7 +137,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -153,6 +159,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -626,6 +633,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalClusterInstanceSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalClusterInstanceSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalClusterInstanceSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalClusterInstanceSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_cluster_summary.py b/src/oci/database_management/models/external_cluster_summary.py index 212d9bf57e..cc43771fcc 100644 --- a/src/oci/database_management/models/external_cluster_summary.py +++ b/src/oci/database_management/models/external_cluster_summary.py @@ -68,6 +68,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalClusterSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalClusterSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -81,7 +85,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -96,7 +101,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -111,6 +117,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -432,6 +439,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalClusterSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalClusterSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalClusterSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalClusterSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_connector_details.py b/src/oci/database_management/models/external_connector_details.py new file mode 100644 index 0000000000..a7a495c93c --- /dev/null +++ b/src/oci/database_management/models/external_connector_details.py @@ -0,0 +1,86 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .connector_details import ConnectorDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ExternalConnectorDetails(ConnectorDetails): + """ + The details of the external database connector used to connect to the external database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ExternalConnectorDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.ExternalConnectorDetails.connector_type` attribute + of this class is ``EXTERNAL`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connector_type: + The value to assign to the connector_type property of this ExternalConnectorDetails. + Allowed values for this property are: "PE", "MACS", "EXTERNAL" + :type connector_type: str + + :param database_connector_id: + The value to assign to the database_connector_id property of this ExternalConnectorDetails. + :type database_connector_id: str + + """ + self.swagger_types = { + 'connector_type': 'str', + 'database_connector_id': 'str' + } + + self.attribute_map = { + 'connector_type': 'connectorType', + 'database_connector_id': 'databaseConnectorId' + } + + self._connector_type = None + self._database_connector_id = None + self._connector_type = 'EXTERNAL' + + @property + def database_connector_id(self): + """ + **[Required]** Gets the database_connector_id of this ExternalConnectorDetails. + The `OCID`__ of the external database connector. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The database_connector_id of this ExternalConnectorDetails. + :rtype: str + """ + return self._database_connector_id + + @database_connector_id.setter + def database_connector_id(self, database_connector_id): + """ + Sets the database_connector_id of this ExternalConnectorDetails. + The `OCID`__ of the external database connector. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param database_connector_id: The database_connector_id of this ExternalConnectorDetails. + :type: str + """ + self._database_connector_id = database_connector_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/external_database_diagnostics_and_management_feature_details.py b/src/oci/database_management/models/external_database_diagnostics_and_management_feature_details.py new file mode 100644 index 0000000000..40cfb3be98 --- /dev/null +++ b/src/oci/database_management/models/external_database_diagnostics_and_management_feature_details.py @@ -0,0 +1,105 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .external_database_feature_details import ExternalDatabaseFeatureDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ExternalDatabaseDiagnosticsAndManagementFeatureDetails(ExternalDatabaseFeatureDetails): + """ + The details required to enable the Diagnostics and Management feature. + """ + + #: A constant which can be used with the license_model property of a ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + #: This constant has a value of "LICENSE_INCLUDED" + LICENSE_MODEL_LICENSE_INCLUDED = "LICENSE_INCLUDED" + + #: A constant which can be used with the license_model property of a ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + #: This constant has a value of "BRING_YOUR_OWN_LICENSE" + LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + + def __init__(self, **kwargs): + """ + Initializes a new ExternalDatabaseDiagnosticsAndManagementFeatureDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.ExternalDatabaseDiagnosticsAndManagementFeatureDetails.feature` attribute + of this class is ``DIAGNOSTICS_AND_MANAGEMENT`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + :param connector_details: + The value to assign to the connector_details property of this ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + :type connector_details: oci.database_management.models.ConnectorDetails + + :param license_model: + The value to assign to the license_model property of this ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE" + :type license_model: str + + """ + self.swagger_types = { + 'feature': 'str', + 'connector_details': 'ConnectorDetails', + 'license_model': 'str' + } + + self.attribute_map = { + 'feature': 'feature', + 'connector_details': 'connectorDetails', + 'license_model': 'licenseModel' + } + + self._feature = None + self._connector_details = None + self._license_model = None + self._feature = 'DIAGNOSTICS_AND_MANAGEMENT' + + @property + def license_model(self): + """ + **[Required]** Gets the license_model of this ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + The Oracle license model that applies to the external database. + + Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE" + + + :return: The license_model of this ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + :rtype: str + """ + return self._license_model + + @license_model.setter + def license_model(self, license_model): + """ + Sets the license_model of this ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + The Oracle license model that applies to the external database. + + + :param license_model: The license_model of this ExternalDatabaseDiagnosticsAndManagementFeatureDetails. + :type: str + """ + allowed_values = ["LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"] + if not value_allowed_none_or_none_sentinel(license_model, allowed_values): + raise ValueError( + f"Invalid value for `license_model`, must be None or one of {allowed_values}" + ) + self._license_model = license_model + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/external_database_feature_details.py b/src/oci/database_management/models/external_database_feature_details.py new file mode 100644 index 0000000000..6ec68c2399 --- /dev/null +++ b/src/oci/database_management/models/external_database_feature_details.py @@ -0,0 +1,128 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ExternalDatabaseFeatureDetails(object): + """ + The details required to enable the specified Database Management feature. + """ + + #: A constant which can be used with the feature property of a ExternalDatabaseFeatureDetails. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + def __init__(self, **kwargs): + """ + Initializes a new ExternalDatabaseFeatureDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database_management.models.ExternalDatabaseDiagnosticsAndManagementFeatureDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this ExternalDatabaseFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + :param connector_details: + The value to assign to the connector_details property of this ExternalDatabaseFeatureDetails. + :type connector_details: oci.database_management.models.ConnectorDetails + + """ + self.swagger_types = { + 'feature': 'str', + 'connector_details': 'ConnectorDetails' + } + + self.attribute_map = { + 'feature': 'feature', + 'connector_details': 'connectorDetails' + } + + self._feature = None + self._connector_details = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['feature'] + + if type == 'DIAGNOSTICS_AND_MANAGEMENT': + return 'ExternalDatabaseDiagnosticsAndManagementFeatureDetails' + else: + return 'ExternalDatabaseFeatureDetails' + + @property + def feature(self): + """ + **[Required]** Gets the feature of this ExternalDatabaseFeatureDetails. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this ExternalDatabaseFeatureDetails. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this ExternalDatabaseFeatureDetails. + The name of the Database Management feature. + + + :param feature: The feature of this ExternalDatabaseFeatureDetails. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + @property + def connector_details(self): + """ + **[Required]** Gets the connector_details of this ExternalDatabaseFeatureDetails. + + :return: The connector_details of this ExternalDatabaseFeatureDetails. + :rtype: oci.database_management.models.ConnectorDetails + """ + return self._connector_details + + @connector_details.setter + def connector_details(self, connector_details): + """ + Sets the connector_details of this ExternalDatabaseFeatureDetails. + + :param connector_details: The connector_details of this ExternalDatabaseFeatureDetails. + :type: oci.database_management.models.ConnectorDetails + """ + self._connector_details = connector_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/external_database_summary.py b/src/oci/database_management/models/external_database_summary.py index 36e00c4064..bb1026cf35 100644 --- a/src/oci/database_management/models/external_database_summary.py +++ b/src/oci/database_management/models/external_database_summary.py @@ -158,6 +158,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDatabaseSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDatabaseSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -174,7 +178,8 @@ def __init__(self, **kwargs): 'lifecycle_state': 'str', 'time_created': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -192,7 +197,8 @@ def __init__(self, **kwargs): 'lifecycle_state': 'lifecycleState', 'time_created': 'timeCreated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -210,6 +216,7 @@ def __init__(self, **kwargs): self._time_created = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -617,6 +624,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDatabaseSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDatabaseSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDatabaseSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDatabaseSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_home.py b/src/oci/database_management/models/external_db_home.py index 6cdd1e1de9..130e0ed9cc 100644 --- a/src/oci/database_management/models/external_db_home.py +++ b/src/oci/database_management/models/external_db_home.py @@ -102,6 +102,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbHome. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbHome. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -116,7 +120,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -132,7 +137,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -148,6 +154,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -497,6 +504,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbHome. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbHome. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbHome. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbHome. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_home_summary.py b/src/oci/database_management/models/external_db_home_summary.py index 1ce1b6111c..0a3a7a21b4 100644 --- a/src/oci/database_management/models/external_db_home_summary.py +++ b/src/oci/database_management/models/external_db_home_summary.py @@ -68,6 +68,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbHomeSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbHomeSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -81,7 +85,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -96,7 +101,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -111,6 +117,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -428,6 +435,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbHomeSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbHomeSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbHomeSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbHomeSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_node.py b/src/oci/database_management/models/external_db_node.py index 6dc7c0c783..d703b4a56f 100644 --- a/src/oci/database_management/models/external_db_node.py +++ b/src/oci/database_management/models/external_db_node.py @@ -122,6 +122,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbNode. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbNode. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -140,7 +144,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -160,7 +165,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -180,6 +186,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -629,6 +636,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbNode. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbNode. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbNode. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbNode. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_node_summary.py b/src/oci/database_management/models/external_db_node_summary.py index a24c8cc14c..67ffdaeb65 100644 --- a/src/oci/database_management/models/external_db_node_summary.py +++ b/src/oci/database_management/models/external_db_node_summary.py @@ -72,6 +72,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbNodeSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbNodeSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -86,7 +90,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -102,7 +107,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -118,6 +124,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -463,6 +470,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbNodeSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbNodeSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbNodeSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbNodeSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_system.py b/src/oci/database_management/models/external_db_system.py index 073c0fe39e..06de9e5dd9 100644 --- a/src/oci/database_management/models/external_db_system.py +++ b/src/oci/database_management/models/external_db_system.py @@ -106,6 +106,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbSystem. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbSystem. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -122,7 +126,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -140,7 +145,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -158,6 +164,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -551,6 +558,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbSystem. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbSystem. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbSystem. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbSystem. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_system_connector_summary.py b/src/oci/database_management/models/external_db_system_connector_summary.py index a7d968086e..50bd822a82 100644 --- a/src/oci/database_management/models/external_db_system_connector_summary.py +++ b/src/oci/database_management/models/external_db_system_connector_summary.py @@ -74,6 +74,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbSystemConnectorSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbSystemConnectorSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -87,7 +91,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -102,7 +107,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -117,6 +123,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -446,6 +453,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbSystemConnectorSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbSystemConnectorSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbSystemConnectorSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbSystemConnectorSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_system_discovery.py b/src/oci/database_management/models/external_db_system_discovery.py index c3f8f02455..42a9a21530 100644 --- a/src/oci/database_management/models/external_db_system_discovery.py +++ b/src/oci/database_management/models/external_db_system_discovery.py @@ -102,6 +102,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbSystemDiscovery. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbSystemDiscovery. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -116,7 +120,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -132,7 +137,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -148,6 +154,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -501,6 +508,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbSystemDiscovery. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbSystemDiscovery. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbSystemDiscovery. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbSystemDiscovery. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_system_discovery_summary.py b/src/oci/database_management/models/external_db_system_discovery_summary.py index 651e7de194..2f4c967b6f 100644 --- a/src/oci/database_management/models/external_db_system_discovery_summary.py +++ b/src/oci/database_management/models/external_db_system_discovery_summary.py @@ -60,6 +60,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbSystemDiscoverySummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbSystemDiscoverySummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -71,7 +75,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -84,7 +89,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -97,6 +103,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -368,6 +375,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbSystemDiscoverySummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbSystemDiscoverySummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbSystemDiscoverySummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbSystemDiscoverySummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_system_macs_connector.py b/src/oci/database_management/models/external_db_system_macs_connector.py index 48b85cab38..5c6749315b 100644 --- a/src/oci/database_management/models/external_db_system_macs_connector.py +++ b/src/oci/database_management/models/external_db_system_macs_connector.py @@ -91,6 +91,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbSystemMacsConnector. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbSystemMacsConnector. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'connector_type': 'str', @@ -108,7 +112,8 @@ def __init__(self, **kwargs): 'agent_id': 'str', 'connection_info': 'ExternalDbSystemConnectionInfo', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -127,7 +132,8 @@ def __init__(self, **kwargs): 'agent_id': 'agentId', 'connection_info': 'connectionInfo', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._connector_type = None @@ -146,6 +152,7 @@ def __init__(self, **kwargs): self._connection_info = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._connector_type = 'MACS' @property @@ -262,6 +269,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbSystemMacsConnector. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbSystemMacsConnector. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbSystemMacsConnector. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbSystemMacsConnector. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_db_system_summary.py b/src/oci/database_management/models/external_db_system_summary.py index 42b2967f5b..1242255223 100644 --- a/src/oci/database_management/models/external_db_system_summary.py +++ b/src/oci/database_management/models/external_db_system_summary.py @@ -64,6 +64,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalDbSystemSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalDbSystemSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -76,7 +80,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -90,7 +95,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -104,6 +110,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -391,6 +398,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalDbSystemSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalDbSystemSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalDbSystemSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalDbSystemSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_exadata_infrastructure.py b/src/oci/database_management/models/external_exadata_infrastructure.py index e29b5745c9..0a5a35b18c 100644 --- a/src/oci/database_management/models/external_exadata_infrastructure.py +++ b/src/oci/database_management/models/external_exadata_infrastructure.py @@ -129,6 +129,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalExadataInfrastructure. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalExadataInfrastructure. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -149,7 +153,8 @@ def __init__(self, **kwargs): 'database_systems': 'list[ExternalExadataDatabaseSystemSummary]', 'database_compartments': 'list[str]', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -171,7 +176,8 @@ def __init__(self, **kwargs): 'database_systems': 'databaseSystems', 'database_compartments': 'databaseCompartments', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -193,6 +199,7 @@ def __init__(self, **kwargs): self._database_compartments = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._resource_type = 'INFRASTRUCTURE' @property @@ -419,6 +426,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalExadataInfrastructure. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalExadataInfrastructure. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalExadataInfrastructure. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalExadataInfrastructure. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_exadata_infrastructure_summary.py b/src/oci/database_management/models/external_exadata_infrastructure_summary.py index 4fc8a99f45..5202637b9f 100644 --- a/src/oci/database_management/models/external_exadata_infrastructure_summary.py +++ b/src/oci/database_management/models/external_exadata_infrastructure_summary.py @@ -121,6 +121,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalExadataInfrastructureSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalExadataInfrastructureSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -139,7 +143,8 @@ def __init__(self, **kwargs): 'license_model': 'str', 'grid_home_path': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -159,7 +164,8 @@ def __init__(self, **kwargs): 'license_model': 'licenseModel', 'grid_home_path': 'gridHomePath', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -179,6 +185,7 @@ def __init__(self, **kwargs): self._grid_home_path = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._resource_type = 'INFRASTRUCTURE_SUMMARY' @property @@ -357,6 +364,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalExadataInfrastructureSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalExadataInfrastructureSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalExadataInfrastructureSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalExadataInfrastructureSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_exadata_storage_connector.py b/src/oci/database_management/models/external_exadata_storage_connector.py index 5370548ebe..91e6e833ea 100644 --- a/src/oci/database_management/models/external_exadata_storage_connector.py +++ b/src/oci/database_management/models/external_exadata_storage_connector.py @@ -93,6 +93,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalExadataStorageConnector. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalExadataStorageConnector. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -111,7 +115,8 @@ def __init__(self, **kwargs): 'connection_uri': 'str', 'storage_server_id': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -131,7 +136,8 @@ def __init__(self, **kwargs): 'connection_uri': 'connectionUri', 'storage_server_id': 'storageServerId', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -151,6 +157,7 @@ def __init__(self, **kwargs): self._storage_server_id = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._resource_type = 'STORAGE_CONNECTOR' @property @@ -325,6 +332,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalExadataStorageConnector. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalExadataStorageConnector. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalExadataStorageConnector. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalExadataStorageConnector. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_exadata_storage_connector_summary.py b/src/oci/database_management/models/external_exadata_storage_connector_summary.py index c42ee454ae..0c214c139b 100644 --- a/src/oci/database_management/models/external_exadata_storage_connector_summary.py +++ b/src/oci/database_management/models/external_exadata_storage_connector_summary.py @@ -89,6 +89,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalExadataStorageConnectorSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalExadataStorageConnectorSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -106,7 +110,8 @@ def __init__(self, **kwargs): 'storage_server_id': 'str', 'agent_id': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -125,7 +130,8 @@ def __init__(self, **kwargs): 'storage_server_id': 'storageServerId', 'agent_id': 'agentId', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -144,6 +150,7 @@ def __init__(self, **kwargs): self._agent_id = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._resource_type = 'STORAGE_CONNECTOR_SUMMARY' @property @@ -290,6 +297,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalExadataStorageConnectorSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalExadataStorageConnectorSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalExadataStorageConnectorSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalExadataStorageConnectorSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_exadata_storage_grid.py b/src/oci/database_management/models/external_exadata_storage_grid.py index 72c08bcba8..5ee76762a5 100644 --- a/src/oci/database_management/models/external_exadata_storage_grid.py +++ b/src/oci/database_management/models/external_exadata_storage_grid.py @@ -89,6 +89,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalExadataStorageGrid. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalExadataStorageGrid. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -106,7 +110,8 @@ def __init__(self, **kwargs): 'server_count': 'float', 'storage_servers': 'list[ExternalExadataStorageServerSummary]', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -125,7 +130,8 @@ def __init__(self, **kwargs): 'server_count': 'serverCount', 'storage_servers': 'storageServers', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -144,6 +150,7 @@ def __init__(self, **kwargs): self._storage_servers = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._resource_type = 'STORAGE_GRID' @property @@ -286,6 +293,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalExadataStorageGrid. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalExadataStorageGrid. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalExadataStorageGrid. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalExadataStorageGrid. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_exadata_storage_server.py b/src/oci/database_management/models/external_exadata_storage_server.py index cf1ea63ff1..0e14ce6c1b 100644 --- a/src/oci/database_management/models/external_exadata_storage_server.py +++ b/src/oci/database_management/models/external_exadata_storage_server.py @@ -121,6 +121,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalExadataStorageServer. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalExadataStorageServer. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -146,7 +150,8 @@ def __init__(self, **kwargs): 'max_flash_disk_throughput': 'int', 'connector': 'ExternalExadataStorageConnectorSummary', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -173,7 +178,8 @@ def __init__(self, **kwargs): 'max_flash_disk_throughput': 'maxFlashDiskThroughput', 'connector': 'connector', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -200,6 +206,7 @@ def __init__(self, **kwargs): self._connector = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._resource_type = 'STORAGE_SERVER' @property @@ -534,6 +541,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalExadataStorageServer. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalExadataStorageServer. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalExadataStorageServer. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalExadataStorageServer. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_exadata_storage_server_summary.py b/src/oci/database_management/models/external_exadata_storage_server_summary.py index 0ec7e1c15f..f8ee68fd51 100644 --- a/src/oci/database_management/models/external_exadata_storage_server_summary.py +++ b/src/oci/database_management/models/external_exadata_storage_server_summary.py @@ -113,6 +113,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalExadataStorageServerSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalExadataStorageServerSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -136,7 +140,8 @@ def __init__(self, **kwargs): 'max_flash_disk_throughput': 'int', 'connector_id': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -161,7 +166,8 @@ def __init__(self, **kwargs): 'max_flash_disk_throughput': 'maxFlashDiskThroughput', 'connector_id': 'connectorId', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -186,6 +192,7 @@ def __init__(self, **kwargs): self._connector_id = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._resource_type = 'STORAGE_SERVER_SUMMARY' @property @@ -472,6 +479,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalExadataStorageServerSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalExadataStorageServerSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalExadataStorageServerSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalExadataStorageServerSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_listener.py b/src/oci/database_management/models/external_listener.py index c88c51512e..5af5530e6c 100644 --- a/src/oci/database_management/models/external_listener.py +++ b/src/oci/database_management/models/external_listener.py @@ -176,6 +176,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalListener. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalListener. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -204,7 +208,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -234,7 +239,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -264,6 +270,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -967,6 +974,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalListener. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalListener. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalListener. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalListener. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_listener_summary.py b/src/oci/database_management/models/external_listener_summary.py index 14ac3c74ac..58b684c9c7 100644 --- a/src/oci/database_management/models/external_listener_summary.py +++ b/src/oci/database_management/models/external_listener_summary.py @@ -76,6 +76,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ExternalListenerSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ExternalListenerSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -91,7 +95,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -108,7 +113,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -125,6 +131,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -498,6 +505,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ExternalListenerSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ExternalListenerSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ExternalListenerSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ExternalListenerSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_pluggable_database_diagnostics_and_management_feature_details.py b/src/oci/database_management/models/external_pluggable_database_diagnostics_and_management_feature_details.py new file mode 100644 index 0000000000..9ce8b0024e --- /dev/null +++ b/src/oci/database_management/models/external_pluggable_database_diagnostics_and_management_feature_details.py @@ -0,0 +1,58 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .external_pluggable_database_feature_details import ExternalPluggableDatabaseFeatureDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails(ExternalPluggableDatabaseFeatureDetails): + """ + The details required to enable the Diagnostics and Management feature. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.feature` attribute + of this class is ``DIAGNOSTICS_AND_MANAGEMENT`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + :param connector_details: + The value to assign to the connector_details property of this ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails. + :type connector_details: oci.database_management.models.ConnectorDetails + + """ + self.swagger_types = { + 'feature': 'str', + 'connector_details': 'ConnectorDetails' + } + + self.attribute_map = { + 'feature': 'feature', + 'connector_details': 'connectorDetails' + } + + self._feature = None + self._connector_details = None + self._feature = 'DIAGNOSTICS_AND_MANAGEMENT' + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/external_pluggable_database_feature_details.py b/src/oci/database_management/models/external_pluggable_database_feature_details.py new file mode 100644 index 0000000000..cb04d00b5c --- /dev/null +++ b/src/oci/database_management/models/external_pluggable_database_feature_details.py @@ -0,0 +1,128 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ExternalPluggableDatabaseFeatureDetails(object): + """ + The details required to enable the specified Database Management feature. + """ + + #: A constant which can be used with the feature property of a ExternalPluggableDatabaseFeatureDetails. + #: This constant has a value of "DIAGNOSTICS_AND_MANAGEMENT" + FEATURE_DIAGNOSTICS_AND_MANAGEMENT = "DIAGNOSTICS_AND_MANAGEMENT" + + def __init__(self, **kwargs): + """ + Initializes a new ExternalPluggableDatabaseFeatureDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database_management.models.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature: + The value to assign to the feature property of this ExternalPluggableDatabaseFeatureDetails. + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + :type feature: str + + :param connector_details: + The value to assign to the connector_details property of this ExternalPluggableDatabaseFeatureDetails. + :type connector_details: oci.database_management.models.ConnectorDetails + + """ + self.swagger_types = { + 'feature': 'str', + 'connector_details': 'ConnectorDetails' + } + + self.attribute_map = { + 'feature': 'feature', + 'connector_details': 'connectorDetails' + } + + self._feature = None + self._connector_details = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['feature'] + + if type == 'DIAGNOSTICS_AND_MANAGEMENT': + return 'ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails' + else: + return 'ExternalPluggableDatabaseFeatureDetails' + + @property + def feature(self): + """ + **[Required]** Gets the feature of this ExternalPluggableDatabaseFeatureDetails. + The name of the Database Management feature. + + Allowed values for this property are: "DIAGNOSTICS_AND_MANAGEMENT" + + + :return: The feature of this ExternalPluggableDatabaseFeatureDetails. + :rtype: str + """ + return self._feature + + @feature.setter + def feature(self, feature): + """ + Sets the feature of this ExternalPluggableDatabaseFeatureDetails. + The name of the Database Management feature. + + + :param feature: The feature of this ExternalPluggableDatabaseFeatureDetails. + :type: str + """ + allowed_values = ["DIAGNOSTICS_AND_MANAGEMENT"] + if not value_allowed_none_or_none_sentinel(feature, allowed_values): + raise ValueError( + f"Invalid value for `feature`, must be None or one of {allowed_values}" + ) + self._feature = feature + + @property + def connector_details(self): + """ + **[Required]** Gets the connector_details of this ExternalPluggableDatabaseFeatureDetails. + + :return: The connector_details of this ExternalPluggableDatabaseFeatureDetails. + :rtype: oci.database_management.models.ConnectorDetails + """ + return self._connector_details + + @connector_details.setter + def connector_details(self, connector_details): + """ + Sets the connector_details of this ExternalPluggableDatabaseFeatureDetails. + + :param connector_details: The connector_details of this ExternalPluggableDatabaseFeatureDetails. + :type: oci.database_management.models.ConnectorDetails + """ + self._connector_details = connector_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/heat_wave_cluster_usage_metrics.py b/src/oci/database_management/models/heat_wave_cluster_usage_metrics.py index b16261daf4..6be0f63298 100644 --- a/src/oci/database_management/models/heat_wave_cluster_usage_metrics.py +++ b/src/oci/database_management/models/heat_wave_cluster_usage_metrics.py @@ -139,7 +139,7 @@ def status(self, status): def db_system_id(self): """ **[Required]** Gets the db_system_id of this HeatWaveClusterUsageMetrics. - The OCID for the DB system associated with the HeatWave cluster. + The OCID of the MySQL Database System associated with the HeatWave cluster. :return: The db_system_id of this HeatWaveClusterUsageMetrics. @@ -151,7 +151,7 @@ def db_system_id(self): def db_system_id(self, db_system_id): """ Sets the db_system_id of this HeatWaveClusterUsageMetrics. - The OCID for the DB system associated with the HeatWave cluster. + The OCID of the MySQL Database System associated with the HeatWave cluster. :param db_system_id: The db_system_id of this HeatWaveClusterUsageMetrics. @@ -163,7 +163,7 @@ def db_system_id(self, db_system_id): def db_system_name(self): """ **[Required]** Gets the db_system_name of this HeatWaveClusterUsageMetrics. - The name of the DB system associated with the HeatWave cluster. + The name of the MySQL Database System associated with the HeatWave cluster. :return: The db_system_name of this HeatWaveClusterUsageMetrics. @@ -175,7 +175,7 @@ def db_system_name(self): def db_system_name(self, db_system_name): """ Sets the db_system_name of this HeatWaveClusterUsageMetrics. - The name of the DB system associated with the HeatWave cluster. + The name of the MySQL Database System associated with the HeatWave cluster. :param db_system_name: The db_system_name of this HeatWaveClusterUsageMetrics. @@ -211,7 +211,7 @@ def heat_wave_cluster_display_name(self, heat_wave_cluster_display_name): def node_count(self): """ **[Required]** Gets the node_count of this HeatWaveClusterUsageMetrics. - Number of nodes in the HeatWave cluster. + The number of nodes in the HeatWave cluster. :return: The node_count of this HeatWaveClusterUsageMetrics. @@ -223,7 +223,7 @@ def node_count(self): def node_count(self, node_count): """ Sets the node_count of this HeatWaveClusterUsageMetrics. - Number of nodes in the HeatWave cluster. + The number of nodes in the HeatWave cluster. :param node_count: The node_count of this HeatWaveClusterUsageMetrics. @@ -235,7 +235,7 @@ def node_count(self, node_count): def is_lakehouse_enabled(self): """ **[Required]** Gets the is_lakehouse_enabled of this HeatWaveClusterUsageMetrics. - If Lakehouse is enabled for the HeatWave cluster or not. + Indicates whether Lakehouse is enabled for the HeatWave cluster or not. :return: The is_lakehouse_enabled of this HeatWaveClusterUsageMetrics. @@ -247,7 +247,7 @@ def is_lakehouse_enabled(self): def is_lakehouse_enabled(self, is_lakehouse_enabled): """ Sets the is_lakehouse_enabled of this HeatWaveClusterUsageMetrics. - If Lakehouse is enabled for the HeatWave cluster or not. + Indicates whether Lakehouse is enabled for the HeatWave cluster or not. :param is_lakehouse_enabled: The is_lakehouse_enabled of this HeatWaveClusterUsageMetrics. @@ -259,7 +259,7 @@ def is_lakehouse_enabled(self, is_lakehouse_enabled): def heat_wave_node_shape(self): """ **[Required]** Gets the heat_wave_node_shape of this HeatWaveClusterUsageMetrics. - Shape of the nodes in the HeatWave cluster. + The shape of the nodes in the HeatWave cluster. :return: The heat_wave_node_shape of this HeatWaveClusterUsageMetrics. @@ -271,7 +271,7 @@ def heat_wave_node_shape(self): def heat_wave_node_shape(self, heat_wave_node_shape): """ Sets the heat_wave_node_shape of this HeatWaveClusterUsageMetrics. - Shape of the nodes in the HeatWave cluster. + The shape of the nodes in the HeatWave cluster. :param heat_wave_node_shape: The heat_wave_node_shape of this HeatWaveClusterUsageMetrics. @@ -307,7 +307,7 @@ def memory_size(self, memory_size): def metrics(self): """ **[Required]** Gets the metrics of this HeatWaveClusterUsageMetrics. - A list of the database health metrics like CPU and Memory. + A list of the HeatWave cluster health metrics like CPU and Memory. :return: The metrics of this HeatWaveClusterUsageMetrics. @@ -319,7 +319,7 @@ def metrics(self): def metrics(self, metrics): """ Sets the metrics of this HeatWaveClusterUsageMetrics. - A list of the database health metrics like CPU and Memory. + A list of the HeatWave cluster health metrics like CPU and Memory. :param metrics: The metrics of this HeatWaveClusterUsageMetrics. diff --git a/src/oci/database_management/models/heat_wave_fleet_metrics.py b/src/oci/database_management/models/heat_wave_fleet_metrics.py index 340185b4d2..e018f2962a 100644 --- a/src/oci/database_management/models/heat_wave_fleet_metrics.py +++ b/src/oci/database_management/models/heat_wave_fleet_metrics.py @@ -132,7 +132,7 @@ def fleet_clusters(self, fleet_clusters): def fleet_summary(self): """ **[Required]** Gets the fleet_summary of this HeatWaveFleetMetrics. - A summary of the inventory count and the metrics that describe the aggregated usage of CPU, storage, and so on of all the HeatWave clusters in the fleet. + The number of HeatWave clusters in the fleet and a summary of the metrics that provide the aggregated usage of CPU, storage, and so on of all the clusters. :return: The fleet_summary of this HeatWaveFleetMetrics. @@ -144,7 +144,7 @@ def fleet_summary(self): def fleet_summary(self, fleet_summary): """ Sets the fleet_summary of this HeatWaveFleetMetrics. - A summary of the inventory count and the metrics that describe the aggregated usage of CPU, storage, and so on of all the HeatWave clusters in the fleet. + The number of HeatWave clusters in the fleet and a summary of the metrics that provide the aggregated usage of CPU, storage, and so on of all the clusters. :param fleet_summary: The fleet_summary of this HeatWaveFleetMetrics. diff --git a/src/oci/database_management/models/heat_wave_fleet_summary.py b/src/oci/database_management/models/heat_wave_fleet_summary.py index bf20183c63..eed615352e 100644 --- a/src/oci/database_management/models/heat_wave_fleet_summary.py +++ b/src/oci/database_management/models/heat_wave_fleet_summary.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class HeatWaveFleetSummary(object): """ - A summary of the inventory count and the metrics that describe the aggregated usage of CPU, storage, and so on of all the HeatWave clusters in the fleet. + The inventory count of HeatWave clusters in the fleet and a summary of the metrics that provide the aggregated usage of CPU, storage, and so on of all the clusters. """ def __init__(self, **kwargs): @@ -46,7 +46,7 @@ def __init__(self, **kwargs): def aggregated_metrics(self): """ **[Required]** Gets the aggregated_metrics of this HeatWaveFleetSummary. - The usage metrics for the Managed HeatWave clusters in the fleet. + The usage metrics for the HeatWave clusters in the fleet. :return: The aggregated_metrics of this HeatWaveFleetSummary. @@ -58,7 +58,7 @@ def aggregated_metrics(self): def aggregated_metrics(self, aggregated_metrics): """ Sets the aggregated_metrics of this HeatWaveFleetSummary. - The usage metrics for the Managed HeatWave clusters in the fleet. + The usage metrics for the HeatWave clusters in the fleet. :param aggregated_metrics: The aggregated_metrics of this HeatWaveFleetSummary. @@ -70,7 +70,7 @@ def aggregated_metrics(self, aggregated_metrics): def inventory(self): """ **[Required]** Gets the inventory of this HeatWaveFleetSummary. - Summary counts of HeatWave clusters in the fleet grouped by cluster type. + The number of HeatWave clusters in the fleet, grouped by cluster type or other properties. :return: The inventory of this HeatWaveFleetSummary. @@ -82,7 +82,7 @@ def inventory(self): def inventory(self, inventory): """ Sets the inventory of this HeatWaveFleetSummary. - Summary counts of HeatWave clusters in the fleet grouped by cluster type. + The number of HeatWave clusters in the fleet, grouped by cluster type or other properties. :param inventory: The inventory of this HeatWaveFleetSummary. diff --git a/src/oci/database_management/models/heat_wave_node.py b/src/oci/database_management/models/heat_wave_node.py index 8c7c3e2351..9c840e695f 100644 --- a/src/oci/database_management/models/heat_wave_node.py +++ b/src/oci/database_management/models/heat_wave_node.py @@ -121,7 +121,7 @@ def status(self, status): def time_created(self): """ **[Required]** Gets the time_created of this HeatWaveNode. - The date and time the node was created. + The date and time the HeatWave node was created. :return: The time_created of this HeatWaveNode. @@ -133,7 +133,7 @@ def time_created(self): def time_created(self, time_created): """ Sets the time_created of this HeatWaveNode. - The date and time the node was created. + The date and time the HeatWave node was created. :param time_created: The time_created of this HeatWaveNode. diff --git a/src/oci/database_management/models/job_summary.py b/src/oci/database_management/models/job_summary.py index f3c6e44d22..dafac98cbc 100644 --- a/src/oci/database_management/models/job_summary.py +++ b/src/oci/database_management/models/job_summary.py @@ -116,6 +116,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this JobSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this JobSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -134,7 +138,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -154,7 +159,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -174,6 +180,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -623,6 +630,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this JobSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this JobSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this JobSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this JobSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/load_sql_tuning_set_details.py b/src/oci/database_management/models/load_sql_tuning_set_details.py index c120a753ed..165e94255c 100644 --- a/src/oci/database_management/models/load_sql_tuning_set_details.py +++ b/src/oci/database_management/models/load_sql_tuning_set_details.py @@ -156,6 +156,10 @@ class LoadSqlTuningSetDetails(object): #: This constant has a value of "NEW" UPDATE_CONDITION_NEW = "NEW" + #: A constant which can be used with the update_condition property of a LoadSqlTuningSetDetails. + #: This constant has a value of "NULL" + UPDATE_CONDITION_NULL = "NULL" + def __init__(self, **kwargs): """ Initializes a new LoadSqlTuningSetDetails object with values from keyword arguments. @@ -256,7 +260,7 @@ def __init__(self, **kwargs): :param update_condition: The value to assign to the update_condition property of this LoadSqlTuningSetDetails. - Allowed values for this property are: "OLD", "NEW" + Allowed values for this property are: "OLD", "NEW", "NULL" :type update_condition: str :param is_ignore_null: @@ -1065,7 +1069,7 @@ def update_condition(self): NEW \u2014 Refers to statement attributes from the input statements (source). NULL \u2014 No updates are performed. - Allowed values for this property are: "OLD", "NEW" + Allowed values for this property are: "OLD", "NEW", "NULL" :return: The update_condition of this LoadSqlTuningSetDetails. @@ -1089,7 +1093,7 @@ def update_condition(self, update_condition): :param update_condition: The update_condition of this LoadSqlTuningSetDetails. :type: str """ - allowed_values = ["OLD", "NEW"] + allowed_values = ["OLD", "NEW", "NULL"] if not value_allowed_none_or_none_sentinel(update_condition, allowed_values): raise ValueError( f"Invalid value for `update_condition`, must be None or one of {allowed_values}" diff --git a/src/oci/database_management/models/macs_connector_details.py b/src/oci/database_management/models/macs_connector_details.py new file mode 100644 index 0000000000..505002f553 --- /dev/null +++ b/src/oci/database_management/models/macs_connector_details.py @@ -0,0 +1,86 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .connector_details import ConnectorDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class MacsConnectorDetails(ConnectorDetails): + """ + The management agent details required to connect to an Oracle cloud Database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MacsConnectorDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.MacsConnectorDetails.connector_type` attribute + of this class is ``MACS`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connector_type: + The value to assign to the connector_type property of this MacsConnectorDetails. + Allowed values for this property are: "PE", "MACS", "EXTERNAL" + :type connector_type: str + + :param management_agent_id: + The value to assign to the management_agent_id property of this MacsConnectorDetails. + :type management_agent_id: str + + """ + self.swagger_types = { + 'connector_type': 'str', + 'management_agent_id': 'str' + } + + self.attribute_map = { + 'connector_type': 'connectorType', + 'management_agent_id': 'managementAgentId' + } + + self._connector_type = None + self._management_agent_id = None + self._connector_type = 'MACS' + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this MacsConnectorDetails. + The `OCID`__ of the management agent. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this MacsConnectorDetails. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this MacsConnectorDetails. + The `OCID`__ of the management agent. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this MacsConnectorDetails. + :type: str + """ + self._management_agent_id = management_agent_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/managed_database.py b/src/oci/database_management/models/managed_database.py index 2a80f8f25d..e92b80223c 100644 --- a/src/oci/database_management/models/managed_database.py +++ b/src/oci/database_management/models/managed_database.py @@ -236,6 +236,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ManagedDatabase. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ManagedDatabase. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -262,7 +266,8 @@ def __init__(self, **kwargs): 'pdb_status': 'list[PdbStatusDetails]', 'additional_details': 'dict(str, str)', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -290,7 +295,8 @@ def __init__(self, **kwargs): 'pdb_status': 'pdbStatus', 'additional_details': 'additionalDetails', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -318,6 +324,7 @@ def __init__(self, **kwargs): self._additional_details = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -1009,6 +1016,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ManagedDatabase. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ManagedDatabase. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ManagedDatabase. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ManagedDatabase. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/managed_database_group.py b/src/oci/database_management/models/managed_database_group.py index 7e9a6a0660..0033842c71 100644 --- a/src/oci/database_management/models/managed_database_group.py +++ b/src/oci/database_management/models/managed_database_group.py @@ -86,6 +86,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ManagedDatabaseGroup. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ManagedDatabaseGroup. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'name': 'str', @@ -97,7 +101,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -110,7 +115,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._name = None @@ -123,6 +129,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def name(self): @@ -394,6 +401,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ManagedDatabaseGroup. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ManagedDatabaseGroup. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ManagedDatabaseGroup. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ManagedDatabaseGroup. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/managed_database_group_summary.py b/src/oci/database_management/models/managed_database_group_summary.py index a66fd834a7..6ed9dad95a 100644 --- a/src/oci/database_management/models/managed_database_group_summary.py +++ b/src/oci/database_management/models/managed_database_group_summary.py @@ -82,6 +82,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ManagedDatabaseGroupSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ManagedDatabaseGroupSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'name': 'str', @@ -92,7 +96,8 @@ def __init__(self, **kwargs): 'lifecycle_state': 'str', 'time_created': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -104,7 +109,8 @@ def __init__(self, **kwargs): 'lifecycle_state': 'lifecycleState', 'time_created': 'timeCreated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._name = None @@ -116,6 +122,7 @@ def __init__(self, **kwargs): self._time_created = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def name(self): @@ -363,6 +370,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ManagedDatabaseGroupSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ManagedDatabaseGroupSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ManagedDatabaseGroupSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ManagedDatabaseGroupSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/managed_database_summary.py b/src/oci/database_management/models/managed_database_summary.py index 2293d09154..6edffde76a 100644 --- a/src/oci/database_management/models/managed_database_summary.py +++ b/src/oci/database_management/models/managed_database_summary.py @@ -186,6 +186,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this ManagedDatabaseSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this ManagedDatabaseSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -203,7 +207,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'database_version': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -222,7 +227,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'database_version': 'databaseVersion', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -241,6 +247,7 @@ def __init__(self, **kwargs): self._database_version = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -698,6 +705,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this ManagedDatabaseSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this ManagedDatabaseSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this ManagedDatabaseSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this ManagedDatabaseSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/managed_my_sql_database.py b/src/oci/database_management/models/managed_my_sql_database.py index 212ce213b7..ceff6249b8 100644 --- a/src/oci/database_management/models/managed_my_sql_database.py +++ b/src/oci/database_management/models/managed_my_sql_database.py @@ -298,7 +298,7 @@ def heat_wave_cluster_display_name(self, heat_wave_cluster_display_name): def is_heat_wave_enabled(self): """ Gets the is_heat_wave_enabled of this ManagedMySqlDatabase. - If HeatWave is enabled for this db system or not. + Indicates whether HeatWave is enabled for the MySQL Database System or not. :return: The is_heat_wave_enabled of this ManagedMySqlDatabase. @@ -310,7 +310,7 @@ def is_heat_wave_enabled(self): def is_heat_wave_enabled(self, is_heat_wave_enabled): """ Sets the is_heat_wave_enabled of this ManagedMySqlDatabase. - If HeatWave is enabled for this db system or not. + Indicates whether HeatWave is enabled for the MySQL Database System or not. :param is_heat_wave_enabled: The is_heat_wave_enabled of this ManagedMySqlDatabase. @@ -322,7 +322,7 @@ def is_heat_wave_enabled(self, is_heat_wave_enabled): def is_lakehouse_enabled(self): """ Gets the is_lakehouse_enabled of this ManagedMySqlDatabase. - If HeatWave Lakehouse is enabled for the db system or not. + Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not. :return: The is_lakehouse_enabled of this ManagedMySqlDatabase. @@ -334,7 +334,7 @@ def is_lakehouse_enabled(self): def is_lakehouse_enabled(self, is_lakehouse_enabled): """ Sets the is_lakehouse_enabled of this ManagedMySqlDatabase. - If HeatWave Lakehouse is enabled for the db system or not. + Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not. :param is_lakehouse_enabled: The is_lakehouse_enabled of this ManagedMySqlDatabase. @@ -346,7 +346,7 @@ def is_lakehouse_enabled(self, is_lakehouse_enabled): def heat_wave_node_shape(self): """ Gets the heat_wave_node_shape of this ManagedMySqlDatabase. - Shape of the nodes in the HeatWave cluster. + The shape of the nodes in the HeatWave cluster. :return: The heat_wave_node_shape of this ManagedMySqlDatabase. @@ -358,7 +358,7 @@ def heat_wave_node_shape(self): def heat_wave_node_shape(self, heat_wave_node_shape): """ Sets the heat_wave_node_shape of this ManagedMySqlDatabase. - Shape of the nodes in the HeatWave cluster. + The shape of the nodes in the HeatWave cluster. :param heat_wave_node_shape: The heat_wave_node_shape of this ManagedMySqlDatabase. @@ -394,7 +394,7 @@ def heat_wave_memory_size(self, heat_wave_memory_size): def heat_wave_nodes(self): """ Gets the heat_wave_nodes of this ManagedMySqlDatabase. - The information about an individual HeatWave nodes in the cluster. + The information about individual HeatWave nodes in the cluster. :return: The heat_wave_nodes of this ManagedMySqlDatabase. @@ -406,7 +406,7 @@ def heat_wave_nodes(self): def heat_wave_nodes(self, heat_wave_nodes): """ Sets the heat_wave_nodes of this ManagedMySqlDatabase. - The information about an individual HeatWave nodes in the cluster. + The information about individual HeatWave nodes in the cluster. :param heat_wave_nodes: The heat_wave_nodes of this ManagedMySqlDatabase. @@ -418,7 +418,7 @@ def heat_wave_nodes(self, heat_wave_nodes): def is_heat_wave_active(self): """ Gets the is_heat_wave_active of this ManagedMySqlDatabase. - If the HeatWave cluster is active or not. + Indicates whether the HeatWave cluster is active or not. :return: The is_heat_wave_active of this ManagedMySqlDatabase. @@ -430,7 +430,7 @@ def is_heat_wave_active(self): def is_heat_wave_active(self, is_heat_wave_active): """ Sets the is_heat_wave_active of this ManagedMySqlDatabase. - If the HeatWave cluster is active or not. + Indicates whether the HeatWave cluster is active or not. :param is_heat_wave_active: The is_heat_wave_active of this ManagedMySqlDatabase. diff --git a/src/oci/database_management/models/modify_database_management_feature_details.py b/src/oci/database_management/models/modify_database_management_feature_details.py new file mode 100644 index 0000000000..46e2847f89 --- /dev/null +++ b/src/oci/database_management/models/modify_database_management_feature_details.py @@ -0,0 +1,68 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ModifyDatabaseManagementFeatureDetails(object): + """ + The details required to modify a Database Management features for an Oracle cloud database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ModifyDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature_details: + The value to assign to the feature_details property of this ModifyDatabaseManagementFeatureDetails. + :type feature_details: oci.database_management.models.DatabaseFeatureDetails + + """ + self.swagger_types = { + 'feature_details': 'DatabaseFeatureDetails' + } + + self.attribute_map = { + 'feature_details': 'featureDetails' + } + + self._feature_details = None + + @property + def feature_details(self): + """ + **[Required]** Gets the feature_details of this ModifyDatabaseManagementFeatureDetails. + + :return: The feature_details of this ModifyDatabaseManagementFeatureDetails. + :rtype: oci.database_management.models.DatabaseFeatureDetails + """ + return self._feature_details + + @feature_details.setter + def feature_details(self, feature_details): + """ + Sets the feature_details of this ModifyDatabaseManagementFeatureDetails. + + :param feature_details: The feature_details of this ModifyDatabaseManagementFeatureDetails. + :type: oci.database_management.models.DatabaseFeatureDetails + """ + self._feature_details = feature_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/modify_pluggable_database_management_feature_details.py b/src/oci/database_management/models/modify_pluggable_database_management_feature_details.py new file mode 100644 index 0000000000..c531c25427 --- /dev/null +++ b/src/oci/database_management/models/modify_pluggable_database_management_feature_details.py @@ -0,0 +1,68 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ModifyPluggableDatabaseManagementFeatureDetails(object): + """ + The details required to modify a Database Management feature for an Oracle cloud pluggable database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ModifyPluggableDatabaseManagementFeatureDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param feature_details: + The value to assign to the feature_details property of this ModifyPluggableDatabaseManagementFeatureDetails. + :type feature_details: oci.database_management.models.DatabaseFeatureDetails + + """ + self.swagger_types = { + 'feature_details': 'DatabaseFeatureDetails' + } + + self.attribute_map = { + 'feature_details': 'featureDetails' + } + + self._feature_details = None + + @property + def feature_details(self): + """ + **[Required]** Gets the feature_details of this ModifyPluggableDatabaseManagementFeatureDetails. + + :return: The feature_details of this ModifyPluggableDatabaseManagementFeatureDetails. + :rtype: oci.database_management.models.DatabaseFeatureDetails + """ + return self._feature_details + + @feature_details.setter + def feature_details(self, feature_details): + """ + Sets the feature_details of this ModifyPluggableDatabaseManagementFeatureDetails. + + :param feature_details: The feature_details of this ModifyPluggableDatabaseManagementFeatureDetails. + :type: oci.database_management.models.DatabaseFeatureDetails + """ + self._feature_details = feature_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/my_sql_database_usage_metrics.py b/src/oci/database_management/models/my_sql_database_usage_metrics.py index e5eadc4821..f7d3e9e0bd 100644 --- a/src/oci/database_management/models/my_sql_database_usage_metrics.py +++ b/src/oci/database_management/models/my_sql_database_usage_metrics.py @@ -330,7 +330,7 @@ def database_status(self, database_status): def is_heat_wave_enabled(self): """ Gets the is_heat_wave_enabled of this MySqlDatabaseUsageMetrics. - If HeatWave is enabled for this db system or not. + Indicates whether HeatWave is enabled for the MySQL Database System or not. :return: The is_heat_wave_enabled of this MySqlDatabaseUsageMetrics. @@ -342,7 +342,7 @@ def is_heat_wave_enabled(self): def is_heat_wave_enabled(self, is_heat_wave_enabled): """ Sets the is_heat_wave_enabled of this MySqlDatabaseUsageMetrics. - If HeatWave is enabled for this db system or not. + Indicates whether HeatWave is enabled for the MySQL Database System or not. :param is_heat_wave_enabled: The is_heat_wave_enabled of this MySqlDatabaseUsageMetrics. diff --git a/src/oci/database_management/models/my_sql_fleet_metric_definition.py b/src/oci/database_management/models/my_sql_fleet_metric_definition.py index 4c67ca92c4..bc0531be57 100644 --- a/src/oci/database_management/models/my_sql_fleet_metric_definition.py +++ b/src/oci/database_management/models/my_sql_fleet_metric_definition.py @@ -24,6 +24,10 @@ def __init__(self, **kwargs): The value to assign to the metric_value property of this MySqlFleetMetricDefinition. :type metric_value: int + :param metric_value_double: + The value to assign to the metric_value_double property of this MySqlFleetMetricDefinition. + :type metric_value_double: float + :param metric_name: The value to assign to the metric_name property of this MySqlFleetMetricDefinition. :type metric_name: str @@ -43,6 +47,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'metric_value': 'int', + 'metric_value_double': 'float', 'metric_name': 'str', 'timestamp': 'datetime', 'dimensions': 'list[MetricDimensionDefinition]', @@ -51,6 +56,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'metric_value': 'metricValue', + 'metric_value_double': 'metricValueDouble', 'metric_name': 'metricName', 'timestamp': 'timestamp', 'dimensions': 'dimensions', @@ -58,6 +64,7 @@ def __init__(self, **kwargs): } self._metric_value = None + self._metric_value_double = None self._metric_name = None self._timestamp = None self._dimensions = None @@ -87,6 +94,30 @@ def metric_value(self, metric_value): """ self._metric_value = metric_value + @property + def metric_value_double(self): + """ + Gets the metric_value_double of this MySqlFleetMetricDefinition. + The value of the metric. + + + :return: The metric_value_double of this MySqlFleetMetricDefinition. + :rtype: float + """ + return self._metric_value_double + + @metric_value_double.setter + def metric_value_double(self, metric_value_double): + """ + Sets the metric_value_double of this MySqlFleetMetricDefinition. + The value of the metric. + + + :param metric_value_double: The metric_value_double of this MySqlFleetMetricDefinition. + :type: float + """ + self._metric_value_double = metric_value_double + @property def metric_name(self): """ diff --git a/src/oci/database_management/models/named_credential.py b/src/oci/database_management/models/named_credential.py index e3b34a3b74..bf4a17a42c 100644 --- a/src/oci/database_management/models/named_credential.py +++ b/src/oci/database_management/models/named_credential.py @@ -118,6 +118,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this NamedCredential. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this NamedCredential. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'name': 'str', @@ -133,7 +137,8 @@ def __init__(self, **kwargs): 'time_updated': 'datetime', 'associated_resource': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -150,7 +155,8 @@ def __init__(self, **kwargs): 'time_updated': 'timeUpdated', 'associated_resource': 'associatedResource', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._name = None @@ -167,6 +173,7 @@ def __init__(self, **kwargs): self._associated_resource = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def name(self): @@ -548,6 +555,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this NamedCredential. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this NamedCredential. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this NamedCredential. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this NamedCredential. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/named_credential_summary.py b/src/oci/database_management/models/named_credential_summary.py index 975e713366..8145d8de15 100644 --- a/src/oci/database_management/models/named_credential_summary.py +++ b/src/oci/database_management/models/named_credential_summary.py @@ -110,6 +110,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this NamedCredentialSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this NamedCredentialSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -123,7 +127,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'time_updated': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -138,7 +143,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -153,6 +159,7 @@ def __init__(self, **kwargs): self._time_updated = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -492,6 +499,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this NamedCredentialSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this NamedCredentialSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this NamedCredentialSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this NamedCredentialSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/private_end_point_connector_details.py b/src/oci/database_management/models/private_end_point_connector_details.py new file mode 100644 index 0000000000..ecabb9ab45 --- /dev/null +++ b/src/oci/database_management/models/private_end_point_connector_details.py @@ -0,0 +1,86 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .connector_details import ConnectorDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PrivateEndPointConnectorDetails(ConnectorDetails): + """ + The private endpoint details required to connect to an Oracle cloud Database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new PrivateEndPointConnectorDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.PrivateEndPointConnectorDetails.connector_type` attribute + of this class is ``PE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connector_type: + The value to assign to the connector_type property of this PrivateEndPointConnectorDetails. + Allowed values for this property are: "PE", "MACS", "EXTERNAL" + :type connector_type: str + + :param private_end_point_id: + The value to assign to the private_end_point_id property of this PrivateEndPointConnectorDetails. + :type private_end_point_id: str + + """ + self.swagger_types = { + 'connector_type': 'str', + 'private_end_point_id': 'str' + } + + self.attribute_map = { + 'connector_type': 'connectorType', + 'private_end_point_id': 'privateEndPointId' + } + + self._connector_type = None + self._private_end_point_id = None + self._connector_type = 'PE' + + @property + def private_end_point_id(self): + """ + **[Required]** Gets the private_end_point_id of this PrivateEndPointConnectorDetails. + The `OCID`__ of the private endpoint. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The private_end_point_id of this PrivateEndPointConnectorDetails. + :rtype: str + """ + return self._private_end_point_id + + @private_end_point_id.setter + def private_end_point_id(self, private_end_point_id): + """ + Sets the private_end_point_id of this PrivateEndPointConnectorDetails. + The `OCID`__ of the private endpoint. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param private_end_point_id: The private_end_point_id of this PrivateEndPointConnectorDetails. + :type: str + """ + self._private_end_point_id = private_end_point_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/save_sql_tuning_set_as_details.py b/src/oci/database_management/models/save_sql_tuning_set_as_details.py index 47ff2ee213..40bea298b9 100644 --- a/src/oci/database_management/models/save_sql_tuning_set_as_details.py +++ b/src/oci/database_management/models/save_sql_tuning_set_as_details.py @@ -160,6 +160,10 @@ class SaveSqlTuningSetAsDetails(object): #: This constant has a value of "NEW" UPDATE_CONDITION_NEW = "NEW" + #: A constant which can be used with the update_condition property of a SaveSqlTuningSetAsDetails. + #: This constant has a value of "NULL" + UPDATE_CONDITION_NULL = "NULL" + def __init__(self, **kwargs): """ Initializes a new SaveSqlTuningSetAsDetails object with values from keyword arguments. @@ -254,7 +258,7 @@ def __init__(self, **kwargs): :param update_condition: The value to assign to the update_condition property of this SaveSqlTuningSetAsDetails. - Allowed values for this property are: "OLD", "NEW" + Allowed values for this property are: "OLD", "NEW", "NULL" :type update_condition: str :param update_attributes: @@ -972,7 +976,7 @@ def update_condition(self): NEW \u2014 Refers to statement attributes from the input statements (source). NULL \u2014 No updates are performed. - Allowed values for this property are: "OLD", "NEW" + Allowed values for this property are: "OLD", "NEW", "NULL" :return: The update_condition of this SaveSqlTuningSetAsDetails. @@ -996,7 +1000,7 @@ def update_condition(self, update_condition): :param update_condition: The update_condition of this SaveSqlTuningSetAsDetails. :type: str """ - allowed_values = ["OLD", "NEW"] + allowed_values = ["OLD", "NEW", "NULL"] if not value_allowed_none_or_none_sentinel(update_condition, allowed_values): raise ValueError( f"Invalid value for `update_condition`, must be None or one of {allowed_values}" diff --git a/src/oci/database_management/models/sql_job.py b/src/oci/database_management/models/sql_job.py index 6fbf71babf..cfa32e1ac5 100644 --- a/src/oci/database_management/models/sql_job.py +++ b/src/oci/database_management/models/sql_job.py @@ -171,6 +171,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this SqlJob. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this SqlJob. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -199,7 +203,8 @@ def __init__(self, **kwargs): 'role': 'str', 'named_credential_id': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -229,7 +234,8 @@ def __init__(self, **kwargs): 'role': 'role', 'named_credential_id': 'namedCredentialId', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -259,6 +265,7 @@ def __init__(self, **kwargs): self._named_credential_id = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None self._job_type = 'SQL' @property @@ -533,6 +540,42 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this SqlJob. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :return: The system_tags of this SqlJob. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this SqlJob. + System tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + System tags can be viewed by users, but can only be created by the system. + + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + __ https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm + + + :param system_tags: The system_tags of this SqlJob. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/sql_plan_baseline.py b/src/oci/database_management/models/sql_plan_baseline.py index 17c13fe708..119f2e4662 100644 --- a/src/oci/database_management/models/sql_plan_baseline.py +++ b/src/oci/database_management/models/sql_plan_baseline.py @@ -75,6 +75,54 @@ class SqlPlanBaseline(object): #: This constant has a value of "UNKNOWN" ORIGIN_UNKNOWN = "UNKNOWN" + #: A constant which can be used with the enabled property of a SqlPlanBaseline. + #: This constant has a value of "YES" + ENABLED_YES = "YES" + + #: A constant which can be used with the enabled property of a SqlPlanBaseline. + #: This constant has a value of "NO" + ENABLED_NO = "NO" + + #: A constant which can be used with the accepted property of a SqlPlanBaseline. + #: This constant has a value of "YES" + ACCEPTED_YES = "YES" + + #: A constant which can be used with the accepted property of a SqlPlanBaseline. + #: This constant has a value of "NO" + ACCEPTED_NO = "NO" + + #: A constant which can be used with the fixed property of a SqlPlanBaseline. + #: This constant has a value of "YES" + FIXED_YES = "YES" + + #: A constant which can be used with the fixed property of a SqlPlanBaseline. + #: This constant has a value of "NO" + FIXED_NO = "NO" + + #: A constant which can be used with the reproduced property of a SqlPlanBaseline. + #: This constant has a value of "YES" + REPRODUCED_YES = "YES" + + #: A constant which can be used with the reproduced property of a SqlPlanBaseline. + #: This constant has a value of "NO" + REPRODUCED_NO = "NO" + + #: A constant which can be used with the auto_purge property of a SqlPlanBaseline. + #: This constant has a value of "YES" + AUTO_PURGE_YES = "YES" + + #: A constant which can be used with the auto_purge property of a SqlPlanBaseline. + #: This constant has a value of "NO" + AUTO_PURGE_NO = "NO" + + #: A constant which can be used with the adaptive property of a SqlPlanBaseline. + #: This constant has a value of "YES" + ADAPTIVE_YES = "YES" + + #: A constant which can be used with the adaptive property of a SqlPlanBaseline. + #: This constant has a value of "NO" + ADAPTIVE_NO = "NO" + def __init__(self, **kwargs): """ Initializes a new SqlPlanBaseline object with values from keyword arguments. @@ -112,26 +160,38 @@ def __init__(self, **kwargs): :param enabled: The value to assign to the enabled property of this SqlPlanBaseline. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type enabled: str :param accepted: The value to assign to the accepted property of this SqlPlanBaseline. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type accepted: str :param fixed: The value to assign to the fixed property of this SqlPlanBaseline. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type fixed: str :param reproduced: The value to assign to the reproduced property of this SqlPlanBaseline. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type reproduced: str :param auto_purge: The value to assign to the auto_purge property of this SqlPlanBaseline. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type auto_purge: str :param adaptive: The value to assign to the adaptive property of this SqlPlanBaseline. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type adaptive: str :param module: @@ -390,6 +450,9 @@ def enabled(self): Gets the enabled of this SqlPlanBaseline. Indicates whether the plan baseline is enabled (`YES`) or disabled (`NO`). + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The enabled of this SqlPlanBaseline. :rtype: str @@ -406,6 +469,9 @@ def enabled(self, enabled): :param enabled: The enabled of this SqlPlanBaseline. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(enabled, allowed_values): + enabled = 'UNKNOWN_ENUM_VALUE' self._enabled = enabled @property @@ -414,6 +480,9 @@ def accepted(self): Gets the accepted of this SqlPlanBaseline. Indicates whether the plan baseline is accepted (`YES`) or not (`NO`). + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The accepted of this SqlPlanBaseline. :rtype: str @@ -430,6 +499,9 @@ def accepted(self, accepted): :param accepted: The accepted of this SqlPlanBaseline. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(accepted, allowed_values): + accepted = 'UNKNOWN_ENUM_VALUE' self._accepted = accepted @property @@ -438,6 +510,9 @@ def fixed(self): Gets the fixed of this SqlPlanBaseline. Indicates whether the plan baseline is fixed (`YES`) or not (`NO`). + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The fixed of this SqlPlanBaseline. :rtype: str @@ -454,6 +529,9 @@ def fixed(self, fixed): :param fixed: The fixed of this SqlPlanBaseline. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(fixed, allowed_values): + fixed = 'UNKNOWN_ENUM_VALUE' self._fixed = fixed @property @@ -463,6 +541,9 @@ def reproduced(self): Indicates whether the optimizer was able to reproduce the plan (`YES`) or not (`NO`). The value is set to `YES` when a plan is initially added to the plan baseline. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The reproduced of this SqlPlanBaseline. :rtype: str @@ -480,6 +561,9 @@ def reproduced(self, reproduced): :param reproduced: The reproduced of this SqlPlanBaseline. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(reproduced, allowed_values): + reproduced = 'UNKNOWN_ENUM_VALUE' self._reproduced = reproduced @property @@ -488,6 +572,9 @@ def auto_purge(self): Gets the auto_purge of this SqlPlanBaseline. Indicates whether the plan baseline is auto-purged (`YES`) or not (`NO`). + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The auto_purge of this SqlPlanBaseline. :rtype: str @@ -504,6 +591,9 @@ def auto_purge(self, auto_purge): :param auto_purge: The auto_purge of this SqlPlanBaseline. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(auto_purge, allowed_values): + auto_purge = 'UNKNOWN_ENUM_VALUE' self._auto_purge = auto_purge @property @@ -519,6 +609,9 @@ def adaptive(self): the existing plan baseline. At this point, the value of the `ADAPTIVE` property is set to `NO` since the plan is no longer adaptive, but resolved. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The adaptive of this SqlPlanBaseline. :rtype: str @@ -542,6 +635,9 @@ def adaptive(self, adaptive): :param adaptive: The adaptive of this SqlPlanBaseline. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(adaptive, allowed_values): + adaptive = 'UNKNOWN_ENUM_VALUE' self._adaptive = adaptive @property diff --git a/src/oci/database_management/models/sql_plan_baseline_summary.py b/src/oci/database_management/models/sql_plan_baseline_summary.py index aadaa313b4..7881601333 100644 --- a/src/oci/database_management/models/sql_plan_baseline_summary.py +++ b/src/oci/database_management/models/sql_plan_baseline_summary.py @@ -75,6 +75,54 @@ class SqlPlanBaselineSummary(object): #: This constant has a value of "UNKNOWN" ORIGIN_UNKNOWN = "UNKNOWN" + #: A constant which can be used with the enabled property of a SqlPlanBaselineSummary. + #: This constant has a value of "YES" + ENABLED_YES = "YES" + + #: A constant which can be used with the enabled property of a SqlPlanBaselineSummary. + #: This constant has a value of "NO" + ENABLED_NO = "NO" + + #: A constant which can be used with the accepted property of a SqlPlanBaselineSummary. + #: This constant has a value of "YES" + ACCEPTED_YES = "YES" + + #: A constant which can be used with the accepted property of a SqlPlanBaselineSummary. + #: This constant has a value of "NO" + ACCEPTED_NO = "NO" + + #: A constant which can be used with the fixed property of a SqlPlanBaselineSummary. + #: This constant has a value of "YES" + FIXED_YES = "YES" + + #: A constant which can be used with the fixed property of a SqlPlanBaselineSummary. + #: This constant has a value of "NO" + FIXED_NO = "NO" + + #: A constant which can be used with the reproduced property of a SqlPlanBaselineSummary. + #: This constant has a value of "YES" + REPRODUCED_YES = "YES" + + #: A constant which can be used with the reproduced property of a SqlPlanBaselineSummary. + #: This constant has a value of "NO" + REPRODUCED_NO = "NO" + + #: A constant which can be used with the auto_purge property of a SqlPlanBaselineSummary. + #: This constant has a value of "YES" + AUTO_PURGE_YES = "YES" + + #: A constant which can be used with the auto_purge property of a SqlPlanBaselineSummary. + #: This constant has a value of "NO" + AUTO_PURGE_NO = "NO" + + #: A constant which can be used with the adaptive property of a SqlPlanBaselineSummary. + #: This constant has a value of "YES" + ADAPTIVE_YES = "YES" + + #: A constant which can be used with the adaptive property of a SqlPlanBaselineSummary. + #: This constant has a value of "NO" + ADAPTIVE_NO = "NO" + def __init__(self, **kwargs): """ Initializes a new SqlPlanBaselineSummary object with values from keyword arguments. @@ -112,26 +160,38 @@ def __init__(self, **kwargs): :param enabled: The value to assign to the enabled property of this SqlPlanBaselineSummary. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type enabled: str :param accepted: The value to assign to the accepted property of this SqlPlanBaselineSummary. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type accepted: str :param fixed: The value to assign to the fixed property of this SqlPlanBaselineSummary. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type fixed: str :param reproduced: The value to assign to the reproduced property of this SqlPlanBaselineSummary. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type reproduced: str :param auto_purge: The value to assign to the auto_purge property of this SqlPlanBaselineSummary. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type auto_purge: str :param adaptive: The value to assign to the adaptive property of this SqlPlanBaselineSummary. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type adaptive: str """ @@ -369,6 +429,9 @@ def enabled(self): Gets the enabled of this SqlPlanBaselineSummary. Indicates whether the plan baseline is enabled (`YES`) or disabled (`NO`). + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The enabled of this SqlPlanBaselineSummary. :rtype: str @@ -385,6 +448,9 @@ def enabled(self, enabled): :param enabled: The enabled of this SqlPlanBaselineSummary. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(enabled, allowed_values): + enabled = 'UNKNOWN_ENUM_VALUE' self._enabled = enabled @property @@ -393,6 +459,9 @@ def accepted(self): Gets the accepted of this SqlPlanBaselineSummary. Indicates whether the plan baseline is accepted (`YES`) or not (`NO`). + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The accepted of this SqlPlanBaselineSummary. :rtype: str @@ -409,6 +478,9 @@ def accepted(self, accepted): :param accepted: The accepted of this SqlPlanBaselineSummary. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(accepted, allowed_values): + accepted = 'UNKNOWN_ENUM_VALUE' self._accepted = accepted @property @@ -417,6 +489,9 @@ def fixed(self): Gets the fixed of this SqlPlanBaselineSummary. Indicates whether the plan baseline is fixed (`YES`) or not (`NO`). + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The fixed of this SqlPlanBaselineSummary. :rtype: str @@ -433,6 +508,9 @@ def fixed(self, fixed): :param fixed: The fixed of this SqlPlanBaselineSummary. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(fixed, allowed_values): + fixed = 'UNKNOWN_ENUM_VALUE' self._fixed = fixed @property @@ -442,6 +520,9 @@ def reproduced(self): Indicates whether the optimizer was able to reproduce the plan (`YES`) or not (`NO`). The value is set to `YES` when a plan is initially added to the plan baseline. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The reproduced of this SqlPlanBaselineSummary. :rtype: str @@ -459,6 +540,9 @@ def reproduced(self, reproduced): :param reproduced: The reproduced of this SqlPlanBaselineSummary. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(reproduced, allowed_values): + reproduced = 'UNKNOWN_ENUM_VALUE' self._reproduced = reproduced @property @@ -467,6 +551,9 @@ def auto_purge(self): Gets the auto_purge of this SqlPlanBaselineSummary. Indicates whether the plan baseline is auto-purged (`YES`) or not (`NO`). + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The auto_purge of this SqlPlanBaselineSummary. :rtype: str @@ -483,6 +570,9 @@ def auto_purge(self, auto_purge): :param auto_purge: The auto_purge of this SqlPlanBaselineSummary. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(auto_purge, allowed_values): + auto_purge = 'UNKNOWN_ENUM_VALUE' self._auto_purge = auto_purge @property @@ -498,6 +588,9 @@ def adaptive(self): the existing plan baseline. At this point, the value of the `ADAPTIVE` property is set to `NO` since the plan is no longer adaptive, but resolved. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The adaptive of this SqlPlanBaselineSummary. :rtype: str @@ -521,6 +614,9 @@ def adaptive(self, adaptive): :param adaptive: The adaptive of this SqlPlanBaselineSummary. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(adaptive, allowed_values): + adaptive = 'UNKNOWN_ENUM_VALUE' self._adaptive = adaptive def __repr__(self): diff --git a/src/oci/database_management/models/sql_tuning_set.py b/src/oci/database_management/models/sql_tuning_set.py index 508c1cd415..4125d339e3 100644 --- a/src/oci/database_management/models/sql_tuning_set.py +++ b/src/oci/database_management/models/sql_tuning_set.py @@ -63,6 +63,14 @@ class SqlTuningSet(object): #: This constant has a value of "CHAIN_STALLED" STATUS_CHAIN_STALLED = "CHAIN_STALLED" + #: A constant which can be used with the all_sql_statements_fetched property of a SqlTuningSet. + #: This constant has a value of "YES" + ALL_SQL_STATEMENTS_FETCHED_YES = "YES" + + #: A constant which can be used with the all_sql_statements_fetched property of a SqlTuningSet. + #: This constant has a value of "NO" + ALL_SQL_STATEMENTS_FETCHED_NO = "NO" + def __init__(self, **kwargs): """ Initializes a new SqlTuningSet object with values from keyword arguments. @@ -112,6 +120,8 @@ def __init__(self, **kwargs): :param all_sql_statements_fetched: The value to assign to the all_sql_statements_fetched property of this SqlTuningSet. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type all_sql_statements_fetched: str :param sql_list: @@ -419,6 +429,9 @@ def all_sql_statements_fetched(self): - No - There are more Sql statements matching the fitler criteria. User should fine tune the filter criteria to narrow down the result set. + Allowed values for this property are: "YES", "NO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :return: The all_sql_statements_fetched of this SqlTuningSet. :rtype: str @@ -440,6 +453,9 @@ def all_sql_statements_fetched(self, all_sql_statements_fetched): :param all_sql_statements_fetched: The all_sql_statements_fetched of this SqlTuningSet. :type: str """ + allowed_values = ["YES", "NO"] + if not value_allowed_none_or_none_sentinel(all_sql_statements_fetched, allowed_values): + all_sql_statements_fetched = 'UNKNOWN_ENUM_VALUE' self._all_sql_statements_fetched = all_sql_statements_fetched @property diff --git a/src/oci/database_management/models/work_request.py b/src/oci/database_management/models/work_request.py index 75d06cf973..e33db767eb 100644 --- a/src/oci/database_management/models/work_request.py +++ b/src/oci/database_management/models/work_request.py @@ -71,6 +71,42 @@ class WorkRequest(object): #: This constant has a value of "CHANGE_EXADATA_COMPARTMENT" OPERATION_TYPE_CHANGE_EXADATA_COMPARTMENT = "CHANGE_EXADATA_COMPARTMENT" + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "ENABLE_SQL_WATCH" + OPERATION_TYPE_ENABLE_SQL_WATCH = "ENABLE_SQL_WATCH" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DISABLE_SQL_WATCH" + OPERATION_TYPE_DISABLE_SQL_WATCH = "DISABLE_SQL_WATCH" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "MODIFY_SQL_WATCH" + OPERATION_TYPE_MODIFY_SQL_WATCH = "MODIFY_SQL_WATCH" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "ENABLE_DBLM" + OPERATION_TYPE_ENABLE_DBLM = "ENABLE_DBLM" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DISABLE_DBLM" + OPERATION_TYPE_DISABLE_DBLM = "DISABLE_DBLM" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "MODIFY_DBLM" + OPERATION_TYPE_MODIFY_DBLM = "MODIFY_DBLM" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "ENABLE_DBMGMT" + OPERATION_TYPE_ENABLE_DBMGMT = "ENABLE_DBMGMT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DISABLE_DBMGMT" + OPERATION_TYPE_DISABLE_DBMGMT = "DISABLE_DBMGMT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "MODIFY_DBMGMT" + OPERATION_TYPE_MODIFY_DBMGMT = "MODIFY_DBMGMT" + #: A constant which can be used with the status property of a WorkRequest. #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" @@ -110,7 +146,7 @@ def __init__(self, **kwargs): :param operation_type: The value to assign to the operation_type property of this WorkRequest. - Allowed values for this property are: "CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", "ENABLE_SQL_WATCH", "DISABLE_SQL_WATCH", "MODIFY_SQL_WATCH", "ENABLE_DBLM", "DISABLE_DBLM", "MODIFY_DBLM", "ENABLE_DBMGMT", "DISABLE_DBMGMT", "MODIFY_DBMGMT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -233,7 +269,7 @@ def operation_type(self): **[Required]** Gets the operation_type of this WorkRequest. The type of work request. - Allowed values for this property are: "CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", "ENABLE_SQL_WATCH", "DISABLE_SQL_WATCH", "MODIFY_SQL_WATCH", "ENABLE_DBLM", "DISABLE_DBLM", "MODIFY_DBLM", "ENABLE_DBMGMT", "DISABLE_DBMGMT", "MODIFY_DBMGMT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -252,7 +288,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequest. :type: str """ - allowed_values = ["CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT"] + allowed_values = ["CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", "ENABLE_SQL_WATCH", "DISABLE_SQL_WATCH", "MODIFY_SQL_WATCH", "ENABLE_DBLM", "DISABLE_DBLM", "MODIFY_DBLM", "ENABLE_DBMGMT", "DISABLE_DBMGMT", "MODIFY_DBMGMT"] if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): operation_type = 'UNKNOWN_ENUM_VALUE' self._operation_type = operation_type diff --git a/src/oci/database_management/models/work_request_summary.py b/src/oci/database_management/models/work_request_summary.py index 6421de39ba..b032f3957b 100644 --- a/src/oci/database_management/models/work_request_summary.py +++ b/src/oci/database_management/models/work_request_summary.py @@ -71,6 +71,42 @@ class WorkRequestSummary(object): #: This constant has a value of "CHANGE_EXADATA_COMPARTMENT" OPERATION_TYPE_CHANGE_EXADATA_COMPARTMENT = "CHANGE_EXADATA_COMPARTMENT" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "ENABLE_SQL_WATCH" + OPERATION_TYPE_ENABLE_SQL_WATCH = "ENABLE_SQL_WATCH" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DISABLE_SQL_WATCH" + OPERATION_TYPE_DISABLE_SQL_WATCH = "DISABLE_SQL_WATCH" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "MODIFY_SQL_WATCH" + OPERATION_TYPE_MODIFY_SQL_WATCH = "MODIFY_SQL_WATCH" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "ENABLE_DBLM" + OPERATION_TYPE_ENABLE_DBLM = "ENABLE_DBLM" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DISABLE_DBLM" + OPERATION_TYPE_DISABLE_DBLM = "DISABLE_DBLM" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "MODIFY_DBLM" + OPERATION_TYPE_MODIFY_DBLM = "MODIFY_DBLM" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "ENABLE_DBMGMT" + OPERATION_TYPE_ENABLE_DBMGMT = "ENABLE_DBMGMT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DISABLE_DBMGMT" + OPERATION_TYPE_DISABLE_DBMGMT = "DISABLE_DBMGMT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "MODIFY_DBMGMT" + OPERATION_TYPE_MODIFY_DBMGMT = "MODIFY_DBMGMT" + #: A constant which can be used with the status property of a WorkRequestSummary. #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" @@ -102,7 +138,7 @@ def __init__(self, **kwargs): :param operation_type: The value to assign to the operation_type property of this WorkRequestSummary. - Allowed values for this property are: "CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", "ENABLE_SQL_WATCH", "DISABLE_SQL_WATCH", "MODIFY_SQL_WATCH", "ENABLE_DBLM", "DISABLE_DBLM", "MODIFY_DBLM", "ENABLE_DBMGMT", "DISABLE_DBMGMT", "MODIFY_DBMGMT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -181,7 +217,7 @@ def operation_type(self): **[Required]** Gets the operation_type of this WorkRequestSummary. The type of work request. - Allowed values for this property are: "CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", "ENABLE_SQL_WATCH", "DISABLE_SQL_WATCH", "MODIFY_SQL_WATCH", "ENABLE_DBLM", "DISABLE_DBLM", "MODIFY_DBLM", "ENABLE_DBMGMT", "DISABLE_DBMGMT", "MODIFY_DBMGMT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -200,7 +236,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequestSummary. :type: str """ - allowed_values = ["CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT"] + allowed_values = ["CREATE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "DELETE_DB_MANAGEMENT_PRIVATE_ENDPOINT", "CREATE_DB_SYSTEM_DISCOVERY", "CREATE_DB_SYSTEM", "UPDATE_DB_SYSTEM", "DB_SYSTEM_ENABLE_DBMGMT", "DB_SYSTEM_DISABLE_DBMGMT", "DELETE_DB_SYSTEM", "UPDATE_EXTERNAL_DB_SYSTEM_CONNECTOR", "CHANGE_EXTERNAL_DB_SYSTEM_COMPARTMENT", "DISABLE_EXADATA_INFRASTURCTURE", "ENABLE_EXADATA_INFRASTRUCTURE", "DELETE_EXADATA_INFRASTRUCTURE", "CHANGE_EXADATA_COMPARTMENT", "ENABLE_SQL_WATCH", "DISABLE_SQL_WATCH", "MODIFY_SQL_WATCH", "ENABLE_DBLM", "DISABLE_DBLM", "MODIFY_DBLM", "ENABLE_DBMGMT", "DISABLE_DBMGMT", "MODIFY_DBMGMT"] if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): operation_type = 'UNKNOWN_ENUM_VALUE' self._operation_type = operation_type diff --git a/src/oci/database_management/perfhub_client.py b/src/oci/database_management/perfhub_client.py index 59d010bd16..91e0dc133d 100644 --- a/src/oci/database_management/perfhub_client.py +++ b/src/oci/database_management/perfhub_client.py @@ -22,9 +22,9 @@ class PerfhubClient(object): """ - Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics - for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and - running a SQL job on a Managed Database or Managed Database Group. + Use the Database Management API to monitor and manage resources such as + Oracle Databases, MySQL Databases, and External Database Systems. + For more information, see [Database Management](/iaas/database-management/home.htm). """ def __init__(self, config, **kwargs): diff --git a/src/oci/database_management/sql_tuning_client.py b/src/oci/database_management/sql_tuning_client.py index 8903f891c8..6ff3544f0f 100644 --- a/src/oci/database_management/sql_tuning_client.py +++ b/src/oci/database_management/sql_tuning_client.py @@ -22,9 +22,9 @@ class SqlTuningClient(object): """ - Use the Database Management API to perform tasks such as obtaining performance and resource usage metrics - for a fleet of Managed Databases or a specific Managed Database, creating Managed Database Groups, and - running a SQL job on a Managed Database or Managed Database Group. + Use the Database Management API to monitor and manage resources such as + Oracle Databases, MySQL Databases, and External Database Systems. + For more information, see [Database Management](/iaas/database-management/home.htm). """ def __init__(self, config, **kwargs): diff --git a/src/oci/recovery/database_recovery_client.py b/src/oci/recovery/database_recovery_client.py index 81da32353f..c26e43d942 100644 --- a/src/oci/recovery/database_recovery_client.py +++ b/src/oci/recovery/database_recovery_client.py @@ -116,6 +116,111 @@ def __init__(self, config, **kwargs): self.retry_strategy = kwargs.get('retry_strategy') self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') + def cancel_protected_database_deletion(self, protected_database_id, **kwargs): + """ + Cancels the scheduled deletion of a protected database, and returns the protected database to an ACTIVE state. You can cancel the deletion only if the protected database is in the DELETE SCHEDULED state. + + + :param str protected_database_id: (required) + The protected database OCID. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use cancel_protected_database_deletion API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['protectedDatabaseId'] + resource_path = "/protectedDatabases/{protectedDatabaseId}/actions/cancelDeletion" + method = "POST" + operation_name = "cancel_protected_database_deletion" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/CancelProtectedDatabaseDeletion" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"cancel_protected_database_deletion got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "protectedDatabaseId": protected_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def change_protected_database_compartment(self, protected_database_id, change_protected_database_compartment_details, **kwargs): """ Moves a protected database resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource. @@ -464,6 +569,29 @@ def create_protected_database(self, create_protected_database_details, **kwargs) :param str opc_request_id: (optional) Unique identifier for the request. + :param bool opc_dry_run: (optional) + Indicates if the request is to test the preparedness for creating a protected database, without actually creating a protected database. + + If you set the `opcDryRun` option as `true`, then Recovery Service only performs a test run to check for any missing prerequisites or configurations required to create a protected database, and then returns error messages to warn you about any missing requirements. + + If an error occurs, you can review, correct, and repeat the dry run until the `createProtectedDatabase` request does not return any errors. + + These are the common issues that you can identify by performing a dry run of the `createProtectedDatabase` request: + + * The Recovery Service subnet has insufficient free IP addresses to support the required number of private endpoints. See, `troubleshooting`__ information + * Recovery Service does not have permissions to manage the network resources in a chosen compartment + * Recovery Service is out of capacity. See, `Service Limits`__ for more information + * Recovery Service resources exceed quota limits + * A protected database, having the same database ID, already exists + * The specified protection policy does not exist, or it is not in an Active state + * The specified Recovery Service subnet does not exist, or it is not in an Active state + + See, `Prerequisites for Using Recovery Service`__ for more information. + + __ https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/troubleshoot-backup-failures-recovery-service.html#GUID-05FA08B8-421D-4E52-B84B-7AFB84ADECF9 + __ https://docs.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm + __ https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/backup-recover-recovery-service.html#GUID-B2ABF281-DFF8-4A4E-AC85-629801AAF36A + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -494,7 +622,8 @@ def create_protected_database(self, create_protected_database_details, **kwargs) "allow_control_chars", "retry_strategy", "opc_retry_token", - "opc_request_id" + "opc_request_id", + "opc_dry_run" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -505,7 +634,8 @@ def create_protected_database(self, create_protected_database_details, **kwargs) "accept": "application/json", "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-dry-run": kwargs.get("opc_dry_run", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -748,6 +878,13 @@ def delete_protected_database(self, protected_database_id, **kwargs): :param str protected_database_id: (required) The protected database OCID. + :param str deletion_schedule: (optional) + Defines a preferred schedule to delete a protected database after you terminate the source database. + * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated . + * The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires. + + Allowed values are: "DELETE_AFTER_RETENTION_PERIOD", "DELETE_AFTER_72_HOURS" + :param str if_match: (optional) For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the @@ -787,6 +924,7 @@ def delete_protected_database(self, protected_database_id, **kwargs): expected_kwargs = [ "allow_control_chars", "retry_strategy", + "deletion_schedule", "if_match", "opc_request_id" ] @@ -805,6 +943,18 @@ def delete_protected_database(self, protected_database_id, **kwargs): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + if 'deletion_schedule' in kwargs: + deletion_schedule_allowed_values = ["DELETE_AFTER_RETENTION_PERIOD", "DELETE_AFTER_72_HOURS"] + if kwargs['deletion_schedule'] not in deletion_schedule_allowed_values: + raise ValueError( + f"Invalid value for `deletion_schedule`, must be one of { deletion_schedule_allowed_values }" + ) + + query_params = { + "deletionSchedule": kwargs.get("deletion_schedule", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + header_params = { "accept": "application/json", "content-type": "application/json", @@ -829,6 +979,7 @@ def delete_protected_database(self, protected_database_id, **kwargs): resource_path=resource_path, method=method, path_params=path_params, + query_params=query_params, header_params=header_params, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, @@ -839,6 +990,7 @@ def delete_protected_database(self, protected_database_id, **kwargs): resource_path=resource_path, method=method, path_params=path_params, + query_params=query_params, header_params=header_params, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, @@ -1572,7 +1724,7 @@ def list_protected_databases(self, compartment_id, **kwargs): :param str lifecycle_state: (optional) A filter to return only the resources that match the specified lifecycle state. - Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED" :param str display_name: (optional) A filter to return only resources that match the entire 'displayname' given. @@ -1657,7 +1809,7 @@ def list_protected_databases(self, compartment_id, **kwargs): f"list_protected_databases got unknown kwargs: {extra_kwargs!r}") if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: raise ValueError( f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" @@ -1743,7 +1895,7 @@ def list_protection_policies(self, compartment_id, **kwargs): :param str lifecycle_state: (optional) A filter to return only resources their lifecycleState matches the given lifecycleState. - Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED" :param str display_name: (optional) A filter to return only resources that match the entire 'displayname' given. @@ -1826,7 +1978,7 @@ def list_protection_policies(self, compartment_id, **kwargs): f"list_protection_policies got unknown kwargs: {extra_kwargs!r}") if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: raise ValueError( f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" @@ -1917,15 +2069,8 @@ def list_recovery_service_subnets(self, compartment_id, **kwargs): :param str lifecycle_state: (optional) A filter to return only the resources that match the specified lifecycle state. - Allowed values are: - - CREATING - - UPDATING - - ACTIVE - - DELETING - - DELETED - - FAILED - Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED" :param str display_name: (optional) A filter to return only resources that match the entire 'displayname' given. @@ -2006,7 +2151,7 @@ def list_recovery_service_subnets(self, compartment_id, **kwargs): f"list_recovery_service_subnets got unknown kwargs: {extra_kwargs!r}") if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: raise ValueError( f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" @@ -2384,7 +2529,7 @@ def list_work_requests(self, compartment_id, **kwargs): :param str status: (optional) A filter to return only resources their lifecycleState matches the given OperationStatus. - Allowed values are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" + Allowed values are: "ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" :param str resource_id: (optional) The ID of the resource affected by the work request. @@ -2455,7 +2600,7 @@ def list_work_requests(self, compartment_id, **kwargs): f"list_work_requests got unknown kwargs: {extra_kwargs!r}") if 'status' in kwargs: - status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] + status_allowed_values = ["ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] if kwargs['status'] not in status_allowed_values: raise ValueError( f"Invalid value for `status`, must be one of { status_allowed_values }" @@ -2528,6 +2673,119 @@ def list_work_requests(self, compartment_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def schedule_protected_database_deletion(self, protected_database_id, **kwargs): + """ + Defines a preferred schedule to delete a protected database after you terminate the source database. + The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated. + The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires. + + + :param str protected_database_id: (required) + The protected database OCID. + + :param oci.recovery.models.ScheduleProtectedDatabaseDeletionDetails schedule_protected_database_deletion_details: (optional) + The details for scheduling deletion of the protected database + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use schedule_protected_database_deletion API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['protectedDatabaseId'] + resource_path = "/protectedDatabases/{protectedDatabaseId}/actions/scheduleDeletion" + method = "POST" + operation_name = "schedule_protected_database_deletion" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/ScheduleProtectedDatabaseDeletion" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "schedule_protected_database_deletion_details", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"schedule_protected_database_deletion got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "protectedDatabaseId": protected_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=kwargs.get('schedule_protected_database_deletion_details'), + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=kwargs.get('schedule_protected_database_deletion_details'), + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def update_protected_database(self, protected_database_id, update_protected_database_details, **kwargs): """ Updates the Protected Database diff --git a/src/oci/recovery/database_recovery_client_composite_operations.py b/src/oci/recovery/database_recovery_client_composite_operations.py index d2560ee04e..c9f457fa7f 100644 --- a/src/oci/recovery/database_recovery_client_composite_operations.py +++ b/src/oci/recovery/database_recovery_client_composite_operations.py @@ -409,6 +409,45 @@ def delete_recovery_service_subnet_and_wait_for_state(self, recovery_service_sub except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def schedule_protected_database_deletion_and_wait_for_state(self, protected_database_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.recovery.DatabaseRecoveryClient.schedule_protected_database_deletion` and waits for the :py:class:`~oci.recovery.models.WorkRequest` + to enter the given state(s). + + :param str protected_database_id: (required) + The protected database OCID. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.recovery.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.recovery.DatabaseRecoveryClient.schedule_protected_database_deletion` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.schedule_protected_database_deletion(protected_database_id, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_protected_database_and_wait_for_state(self, protected_database_id, update_protected_database_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.recovery.DatabaseRecoveryClient.update_protected_database` and waits for the :py:class:`~oci.recovery.models.WorkRequest` diff --git a/src/oci/recovery/models/__init__.py b/src/oci/recovery/models/__init__.py index a9e46c5d00..ed25249038 100644 --- a/src/oci/recovery/models/__init__.py +++ b/src/oci/recovery/models/__init__.py @@ -26,6 +26,7 @@ from .recovery_service_subnet_details import RecoveryServiceSubnetDetails from .recovery_service_subnet_input import RecoveryServiceSubnetInput from .recovery_service_subnet_summary import RecoveryServiceSubnetSummary +from .schedule_protected_database_deletion_details import ScheduleProtectedDatabaseDeletionDetails from .update_protected_database_details import UpdateProtectedDatabaseDetails from .update_protection_policy_details import UpdateProtectionPolicyDetails from .update_recovery_service_subnet_details import UpdateRecoveryServiceSubnetDetails @@ -60,6 +61,7 @@ "RecoveryServiceSubnetDetails": RecoveryServiceSubnetDetails, "RecoveryServiceSubnetInput": RecoveryServiceSubnetInput, "RecoveryServiceSubnetSummary": RecoveryServiceSubnetSummary, + "ScheduleProtectedDatabaseDeletionDetails": ScheduleProtectedDatabaseDeletionDetails, "UpdateProtectedDatabaseDetails": UpdateProtectedDatabaseDetails, "UpdateProtectionPolicyDetails": UpdateProtectionPolicyDetails, "UpdateRecoveryServiceSubnetDetails": UpdateRecoveryServiceSubnetDetails, diff --git a/src/oci/recovery/models/create_protection_policy_details.py b/src/oci/recovery/models/create_protection_policy_details.py index 42a1c86246..00462fa27c 100644 --- a/src/oci/recovery/models/create_protection_policy_details.py +++ b/src/oci/recovery/models/create_protection_policy_details.py @@ -32,6 +32,10 @@ def __init__(self, **kwargs): The value to assign to the compartment_id property of this CreateProtectionPolicyDetails. :type compartment_id: str + :param policy_locked_date_time: + The value to assign to the policy_locked_date_time property of this CreateProtectionPolicyDetails. + :type policy_locked_date_time: str + :param freeform_tags: The value to assign to the freeform_tags property of this CreateProtectionPolicyDetails. :type freeform_tags: dict(str, str) @@ -45,6 +49,7 @@ def __init__(self, **kwargs): 'display_name': 'str', 'backup_retention_period_in_days': 'int', 'compartment_id': 'str', + 'policy_locked_date_time': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } @@ -53,6 +58,7 @@ def __init__(self, **kwargs): 'display_name': 'displayName', 'backup_retention_period_in_days': 'backupRetentionPeriodInDays', 'compartment_id': 'compartmentId', + 'policy_locked_date_time': 'policyLockedDateTime', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } @@ -60,6 +66,7 @@ def __init__(self, **kwargs): self._display_name = None self._backup_retention_period_in_days = None self._compartment_id = None + self._policy_locked_date_time = None self._freeform_tags = None self._defined_tags = None @@ -135,6 +142,44 @@ def compartment_id(self, compartment_id): """ self._compartment_id = compartment_id + @property + def policy_locked_date_time(self): + """ + Gets the policy_locked_date_time of this CreateProtectionPolicyDetails. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. + * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date. + * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. + * During the 14-day delay period, you can either increase or decrease the retention period in the policy. + * However, you are only allowed to increase the retention period on or after the retention lock date. + * You cannot change the value of policyLockedDateTime if the retention lock is already in effect. + + + :return: The policy_locked_date_time of this CreateProtectionPolicyDetails. + :rtype: str + """ + return self._policy_locked_date_time + + @policy_locked_date_time.setter + def policy_locked_date_time(self, policy_locked_date_time): + """ + Sets the policy_locked_date_time of this CreateProtectionPolicyDetails. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. + * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date. + * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. + * During the 14-day delay period, you can either increase or decrease the retention period in the policy. + * However, you are only allowed to increase the retention period on or after the retention lock date. + * You cannot change the value of policyLockedDateTime if the retention lock is already in effect. + + + :param policy_locked_date_time: The policy_locked_date_time of this CreateProtectionPolicyDetails. + :type: str + """ + self._policy_locked_date_time = policy_locked_date_time + @property def freeform_tags(self): """ diff --git a/src/oci/recovery/models/create_recovery_service_subnet_details.py b/src/oci/recovery/models/create_recovery_service_subnet_details.py index 49d9931e31..5402913d92 100644 --- a/src/oci/recovery/models/create_recovery_service_subnet_details.py +++ b/src/oci/recovery/models/create_recovery_service_subnet_details.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class CreateRecoveryServiceSubnetDetails(object): """ - Describes the parameters required to create a recovery service subnet. + Describes the parameters required to create a Recovery Service Subnet. """ def __init__(self, **kwargs): @@ -28,6 +28,14 @@ def __init__(self, **kwargs): The value to assign to the subnet_id property of this CreateRecoveryServiceSubnetDetails. :type subnet_id: str + :param subnets: + The value to assign to the subnets property of this CreateRecoveryServiceSubnetDetails. + :type subnets: list[str] + + :param nsg_ids: + The value to assign to the nsg_ids property of this CreateRecoveryServiceSubnetDetails. + :type nsg_ids: list[str] + :param vcn_id: The value to assign to the vcn_id property of this CreateRecoveryServiceSubnetDetails. :type vcn_id: str @@ -48,6 +56,8 @@ def __init__(self, **kwargs): self.swagger_types = { 'display_name': 'str', 'subnet_id': 'str', + 'subnets': 'list[str]', + 'nsg_ids': 'list[str]', 'vcn_id': 'str', 'compartment_id': 'str', 'freeform_tags': 'dict(str, str)', @@ -57,6 +67,8 @@ def __init__(self, **kwargs): self.attribute_map = { 'display_name': 'displayName', 'subnet_id': 'subnetId', + 'subnets': 'subnets', + 'nsg_ids': 'nsgIds', 'vcn_id': 'vcnId', 'compartment_id': 'compartmentId', 'freeform_tags': 'freeformTags', @@ -65,6 +77,8 @@ def __init__(self, **kwargs): self._display_name = None self._subnet_id = None + self._subnets = None + self._nsg_ids = None self._vcn_id = None self._compartment_id = None self._freeform_tags = None @@ -97,8 +111,8 @@ def display_name(self, display_name): @property def subnet_id(self): """ - **[Required]** Gets the subnet_id of this CreateRecoveryServiceSubnetDetails. - The OCID of the subnet associated with the recovery service subnet. You can create a single backup network per virtual cloud network (VCN). + Gets the subnet_id of this CreateRecoveryServiceSubnetDetails. + Deprecated. One of the subnets associated with the Recovery Service subnet. :return: The subnet_id of this CreateRecoveryServiceSubnetDetails. @@ -110,7 +124,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """ Sets the subnet_id of this CreateRecoveryServiceSubnetDetails. - The OCID of the subnet associated with the recovery service subnet. You can create a single backup network per virtual cloud network (VCN). + Deprecated. One of the subnets associated with the Recovery Service subnet. :param subnet_id: The subnet_id of this CreateRecoveryServiceSubnetDetails. @@ -118,6 +132,60 @@ def subnet_id(self, subnet_id): """ self._subnet_id = subnet_id + @property + def subnets(self): + """ + Gets the subnets of this CreateRecoveryServiceSubnetDetails. + A list of OCIDs of the subnets associated with the Recovery Service subnet. + + + :return: The subnets of this CreateRecoveryServiceSubnetDetails. + :rtype: list[str] + """ + return self._subnets + + @subnets.setter + def subnets(self, subnets): + """ + Sets the subnets of this CreateRecoveryServiceSubnetDetails. + A list of OCIDs of the subnets associated with the Recovery Service subnet. + + + :param subnets: The subnets of this CreateRecoveryServiceSubnetDetails. + :type: list[str] + """ + self._subnets = subnets + + @property + def nsg_ids(self): + """ + Gets the nsg_ids of this CreateRecoveryServiceSubnetDetails. + A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. + You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. + Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. + See :class:`NetworkSecurityGroup` for more information. + + + :return: The nsg_ids of this CreateRecoveryServiceSubnetDetails. + :rtype: list[str] + """ + return self._nsg_ids + + @nsg_ids.setter + def nsg_ids(self, nsg_ids): + """ + Sets the nsg_ids of this CreateRecoveryServiceSubnetDetails. + A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. + You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. + Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. + See :class:`NetworkSecurityGroup` for more information. + + + :param nsg_ids: The nsg_ids of this CreateRecoveryServiceSubnetDetails. + :type: list[str] + """ + self._nsg_ids = nsg_ids + @property def vcn_id(self): """ diff --git a/src/oci/recovery/models/fetch_protected_database_configuration_details.py b/src/oci/recovery/models/fetch_protected_database_configuration_details.py index 9e0c100580..dfe34a7777 100644 --- a/src/oci/recovery/models/fetch_protected_database_configuration_details.py +++ b/src/oci/recovery/models/fetch_protected_database_configuration_details.py @@ -27,6 +27,10 @@ class FetchProtectedDatabaseConfigurationDetails(object): #: This constant has a value of "HOSTS" CONFIGURATION_TYPE_HOSTS = "HOSTS" + #: A constant which can be used with the configuration_type property of a FetchProtectedDatabaseConfigurationDetails. + #: This constant has a value of "RCVCONF" + CONFIGURATION_TYPE_RCVCONF = "RCVCONF" + #: A constant which can be used with the configuration_type property of a FetchProtectedDatabaseConfigurationDetails. #: This constant has a value of "ALL" CONFIGURATION_TYPE_ALL = "ALL" @@ -38,7 +42,7 @@ def __init__(self, **kwargs): :param configuration_type: The value to assign to the configuration_type property of this FetchProtectedDatabaseConfigurationDetails. - Allowed values for this property are: "CABUNDLE", "TNSNAMES", "HOSTS", "ALL" + Allowed values for this property are: "CABUNDLE", "TNSNAMES", "HOSTS", "RCVCONF", "ALL" :type configuration_type: str """ @@ -58,7 +62,7 @@ def configuration_type(self): Gets the configuration_type of this FetchProtectedDatabaseConfigurationDetails. Currently has four config options ALL, TNSNAMES, HOSTS and CABUNDLE. All will return a zipped folder containing the contents of both tnsnames and the certificateChainPem. - Allowed values for this property are: "CABUNDLE", "TNSNAMES", "HOSTS", "ALL" + Allowed values for this property are: "CABUNDLE", "TNSNAMES", "HOSTS", "RCVCONF", "ALL" :return: The configuration_type of this FetchProtectedDatabaseConfigurationDetails. @@ -76,7 +80,7 @@ def configuration_type(self, configuration_type): :param configuration_type: The configuration_type of this FetchProtectedDatabaseConfigurationDetails. :type: str """ - allowed_values = ["CABUNDLE", "TNSNAMES", "HOSTS", "ALL"] + allowed_values = ["CABUNDLE", "TNSNAMES", "HOSTS", "RCVCONF", "ALL"] if not value_allowed_none_or_none_sentinel(configuration_type, allowed_values): raise ValueError( f"Invalid value for `configuration_type`, must be None or one of {allowed_values}" diff --git a/src/oci/recovery/models/metrics.py b/src/oci/recovery/models/metrics.py index 003ec10cb8..e6d978500e 100644 --- a/src/oci/recovery/models/metrics.py +++ b/src/oci/recovery/models/metrics.py @@ -48,6 +48,10 @@ def __init__(self, **kwargs): The value to assign to the current_retention_period_in_seconds property of this Metrics. :type current_retention_period_in_seconds: float + :param minimum_recovery_needed_in_days: + The value to assign to the minimum_recovery_needed_in_days property of this Metrics. + :type minimum_recovery_needed_in_days: float + """ self.swagger_types = { 'backup_space_used_in_gbs': 'float', @@ -56,7 +60,8 @@ def __init__(self, **kwargs): 'db_size_in_gbs': 'float', 'is_redo_logs_enabled': 'bool', 'retention_period_in_days': 'float', - 'current_retention_period_in_seconds': 'float' + 'current_retention_period_in_seconds': 'float', + 'minimum_recovery_needed_in_days': 'float' } self.attribute_map = { @@ -66,7 +71,8 @@ def __init__(self, **kwargs): 'db_size_in_gbs': 'dbSizeInGBs', 'is_redo_logs_enabled': 'isRedoLogsEnabled', 'retention_period_in_days': 'retentionPeriodInDays', - 'current_retention_period_in_seconds': 'currentRetentionPeriodInSeconds' + 'current_retention_period_in_seconds': 'currentRetentionPeriodInSeconds', + 'minimum_recovery_needed_in_days': 'minimumRecoveryNeededInDays' } self._backup_space_used_in_gbs = None @@ -76,6 +82,7 @@ def __init__(self, **kwargs): self._is_redo_logs_enabled = None self._retention_period_in_days = None self._current_retention_period_in_seconds = None + self._minimum_recovery_needed_in_days = None @property def backup_space_used_in_gbs(self): @@ -249,6 +256,30 @@ def current_retention_period_in_seconds(self, current_retention_period_in_second """ self._current_retention_period_in_seconds = current_retention_period_in_seconds + @property + def minimum_recovery_needed_in_days(self): + """ + Gets the minimum_recovery_needed_in_days of this Metrics. + Number of days of redo/archive to be applied to recover database. + + + :return: The minimum_recovery_needed_in_days of this Metrics. + :rtype: float + """ + return self._minimum_recovery_needed_in_days + + @minimum_recovery_needed_in_days.setter + def minimum_recovery_needed_in_days(self, minimum_recovery_needed_in_days): + """ + Sets the minimum_recovery_needed_in_days of this Metrics. + Number of days of redo/archive to be applied to recover database. + + + :param minimum_recovery_needed_in_days: The minimum_recovery_needed_in_days of this Metrics. + :type: float + """ + self._minimum_recovery_needed_in_days = minimum_recovery_needed_in_days + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/recovery/models/metrics_summary.py b/src/oci/recovery/models/metrics_summary.py index b7d1fc938e..972c5f5151 100644 --- a/src/oci/recovery/models/metrics_summary.py +++ b/src/oci/recovery/models/metrics_summary.py @@ -48,6 +48,10 @@ def __init__(self, **kwargs): The value to assign to the current_retention_period_in_seconds property of this MetricsSummary. :type current_retention_period_in_seconds: float + :param minimum_recovery_needed_in_days: + The value to assign to the minimum_recovery_needed_in_days property of this MetricsSummary. + :type minimum_recovery_needed_in_days: float + """ self.swagger_types = { 'backup_space_used_in_gbs': 'float', @@ -56,7 +60,8 @@ def __init__(self, **kwargs): 'db_size_in_gbs': 'float', 'is_redo_logs_enabled': 'bool', 'retention_period_in_days': 'float', - 'current_retention_period_in_seconds': 'float' + 'current_retention_period_in_seconds': 'float', + 'minimum_recovery_needed_in_days': 'float' } self.attribute_map = { @@ -66,7 +71,8 @@ def __init__(self, **kwargs): 'db_size_in_gbs': 'dbSizeInGBs', 'is_redo_logs_enabled': 'isRedoLogsEnabled', 'retention_period_in_days': 'retentionPeriodInDays', - 'current_retention_period_in_seconds': 'currentRetentionPeriodInSeconds' + 'current_retention_period_in_seconds': 'currentRetentionPeriodInSeconds', + 'minimum_recovery_needed_in_days': 'minimumRecoveryNeededInDays' } self._backup_space_used_in_gbs = None @@ -76,6 +82,7 @@ def __init__(self, **kwargs): self._is_redo_logs_enabled = None self._retention_period_in_days = None self._current_retention_period_in_seconds = None + self._minimum_recovery_needed_in_days = None @property def backup_space_used_in_gbs(self): @@ -249,6 +256,30 @@ def current_retention_period_in_seconds(self, current_retention_period_in_second """ self._current_retention_period_in_seconds = current_retention_period_in_seconds + @property + def minimum_recovery_needed_in_days(self): + """ + Gets the minimum_recovery_needed_in_days of this MetricsSummary. + Number of days of redo/archive to be applied to recover database. + + + :return: The minimum_recovery_needed_in_days of this MetricsSummary. + :rtype: float + """ + return self._minimum_recovery_needed_in_days + + @minimum_recovery_needed_in_days.setter + def minimum_recovery_needed_in_days(self, minimum_recovery_needed_in_days): + """ + Sets the minimum_recovery_needed_in_days of this MetricsSummary. + Number of days of redo/archive to be applied to recover database. + + + :param minimum_recovery_needed_in_days: The minimum_recovery_needed_in_days of this MetricsSummary. + :type: float + """ + self._minimum_recovery_needed_in_days = minimum_recovery_needed_in_days + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/recovery/models/protected_database.py b/src/oci/recovery/models/protected_database.py index fb59b69a48..e1100e74b0 100644 --- a/src/oci/recovery/models/protected_database.py +++ b/src/oci/recovery/models/protected_database.py @@ -58,6 +58,10 @@ class ProtectedDatabase(object): #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" + #: A constant which can be used with the lifecycle_state property of a ProtectedDatabase. + #: This constant has a value of "DELETE_SCHEDULED" + LIFECYCLE_STATE_DELETE_SCHEDULED = "DELETE_SCHEDULED" + #: A constant which can be used with the lifecycle_state property of a ProtectedDatabase. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" @@ -117,6 +121,10 @@ def __init__(self, **kwargs): The value to assign to the protection_policy_id property of this ProtectedDatabase. :type protection_policy_id: str + :param policy_locked_date_time: + The value to assign to the policy_locked_date_time property of this ProtectedDatabase. + :type policy_locked_date_time: str + :param recovery_service_subnets: The value to assign to the recovery_service_subnets property of this ProtectedDatabase. :type recovery_service_subnets: list[oci.recovery.models.RecoveryServiceSubnetDetails] @@ -151,7 +159,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this ProtectedDatabase. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -198,6 +206,7 @@ def __init__(self, **kwargs): 'vpc_user_name': 'str', 'database_size': 'str', 'protection_policy_id': 'str', + 'policy_locked_date_time': 'str', 'recovery_service_subnets': 'list[RecoveryServiceSubnetDetails]', 'database_id': 'str', 'database_size_in_gbs': 'int', @@ -225,6 +234,7 @@ def __init__(self, **kwargs): 'vpc_user_name': 'vpcUserName', 'database_size': 'databaseSize', 'protection_policy_id': 'protectionPolicyId', + 'policy_locked_date_time': 'policyLockedDateTime', 'recovery_service_subnets': 'recoveryServiceSubnets', 'database_id': 'databaseId', 'database_size_in_gbs': 'databaseSizeInGBs', @@ -251,6 +261,7 @@ def __init__(self, **kwargs): self._vpc_user_name = None self._database_size = None self._protection_policy_id = None + self._policy_locked_date_time = None self._recovery_service_subnets = None self._database_id = None self._database_size_in_gbs = None @@ -443,6 +454,36 @@ def protection_policy_id(self, protection_policy_id): """ self._protection_policy_id = protection_policy_id + @property + def policy_locked_date_time(self): + """ + Gets the policy_locked_date_time of this ProtectedDatabase. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. + Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. + + + :return: The policy_locked_date_time of this ProtectedDatabase. + :rtype: str + """ + return self._policy_locked_date_time + + @policy_locked_date_time.setter + def policy_locked_date_time(self, policy_locked_date_time): + """ + Sets the policy_locked_date_time of this ProtectedDatabase. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. + Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. + + + :param policy_locked_date_time: The policy_locked_date_time of this ProtectedDatabase. + :type: str + """ + self._policy_locked_date_time = policy_locked_date_time + @property def recovery_service_subnets(self): """ @@ -645,7 +686,7 @@ def lifecycle_state(self): Gets the lifecycle_state of this ProtectedDatabase. The current state of the Protected Database. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -664,7 +705,7 @@ def lifecycle_state(self, lifecycle_state): :param lifecycle_state: The lifecycle_state of this ProtectedDatabase. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @@ -673,12 +714,9 @@ def lifecycle_state(self, lifecycle_state): def health(self): """ Gets the health of this ProtectedDatabase. - Indicates the protection status of the database. Allowed values are: - - HEALTHY - - WARNING - - ALERT + Indicates the protection status of the database. - A 'HEALTHY' status indicates that Recovery Service can ensure database recovery to any point in time within the entire recovery window. The potential data loss exposure since the last backup is: + A 'PROTECTED' status indicates that Recovery Service can ensure database recovery to any point in time within the entire recovery window. The potential data loss exposure since the last backup is: - Less than 10 seconds, if Real-time data protection is enabled - Less than 70 minutes if Real-time data protection is disabled @@ -701,12 +739,9 @@ def health(self): def health(self, health): """ Sets the health of this ProtectedDatabase. - Indicates the protection status of the database. Allowed values are: - - HEALTHY - - WARNING - - ALERT + Indicates the protection status of the database. - A 'HEALTHY' status indicates that Recovery Service can ensure database recovery to any point in time within the entire recovery window. The potential data loss exposure since the last backup is: + A 'PROTECTED' status indicates that Recovery Service can ensure database recovery to any point in time within the entire recovery window. The potential data loss exposure since the last backup is: - Less than 10 seconds, if Real-time data protection is enabled - Less than 70 minutes if Real-time data protection is disabled diff --git a/src/oci/recovery/models/protected_database_summary.py b/src/oci/recovery/models/protected_database_summary.py index dacf397fa5..037ad5e725 100644 --- a/src/oci/recovery/models/protected_database_summary.py +++ b/src/oci/recovery/models/protected_database_summary.py @@ -64,6 +64,10 @@ class ProtectedDatabaseSummary(object): #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" + #: A constant which can be used with the lifecycle_state property of a ProtectedDatabaseSummary. + #: This constant has a value of "DELETE_SCHEDULED" + LIFECYCLE_STATE_DELETE_SCHEDULED = "DELETE_SCHEDULED" + #: A constant which can be used with the lifecycle_state property of a ProtectedDatabaseSummary. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" @@ -123,6 +127,10 @@ def __init__(self, **kwargs): The value to assign to the protection_policy_id property of this ProtectedDatabaseSummary. :type protection_policy_id: str + :param policy_locked_date_time: + The value to assign to the policy_locked_date_time property of this ProtectedDatabaseSummary. + :type policy_locked_date_time: str + :param recovery_service_subnets: The value to assign to the recovery_service_subnets property of this ProtectedDatabaseSummary. :type recovery_service_subnets: list[oci.recovery.models.RecoveryServiceSubnetDetails] @@ -141,7 +149,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this ProtectedDatabaseSummary. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -188,6 +196,7 @@ def __init__(self, **kwargs): 'vpc_user_name': 'str', 'database_size': 'str', 'protection_policy_id': 'str', + 'policy_locked_date_time': 'str', 'recovery_service_subnets': 'list[RecoveryServiceSubnetDetails]', 'database_id': 'str', 'time_created': 'datetime', @@ -211,6 +220,7 @@ def __init__(self, **kwargs): 'vpc_user_name': 'vpcUserName', 'database_size': 'databaseSize', 'protection_policy_id': 'protectionPolicyId', + 'policy_locked_date_time': 'policyLockedDateTime', 'recovery_service_subnets': 'recoveryServiceSubnets', 'database_id': 'databaseId', 'time_created': 'timeCreated', @@ -233,6 +243,7 @@ def __init__(self, **kwargs): self._vpc_user_name = None self._database_size = None self._protection_policy_id = None + self._policy_locked_date_time = None self._recovery_service_subnets = None self._database_id = None self._time_created = None @@ -421,6 +432,36 @@ def protection_policy_id(self, protection_policy_id): """ self._protection_policy_id = protection_policy_id + @property + def policy_locked_date_time(self): + """ + Gets the policy_locked_date_time of this ProtectedDatabaseSummary. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. + Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. + + + :return: The policy_locked_date_time of this ProtectedDatabaseSummary. + :rtype: str + """ + return self._policy_locked_date_time + + @policy_locked_date_time.setter + def policy_locked_date_time(self, policy_locked_date_time): + """ + Sets the policy_locked_date_time of this ProtectedDatabaseSummary. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. + Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. + + + :param policy_locked_date_time: The policy_locked_date_time of this ProtectedDatabaseSummary. + :type: str + """ + self._policy_locked_date_time = policy_locked_date_time + @property def recovery_service_subnets(self): """ @@ -523,7 +564,7 @@ def lifecycle_state(self): Gets the lifecycle_state of this ProtectedDatabaseSummary. The current state of the Protected Database. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -542,7 +583,7 @@ def lifecycle_state(self, lifecycle_state): :param lifecycle_state: The lifecycle_state of this ProtectedDatabaseSummary. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state diff --git a/src/oci/recovery/models/protection_policy.py b/src/oci/recovery/models/protection_policy.py index 6f77f66759..bf7859c5f8 100644 --- a/src/oci/recovery/models/protection_policy.py +++ b/src/oci/recovery/models/protection_policy.py @@ -28,6 +28,10 @@ class ProtectionPolicy(object): #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" + #: A constant which can be used with the lifecycle_state property of a ProtectionPolicy. + #: This constant has a value of "DELETE_SCHEDULED" + LIFECYCLE_STATE_DELETE_SCHEDULED = "DELETE_SCHEDULED" + #: A constant which can be used with the lifecycle_state property of a ProtectionPolicy. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" @@ -65,6 +69,10 @@ def __init__(self, **kwargs): The value to assign to the is_predefined_policy property of this ProtectionPolicy. :type is_predefined_policy: bool + :param policy_locked_date_time: + The value to assign to the policy_locked_date_time property of this ProtectionPolicy. + :type policy_locked_date_time: str + :param time_created: The value to assign to the time_created property of this ProtectionPolicy. :type time_created: datetime @@ -75,7 +83,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this ProtectionPolicy. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -102,6 +110,7 @@ def __init__(self, **kwargs): 'compartment_id': 'str', 'backup_retention_period_in_days': 'int', 'is_predefined_policy': 'bool', + 'policy_locked_date_time': 'str', 'time_created': 'datetime', 'time_updated': 'datetime', 'lifecycle_state': 'str', @@ -117,6 +126,7 @@ def __init__(self, **kwargs): 'compartment_id': 'compartmentId', 'backup_retention_period_in_days': 'backupRetentionPeriodInDays', 'is_predefined_policy': 'isPredefinedPolicy', + 'policy_locked_date_time': 'policyLockedDateTime', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'lifecycle_state': 'lifecycleState', @@ -131,6 +141,7 @@ def __init__(self, **kwargs): self._compartment_id = None self._backup_retention_period_in_days = None self._is_predefined_policy = None + self._policy_locked_date_time = None self._time_created = None self._time_updated = None self._lifecycle_state = None @@ -259,6 +270,30 @@ def is_predefined_policy(self, is_predefined_policy): """ self._is_predefined_policy = is_predefined_policy + @property + def policy_locked_date_time(self): + """ + Gets the policy_locked_date_time of this ProtectionPolicy. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + + :return: The policy_locked_date_time of this ProtectionPolicy. + :rtype: str + """ + return self._policy_locked_date_time + + @policy_locked_date_time.setter + def policy_locked_date_time(self, policy_locked_date_time): + """ + Sets the policy_locked_date_time of this ProtectionPolicy. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + + :param policy_locked_date_time: The policy_locked_date_time of this ProtectionPolicy. + :type: str + """ + self._policy_locked_date_time = policy_locked_date_time + @property def time_created(self): """ @@ -311,15 +346,9 @@ def time_updated(self, time_updated): def lifecycle_state(self): """ Gets the lifecycle_state of this ProtectionPolicy. - The current state of the protection policy. Allowed values are: - - CREATING - - UPDATING - - ACTIVE - - DELETING - - DELETED - - FAILED - - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + The current state of the protection policy. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -332,19 +361,13 @@ def lifecycle_state(self): def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this ProtectionPolicy. - The current state of the protection policy. Allowed values are: - - CREATING - - UPDATING - - ACTIVE - - DELETING - - DELETED - - FAILED + The current state of the protection policy. :param lifecycle_state: The lifecycle_state of this ProtectionPolicy. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state diff --git a/src/oci/recovery/models/protection_policy_summary.py b/src/oci/recovery/models/protection_policy_summary.py index 873e0eb717..e3465c2572 100644 --- a/src/oci/recovery/models/protection_policy_summary.py +++ b/src/oci/recovery/models/protection_policy_summary.py @@ -34,6 +34,10 @@ class ProtectionPolicySummary(object): #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" + #: A constant which can be used with the lifecycle_state property of a ProtectionPolicySummary. + #: This constant has a value of "DELETE_SCHEDULED" + LIFECYCLE_STATE_DELETE_SCHEDULED = "DELETE_SCHEDULED" + #: A constant which can be used with the lifecycle_state property of a ProtectionPolicySummary. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" @@ -71,6 +75,10 @@ def __init__(self, **kwargs): The value to assign to the is_predefined_policy property of this ProtectionPolicySummary. :type is_predefined_policy: bool + :param policy_locked_date_time: + The value to assign to the policy_locked_date_time property of this ProtectionPolicySummary. + :type policy_locked_date_time: str + :param time_created: The value to assign to the time_created property of this ProtectionPolicySummary. :type time_created: datetime @@ -81,7 +89,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this ProtectionPolicySummary. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -108,6 +116,7 @@ def __init__(self, **kwargs): 'compartment_id': 'str', 'backup_retention_period_in_days': 'int', 'is_predefined_policy': 'bool', + 'policy_locked_date_time': 'str', 'time_created': 'datetime', 'time_updated': 'datetime', 'lifecycle_state': 'str', @@ -123,6 +132,7 @@ def __init__(self, **kwargs): 'compartment_id': 'compartmentId', 'backup_retention_period_in_days': 'backupRetentionPeriodInDays', 'is_predefined_policy': 'isPredefinedPolicy', + 'policy_locked_date_time': 'policyLockedDateTime', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'lifecycle_state': 'lifecycleState', @@ -137,6 +147,7 @@ def __init__(self, **kwargs): self._compartment_id = None self._backup_retention_period_in_days = None self._is_predefined_policy = None + self._policy_locked_date_time = None self._time_created = None self._time_updated = None self._lifecycle_state = None @@ -265,6 +276,30 @@ def is_predefined_policy(self, is_predefined_policy): """ self._is_predefined_policy = is_predefined_policy + @property + def policy_locked_date_time(self): + """ + Gets the policy_locked_date_time of this ProtectionPolicySummary. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + + :return: The policy_locked_date_time of this ProtectionPolicySummary. + :rtype: str + """ + return self._policy_locked_date_time + + @policy_locked_date_time.setter + def policy_locked_date_time(self, policy_locked_date_time): + """ + Sets the policy_locked_date_time of this ProtectionPolicySummary. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + + :param policy_locked_date_time: The policy_locked_date_time of this ProtectionPolicySummary. + :type: str + """ + self._policy_locked_date_time = policy_locked_date_time + @property def time_created(self): """ @@ -319,7 +354,7 @@ def lifecycle_state(self): Gets the lifecycle_state of this ProtectionPolicySummary. The current state of the Protection Policy. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -338,7 +373,7 @@ def lifecycle_state(self, lifecycle_state): :param lifecycle_state: The lifecycle_state of this ProtectionPolicySummary. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state diff --git a/src/oci/recovery/models/recovery_service_subnet.py b/src/oci/recovery/models/recovery_service_subnet.py index f4280a2568..84625c90a6 100644 --- a/src/oci/recovery/models/recovery_service_subnet.py +++ b/src/oci/recovery/models/recovery_service_subnet.py @@ -29,6 +29,10 @@ class RecoveryServiceSubnet(object): #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" + #: A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. + #: This constant has a value of "DELETE_SCHEDULED" + LIFECYCLE_STATE_DELETE_SCHEDULED = "DELETE_SCHEDULED" + #: A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnet. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" @@ -66,6 +70,14 @@ def __init__(self, **kwargs): The value to assign to the subnet_id property of this RecoveryServiceSubnet. :type subnet_id: str + :param subnets: + The value to assign to the subnets property of this RecoveryServiceSubnet. + :type subnets: list[str] + + :param nsg_ids: + The value to assign to the nsg_ids property of this RecoveryServiceSubnet. + :type nsg_ids: list[str] + :param time_created: The value to assign to the time_created property of this RecoveryServiceSubnet. :type time_created: datetime @@ -76,7 +88,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this RecoveryServiceSubnet. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -103,6 +115,8 @@ def __init__(self, **kwargs): 'compartment_id': 'str', 'vcn_id': 'str', 'subnet_id': 'str', + 'subnets': 'list[str]', + 'nsg_ids': 'list[str]', 'time_created': 'datetime', 'time_updated': 'datetime', 'lifecycle_state': 'str', @@ -118,6 +132,8 @@ def __init__(self, **kwargs): 'compartment_id': 'compartmentId', 'vcn_id': 'vcnId', 'subnet_id': 'subnetId', + 'subnets': 'subnets', + 'nsg_ids': 'nsgIds', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'lifecycle_state': 'lifecycleState', @@ -132,6 +148,8 @@ def __init__(self, **kwargs): self._compartment_id = None self._vcn_id = None self._subnet_id = None + self._subnets = None + self._nsg_ids = None self._time_created = None self._time_updated = None self._lifecycle_state = None @@ -240,7 +258,7 @@ def vcn_id(self, vcn_id): def subnet_id(self): """ **[Required]** Gets the subnet_id of this RecoveryServiceSubnet. - The OCID of the subnet used as the recovery service subnet. + Deprecated. One of the subnets associated with the Recovery Service subnet. :return: The subnet_id of this RecoveryServiceSubnet. @@ -252,7 +270,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """ Sets the subnet_id of this RecoveryServiceSubnet. - The OCID of the subnet used as the recovery service subnet. + Deprecated. One of the subnets associated with the Recovery Service subnet. :param subnet_id: The subnet_id of this RecoveryServiceSubnet. @@ -260,6 +278,60 @@ def subnet_id(self, subnet_id): """ self._subnet_id = subnet_id + @property + def subnets(self): + """ + Gets the subnets of this RecoveryServiceSubnet. + A list of OCIDs of all the subnets associated with the Recovery Service subnet. + + + :return: The subnets of this RecoveryServiceSubnet. + :rtype: list[str] + """ + return self._subnets + + @subnets.setter + def subnets(self, subnets): + """ + Sets the subnets of this RecoveryServiceSubnet. + A list of OCIDs of all the subnets associated with the Recovery Service subnet. + + + :param subnets: The subnets of this RecoveryServiceSubnet. + :type: list[str] + """ + self._subnets = subnets + + @property + def nsg_ids(self): + """ + Gets the nsg_ids of this RecoveryServiceSubnet. + A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. + You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. + Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. + See :class:`NetworkSecurityGroup` for more information. + + + :return: The nsg_ids of this RecoveryServiceSubnet. + :rtype: list[str] + """ + return self._nsg_ids + + @nsg_ids.setter + def nsg_ids(self, nsg_ids): + """ + Sets the nsg_ids of this RecoveryServiceSubnet. + A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. + You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. + Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. + See :class:`NetworkSecurityGroup` for more information. + + + :param nsg_ids: The nsg_ids of this RecoveryServiceSubnet. + :type: list[str] + """ + self._nsg_ids = nsg_ids + @property def time_created(self): """ @@ -313,15 +385,8 @@ def lifecycle_state(self): """ Gets the lifecycle_state of this RecoveryServiceSubnet. The current state of the recovery service subnet. - Allowed values are: - - CREATING - - UPDATING - - ACTIVE - - DELETING - - DELETED - - FAILED - - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -335,19 +400,12 @@ def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this RecoveryServiceSubnet. The current state of the recovery service subnet. - Allowed values are: - - CREATING - - UPDATING - - ACTIVE - - DELETING - - DELETED - - FAILED :param lifecycle_state: The lifecycle_state of this RecoveryServiceSubnet. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state diff --git a/src/oci/recovery/models/recovery_service_subnet_details.py b/src/oci/recovery/models/recovery_service_subnet_details.py index fbc694718b..54df0aee17 100644 --- a/src/oci/recovery/models/recovery_service_subnet_details.py +++ b/src/oci/recovery/models/recovery_service_subnet_details.py @@ -27,6 +27,10 @@ class RecoveryServiceSubnetDetails(object): #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" + #: A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnetDetails. + #: This constant has a value of "DELETE_SCHEDULED" + LIFECYCLE_STATE_DELETE_SCHEDULED = "DELETE_SCHEDULED" + #: A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnetDetails. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" @@ -50,7 +54,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this RecoveryServiceSubnetDetails. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -98,7 +102,7 @@ def lifecycle_state(self): Gets the lifecycle_state of this RecoveryServiceSubnetDetails. The current state of the Recovery Service Subnet. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -117,7 +121,7 @@ def lifecycle_state(self, lifecycle_state): :param lifecycle_state: The lifecycle_state of this RecoveryServiceSubnetDetails. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state diff --git a/src/oci/recovery/models/recovery_service_subnet_summary.py b/src/oci/recovery/models/recovery_service_subnet_summary.py index f7e7fad7f6..f4302cc4d1 100644 --- a/src/oci/recovery/models/recovery_service_subnet_summary.py +++ b/src/oci/recovery/models/recovery_service_subnet_summary.py @@ -33,6 +33,10 @@ class RecoveryServiceSubnetSummary(object): #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" + #: A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnetSummary. + #: This constant has a value of "DELETE_SCHEDULED" + LIFECYCLE_STATE_DELETE_SCHEDULED = "DELETE_SCHEDULED" + #: A constant which can be used with the lifecycle_state property of a RecoveryServiceSubnetSummary. #: This constant has a value of "DELETING" LIFECYCLE_STATE_DELETING = "DELETING" @@ -70,6 +74,14 @@ def __init__(self, **kwargs): The value to assign to the subnet_id property of this RecoveryServiceSubnetSummary. :type subnet_id: str + :param subnets: + The value to assign to the subnets property of this RecoveryServiceSubnetSummary. + :type subnets: list[str] + + :param nsg_ids: + The value to assign to the nsg_ids property of this RecoveryServiceSubnetSummary. + :type nsg_ids: list[str] + :param time_created: The value to assign to the time_created property of this RecoveryServiceSubnetSummary. :type time_created: datetime @@ -80,7 +92,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this RecoveryServiceSubnetSummary. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -107,6 +119,8 @@ def __init__(self, **kwargs): 'compartment_id': 'str', 'vcn_id': 'str', 'subnet_id': 'str', + 'subnets': 'list[str]', + 'nsg_ids': 'list[str]', 'time_created': 'datetime', 'time_updated': 'datetime', 'lifecycle_state': 'str', @@ -122,6 +136,8 @@ def __init__(self, **kwargs): 'compartment_id': 'compartmentId', 'vcn_id': 'vcnId', 'subnet_id': 'subnetId', + 'subnets': 'subnets', + 'nsg_ids': 'nsgIds', 'time_created': 'timeCreated', 'time_updated': 'timeUpdated', 'lifecycle_state': 'lifecycleState', @@ -136,6 +152,8 @@ def __init__(self, **kwargs): self._compartment_id = None self._vcn_id = None self._subnet_id = None + self._subnets = None + self._nsg_ids = None self._time_created = None self._time_updated = None self._lifecycle_state = None @@ -244,7 +262,7 @@ def vcn_id(self, vcn_id): def subnet_id(self): """ **[Required]** Gets the subnet_id of this RecoveryServiceSubnetSummary. - The OCID of the subnet associated with the recovery service subnet. You can create a single backup network per virtual cloud network (VCN). + Deprecated. One of the subnets associated with the Recovery Service subnet. :return: The subnet_id of this RecoveryServiceSubnetSummary. @@ -256,7 +274,7 @@ def subnet_id(self): def subnet_id(self, subnet_id): """ Sets the subnet_id of this RecoveryServiceSubnetSummary. - The OCID of the subnet associated with the recovery service subnet. You can create a single backup network per virtual cloud network (VCN). + Deprecated. One of the subnets associated with the Recovery Service subnet. :param subnet_id: The subnet_id of this RecoveryServiceSubnetSummary. @@ -264,6 +282,60 @@ def subnet_id(self, subnet_id): """ self._subnet_id = subnet_id + @property + def subnets(self): + """ + Gets the subnets of this RecoveryServiceSubnetSummary. + A list of OCIDs of all the subnets associated with the Recovery Service subnet. + + + :return: The subnets of this RecoveryServiceSubnetSummary. + :rtype: list[str] + """ + return self._subnets + + @subnets.setter + def subnets(self, subnets): + """ + Sets the subnets of this RecoveryServiceSubnetSummary. + A list of OCIDs of all the subnets associated with the Recovery Service subnet. + + + :param subnets: The subnets of this RecoveryServiceSubnetSummary. + :type: list[str] + """ + self._subnets = subnets + + @property + def nsg_ids(self): + """ + Gets the nsg_ids of this RecoveryServiceSubnetSummary. + A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. + You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. + Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. + See :class:`NetworkSecurityGroup` for more information. + + + :return: The nsg_ids of this RecoveryServiceSubnetSummary. + :rtype: list[str] + """ + return self._nsg_ids + + @nsg_ids.setter + def nsg_ids(self, nsg_ids): + """ + Sets the nsg_ids of this RecoveryServiceSubnetSummary. + A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. + You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. + Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. + See :class:`NetworkSecurityGroup` for more information. + + + :param nsg_ids: The nsg_ids of this RecoveryServiceSubnetSummary. + :type: list[str] + """ + self._nsg_ids = nsg_ids + @property def time_created(self): """ @@ -317,15 +389,8 @@ def lifecycle_state(self): """ Gets the lifecycle_state of this RecoveryServiceSubnetSummary. The current state of the recovery service subnet. - Allowed values are: - - CREATING - - UPDATING - - ACTIVE - - DELETING - - DELETED - - FAILED - - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -339,19 +404,12 @@ def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this RecoveryServiceSubnetSummary. The current state of the recovery service subnet. - Allowed values are: - - CREATING - - UPDATING - - ACTIVE - - DELETING - - DELETED - - FAILED :param lifecycle_state: The lifecycle_state of this RecoveryServiceSubnetSummary. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETE_SCHEDULED", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state diff --git a/src/oci/recovery/models/schedule_protected_database_deletion_details.py b/src/oci/recovery/models/schedule_protected_database_deletion_details.py new file mode 100644 index 0000000000..145e6305c2 --- /dev/null +++ b/src/oci/recovery/models/schedule_protected_database_deletion_details.py @@ -0,0 +1,92 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20210216 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ScheduleProtectedDatabaseDeletionDetails(object): + """ + The details for scheduling deletion of the protected database + """ + + #: A constant which can be used with the deletion_schedule property of a ScheduleProtectedDatabaseDeletionDetails. + #: This constant has a value of "DELETE_AFTER_RETENTION_PERIOD" + DELETION_SCHEDULE_DELETE_AFTER_RETENTION_PERIOD = "DELETE_AFTER_RETENTION_PERIOD" + + #: A constant which can be used with the deletion_schedule property of a ScheduleProtectedDatabaseDeletionDetails. + #: This constant has a value of "DELETE_AFTER_72_HOURS" + DELETION_SCHEDULE_DELETE_AFTER_72_HOURS = "DELETE_AFTER_72_HOURS" + + def __init__(self, **kwargs): + """ + Initializes a new ScheduleProtectedDatabaseDeletionDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param deletion_schedule: + The value to assign to the deletion_schedule property of this ScheduleProtectedDatabaseDeletionDetails. + Allowed values for this property are: "DELETE_AFTER_RETENTION_PERIOD", "DELETE_AFTER_72_HOURS" + :type deletion_schedule: str + + """ + self.swagger_types = { + 'deletion_schedule': 'str' + } + + self.attribute_map = { + 'deletion_schedule': 'deletionSchedule' + } + + self._deletion_schedule = None + + @property + def deletion_schedule(self): + """ + Gets the deletion_schedule of this ScheduleProtectedDatabaseDeletionDetails. + Defines a preferred schedule to delete a protected database after you terminate the source database. + * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated. + * The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires. + + Allowed values for this property are: "DELETE_AFTER_RETENTION_PERIOD", "DELETE_AFTER_72_HOURS" + + + :return: The deletion_schedule of this ScheduleProtectedDatabaseDeletionDetails. + :rtype: str + """ + return self._deletion_schedule + + @deletion_schedule.setter + def deletion_schedule(self, deletion_schedule): + """ + Sets the deletion_schedule of this ScheduleProtectedDatabaseDeletionDetails. + Defines a preferred schedule to delete a protected database after you terminate the source database. + * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated. + * The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires. + + + :param deletion_schedule: The deletion_schedule of this ScheduleProtectedDatabaseDeletionDetails. + :type: str + """ + allowed_values = ["DELETE_AFTER_RETENTION_PERIOD", "DELETE_AFTER_72_HOURS"] + if not value_allowed_none_or_none_sentinel(deletion_schedule, allowed_values): + raise ValueError( + f"Invalid value for `deletion_schedule`, must be None or one of {allowed_values}" + ) + self._deletion_schedule = deletion_schedule + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/recovery/models/update_protection_policy_details.py b/src/oci/recovery/models/update_protection_policy_details.py index b82bf887ff..99d6cc4893 100644 --- a/src/oci/recovery/models/update_protection_policy_details.py +++ b/src/oci/recovery/models/update_protection_policy_details.py @@ -28,6 +28,10 @@ def __init__(self, **kwargs): The value to assign to the backup_retention_period_in_days property of this UpdateProtectionPolicyDetails. :type backup_retention_period_in_days: int + :param policy_locked_date_time: + The value to assign to the policy_locked_date_time property of this UpdateProtectionPolicyDetails. + :type policy_locked_date_time: str + :param freeform_tags: The value to assign to the freeform_tags property of this UpdateProtectionPolicyDetails. :type freeform_tags: dict(str, str) @@ -40,6 +44,7 @@ def __init__(self, **kwargs): self.swagger_types = { 'display_name': 'str', 'backup_retention_period_in_days': 'int', + 'policy_locked_date_time': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } @@ -47,12 +52,14 @@ def __init__(self, **kwargs): self.attribute_map = { 'display_name': 'displayName', 'backup_retention_period_in_days': 'backupRetentionPeriodInDays', + 'policy_locked_date_time': 'policyLockedDateTime', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } self._display_name = None self._backup_retention_period_in_days = None + self._policy_locked_date_time = None self._freeform_tags = None self._defined_tags = None @@ -104,6 +111,44 @@ def backup_retention_period_in_days(self, backup_retention_period_in_days): """ self._backup_retention_period_in_days = backup_retention_period_in_days + @property + def policy_locked_date_time(self): + """ + Gets the policy_locked_date_time of this UpdateProtectionPolicyDetails. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. + * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date. + * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. + * During the 14-day delay period, you can either increase or decrease the retention period in the policy. + * However, you are only allowed to increase the retention period on or after the retention lock date. + * You cannot change the value of policyLockedDateTime if the retention lock is already in effect. + + + :return: The policy_locked_date_time of this UpdateProtectionPolicyDetails. + :rtype: str + """ + return self._policy_locked_date_time + + @policy_locked_date_time.setter + def policy_locked_date_time(self, policy_locked_date_time): + """ + Sets the policy_locked_date_time of this UpdateProtectionPolicyDetails. + An RFC3339 formatted datetime string that specifies the exact date and time for the retention lock to take effect and permanently lock the retention period defined in the policy. + + * The retention lock feature controls whether Recovery Service strictly preserves backups for the duration defined in a policy. Retention lock is useful to enforce recovery window compliance and to prevent unintentional modifications to protected database backups. + * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the current date. + * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. + * During the 14-day delay period, you can either increase or decrease the retention period in the policy. + * However, you are only allowed to increase the retention period on or after the retention lock date. + * You cannot change the value of policyLockedDateTime if the retention lock is already in effect. + + + :param policy_locked_date_time: The policy_locked_date_time of this UpdateProtectionPolicyDetails. + :type: str + """ + self._policy_locked_date_time = policy_locked_date_time + @property def freeform_tags(self): """ diff --git a/src/oci/recovery/models/update_recovery_service_subnet_details.py b/src/oci/recovery/models/update_recovery_service_subnet_details.py index 40d4ab1e78..39f84794ce 100644 --- a/src/oci/recovery/models/update_recovery_service_subnet_details.py +++ b/src/oci/recovery/models/update_recovery_service_subnet_details.py @@ -24,6 +24,14 @@ def __init__(self, **kwargs): The value to assign to the display_name property of this UpdateRecoveryServiceSubnetDetails. :type display_name: str + :param subnets: + The value to assign to the subnets property of this UpdateRecoveryServiceSubnetDetails. + :type subnets: list[str] + + :param nsg_ids: + The value to assign to the nsg_ids property of this UpdateRecoveryServiceSubnetDetails. + :type nsg_ids: list[str] + :param freeform_tags: The value to assign to the freeform_tags property of this UpdateRecoveryServiceSubnetDetails. :type freeform_tags: dict(str, str) @@ -35,17 +43,23 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'display_name': 'str', + 'subnets': 'list[str]', + 'nsg_ids': 'list[str]', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } self.attribute_map = { 'display_name': 'displayName', + 'subnets': 'subnets', + 'nsg_ids': 'nsgIds', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } self._display_name = None + self._subnets = None + self._nsg_ids = None self._freeform_tags = None self._defined_tags = None @@ -73,6 +87,60 @@ def display_name(self, display_name): """ self._display_name = display_name + @property + def subnets(self): + """ + Gets the subnets of this UpdateRecoveryServiceSubnetDetails. + A list of OCIDs of the subnets associated with the recovery service subnet. + + + :return: The subnets of this UpdateRecoveryServiceSubnetDetails. + :rtype: list[str] + """ + return self._subnets + + @subnets.setter + def subnets(self, subnets): + """ + Sets the subnets of this UpdateRecoveryServiceSubnetDetails. + A list of OCIDs of the subnets associated with the recovery service subnet. + + + :param subnets: The subnets of this UpdateRecoveryServiceSubnetDetails. + :type: list[str] + """ + self._subnets = subnets + + @property + def nsg_ids(self): + """ + Gets the nsg_ids of this UpdateRecoveryServiceSubnetDetails. + A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. + You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. + Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. + See :class:`NetworkSecurityGroup` for more information. + + + :return: The nsg_ids of this UpdateRecoveryServiceSubnetDetails. + :rtype: list[str] + """ + return self._nsg_ids + + @nsg_ids.setter + def nsg_ids(self, nsg_ids): + """ + Sets the nsg_ids of this UpdateRecoveryServiceSubnetDetails. + A list of network security group (NSG) OCIDs that are associated with the Recovery Service subnet. + You can specify a maximum of 5 unique OCIDs, which implies that you can associate a maximum of 5 NSGs to each Recovery Service subnet. + Specify an empty array if you want to remove all the associated NSGs from a Recovery Service subnet. + See :class:`NetworkSecurityGroup` for more information. + + + :param nsg_ids: The nsg_ids of this UpdateRecoveryServiceSubnetDetails. + :type: list[str] + """ + self._nsg_ids = nsg_ids + @property def freeform_tags(self): """ diff --git a/src/oci/recovery/models/work_request.py b/src/oci/recovery/models/work_request.py index af75917182..23777acbee 100644 --- a/src/oci/recovery/models/work_request.py +++ b/src/oci/recovery/models/work_request.py @@ -67,6 +67,10 @@ class WorkRequest(object): #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "WAITING" + STATUS_WAITING = "WAITING" + #: A constant which can be used with the status property of a WorkRequest. #: This constant has a value of "IN_PROGRESS" STATUS_IN_PROGRESS = "IN_PROGRESS" @@ -100,7 +104,7 @@ def __init__(self, **kwargs): :param status: The value to assign to the status property of this WorkRequest. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str @@ -203,7 +207,7 @@ def status(self): **[Required]** Gets the status of this WorkRequest. Status of current work request. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -222,7 +226,7 @@ def status(self, status): :param status: The status of this WorkRequest. :type: str """ - allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] + allowed_values = ["ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] if not value_allowed_none_or_none_sentinel(status, allowed_values): status = 'UNKNOWN_ENUM_VALUE' self._status = status diff --git a/src/oci/recovery/models/work_request_summary.py b/src/oci/recovery/models/work_request_summary.py index a3de38cbc9..207f2b4910 100644 --- a/src/oci/recovery/models/work_request_summary.py +++ b/src/oci/recovery/models/work_request_summary.py @@ -67,6 +67,10 @@ class WorkRequestSummary(object): #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "WAITING" + STATUS_WAITING = "WAITING" + #: A constant which can be used with the status property of a WorkRequestSummary. #: This constant has a value of "IN_PROGRESS" STATUS_IN_PROGRESS = "IN_PROGRESS" @@ -100,7 +104,7 @@ def __init__(self, **kwargs): :param status: The value to assign to the status property of this WorkRequestSummary. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str @@ -203,7 +207,7 @@ def status(self): **[Required]** Gets the status of this WorkRequestSummary. The status of the current work request. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -222,7 +226,7 @@ def status(self, status): :param status: The status of this WorkRequestSummary. :type: str """ - allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] + allowed_values = ["ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] if not value_allowed_none_or_none_sentinel(status, allowed_values): status = 'UNKNOWN_ENUM_VALUE' self._status = status diff --git a/src/oci/version.py b/src/oci/version.py index fa6ae3cc7c..162ee16f59 100644 --- a/src/oci/version.py +++ b/src/oci/version.py @@ -2,4 +2,4 @@ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -__version__ = "2.126.0" +__version__ = "2.126.1"