diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 5adc7bfe9a..8df2ced17d 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,6 +3,35 @@ Change Log
All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog `_.
+====================
+2.133.0 - 2024-08-27
+====================
+
+Added
+-----
+* Support for Delegate Access Control service
+* Support for upgrade and downgrade of shapes of high performance mount targets in the File Storage service
+* Support for private endpoints in the Object Storage service
+* Support for create, update, list and delete operations on scheduling policies and scheduling windows in the Database service
+* Support for specifying domains while creating data guard associations in the Database service
+* Support for provision of developer autonomous databases in the Database service
+* Support for upgrade of developer autonomous databases to paid autonomous databases in the Database service
+* Support for scheduling plans, actions, execution windows and execution actions for maintenance scheduling in the Database service
+* Support for cross-region replication of virtual vaults in the Key Management service
+* Support for listing all active service summaries in the Announcements service
+* Support for VMware major and minor version upgrades in VMware Solution service
+* Support for updating protected database subscriptions in the Autonomous Recovery service
+* Support for health insurance id as an allowed document type in the Document Understanding service
+* Support for advanced database management features for autonomous databases in the Database Management service
+* Support for propagating request ids to load balancer servers in the Load balancer service
+* Support for automatic update orders in Fusion Application as a Service
+
+Breaking
+--------
+* Constant `DOCUMENT_TYPE_INSURANCE_CLAIM` was renamed to `DOCUMENT_TYPE_HEALTH_INSURANCE_ID` in models `AnalyzeDocumentDetails` and `GeneralProcessorConfig` in the Document Understanding service
+* Property `document_id` was removed from model `DetectedDocumentType` in the Document Understanding service
+* Property `tenancy_id` was removed from models `DocumentClassificationFeature` and `DocumentKeyValueExtractionFeature` in the Document Understanding service
+
====================
2.132.0 - 2024-08-20
====================
diff --git a/docs/api/ai_document.rst b/docs/api/ai_document.rst
index 4ef67499e6..2946771c03 100644
--- a/docs/api/ai_document.rst
+++ b/docs/api/ai_document.rst
@@ -18,6 +18,8 @@ Ai Document
:nosignatures:
:template: autosummary/model_class.rst
+ oci.ai_document.models.AddModelLockDetails
+ oci.ai_document.models.AddProjectLockDetails
oci.ai_document.models.AnalyzeDocumentDetails
oci.ai_document.models.AnalyzeDocumentResult
oci.ai_document.models.BoundingPolygon
@@ -79,6 +81,9 @@ Ai Document
oci.ai_document.models.Project
oci.ai_document.models.ProjectCollection
oci.ai_document.models.ProjectSummary
+ oci.ai_document.models.RemoveModelLockDetails
+ oci.ai_document.models.RemoveProjectLockDetails
+ oci.ai_document.models.ResourceLock
oci.ai_document.models.Table
oci.ai_document.models.TableRow
oci.ai_document.models.UpdateModelDetails
diff --git a/docs/api/ai_document/models/oci.ai_document.models.AddModelLockDetails.rst b/docs/api/ai_document/models/oci.ai_document.models.AddModelLockDetails.rst
new file mode 100644
index 0000000000..42c83040b0
--- /dev/null
+++ b/docs/api/ai_document/models/oci.ai_document.models.AddModelLockDetails.rst
@@ -0,0 +1,11 @@
+AddModelLockDetails
+===================
+
+.. currentmodule:: oci.ai_document.models
+
+.. autoclass:: AddModelLockDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/ai_document/models/oci.ai_document.models.AddProjectLockDetails.rst b/docs/api/ai_document/models/oci.ai_document.models.AddProjectLockDetails.rst
new file mode 100644
index 0000000000..c59dde96b8
--- /dev/null
+++ b/docs/api/ai_document/models/oci.ai_document.models.AddProjectLockDetails.rst
@@ -0,0 +1,11 @@
+AddProjectLockDetails
+=====================
+
+.. currentmodule:: oci.ai_document.models
+
+.. autoclass:: AddProjectLockDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/ai_document/models/oci.ai_document.models.RemoveModelLockDetails.rst b/docs/api/ai_document/models/oci.ai_document.models.RemoveModelLockDetails.rst
new file mode 100644
index 0000000000..004c776d17
--- /dev/null
+++ b/docs/api/ai_document/models/oci.ai_document.models.RemoveModelLockDetails.rst
@@ -0,0 +1,11 @@
+RemoveModelLockDetails
+======================
+
+.. currentmodule:: oci.ai_document.models
+
+.. autoclass:: RemoveModelLockDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/ai_document/models/oci.ai_document.models.RemoveProjectLockDetails.rst b/docs/api/ai_document/models/oci.ai_document.models.RemoveProjectLockDetails.rst
new file mode 100644
index 0000000000..f0bc2eed38
--- /dev/null
+++ b/docs/api/ai_document/models/oci.ai_document.models.RemoveProjectLockDetails.rst
@@ -0,0 +1,11 @@
+RemoveProjectLockDetails
+========================
+
+.. currentmodule:: oci.ai_document.models
+
+.. autoclass:: RemoveProjectLockDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/ai_document/models/oci.ai_document.models.ResourceLock.rst b/docs/api/ai_document/models/oci.ai_document.models.ResourceLock.rst
new file mode 100644
index 0000000000..89f83fd4d7
--- /dev/null
+++ b/docs/api/ai_document/models/oci.ai_document.models.ResourceLock.rst
@@ -0,0 +1,11 @@
+ResourceLock
+============
+
+.. currentmodule:: oci.ai_document.models
+
+.. autoclass:: ResourceLock
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/announcements_service.rst b/docs/api/announcements_service.rst
index 8c158866fb..ec06a00199 100644
--- a/docs/api/announcements_service.rst
+++ b/docs/api/announcements_service.rst
@@ -9,9 +9,11 @@ Announcements Service
oci.announcements_service.AnnouncementClient
oci.announcements_service.AnnouncementSubscriptionClient
oci.announcements_service.AnnouncementsPreferencesClient
+ oci.announcements_service.ServiceClient
oci.announcements_service.AnnouncementClientCompositeOperations
oci.announcements_service.AnnouncementSubscriptionClientCompositeOperations
oci.announcements_service.AnnouncementsPreferencesClientCompositeOperations
+ oci.announcements_service.ServiceClientCompositeOperations
--------
Models
@@ -24,6 +26,7 @@ Announcements Service
oci.announcements_service.models.AffectedResource
oci.announcements_service.models.Announcement
+ oci.announcements_service.models.AnnouncementCompartment
oci.announcements_service.models.AnnouncementSubscription
oci.announcements_service.models.AnnouncementSubscriptionCollection
oci.announcements_service.models.AnnouncementSubscriptionSummary
@@ -35,6 +38,7 @@ Announcements Service
oci.announcements_service.models.BaseAnnouncement
oci.announcements_service.models.BaseAnnouncementsPreferences
oci.announcements_service.models.BaseCreateAnnouncementsPreferencesDetails
+ oci.announcements_service.models.BaseService
oci.announcements_service.models.ChangeAnnouncementSubscriptionCompartmentDetails
oci.announcements_service.models.CreateAnnouncementSubscriptionDetails
oci.announcements_service.models.CreateAnnouncementsPreferencesDetails
@@ -43,6 +47,10 @@ Announcements Service
oci.announcements_service.models.FilterGroup
oci.announcements_service.models.FilterGroupDetails
oci.announcements_service.models.ModelProperty
+ oci.announcements_service.models.NotificationsSummary
+ oci.announcements_service.models.Service
+ oci.announcements_service.models.ServiceSummary
+ oci.announcements_service.models.ServicesCollection
oci.announcements_service.models.UpdateAnnouncementSubscriptionDetails
oci.announcements_service.models.UpdateAnnouncementsPreferencesDetails
oci.announcements_service.models.UpdateFilterGroupDetails
diff --git a/docs/api/announcements_service/client/oci.announcements_service.ServiceClient.rst b/docs/api/announcements_service/client/oci.announcements_service.ServiceClient.rst
new file mode 100644
index 0000000000..65852306ff
--- /dev/null
+++ b/docs/api/announcements_service/client/oci.announcements_service.ServiceClient.rst
@@ -0,0 +1,8 @@
+ServiceClient
+=============
+
+.. currentmodule:: oci.announcements_service
+
+.. autoclass:: ServiceClient
+ :special-members: __init__
+ :members:
\ No newline at end of file
diff --git a/docs/api/announcements_service/client/oci.announcements_service.ServiceClientCompositeOperations.rst b/docs/api/announcements_service/client/oci.announcements_service.ServiceClientCompositeOperations.rst
new file mode 100644
index 0000000000..f9d945d358
--- /dev/null
+++ b/docs/api/announcements_service/client/oci.announcements_service.ServiceClientCompositeOperations.rst
@@ -0,0 +1,8 @@
+ServiceClientCompositeOperations
+================================
+
+.. currentmodule:: oci.announcements_service
+
+.. autoclass:: ServiceClientCompositeOperations
+ :special-members: __init__
+ :members:
\ No newline at end of file
diff --git a/docs/api/announcements_service/models/oci.announcements_service.models.AnnouncementCompartment.rst b/docs/api/announcements_service/models/oci.announcements_service.models.AnnouncementCompartment.rst
new file mode 100644
index 0000000000..b108abf7a2
--- /dev/null
+++ b/docs/api/announcements_service/models/oci.announcements_service.models.AnnouncementCompartment.rst
@@ -0,0 +1,11 @@
+AnnouncementCompartment
+=======================
+
+.. currentmodule:: oci.announcements_service.models
+
+.. autoclass:: AnnouncementCompartment
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/announcements_service/models/oci.announcements_service.models.BaseService.rst b/docs/api/announcements_service/models/oci.announcements_service.models.BaseService.rst
new file mode 100644
index 0000000000..cb783ebc1c
--- /dev/null
+++ b/docs/api/announcements_service/models/oci.announcements_service.models.BaseService.rst
@@ -0,0 +1,11 @@
+BaseService
+===========
+
+.. currentmodule:: oci.announcements_service.models
+
+.. autoclass:: BaseService
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/announcements_service/models/oci.announcements_service.models.NotificationsSummary.rst b/docs/api/announcements_service/models/oci.announcements_service.models.NotificationsSummary.rst
new file mode 100644
index 0000000000..2318dee2b6
--- /dev/null
+++ b/docs/api/announcements_service/models/oci.announcements_service.models.NotificationsSummary.rst
@@ -0,0 +1,11 @@
+NotificationsSummary
+====================
+
+.. currentmodule:: oci.announcements_service.models
+
+.. autoclass:: NotificationsSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/announcements_service/models/oci.announcements_service.models.Service.rst b/docs/api/announcements_service/models/oci.announcements_service.models.Service.rst
new file mode 100644
index 0000000000..175792d8bb
--- /dev/null
+++ b/docs/api/announcements_service/models/oci.announcements_service.models.Service.rst
@@ -0,0 +1,11 @@
+Service
+=======
+
+.. currentmodule:: oci.announcements_service.models
+
+.. autoclass:: Service
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/announcements_service/models/oci.announcements_service.models.ServiceSummary.rst b/docs/api/announcements_service/models/oci.announcements_service.models.ServiceSummary.rst
new file mode 100644
index 0000000000..2d8da667f6
--- /dev/null
+++ b/docs/api/announcements_service/models/oci.announcements_service.models.ServiceSummary.rst
@@ -0,0 +1,11 @@
+ServiceSummary
+==============
+
+.. currentmodule:: oci.announcements_service.models
+
+.. autoclass:: ServiceSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/announcements_service/models/oci.announcements_service.models.ServicesCollection.rst b/docs/api/announcements_service/models/oci.announcements_service.models.ServicesCollection.rst
new file mode 100644
index 0000000000..277e70cc8e
--- /dev/null
+++ b/docs/api/announcements_service/models/oci.announcements_service.models.ServicesCollection.rst
@@ -0,0 +1,11 @@
+ServicesCollection
+==================
+
+.. currentmodule:: oci.announcements_service.models
+
+.. autoclass:: ServicesCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database.rst b/docs/api/database.rst
index e9dfa7eac6..0140fe47c7 100644
--- a/docs/api/database.rst
+++ b/docs/api/database.rst
@@ -19,6 +19,10 @@ Database
:template: autosummary/model_class.rst
oci.database.models.AcdAvmResourceStats
+ oci.database.models.ActionMember
+ oci.database.models.ActionOrderDetails
+ oci.database.models.ActionParamValuesCollection
+ oci.database.models.ActionParamValuesSummary
oci.database.models.ActivateExadataInfrastructureDetails
oci.database.models.AddVirtualMachineToCloudVmClusterDetails
oci.database.models.AddVirtualMachineToVmClusterDetails
@@ -76,6 +80,7 @@ Database
oci.database.models.BackupDestinationDetails
oci.database.models.BackupDestinationSummary
oci.database.models.BackupSummary
+ oci.database.models.CancelExecutionWindowDetails
oci.database.models.ChangeAutonomousDatabaseSoftwareImageCompartmentDetails
oci.database.models.ChangeAutonomousDatabaseSubscriptionDetails
oci.database.models.ChangeAutonomousVmClusterCompartmentDetails
@@ -92,6 +97,8 @@ Database
oci.database.models.ChangeExascaleDbStorageVaultCompartmentDetails
oci.database.models.ChangeKeyStoreCompartmentDetails
oci.database.models.ChangeKeyStoreTypeDetails
+ oci.database.models.ChangeSchedulingPlanCompartmentDetails
+ oci.database.models.ChangeSchedulingPolicyCompartmentDetails
oci.database.models.ChangeSubscriptionDetails
oci.database.models.ChangeVmClusterCompartmentDetails
oci.database.models.CloudAutomationApplyUpdateTimePreference
@@ -165,6 +172,8 @@ Database
oci.database.models.CreateExadataInfrastructureDetails
oci.database.models.CreateExadbVmClusterDetails
oci.database.models.CreateExascaleDbStorageVaultDetails
+ oci.database.models.CreateExecutionActionDetails
+ oci.database.models.CreateExecutionWindowDetails
oci.database.models.CreateExternalBackupJobDetails
oci.database.models.CreateExternalContainerDatabaseDetails
oci.database.models.CreateExternalDatabaseConnectorDetails
@@ -185,6 +194,10 @@ Database
oci.database.models.CreatePluggableDatabaseRefreshableCloneDetails
oci.database.models.CreateRecoveryApplianceBackupDestinationDetails
oci.database.models.CreateRefreshableAutonomousDatabaseCloneDetails
+ oci.database.models.CreateScheduledActionDetails
+ oci.database.models.CreateSchedulingPlanDetails
+ oci.database.models.CreateSchedulingPolicyDetails
+ oci.database.models.CreateSchedulingWindowDetails
oci.database.models.CreateVmClusterDetails
oci.database.models.CustomerContact
oci.database.models.DataCollectionOptions
@@ -273,6 +286,11 @@ Database
oci.database.models.ExascaleDbStorageInputDetails
oci.database.models.ExascaleDbStorageVault
oci.database.models.ExascaleDbStorageVaultSummary
+ oci.database.models.ExecutionAction
+ oci.database.models.ExecutionActionMember
+ oci.database.models.ExecutionActionSummary
+ oci.database.models.ExecutionWindow
+ oci.database.models.ExecutionWindowSummary
oci.database.models.ExternalBackupJob
oci.database.models.ExternalContainerDatabase
oci.database.models.ExternalContainerDatabaseSummary
@@ -293,6 +311,7 @@ Database
oci.database.models.GenerateRecommendedNetworkDetails
oci.database.models.GiMinorVersionSummary
oci.database.models.GiVersionSummary
+ oci.database.models.GranularMaintenanceHistoryDetails
oci.database.models.InfoForNetworkGenDetails
oci.database.models.InfrastructureTargetVersion
oci.database.models.InfrastructureTargetVersionSummary
@@ -319,6 +338,7 @@ Database
oci.database.models.ModifyPluggableDatabaseManagementDetails
oci.database.models.Month
oci.database.models.MountTypeDetails
+ oci.database.models.MoveExecutionActionMemberDetails
oci.database.models.NetworkBondingModeDetails
oci.database.models.NodeDetails
oci.database.models.OCPUs
@@ -340,6 +360,8 @@ Database
oci.database.models.PluggableDatabaseNodeLevelDetails
oci.database.models.PluggableDatabaseRefreshableCloneConfig
oci.database.models.PluggableDatabaseSummary
+ oci.database.models.RecommendedScheduledActionSummary
+ oci.database.models.RecommendedScheduledActionsCollection
oci.database.models.RefreshableCloneCollection
oci.database.models.RefreshableCloneSummary
oci.database.models.RegisterAutonomousDatabaseDataSafeDetails
@@ -348,6 +370,8 @@ Database
oci.database.models.RemoveVirtualMachineFromCloudVmClusterDetails
oci.database.models.RemoveVirtualMachineFromExadbVmClusterDetails
oci.database.models.RemoveVirtualMachineFromVmClusterDetails
+ oci.database.models.ReorderExecutionActionDetails
+ oci.database.models.ReorderScheduledActionsDetails
oci.database.models.ResizeVmClusterNetworkDetails
oci.database.models.ResourcePoolShapeCollection
oci.database.models.ResourcePoolShapeSummary
@@ -361,7 +385,17 @@ Database
oci.database.models.SaasAdminUserConfiguration
oci.database.models.SaasAdminUserStatus
oci.database.models.ScanDetails
+ oci.database.models.ScheduledAction
+ oci.database.models.ScheduledActionCollection
+ oci.database.models.ScheduledActionSummary
oci.database.models.ScheduledOperationDetails
+ oci.database.models.SchedulingPlan
+ oci.database.models.SchedulingPlanCollection
+ oci.database.models.SchedulingPlanSummary
+ oci.database.models.SchedulingPolicy
+ oci.database.models.SchedulingPolicySummary
+ oci.database.models.SchedulingWindow
+ oci.database.models.SchedulingWindowSummary
oci.database.models.SelfMountDetails
oci.database.models.StackMonitoringConfig
oci.database.models.StoragePerformanceDetails
@@ -393,6 +427,8 @@ Database
oci.database.models.UpdateExadataInfrastructureDetails
oci.database.models.UpdateExadbVmClusterDetails
oci.database.models.UpdateExascaleDbStorageVaultDetails
+ oci.database.models.UpdateExecutionActionDetails
+ oci.database.models.UpdateExecutionWindowDetails
oci.database.models.UpdateExternalContainerDatabaseDetails
oci.database.models.UpdateExternalDatabaseConnectorDetails
oci.database.models.UpdateExternalDatabaseDetailsBase
@@ -405,6 +441,9 @@ Database
oci.database.models.UpdateMaintenanceRunDetails
oci.database.models.UpdateOneoffPatchDetails
oci.database.models.UpdatePluggableDatabaseDetails
+ oci.database.models.UpdateScheduledActionDetails
+ oci.database.models.UpdateSchedulingPolicyDetails
+ oci.database.models.UpdateSchedulingWindowDetails
oci.database.models.UpdateSummary
oci.database.models.UpdateVmClusterDetails
oci.database.models.UpdateVmClusterNetworkDetails
@@ -421,4 +460,5 @@ Database
oci.database.models.VmClusterUpdateHistoryEntrySummary
oci.database.models.VmClusterUpdateSummary
oci.database.models.VmNetworkDetails
+ oci.database.models.WindowPreferenceDetail
oci.database.models.WorkloadType
diff --git a/docs/api/database/models/oci.database.models.ActionMember.rst b/docs/api/database/models/oci.database.models.ActionMember.rst
new file mode 100644
index 0000000000..4850b9c50b
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ActionMember.rst
@@ -0,0 +1,11 @@
+ActionMember
+============
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ActionMember
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ActionOrderDetails.rst b/docs/api/database/models/oci.database.models.ActionOrderDetails.rst
new file mode 100644
index 0000000000..bd425dbbd5
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ActionOrderDetails.rst
@@ -0,0 +1,11 @@
+ActionOrderDetails
+==================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ActionOrderDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ActionParamValuesCollection.rst b/docs/api/database/models/oci.database.models.ActionParamValuesCollection.rst
new file mode 100644
index 0000000000..193d6cbedf
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ActionParamValuesCollection.rst
@@ -0,0 +1,11 @@
+ActionParamValuesCollection
+===========================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ActionParamValuesCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ActionParamValuesSummary.rst b/docs/api/database/models/oci.database.models.ActionParamValuesSummary.rst
new file mode 100644
index 0000000000..a43671e5e9
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ActionParamValuesSummary.rst
@@ -0,0 +1,11 @@
+ActionParamValuesSummary
+========================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ActionParamValuesSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.CancelExecutionWindowDetails.rst b/docs/api/database/models/oci.database.models.CancelExecutionWindowDetails.rst
new file mode 100644
index 0000000000..64db49787f
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.CancelExecutionWindowDetails.rst
@@ -0,0 +1,11 @@
+CancelExecutionWindowDetails
+============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: CancelExecutionWindowDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ChangeSchedulingPlanCompartmentDetails.rst b/docs/api/database/models/oci.database.models.ChangeSchedulingPlanCompartmentDetails.rst
new file mode 100644
index 0000000000..6052733ac1
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ChangeSchedulingPlanCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeSchedulingPlanCompartmentDetails
+======================================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ChangeSchedulingPlanCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ChangeSchedulingPolicyCompartmentDetails.rst b/docs/api/database/models/oci.database.models.ChangeSchedulingPolicyCompartmentDetails.rst
new file mode 100644
index 0000000000..8de2ac2c50
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ChangeSchedulingPolicyCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeSchedulingPolicyCompartmentDetails
+========================================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ChangeSchedulingPolicyCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.CreateExecutionActionDetails.rst b/docs/api/database/models/oci.database.models.CreateExecutionActionDetails.rst
new file mode 100644
index 0000000000..8e2d8f4994
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.CreateExecutionActionDetails.rst
@@ -0,0 +1,11 @@
+CreateExecutionActionDetails
+============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: CreateExecutionActionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.CreateExecutionWindowDetails.rst b/docs/api/database/models/oci.database.models.CreateExecutionWindowDetails.rst
new file mode 100644
index 0000000000..fb37633275
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.CreateExecutionWindowDetails.rst
@@ -0,0 +1,11 @@
+CreateExecutionWindowDetails
+============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: CreateExecutionWindowDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.CreateScheduledActionDetails.rst b/docs/api/database/models/oci.database.models.CreateScheduledActionDetails.rst
new file mode 100644
index 0000000000..f2661eb9fa
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.CreateScheduledActionDetails.rst
@@ -0,0 +1,11 @@
+CreateScheduledActionDetails
+============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: CreateScheduledActionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.CreateSchedulingPlanDetails.rst b/docs/api/database/models/oci.database.models.CreateSchedulingPlanDetails.rst
new file mode 100644
index 0000000000..3004b4f25a
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.CreateSchedulingPlanDetails.rst
@@ -0,0 +1,11 @@
+CreateSchedulingPlanDetails
+===========================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: CreateSchedulingPlanDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.CreateSchedulingPolicyDetails.rst b/docs/api/database/models/oci.database.models.CreateSchedulingPolicyDetails.rst
new file mode 100644
index 0000000000..411e474bee
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.CreateSchedulingPolicyDetails.rst
@@ -0,0 +1,11 @@
+CreateSchedulingPolicyDetails
+=============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: CreateSchedulingPolicyDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.CreateSchedulingWindowDetails.rst b/docs/api/database/models/oci.database.models.CreateSchedulingWindowDetails.rst
new file mode 100644
index 0000000000..70906a72a3
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.CreateSchedulingWindowDetails.rst
@@ -0,0 +1,11 @@
+CreateSchedulingWindowDetails
+=============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: CreateSchedulingWindowDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ExecutionAction.rst b/docs/api/database/models/oci.database.models.ExecutionAction.rst
new file mode 100644
index 0000000000..a90b851bce
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ExecutionAction.rst
@@ -0,0 +1,11 @@
+ExecutionAction
+===============
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ExecutionAction
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ExecutionActionMember.rst b/docs/api/database/models/oci.database.models.ExecutionActionMember.rst
new file mode 100644
index 0000000000..f6454bfaba
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ExecutionActionMember.rst
@@ -0,0 +1,11 @@
+ExecutionActionMember
+=====================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ExecutionActionMember
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ExecutionActionSummary.rst b/docs/api/database/models/oci.database.models.ExecutionActionSummary.rst
new file mode 100644
index 0000000000..25891eb199
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ExecutionActionSummary.rst
@@ -0,0 +1,11 @@
+ExecutionActionSummary
+======================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ExecutionActionSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ExecutionWindow.rst b/docs/api/database/models/oci.database.models.ExecutionWindow.rst
new file mode 100644
index 0000000000..0fee11baf1
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ExecutionWindow.rst
@@ -0,0 +1,11 @@
+ExecutionWindow
+===============
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ExecutionWindow
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ExecutionWindowSummary.rst b/docs/api/database/models/oci.database.models.ExecutionWindowSummary.rst
new file mode 100644
index 0000000000..976f357739
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ExecutionWindowSummary.rst
@@ -0,0 +1,11 @@
+ExecutionWindowSummary
+======================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ExecutionWindowSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.GranularMaintenanceHistoryDetails.rst b/docs/api/database/models/oci.database.models.GranularMaintenanceHistoryDetails.rst
new file mode 100644
index 0000000000..b91b23e87c
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.GranularMaintenanceHistoryDetails.rst
@@ -0,0 +1,11 @@
+GranularMaintenanceHistoryDetails
+=================================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: GranularMaintenanceHistoryDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.MoveExecutionActionMemberDetails.rst b/docs/api/database/models/oci.database.models.MoveExecutionActionMemberDetails.rst
new file mode 100644
index 0000000000..34d61c4335
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.MoveExecutionActionMemberDetails.rst
@@ -0,0 +1,11 @@
+MoveExecutionActionMemberDetails
+================================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: MoveExecutionActionMemberDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.RecommendedScheduledActionSummary.rst b/docs/api/database/models/oci.database.models.RecommendedScheduledActionSummary.rst
new file mode 100644
index 0000000000..ef08fe51c9
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.RecommendedScheduledActionSummary.rst
@@ -0,0 +1,11 @@
+RecommendedScheduledActionSummary
+=================================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: RecommendedScheduledActionSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.RecommendedScheduledActionsCollection.rst b/docs/api/database/models/oci.database.models.RecommendedScheduledActionsCollection.rst
new file mode 100644
index 0000000000..9314a1a936
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.RecommendedScheduledActionsCollection.rst
@@ -0,0 +1,11 @@
+RecommendedScheduledActionsCollection
+=====================================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: RecommendedScheduledActionsCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ReorderExecutionActionDetails.rst b/docs/api/database/models/oci.database.models.ReorderExecutionActionDetails.rst
new file mode 100644
index 0000000000..65a3719546
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ReorderExecutionActionDetails.rst
@@ -0,0 +1,11 @@
+ReorderExecutionActionDetails
+=============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ReorderExecutionActionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ReorderScheduledActionsDetails.rst b/docs/api/database/models/oci.database.models.ReorderScheduledActionsDetails.rst
new file mode 100644
index 0000000000..2e92eaab7d
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ReorderScheduledActionsDetails.rst
@@ -0,0 +1,11 @@
+ReorderScheduledActionsDetails
+==============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ReorderScheduledActionsDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ScheduledAction.rst b/docs/api/database/models/oci.database.models.ScheduledAction.rst
new file mode 100644
index 0000000000..6e981e5557
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ScheduledAction.rst
@@ -0,0 +1,11 @@
+ScheduledAction
+===============
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ScheduledAction
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ScheduledActionCollection.rst b/docs/api/database/models/oci.database.models.ScheduledActionCollection.rst
new file mode 100644
index 0000000000..e8e925d2c2
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ScheduledActionCollection.rst
@@ -0,0 +1,11 @@
+ScheduledActionCollection
+=========================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ScheduledActionCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.ScheduledActionSummary.rst b/docs/api/database/models/oci.database.models.ScheduledActionSummary.rst
new file mode 100644
index 0000000000..3ccbde3b38
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.ScheduledActionSummary.rst
@@ -0,0 +1,11 @@
+ScheduledActionSummary
+======================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: ScheduledActionSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.SchedulingPlan.rst b/docs/api/database/models/oci.database.models.SchedulingPlan.rst
new file mode 100644
index 0000000000..5116415db1
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.SchedulingPlan.rst
@@ -0,0 +1,11 @@
+SchedulingPlan
+==============
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: SchedulingPlan
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.SchedulingPlanCollection.rst b/docs/api/database/models/oci.database.models.SchedulingPlanCollection.rst
new file mode 100644
index 0000000000..3e47b1bfbe
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.SchedulingPlanCollection.rst
@@ -0,0 +1,11 @@
+SchedulingPlanCollection
+========================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: SchedulingPlanCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.SchedulingPlanSummary.rst b/docs/api/database/models/oci.database.models.SchedulingPlanSummary.rst
new file mode 100644
index 0000000000..346b929481
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.SchedulingPlanSummary.rst
@@ -0,0 +1,11 @@
+SchedulingPlanSummary
+=====================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: SchedulingPlanSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.SchedulingPolicy.rst b/docs/api/database/models/oci.database.models.SchedulingPolicy.rst
new file mode 100644
index 0000000000..99b2dd4719
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.SchedulingPolicy.rst
@@ -0,0 +1,11 @@
+SchedulingPolicy
+================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: SchedulingPolicy
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.SchedulingPolicySummary.rst b/docs/api/database/models/oci.database.models.SchedulingPolicySummary.rst
new file mode 100644
index 0000000000..a4ed936f3b
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.SchedulingPolicySummary.rst
@@ -0,0 +1,11 @@
+SchedulingPolicySummary
+=======================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: SchedulingPolicySummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.SchedulingWindow.rst b/docs/api/database/models/oci.database.models.SchedulingWindow.rst
new file mode 100644
index 0000000000..8cf8c7d21f
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.SchedulingWindow.rst
@@ -0,0 +1,11 @@
+SchedulingWindow
+================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: SchedulingWindow
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.SchedulingWindowSummary.rst b/docs/api/database/models/oci.database.models.SchedulingWindowSummary.rst
new file mode 100644
index 0000000000..bb6ac7f2c8
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.SchedulingWindowSummary.rst
@@ -0,0 +1,11 @@
+SchedulingWindowSummary
+=======================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: SchedulingWindowSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.UpdateExecutionActionDetails.rst b/docs/api/database/models/oci.database.models.UpdateExecutionActionDetails.rst
new file mode 100644
index 0000000000..dcbe09dd2e
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.UpdateExecutionActionDetails.rst
@@ -0,0 +1,11 @@
+UpdateExecutionActionDetails
+============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: UpdateExecutionActionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.UpdateExecutionWindowDetails.rst b/docs/api/database/models/oci.database.models.UpdateExecutionWindowDetails.rst
new file mode 100644
index 0000000000..a2563e1bb9
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.UpdateExecutionWindowDetails.rst
@@ -0,0 +1,11 @@
+UpdateExecutionWindowDetails
+============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: UpdateExecutionWindowDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.UpdateScheduledActionDetails.rst b/docs/api/database/models/oci.database.models.UpdateScheduledActionDetails.rst
new file mode 100644
index 0000000000..b7897ef0c8
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.UpdateScheduledActionDetails.rst
@@ -0,0 +1,11 @@
+UpdateScheduledActionDetails
+============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: UpdateScheduledActionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.UpdateSchedulingPolicyDetails.rst b/docs/api/database/models/oci.database.models.UpdateSchedulingPolicyDetails.rst
new file mode 100644
index 0000000000..00cf4f22f0
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.UpdateSchedulingPolicyDetails.rst
@@ -0,0 +1,11 @@
+UpdateSchedulingPolicyDetails
+=============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: UpdateSchedulingPolicyDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.UpdateSchedulingWindowDetails.rst b/docs/api/database/models/oci.database.models.UpdateSchedulingWindowDetails.rst
new file mode 100644
index 0000000000..f09819e197
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.UpdateSchedulingWindowDetails.rst
@@ -0,0 +1,11 @@
+UpdateSchedulingWindowDetails
+=============================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: UpdateSchedulingWindowDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/database/models/oci.database.models.WindowPreferenceDetail.rst b/docs/api/database/models/oci.database.models.WindowPreferenceDetail.rst
new file mode 100644
index 0000000000..c3a5e2d772
--- /dev/null
+++ b/docs/api/database/models/oci.database.models.WindowPreferenceDetail.rst
@@ -0,0 +1,11 @@
+WindowPreferenceDetail
+======================
+
+.. currentmodule:: oci.database.models
+
+.. autoclass:: WindowPreferenceDetail
+ :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 51b0b92072..a4e9466724 100644
--- a/docs/api/database_management.rst
+++ b/docs/api/database_management.rst
@@ -54,6 +54,9 @@ Database Management
oci.database_management.models.AttentionLogSummary
oci.database_management.models.AutomaticCaptureFilter
oci.database_management.models.AutomaticCaptureFilterDetails
+ oci.database_management.models.AutonomousDatabaseDiagnosticsAndManagementFeatureDetails
+ oci.database_management.models.AutonomousDatabaseFeatureDetails
+ oci.database_management.models.AutonomousDatabaseSqlWatchFeatureDetails
oci.database_management.models.AwrDbCollection
oci.database_management.models.AwrDbCpuUsageCollection
oci.database_management.models.AwrDbCpuUsageSummary
@@ -162,8 +165,10 @@ Database Management
oci.database_management.models.DbManagementPrivateEndpointCollection
oci.database_management.models.DbManagementPrivateEndpointSummary
oci.database_management.models.DbmResource
+ oci.database_management.models.DirectConnectorDetails
oci.database_management.models.DisableAutomaticInitialPlanCaptureDetails
oci.database_management.models.DisableAutomaticSpmEvolveAdvisorTaskDetails
+ oci.database_management.models.DisableAutonomousDatabaseManagementFeatureDetails
oci.database_management.models.DisableDatabaseManagementFeatureDetails
oci.database_management.models.DisableExternalContainerDatabaseManagementFeatureDetails
oci.database_management.models.DisableExternalNonContainerDatabaseManagementFeatureDetails
@@ -189,6 +194,7 @@ Database Management
oci.database_management.models.DropTablespaceDetails
oci.database_management.models.EnableAutomaticInitialPlanCaptureDetails
oci.database_management.models.EnableAutomaticSpmEvolveAdvisorTaskDetails
+ oci.database_management.models.EnableAutonomousDatabaseManagementFeatureDetails
oci.database_management.models.EnableDatabaseManagementFeatureDetails
oci.database_management.models.EnableExternalContainerDatabaseManagementFeatureDetails
oci.database_management.models.EnableExternalDbSystemDatabaseManagementDetails
@@ -350,6 +356,7 @@ Database Management
oci.database_management.models.MetricStatisticsDefinition
oci.database_management.models.MetricsAggregationRange
oci.database_management.models.MetricsAggregationRangeCollection
+ oci.database_management.models.ModifyAutonomousDatabaseManagementFeatureDetails
oci.database_management.models.ModifyDatabaseManagementFeatureDetails
oci.database_management.models.ModifyPluggableDatabaseManagementFeatureDetails
oci.database_management.models.ModifySnapshotSettingsDetails
diff --git a/docs/api/database_management/models/oci.database_management.models.AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.rst
new file mode 100644
index 0000000000..7936db5f83
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.AutonomousDatabaseDiagnosticsAndManagementFeatureDetails.rst
@@ -0,0 +1,11 @@
+AutonomousDatabaseDiagnosticsAndManagementFeatureDetails
+========================================================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: AutonomousDatabaseDiagnosticsAndManagementFeatureDetails
+ :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.AutonomousDatabaseFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.AutonomousDatabaseFeatureDetails.rst
new file mode 100644
index 0000000000..c0d241b763
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.AutonomousDatabaseFeatureDetails.rst
@@ -0,0 +1,11 @@
+AutonomousDatabaseFeatureDetails
+================================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: AutonomousDatabaseFeatureDetails
+ :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.AutonomousDatabaseSqlWatchFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.AutonomousDatabaseSqlWatchFeatureDetails.rst
new file mode 100644
index 0000000000..5b486d2eee
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.AutonomousDatabaseSqlWatchFeatureDetails.rst
@@ -0,0 +1,11 @@
+AutonomousDatabaseSqlWatchFeatureDetails
+========================================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: AutonomousDatabaseSqlWatchFeatureDetails
+ :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.DirectConnectorDetails.rst b/docs/api/database_management/models/oci.database_management.models.DirectConnectorDetails.rst
new file mode 100644
index 0000000000..b54601a00a
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.DirectConnectorDetails.rst
@@ -0,0 +1,11 @@
+DirectConnectorDetails
+======================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: DirectConnectorDetails
+ :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.DisableAutonomousDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.DisableAutonomousDatabaseManagementFeatureDetails.rst
new file mode 100644
index 0000000000..93f1d915a7
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.DisableAutonomousDatabaseManagementFeatureDetails.rst
@@ -0,0 +1,11 @@
+DisableAutonomousDatabaseManagementFeatureDetails
+=================================================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: DisableAutonomousDatabaseManagementFeatureDetails
+ :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.EnableAutonomousDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.EnableAutonomousDatabaseManagementFeatureDetails.rst
new file mode 100644
index 0000000000..1d5363bb62
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.EnableAutonomousDatabaseManagementFeatureDetails.rst
@@ -0,0 +1,11 @@
+EnableAutonomousDatabaseManagementFeatureDetails
+================================================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: EnableAutonomousDatabaseManagementFeatureDetails
+ :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.ModifyAutonomousDatabaseManagementFeatureDetails.rst b/docs/api/database_management/models/oci.database_management.models.ModifyAutonomousDatabaseManagementFeatureDetails.rst
new file mode 100644
index 0000000000..4f730e49c3
--- /dev/null
+++ b/docs/api/database_management/models/oci.database_management.models.ModifyAutonomousDatabaseManagementFeatureDetails.rst
@@ -0,0 +1,11 @@
+ModifyAutonomousDatabaseManagementFeatureDetails
+================================================
+
+.. currentmodule:: oci.database_management.models
+
+.. autoclass:: ModifyAutonomousDatabaseManagementFeatureDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control.rst b/docs/api/delegate_access_control.rst
new file mode 100644
index 0000000000..4f0beaf1d6
--- /dev/null
+++ b/docs/api/delegate_access_control.rst
@@ -0,0 +1,64 @@
+Delegate Access Control
+=======================
+
+.. autosummary::
+ :toctree: delegate_access_control/client
+ :nosignatures:
+ :template: autosummary/service_client.rst
+
+ oci.delegate_access_control.DelegateAccessControlClient
+ oci.delegate_access_control.WorkRequestClient
+ oci.delegate_access_control.DelegateAccessControlClientCompositeOperations
+ oci.delegate_access_control.WorkRequestClientCompositeOperations
+
+--------
+ Models
+--------
+
+.. autosummary::
+ :toctree: delegate_access_control/models
+ :nosignatures:
+ :template: autosummary/model_class.rst
+
+ oci.delegate_access_control.models.ApproveDelegatedResourceAccessRequestDetails
+ oci.delegate_access_control.models.ChangeDelegationControlCompartmentDetails
+ oci.delegate_access_control.models.ChangeDelegationSubscriptionCompartmentDetails
+ oci.delegate_access_control.models.CreateDelegationControlDetails
+ oci.delegate_access_control.models.CreateDelegationSubscriptionDetails
+ oci.delegate_access_control.models.DelegatedResourceAccessRequest
+ oci.delegate_access_control.models.DelegatedResourceAccessRequestApprovalDetails
+ oci.delegate_access_control.models.DelegatedResourceAccessRequestAuditLogReport
+ oci.delegate_access_control.models.DelegatedResourceAccessRequestHistoryCollection
+ oci.delegate_access_control.models.DelegatedResourceAccessRequestHistorySummary
+ oci.delegate_access_control.models.DelegatedResourceAccessRequestSummary
+ oci.delegate_access_control.models.DelegatedResourceAccessRequestSummaryCollection
+ oci.delegate_access_control.models.DelegationControl
+ oci.delegate_access_control.models.DelegationControlResourceCollection
+ oci.delegate_access_control.models.DelegationControlResourceSummary
+ oci.delegate_access_control.models.DelegationControlSummary
+ oci.delegate_access_control.models.DelegationControlSummaryCollection
+ oci.delegate_access_control.models.DelegationSubscription
+ oci.delegate_access_control.models.DelegationSubscriptionSummary
+ oci.delegate_access_control.models.DelegationSubscriptionSummaryCollection
+ oci.delegate_access_control.models.RejectDelegatedResourceAccessRequestDetails
+ oci.delegate_access_control.models.RevokeDelegatedResourceAccessRequestDetails
+ oci.delegate_access_control.models.ServiceProvider
+ oci.delegate_access_control.models.ServiceProviderAction
+ oci.delegate_access_control.models.ServiceProviderActionProperties
+ oci.delegate_access_control.models.ServiceProviderActionSummary
+ oci.delegate_access_control.models.ServiceProviderActionSummaryCollection
+ oci.delegate_access_control.models.ServiceProviderInteractionCollection
+ oci.delegate_access_control.models.ServiceProviderInteractionRequestDetails
+ oci.delegate_access_control.models.ServiceProviderInteractionSummary
+ oci.delegate_access_control.models.ServiceProviderSummary
+ oci.delegate_access_control.models.ServiceProviderSummaryCollection
+ oci.delegate_access_control.models.UpdateDelegationControlDetails
+ oci.delegate_access_control.models.UpdateDelegationSubscriptionDetails
+ oci.delegate_access_control.models.WorkRequest
+ oci.delegate_access_control.models.WorkRequestError
+ oci.delegate_access_control.models.WorkRequestErrorCollection
+ oci.delegate_access_control.models.WorkRequestLogEntry
+ oci.delegate_access_control.models.WorkRequestLogEntryCollection
+ oci.delegate_access_control.models.WorkRequestResource
+ oci.delegate_access_control.models.WorkRequestSummary
+ oci.delegate_access_control.models.WorkRequestSummaryCollection
diff --git a/docs/api/delegate_access_control/client/oci.delegate_access_control.DelegateAccessControlClient.rst b/docs/api/delegate_access_control/client/oci.delegate_access_control.DelegateAccessControlClient.rst
new file mode 100644
index 0000000000..b1a00eb508
--- /dev/null
+++ b/docs/api/delegate_access_control/client/oci.delegate_access_control.DelegateAccessControlClient.rst
@@ -0,0 +1,8 @@
+DelegateAccessControlClient
+===========================
+
+.. currentmodule:: oci.delegate_access_control
+
+.. autoclass:: DelegateAccessControlClient
+ :special-members: __init__
+ :members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/client/oci.delegate_access_control.DelegateAccessControlClientCompositeOperations.rst b/docs/api/delegate_access_control/client/oci.delegate_access_control.DelegateAccessControlClientCompositeOperations.rst
new file mode 100644
index 0000000000..ab55019f95
--- /dev/null
+++ b/docs/api/delegate_access_control/client/oci.delegate_access_control.DelegateAccessControlClientCompositeOperations.rst
@@ -0,0 +1,8 @@
+DelegateAccessControlClientCompositeOperations
+==============================================
+
+.. currentmodule:: oci.delegate_access_control
+
+.. autoclass:: DelegateAccessControlClientCompositeOperations
+ :special-members: __init__
+ :members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/client/oci.delegate_access_control.WorkRequestClient.rst b/docs/api/delegate_access_control/client/oci.delegate_access_control.WorkRequestClient.rst
new file mode 100644
index 0000000000..0494932d03
--- /dev/null
+++ b/docs/api/delegate_access_control/client/oci.delegate_access_control.WorkRequestClient.rst
@@ -0,0 +1,8 @@
+WorkRequestClient
+=================
+
+.. currentmodule:: oci.delegate_access_control
+
+.. autoclass:: WorkRequestClient
+ :special-members: __init__
+ :members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/client/oci.delegate_access_control.WorkRequestClientCompositeOperations.rst b/docs/api/delegate_access_control/client/oci.delegate_access_control.WorkRequestClientCompositeOperations.rst
new file mode 100644
index 0000000000..832168390b
--- /dev/null
+++ b/docs/api/delegate_access_control/client/oci.delegate_access_control.WorkRequestClientCompositeOperations.rst
@@ -0,0 +1,8 @@
+WorkRequestClientCompositeOperations
+====================================
+
+.. currentmodule:: oci.delegate_access_control
+
+.. autoclass:: WorkRequestClientCompositeOperations
+ :special-members: __init__
+ :members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ApproveDelegatedResourceAccessRequestDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ApproveDelegatedResourceAccessRequestDetails.rst
new file mode 100644
index 0000000000..fc4a37dae4
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ApproveDelegatedResourceAccessRequestDetails.rst
@@ -0,0 +1,11 @@
+ApproveDelegatedResourceAccessRequestDetails
+============================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ApproveDelegatedResourceAccessRequestDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ChangeDelegationControlCompartmentDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ChangeDelegationControlCompartmentDetails.rst
new file mode 100644
index 0000000000..35d849d45a
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ChangeDelegationControlCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeDelegationControlCompartmentDetails
+=========================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ChangeDelegationControlCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ChangeDelegationSubscriptionCompartmentDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ChangeDelegationSubscriptionCompartmentDetails.rst
new file mode 100644
index 0000000000..1808da6b7e
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ChangeDelegationSubscriptionCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeDelegationSubscriptionCompartmentDetails
+==============================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ChangeDelegationSubscriptionCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.CreateDelegationControlDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.CreateDelegationControlDetails.rst
new file mode 100644
index 0000000000..54135d3ae7
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.CreateDelegationControlDetails.rst
@@ -0,0 +1,11 @@
+CreateDelegationControlDetails
+==============================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: CreateDelegationControlDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.CreateDelegationSubscriptionDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.CreateDelegationSubscriptionDetails.rst
new file mode 100644
index 0000000000..fce5e2a2ae
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.CreateDelegationSubscriptionDetails.rst
@@ -0,0 +1,11 @@
+CreateDelegationSubscriptionDetails
+===================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: CreateDelegationSubscriptionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequest.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequest.rst
new file mode 100644
index 0000000000..73c203f19e
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequest.rst
@@ -0,0 +1,11 @@
+DelegatedResourceAccessRequest
+==============================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegatedResourceAccessRequest
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestApprovalDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestApprovalDetails.rst
new file mode 100644
index 0000000000..f4cf1073c2
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestApprovalDetails.rst
@@ -0,0 +1,11 @@
+DelegatedResourceAccessRequestApprovalDetails
+=============================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegatedResourceAccessRequestApprovalDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestAuditLogReport.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestAuditLogReport.rst
new file mode 100644
index 0000000000..e5c42bb3e8
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestAuditLogReport.rst
@@ -0,0 +1,11 @@
+DelegatedResourceAccessRequestAuditLogReport
+============================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegatedResourceAccessRequestAuditLogReport
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestHistoryCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestHistoryCollection.rst
new file mode 100644
index 0000000000..45b3d19222
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestHistoryCollection.rst
@@ -0,0 +1,11 @@
+DelegatedResourceAccessRequestHistoryCollection
+===============================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegatedResourceAccessRequestHistoryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestHistorySummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestHistorySummary.rst
new file mode 100644
index 0000000000..7fe609d1f1
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestHistorySummary.rst
@@ -0,0 +1,11 @@
+DelegatedResourceAccessRequestHistorySummary
+============================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegatedResourceAccessRequestHistorySummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestSummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestSummary.rst
new file mode 100644
index 0000000000..cabd292a89
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestSummary.rst
@@ -0,0 +1,11 @@
+DelegatedResourceAccessRequestSummary
+=====================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegatedResourceAccessRequestSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestSummaryCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestSummaryCollection.rst
new file mode 100644
index 0000000000..1ecb2efc2e
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegatedResourceAccessRequestSummaryCollection.rst
@@ -0,0 +1,11 @@
+DelegatedResourceAccessRequestSummaryCollection
+===============================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegatedResourceAccessRequestSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControl.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControl.rst
new file mode 100644
index 0000000000..b7f9255964
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControl.rst
@@ -0,0 +1,11 @@
+DelegationControl
+=================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegationControl
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlResourceCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlResourceCollection.rst
new file mode 100644
index 0000000000..3e3f2504fa
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlResourceCollection.rst
@@ -0,0 +1,11 @@
+DelegationControlResourceCollection
+===================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegationControlResourceCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlResourceSummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlResourceSummary.rst
new file mode 100644
index 0000000000..fa03be77ed
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlResourceSummary.rst
@@ -0,0 +1,11 @@
+DelegationControlResourceSummary
+================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegationControlResourceSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlSummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlSummary.rst
new file mode 100644
index 0000000000..5f010b8577
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlSummary.rst
@@ -0,0 +1,11 @@
+DelegationControlSummary
+========================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegationControlSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlSummaryCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlSummaryCollection.rst
new file mode 100644
index 0000000000..098939e196
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationControlSummaryCollection.rst
@@ -0,0 +1,11 @@
+DelegationControlSummaryCollection
+==================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegationControlSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscription.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscription.rst
new file mode 100644
index 0000000000..1405267ba7
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscription.rst
@@ -0,0 +1,11 @@
+DelegationSubscription
+======================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegationSubscription
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscriptionSummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscriptionSummary.rst
new file mode 100644
index 0000000000..f856392630
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscriptionSummary.rst
@@ -0,0 +1,11 @@
+DelegationSubscriptionSummary
+=============================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegationSubscriptionSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscriptionSummaryCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscriptionSummaryCollection.rst
new file mode 100644
index 0000000000..bcde32e409
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.DelegationSubscriptionSummaryCollection.rst
@@ -0,0 +1,11 @@
+DelegationSubscriptionSummaryCollection
+=======================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: DelegationSubscriptionSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.RejectDelegatedResourceAccessRequestDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.RejectDelegatedResourceAccessRequestDetails.rst
new file mode 100644
index 0000000000..ab2314be58
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.RejectDelegatedResourceAccessRequestDetails.rst
@@ -0,0 +1,11 @@
+RejectDelegatedResourceAccessRequestDetails
+===========================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: RejectDelegatedResourceAccessRequestDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.RevokeDelegatedResourceAccessRequestDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.RevokeDelegatedResourceAccessRequestDetails.rst
new file mode 100644
index 0000000000..e395a4eeb0
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.RevokeDelegatedResourceAccessRequestDetails.rst
@@ -0,0 +1,11 @@
+RevokeDelegatedResourceAccessRequestDetails
+===========================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: RevokeDelegatedResourceAccessRequestDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProvider.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProvider.rst
new file mode 100644
index 0000000000..69579819eb
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProvider.rst
@@ -0,0 +1,11 @@
+ServiceProvider
+===============
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProvider
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderAction.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderAction.rst
new file mode 100644
index 0000000000..bdf6d34f04
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderAction.rst
@@ -0,0 +1,11 @@
+ServiceProviderAction
+=====================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderAction
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionProperties.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionProperties.rst
new file mode 100644
index 0000000000..6600d7e23f
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionProperties.rst
@@ -0,0 +1,11 @@
+ServiceProviderActionProperties
+===============================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderActionProperties
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionSummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionSummary.rst
new file mode 100644
index 0000000000..29946bf6d3
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionSummary.rst
@@ -0,0 +1,11 @@
+ServiceProviderActionSummary
+============================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderActionSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionSummaryCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionSummaryCollection.rst
new file mode 100644
index 0000000000..22eccf361f
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderActionSummaryCollection.rst
@@ -0,0 +1,11 @@
+ServiceProviderActionSummaryCollection
+======================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderActionSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionCollection.rst
new file mode 100644
index 0000000000..4e7fcf4276
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionCollection.rst
@@ -0,0 +1,11 @@
+ServiceProviderInteractionCollection
+====================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderInteractionCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionRequestDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionRequestDetails.rst
new file mode 100644
index 0000000000..8490d4fa0d
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionRequestDetails.rst
@@ -0,0 +1,11 @@
+ServiceProviderInteractionRequestDetails
+========================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderInteractionRequestDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionSummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionSummary.rst
new file mode 100644
index 0000000000..3006c7fd99
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderInteractionSummary.rst
@@ -0,0 +1,11 @@
+ServiceProviderInteractionSummary
+=================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderInteractionSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderSummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderSummary.rst
new file mode 100644
index 0000000000..5fa4e3cf43
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderSummary.rst
@@ -0,0 +1,11 @@
+ServiceProviderSummary
+======================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderSummaryCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderSummaryCollection.rst
new file mode 100644
index 0000000000..23893ec73d
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.ServiceProviderSummaryCollection.rst
@@ -0,0 +1,11 @@
+ServiceProviderSummaryCollection
+================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: ServiceProviderSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.UpdateDelegationControlDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.UpdateDelegationControlDetails.rst
new file mode 100644
index 0000000000..6927687525
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.UpdateDelegationControlDetails.rst
@@ -0,0 +1,11 @@
+UpdateDelegationControlDetails
+==============================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: UpdateDelegationControlDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.UpdateDelegationSubscriptionDetails.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.UpdateDelegationSubscriptionDetails.rst
new file mode 100644
index 0000000000..0e96925e72
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.UpdateDelegationSubscriptionDetails.rst
@@ -0,0 +1,11 @@
+UpdateDelegationSubscriptionDetails
+===================================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: UpdateDelegationSubscriptionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequest.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequest.rst
new file mode 100644
index 0000000000..b904ab1d78
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequest.rst
@@ -0,0 +1,11 @@
+WorkRequest
+===========
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: WorkRequest
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestError.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestError.rst
new file mode 100644
index 0000000000..60d9f354cf
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestError.rst
@@ -0,0 +1,11 @@
+WorkRequestError
+================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: WorkRequestError
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestErrorCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestErrorCollection.rst
new file mode 100644
index 0000000000..8f44c2980f
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestErrorCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestErrorCollection
+==========================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: WorkRequestErrorCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestLogEntry.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestLogEntry.rst
new file mode 100644
index 0000000000..49da3ea735
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestLogEntry.rst
@@ -0,0 +1,11 @@
+WorkRequestLogEntry
+===================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: WorkRequestLogEntry
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestLogEntryCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestLogEntryCollection.rst
new file mode 100644
index 0000000000..790d4bbcf4
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestLogEntryCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestLogEntryCollection
+=============================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: WorkRequestLogEntryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestResource.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestResource.rst
new file mode 100644
index 0000000000..db4a40a65a
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestResource.rst
@@ -0,0 +1,11 @@
+WorkRequestResource
+===================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: WorkRequestResource
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestSummary.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestSummary.rst
new file mode 100644
index 0000000000..787f1c7daf
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestSummary.rst
@@ -0,0 +1,11 @@
+WorkRequestSummary
+==================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: WorkRequestSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestSummaryCollection.rst b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestSummaryCollection.rst
new file mode 100644
index 0000000000..34ab50feca
--- /dev/null
+++ b/docs/api/delegate_access_control/models/oci.delegate_access_control.models.WorkRequestSummaryCollection.rst
@@ -0,0 +1,11 @@
+WorkRequestSummaryCollection
+============================
+
+.. currentmodule:: oci.delegate_access_control.models
+
+.. autoclass:: WorkRequestSummaryCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/file_storage.rst b/docs/api/file_storage.rst
index 453b058a71..b0ff4f3558 100644
--- a/docs/api/file_storage.rst
+++ b/docs/api/file_storage.rst
@@ -58,6 +58,7 @@ File Storage
oci.file_storage.models.ReplicationSummary
oci.file_storage.models.ReplicationTarget
oci.file_storage.models.ReplicationTargetSummary
+ oci.file_storage.models.ScheduleDowngradeShapeMountTargetDetails
oci.file_storage.models.Snapshot
oci.file_storage.models.SnapshotSchedule
oci.file_storage.models.SnapshotSummary
@@ -72,5 +73,6 @@ File Storage
oci.file_storage.models.UpdateOutboundConnectorDetails
oci.file_storage.models.UpdateReplicationDetails
oci.file_storage.models.UpdateSnapshotDetails
+ oci.file_storage.models.UpgradeShapeMountTargetDetails
oci.file_storage.models.ValidateKeyTabsDetails
oci.file_storage.models.ValidateKeyTabsResponseDetails
diff --git a/docs/api/file_storage/models/oci.file_storage.models.ScheduleDowngradeShapeMountTargetDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.ScheduleDowngradeShapeMountTargetDetails.rst
new file mode 100644
index 0000000000..bfb508550e
--- /dev/null
+++ b/docs/api/file_storage/models/oci.file_storage.models.ScheduleDowngradeShapeMountTargetDetails.rst
@@ -0,0 +1,11 @@
+ScheduleDowngradeShapeMountTargetDetails
+========================================
+
+.. currentmodule:: oci.file_storage.models
+
+.. autoclass:: ScheduleDowngradeShapeMountTargetDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/file_storage/models/oci.file_storage.models.UpgradeShapeMountTargetDetails.rst b/docs/api/file_storage/models/oci.file_storage.models.UpgradeShapeMountTargetDetails.rst
new file mode 100644
index 0000000000..945ef3d73e
--- /dev/null
+++ b/docs/api/file_storage/models/oci.file_storage.models.UpgradeShapeMountTargetDetails.rst
@@ -0,0 +1,11 @@
+UpgradeShapeMountTargetDetails
+==============================
+
+.. currentmodule:: oci.file_storage.models
+
+.. autoclass:: UpgradeShapeMountTargetDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/landing.rst b/docs/api/landing.rst
index 09d1473991..84fc4c2c49 100644
--- a/docs/api/landing.rst
+++ b/docs/api/landing.rst
@@ -75,6 +75,7 @@ API Reference
* :doc:`Db Backups `
* :doc:`Db Management `
* :doc:`Db System `
+* :doc:`Delegate Access Control `
* :doc:`Deployment `
* :doc:`Desktop Service `
* :doc:`Devops `
@@ -201,6 +202,7 @@ API Reference
* :doc:`Sddc `
* :doc:`Secrets `
* :doc:`Sender Invitation `
+* :doc:`Service `
* :doc:`Service Catalog `
* :doc:`Service Connector `
* :doc:`Service Manager Proxy `
@@ -244,6 +246,7 @@ API Reference
* :doc:`Work Request `
* :doc:`Work Request `
* :doc:`Work Request `
+* :doc:`Work Request `
* :doc:`Work Requests `
* :doc:`Work Requests `
* :doc:`Work Requests `
@@ -313,6 +316,7 @@ API Reference
database_management
database_migration
database_tools
+ delegate_access_control
demand_signal
desktops
devops
diff --git a/docs/api/mysql.rst b/docs/api/mysql.rst
index 6f38d7be5a..3b01113851 100644
--- a/docs/api/mysql.rst
+++ b/docs/api/mysql.rst
@@ -65,6 +65,7 @@ Mysql
oci.mysql.models.CreateDeletionPolicyDetails
oci.mysql.models.CreateMaintenanceDetails
oci.mysql.models.CreateReplicaDetails
+ oci.mysql.models.CustomerContact
oci.mysql.models.DataStorage
oci.mysql.models.DataStorageDetails
oci.mysql.models.DbSystem
diff --git a/docs/api/mysql/models/oci.mysql.models.CustomerContact.rst b/docs/api/mysql/models/oci.mysql.models.CustomerContact.rst
new file mode 100644
index 0000000000..36a1ab0d7c
--- /dev/null
+++ b/docs/api/mysql/models/oci.mysql.models.CustomerContact.rst
@@ -0,0 +1,11 @@
+CustomerContact
+===============
+
+.. currentmodule:: oci.mysql.models
+
+.. autoclass:: CustomerContact
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/object_storage.rst b/docs/api/object_storage.rst
index 7dedb0d1f0..90aa31cf04 100644
--- a/docs/api/object_storage.rst
+++ b/docs/api/object_storage.rst
@@ -18,6 +18,7 @@ Object Storage
:nosignatures:
:template: autosummary/model_class.rst
+ oci.object_storage.models.AccessTargetDetails
oci.object_storage.models.Bucket
oci.object_storage.models.BucketSummary
oci.object_storage.models.CommitMultipartUploadDetails
@@ -26,9 +27,11 @@ Object Storage
oci.object_storage.models.CreateBucketDetails
oci.object_storage.models.CreateMultipartUploadDetails
oci.object_storage.models.CreatePreauthenticatedRequestDetails
+ oci.object_storage.models.CreatePrivateEndpointDetails
oci.object_storage.models.CreateReplicationPolicyDetails
oci.object_storage.models.CreateRetentionRuleDetails
oci.object_storage.models.Duration
+ oci.object_storage.models.Fqdns
oci.object_storage.models.ListObjects
oci.object_storage.models.MultipartUpload
oci.object_storage.models.MultipartUploadPartSummary
@@ -42,6 +45,9 @@ Object Storage
oci.object_storage.models.PatternDetails
oci.object_storage.models.PreauthenticatedRequest
oci.object_storage.models.PreauthenticatedRequestSummary
+ oci.object_storage.models.PrefixFqdns
+ oci.object_storage.models.PrivateEndpoint
+ oci.object_storage.models.PrivateEndpointSummary
oci.object_storage.models.PutObjectLifecyclePolicyDetails
oci.object_storage.models.ReencryptObjectDetails
oci.object_storage.models.RenameObjectDetails
@@ -57,6 +63,7 @@ Object Storage
oci.object_storage.models.UpdateBucketDetails
oci.object_storage.models.UpdateNamespaceMetadataDetails
oci.object_storage.models.UpdateObjectStorageTierDetails
+ oci.object_storage.models.UpdatePrivateEndpointDetails
oci.object_storage.models.UpdateRetentionRuleDetails
oci.object_storage.models.WorkRequest
oci.object_storage.models.WorkRequestError
diff --git a/docs/api/object_storage/models/oci.object_storage.models.AccessTargetDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.AccessTargetDetails.rst
new file mode 100644
index 0000000000..7031a4cffc
--- /dev/null
+++ b/docs/api/object_storage/models/oci.object_storage.models.AccessTargetDetails.rst
@@ -0,0 +1,11 @@
+AccessTargetDetails
+===================
+
+.. currentmodule:: oci.object_storage.models
+
+.. autoclass:: AccessTargetDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/object_storage/models/oci.object_storage.models.CreatePrivateEndpointDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.CreatePrivateEndpointDetails.rst
new file mode 100644
index 0000000000..0e6fbbd7a0
--- /dev/null
+++ b/docs/api/object_storage/models/oci.object_storage.models.CreatePrivateEndpointDetails.rst
@@ -0,0 +1,11 @@
+CreatePrivateEndpointDetails
+============================
+
+.. currentmodule:: oci.object_storage.models
+
+.. autoclass:: CreatePrivateEndpointDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/object_storage/models/oci.object_storage.models.Fqdns.rst b/docs/api/object_storage/models/oci.object_storage.models.Fqdns.rst
new file mode 100644
index 0000000000..1e89732b5f
--- /dev/null
+++ b/docs/api/object_storage/models/oci.object_storage.models.Fqdns.rst
@@ -0,0 +1,11 @@
+Fqdns
+=====
+
+.. currentmodule:: oci.object_storage.models
+
+.. autoclass:: Fqdns
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/object_storage/models/oci.object_storage.models.PrefixFqdns.rst b/docs/api/object_storage/models/oci.object_storage.models.PrefixFqdns.rst
new file mode 100644
index 0000000000..94a06cbd46
--- /dev/null
+++ b/docs/api/object_storage/models/oci.object_storage.models.PrefixFqdns.rst
@@ -0,0 +1,11 @@
+PrefixFqdns
+===========
+
+.. currentmodule:: oci.object_storage.models
+
+.. autoclass:: PrefixFqdns
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/object_storage/models/oci.object_storage.models.PrivateEndpoint.rst b/docs/api/object_storage/models/oci.object_storage.models.PrivateEndpoint.rst
new file mode 100644
index 0000000000..eb85e7c4eb
--- /dev/null
+++ b/docs/api/object_storage/models/oci.object_storage.models.PrivateEndpoint.rst
@@ -0,0 +1,11 @@
+PrivateEndpoint
+===============
+
+.. currentmodule:: oci.object_storage.models
+
+.. autoclass:: PrivateEndpoint
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/object_storage/models/oci.object_storage.models.PrivateEndpointSummary.rst b/docs/api/object_storage/models/oci.object_storage.models.PrivateEndpointSummary.rst
new file mode 100644
index 0000000000..bef542082d
--- /dev/null
+++ b/docs/api/object_storage/models/oci.object_storage.models.PrivateEndpointSummary.rst
@@ -0,0 +1,11 @@
+PrivateEndpointSummary
+======================
+
+.. currentmodule:: oci.object_storage.models
+
+.. autoclass:: PrivateEndpointSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/object_storage/models/oci.object_storage.models.UpdatePrivateEndpointDetails.rst b/docs/api/object_storage/models/oci.object_storage.models.UpdatePrivateEndpointDetails.rst
new file mode 100644
index 0000000000..8d88cc31af
--- /dev/null
+++ b/docs/api/object_storage/models/oci.object_storage.models.UpdatePrivateEndpointDetails.rst
@@ -0,0 +1,11 @@
+UpdatePrivateEndpointDetails
+============================
+
+.. currentmodule:: oci.object_storage.models
+
+.. autoclass:: UpdatePrivateEndpointDetails
+ :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 ced0ac8382..72702e1f89 100644
--- a/docs/api/recovery.rst
+++ b/docs/api/recovery.rst
@@ -19,6 +19,7 @@ Recovery
:template: autosummary/model_class.rst
oci.recovery.models.ChangeProtectedDatabaseCompartmentDetails
+ oci.recovery.models.ChangeProtectedDatabaseSubscriptionDetails
oci.recovery.models.ChangeProtectionPolicyCompartmentDetails
oci.recovery.models.ChangeRecoveryServiceSubnetCompartmentDetails
oci.recovery.models.CreateProtectedDatabaseDetails
diff --git a/docs/api/recovery/models/oci.recovery.models.ChangeProtectedDatabaseSubscriptionDetails.rst b/docs/api/recovery/models/oci.recovery.models.ChangeProtectedDatabaseSubscriptionDetails.rst
new file mode 100644
index 0000000000..9f02763836
--- /dev/null
+++ b/docs/api/recovery/models/oci.recovery.models.ChangeProtectedDatabaseSubscriptionDetails.rst
@@ -0,0 +1,11 @@
+ChangeProtectedDatabaseSubscriptionDetails
+==========================================
+
+.. currentmodule:: oci.recovery.models
+
+.. autoclass:: ChangeProtectedDatabaseSubscriptionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/waf.rst b/docs/api/waf.rst
index 827e3289d6..e63a1efd68 100644
--- a/docs/api/waf.rst
+++ b/docs/api/waf.rst
@@ -34,6 +34,7 @@ Waf
oci.waf.models.CreateWebAppFirewallDetails
oci.waf.models.CreateWebAppFirewallLoadBalancerDetails
oci.waf.models.CreateWebAppFirewallPolicyDetails
+ oci.waf.models.DynamicHttpResponseBody
oci.waf.models.HttpResponseBody
oci.waf.models.NetworkAddressList
oci.waf.models.NetworkAddressListAddresses
diff --git a/docs/api/waf/models/oci.waf.models.DynamicHttpResponseBody.rst b/docs/api/waf/models/oci.waf.models.DynamicHttpResponseBody.rst
new file mode 100644
index 0000000000..f6d8aa4d23
--- /dev/null
+++ b/docs/api/waf/models/oci.waf.models.DynamicHttpResponseBody.rst
@@ -0,0 +1,11 @@
+DynamicHttpResponseBody
+=======================
+
+.. currentmodule:: oci.waf.models
+
+.. autoclass:: DynamicHttpResponseBody
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/src/oci/__init__.py b/src/oci/__init__.py
index 3d1af3925c..f7a70759cc 100644
--- a/src/oci/__init__.py
+++ b/src/oci/__init__.py
@@ -19,7 +19,7 @@
else:
__all__ = [
"BaseClient", "Error", "Request", "Response", "Signer", "config", "constants", "decorators", "exceptions", "regions", "wait_until", "pagination", "auth", "retry", "fips", "circuit_breaker", "alloy",
- "access_governance_cp", "adm", "ai_anomaly_detection", "ai_document", "ai_language", "ai_speech", "ai_vision", "analytics", "announcements_service", "apigateway", "apm_config", "apm_control_plane", "apm_synthetics", "apm_traces", "appmgmt_control", "artifacts", "audit", "autoscaling", "bastion", "bds", "blockchain", "budget", "capacity_management", "certificates", "certificates_management", "cims", "cloud_bridge", "cloud_guard", "cloud_migrations", "cluster_placement_groups", "compute_cloud_at_customer", "compute_instance_agent", "container_engine", "container_instances", "core", "dashboard_service", "data_catalog", "data_flow", "data_integration", "data_labeling_service", "data_labeling_service_dataplane", "data_safe", "data_science", "database", "database_management", "database_migration", "database_tools", "demand_signal", "desktops", "devops", "disaster_recovery", "dns", "dts", "em_warehouse", "email", "email_data_plane", "events", "file_storage", "fleet_apps_management", "fleet_software_update", "functions", "fusion_apps", "generative_ai", "generative_ai_inference", "generic_artifacts_content", "globally_distributed_database", "golden_gate", "governance_rules_control_plane", "healthchecks", "identity", "identity_data_plane", "identity_domains", "integration", "jms", "jms_java_downloads", "key_management", "license_manager", "limits", "load_balancer", "lockbox", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "marketplace_private_offer", "marketplace_publisher", "media_services", "monitoring", "mysql", "network_firewall", "network_load_balancer", "nosql", "object_storage", "oce", "oci_control_center", "ocvp", "oda", "onesubscription", "ons", "opa", "opensearch", "operator_access_control", "opsi", "optimizer", "os_management", "os_management_hub", "osp_gateway", "osub_billing_schedule", "osub_organization_subscription", "osub_subscription", "osub_usage", "psql", "queue", "recovery", "redis", "resource_manager", "resource_scheduler", "resource_search", "rover", "sch", "secrets", "service_catalog", "service_manager_proxy", "service_mesh", "stack_monitoring", "streaming", "tenant_manager_control_plane", "threat_intelligence", "usage", "usage_api", "vault", "vbs_inst", "visual_builder", "vn_monitoring", "vulnerability_scanning", "waa", "waas", "waf", "work_requests"
+ "access_governance_cp", "adm", "ai_anomaly_detection", "ai_document", "ai_language", "ai_speech", "ai_vision", "analytics", "announcements_service", "apigateway", "apm_config", "apm_control_plane", "apm_synthetics", "apm_traces", "appmgmt_control", "artifacts", "audit", "autoscaling", "bastion", "bds", "blockchain", "budget", "capacity_management", "certificates", "certificates_management", "cims", "cloud_bridge", "cloud_guard", "cloud_migrations", "cluster_placement_groups", "compute_cloud_at_customer", "compute_instance_agent", "container_engine", "container_instances", "core", "dashboard_service", "data_catalog", "data_flow", "data_integration", "data_labeling_service", "data_labeling_service_dataplane", "data_safe", "data_science", "database", "database_management", "database_migration", "database_tools", "delegate_access_control", "demand_signal", "desktops", "devops", "disaster_recovery", "dns", "dts", "em_warehouse", "email", "email_data_plane", "events", "file_storage", "fleet_apps_management", "fleet_software_update", "functions", "fusion_apps", "generative_ai", "generative_ai_inference", "generic_artifacts_content", "globally_distributed_database", "golden_gate", "governance_rules_control_plane", "healthchecks", "identity", "identity_data_plane", "identity_domains", "integration", "jms", "jms_java_downloads", "key_management", "license_manager", "limits", "load_balancer", "lockbox", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "marketplace_private_offer", "marketplace_publisher", "media_services", "monitoring", "mysql", "network_firewall", "network_load_balancer", "nosql", "object_storage", "oce", "oci_control_center", "ocvp", "oda", "onesubscription", "ons", "opa", "opensearch", "operator_access_control", "opsi", "optimizer", "os_management", "os_management_hub", "osp_gateway", "osub_billing_schedule", "osub_organization_subscription", "osub_subscription", "osub_usage", "psql", "queue", "recovery", "redis", "resource_manager", "resource_scheduler", "resource_search", "rover", "sch", "secrets", "service_catalog", "service_manager_proxy", "service_mesh", "stack_monitoring", "streaming", "tenant_manager_control_plane", "threat_intelligence", "usage", "usage_api", "vault", "vbs_inst", "visual_builder", "vn_monitoring", "vulnerability_scanning", "waa", "waas", "waf", "work_requests"
]
if sys.version_info >= (3, 7) and os.getenv("OCI_PYTHON_SDK_LAZY_IMPORTS_DISABLED", "False").lower() != "true":
def __getattr__(x):
@@ -30,4 +30,4 @@ def __getattr__(x):
return importlib.import_module(__name__ + "." + x)
raise AttributeError("module " + __name__ + " has no attribute" + x)
else:
- from . import access_governance_cp, adm, ai_anomaly_detection, ai_document, ai_language, ai_speech, ai_vision, analytics, announcements_service, apigateway, apm_config, apm_control_plane, apm_synthetics, apm_traces, appmgmt_control, artifacts, audit, autoscaling, bastion, bds, blockchain, budget, capacity_management, certificates, certificates_management, cims, cloud_bridge, cloud_guard, cloud_migrations, cluster_placement_groups, compute_cloud_at_customer, compute_instance_agent, container_engine, container_instances, core, dashboard_service, data_catalog, data_flow, data_integration, data_labeling_service, data_labeling_service_dataplane, data_safe, data_science, database, database_management, database_migration, database_tools, demand_signal, desktops, devops, disaster_recovery, dns, dts, em_warehouse, email, email_data_plane, events, file_storage, fleet_apps_management, fleet_software_update, functions, fusion_apps, generative_ai, generative_ai_inference, generic_artifacts_content, globally_distributed_database, golden_gate, governance_rules_control_plane, healthchecks, identity, identity_data_plane, identity_domains, integration, jms, jms_java_downloads, key_management, license_manager, limits, load_balancer, lockbox, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, marketplace_private_offer, marketplace_publisher, media_services, monitoring, mysql, network_firewall, network_load_balancer, nosql, object_storage, oce, oci_control_center, ocvp, oda, onesubscription, ons, opa, opensearch, operator_access_control, opsi, optimizer, os_management, os_management_hub, osp_gateway, osub_billing_schedule, osub_organization_subscription, osub_subscription, osub_usage, psql, queue, recovery, redis, resource_manager, resource_scheduler, resource_search, rover, sch, secrets, service_catalog, service_manager_proxy, service_mesh, stack_monitoring, streaming, tenant_manager_control_plane, threat_intelligence, usage, usage_api, vault, vbs_inst, visual_builder, vn_monitoring, vulnerability_scanning, waa, waas, waf, work_requests
+ from . import access_governance_cp, adm, ai_anomaly_detection, ai_document, ai_language, ai_speech, ai_vision, analytics, announcements_service, apigateway, apm_config, apm_control_plane, apm_synthetics, apm_traces, appmgmt_control, artifacts, audit, autoscaling, bastion, bds, blockchain, budget, capacity_management, certificates, certificates_management, cims, cloud_bridge, cloud_guard, cloud_migrations, cluster_placement_groups, compute_cloud_at_customer, compute_instance_agent, container_engine, container_instances, core, dashboard_service, data_catalog, data_flow, data_integration, data_labeling_service, data_labeling_service_dataplane, data_safe, data_science, database, database_management, database_migration, database_tools, delegate_access_control, demand_signal, desktops, devops, disaster_recovery, dns, dts, em_warehouse, email, email_data_plane, events, file_storage, fleet_apps_management, fleet_software_update, functions, fusion_apps, generative_ai, generative_ai_inference, generic_artifacts_content, globally_distributed_database, golden_gate, governance_rules_control_plane, healthchecks, identity, identity_data_plane, identity_domains, integration, jms, jms_java_downloads, key_management, license_manager, limits, load_balancer, lockbox, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, marketplace_private_offer, marketplace_publisher, media_services, monitoring, mysql, network_firewall, network_load_balancer, nosql, object_storage, oce, oci_control_center, ocvp, oda, onesubscription, ons, opa, opensearch, operator_access_control, opsi, optimizer, os_management, os_management_hub, osp_gateway, osub_billing_schedule, osub_organization_subscription, osub_subscription, osub_usage, psql, queue, recovery, redis, resource_manager, resource_scheduler, resource_search, rover, sch, secrets, service_catalog, service_manager_proxy, service_mesh, stack_monitoring, streaming, tenant_manager_control_plane, threat_intelligence, usage, usage_api, vault, vbs_inst, visual_builder, vn_monitoring, vulnerability_scanning, waa, waas, waf, work_requests
diff --git a/src/oci/ai_document/ai_service_document_client.py b/src/oci/ai_document/ai_service_document_client.py
index 8d6924f36c..19a4208a74 100644
--- a/src/oci/ai_document/ai_service_document_client.py
+++ b/src/oci/ai_document/ai_service_document_client.py
@@ -116,6 +116,272 @@ def __init__(self, config, **kwargs):
self.retry_strategy = kwargs.get('retry_strategy')
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
+ def add_model_lock(self, model_id, add_model_lock_details, **kwargs):
+ """
+ Adds a lock to a resource.
+
+
+ :param str model_id: (required)
+ A unique model identifier.
+
+ :param oci.ai_document.models.AddModelLockDetails add_model_lock_details: (required)
+ Request payload to add lock to the resource.
+
+ :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 the 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 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 bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
+ :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.ai_document.models.Model`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use add_model_lock API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['modelId']
+ resource_path = "/models/{modelId}/actions/addLock"
+ method = "POST"
+ operation_name = "add_model_lock"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/AddModelLock"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match",
+ "is_lock_override"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ f"add_model_lock got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "modelId": model_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')
+
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", 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,
+ query_params=query_params,
+ header_params=header_params,
+ body=add_model_lock_details,
+ response_type="Model",
+ 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,
+ body=add_model_lock_details,
+ response_type="Model",
+ allow_control_chars=kwargs.get('allow_control_chars'),
+ operation_name=operation_name,
+ api_reference_link=api_reference_link,
+ required_arguments=required_arguments)
+
+ def add_project_lock(self, project_id, add_project_lock_details, **kwargs):
+ """
+ Adds a lock to a resource.
+
+
+ :param str project_id: (required)
+ A unique project identifier.
+
+ :param oci.ai_document.models.AddProjectLockDetails add_project_lock_details: (required)
+ Request payload to add lock to the resource.
+
+ :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 the 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 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 bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
+ :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.ai_document.models.Project`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use add_project_lock API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['projectId']
+ resource_path = "/projects/{projectId}/actions/addLock"
+ method = "POST"
+ operation_name = "add_project_lock"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/AddProjectLock"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match",
+ "is_lock_override"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ f"add_project_lock got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "projectId": project_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')
+
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", 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,
+ query_params=query_params,
+ header_params=header_params,
+ body=add_project_lock_details,
+ response_type="Project",
+ 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,
+ body=add_project_lock_details,
+ response_type="Project",
+ allow_control_chars=kwargs.get('allow_control_chars'),
+ operation_name=operation_name,
+ api_reference_link=api_reference_link,
+ required_arguments=required_arguments)
+
def analyze_document(self, analyze_document_details, **kwargs):
"""
Perform different types of document analysis.
@@ -440,6 +706,9 @@ def change_model_compartment(self, model_id, change_model_compartment_details, *
:param str opc_request_id: (optional)
The client request ID for tracing.
+ :param bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
: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.
@@ -470,7 +739,8 @@ def change_model_compartment(self, model_id, change_model_compartment_details, *
"allow_control_chars",
"retry_strategy",
"if_match",
- "opc_request_id"
+ "opc_request_id",
+ "is_lock_override"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
@@ -487,6 +757,11 @@ def change_model_compartment(self, model_id, change_model_compartment_details, *
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')
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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",
@@ -509,6 +784,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, *
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
body=change_model_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
@@ -520,6 +796,7 @@ def change_model_compartment(self, model_id, change_model_compartment_details, *
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
body=change_model_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
@@ -548,6 +825,9 @@ def change_project_compartment(self, project_id, change_project_compartment_deta
:param str opc_request_id: (optional)
The client request ID for tracing.
+ :param bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
: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.
@@ -578,7 +858,8 @@ def change_project_compartment(self, project_id, change_project_compartment_deta
"allow_control_chars",
"retry_strategy",
"if_match",
- "opc_request_id"
+ "opc_request_id",
+ "is_lock_override"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
@@ -595,6 +876,11 @@ def change_project_compartment(self, project_id, change_project_compartment_deta
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')
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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",
@@ -617,6 +903,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
body=change_project_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
@@ -628,6 +915,7 @@ def change_project_compartment(self, project_id, change_project_compartment_deta
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
body=change_project_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
@@ -947,6 +1235,9 @@ def delete_model(self, model_id, **kwargs):
:param str opc_request_id: (optional)
The client request ID for tracing.
+ :param bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
: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.
@@ -977,7 +1268,8 @@ def delete_model(self, model_id, **kwargs):
"allow_control_chars",
"retry_strategy",
"if_match",
- "opc_request_id"
+ "opc_request_id",
+ "is_lock_override"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
@@ -994,6 +1286,11 @@ def delete_model(self, model_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')
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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",
@@ -1016,6 +1313,7 @@ def delete_model(self, model_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,
@@ -1026,6 +1324,7 @@ def delete_model(self, model_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,
@@ -1050,6 +1349,9 @@ def delete_project(self, project_id, **kwargs):
:param str opc_request_id: (optional)
The client request ID for tracing.
+ :param bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
: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.
@@ -1080,7 +1382,8 @@ def delete_project(self, project_id, **kwargs):
"allow_control_chars",
"retry_strategy",
"if_match",
- "opc_request_id"
+ "opc_request_id",
+ "is_lock_override"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
@@ -1097,6 +1400,11 @@ def delete_project(self, project_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')
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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",
@@ -1119,6 +1427,7 @@ def delete_project(self, project_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,
@@ -1129,6 +1438,7 @@ def delete_project(self, project_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,
@@ -2394,6 +2704,272 @@ def patch_model(self, model_id, patch_model_details, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
+ def remove_model_lock(self, model_id, remove_model_lock_details, **kwargs):
+ """
+ Remove a lock from a resource.
+
+
+ :param str model_id: (required)
+ A unique model identifier.
+
+ :param oci.ai_document.models.RemoveModelLockDetails remove_model_lock_details: (required)
+ Request payload to remove lock to the resource.
+
+ :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 the 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 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 bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
+ :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.ai_document.models.Model`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_model_lock API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['modelId']
+ resource_path = "/models/{modelId}/actions/removeLock"
+ method = "POST"
+ operation_name = "remove_model_lock"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Model/RemoveModelLock"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match",
+ "is_lock_override"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ f"remove_model_lock got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "modelId": model_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')
+
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", 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,
+ query_params=query_params,
+ header_params=header_params,
+ body=remove_model_lock_details,
+ response_type="Model",
+ 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,
+ body=remove_model_lock_details,
+ response_type="Model",
+ allow_control_chars=kwargs.get('allow_control_chars'),
+ operation_name=operation_name,
+ api_reference_link=api_reference_link,
+ required_arguments=required_arguments)
+
+ def remove_project_lock(self, project_id, remove_project_lock_details, **kwargs):
+ """
+ Remove a lock from a resource.
+
+
+ :param str project_id: (required)
+ A unique project identifier.
+
+ :param oci.ai_document.models.RemoveProjectLockDetails remove_project_lock_details: (required)
+ Request payload to remove lock to the resource.
+
+ :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 the 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 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 bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
+ :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.ai_document.models.Project`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use remove_project_lock API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['projectId']
+ resource_path = "/projects/{projectId}/actions/removeLock"
+ method = "POST"
+ operation_name = "remove_project_lock"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/document-understanding/20221109/Project/RemoveProjectLock"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match",
+ "is_lock_override"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ f"remove_project_lock got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "projectId": project_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')
+
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", 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,
+ query_params=query_params,
+ header_params=header_params,
+ body=remove_project_lock_details,
+ response_type="Project",
+ 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,
+ body=remove_project_lock_details,
+ response_type="Project",
+ allow_control_chars=kwargs.get('allow_control_chars'),
+ operation_name=operation_name,
+ api_reference_link=api_reference_link,
+ required_arguments=required_arguments)
+
def update_model(self, model_id, update_model_details, **kwargs):
"""
Updates the model metadata.
@@ -2415,6 +2991,9 @@ def update_model(self, model_id, update_model_details, **kwargs):
:param str opc_request_id: (optional)
The client request ID for tracing.
+ :param bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
: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.
@@ -2445,7 +3024,8 @@ def update_model(self, model_id, update_model_details, **kwargs):
"allow_control_chars",
"retry_strategy",
"if_match",
- "opc_request_id"
+ "opc_request_id",
+ "is_lock_override"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
@@ -2462,6 +3042,11 @@ def update_model(self, model_id, update_model_details, **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')
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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",
@@ -2484,6 +3069,7 @@ def update_model(self, model_id, update_model_details, **kwargs):
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
body=update_model_details,
allow_control_chars=kwargs.get('allow_control_chars'),
@@ -2495,6 +3081,7 @@ def update_model(self, model_id, update_model_details, **kwargs):
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
body=update_model_details,
allow_control_chars=kwargs.get('allow_control_chars'),
@@ -2523,6 +3110,9 @@ def update_project(self, project_id, update_project_details, **kwargs):
:param str opc_request_id: (optional)
The client request ID for tracing.
+ :param bool is_lock_override: (optional)
+ Whether to override locks (if any exist).
+
: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.
@@ -2553,7 +3143,8 @@ def update_project(self, project_id, update_project_details, **kwargs):
"allow_control_chars",
"retry_strategy",
"if_match",
- "opc_request_id"
+ "opc_request_id",
+ "is_lock_override"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
@@ -2570,6 +3161,11 @@ def update_project(self, project_id, update_project_details, **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')
+ query_params = {
+ "isLockOverride": kwargs.get("is_lock_override", 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",
@@ -2592,6 +3188,7 @@ def update_project(self, project_id, update_project_details, **kwargs):
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
body=update_project_details,
allow_control_chars=kwargs.get('allow_control_chars'),
@@ -2603,6 +3200,7 @@ def update_project(self, project_id, update_project_details, **kwargs):
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
body=update_project_details,
allow_control_chars=kwargs.get('allow_control_chars'),
diff --git a/src/oci/ai_document/ai_service_document_client_composite_operations.py b/src/oci/ai_document/ai_service_document_client_composite_operations.py
index b382c5a1ed..fe55e2d934 100644
--- a/src/oci/ai_document/ai_service_document_client_composite_operations.py
+++ b/src/oci/ai_document/ai_service_document_client_composite_operations.py
@@ -25,6 +25,96 @@ def __init__(self, client, **kwargs):
"""
self.client = client
+ def add_model_lock_and_wait_for_state(self, model_id, add_model_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.ai_document.AIServiceDocumentClient.add_model_lock` and waits for the :py:class:`~oci.ai_document.models.Model` acted upon
+ to enter the given state(s).
+
+ :param str model_id: (required)
+ A unique model identifier.
+
+ :param oci.ai_document.models.AddModelLockDetails add_model_lock_details: (required)
+ Request payload to add lock to the resource.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.ai_document.models.Model.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.ai_document.AIServiceDocumentClient.add_model_lock`
+
+ :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.add_model_lock(model_id, add_model_lock_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ model_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_model(model_id), # noqa: F821
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except (NameError, TypeError) as e:
+ if not e.args:
+ e.args = ('',)
+ e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def add_project_lock_and_wait_for_state(self, project_id, add_project_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.ai_document.AIServiceDocumentClient.add_project_lock` and waits for the :py:class:`~oci.ai_document.models.Project` acted upon
+ to enter the given state(s).
+
+ :param str project_id: (required)
+ A unique project identifier.
+
+ :param oci.ai_document.models.AddProjectLockDetails add_project_lock_details: (required)
+ Request payload to add lock to the resource.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.ai_document.models.Project.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.ai_document.AIServiceDocumentClient.add_project_lock`
+
+ :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.add_project_lock(project_id, add_project_lock_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ project_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_project(project_id), # noqa: F821
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except (NameError, TypeError) as e:
+ if not e.args:
+ e.args = ('',)
+ e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def create_model_and_wait_for_state(self, create_model_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.ai_document.AIServiceDocumentClient.create_model` and waits for the :py:class:`~oci.ai_document.models.WorkRequest`
@@ -281,6 +371,96 @@ def patch_model_and_wait_for_state(self, model_id, patch_model_details, wait_for
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def remove_model_lock_and_wait_for_state(self, model_id, remove_model_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.ai_document.AIServiceDocumentClient.remove_model_lock` and waits for the :py:class:`~oci.ai_document.models.Model` acted upon
+ to enter the given state(s).
+
+ :param str model_id: (required)
+ A unique model identifier.
+
+ :param oci.ai_document.models.RemoveModelLockDetails remove_model_lock_details: (required)
+ Request payload to remove lock to the resource.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.ai_document.models.Model.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.ai_document.AIServiceDocumentClient.remove_model_lock`
+
+ :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.remove_model_lock(model_id, remove_model_lock_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ model_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_model(model_id), # noqa: F821
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except (NameError, TypeError) as e:
+ if not e.args:
+ e.args = ('',)
+ e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def remove_project_lock_and_wait_for_state(self, project_id, remove_project_lock_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.ai_document.AIServiceDocumentClient.remove_project_lock` and waits for the :py:class:`~oci.ai_document.models.Project` acted upon
+ to enter the given state(s).
+
+ :param str project_id: (required)
+ A unique project identifier.
+
+ :param oci.ai_document.models.RemoveProjectLockDetails remove_project_lock_details: (required)
+ Request payload to remove lock to the resource.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.ai_document.models.Project.lifecycle_state`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.ai_document.AIServiceDocumentClient.remove_project_lock`
+
+ :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.remove_project_lock(project_id, remove_project_lock_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ project_id = operation_result.data.id
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_project(project_id), # noqa: F821
+ evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except (NameError, TypeError) as e:
+ if not e.args:
+ e.args = ('',)
+ e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def update_model_and_wait_for_state(self, model_id, update_model_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.ai_document.AIServiceDocumentClient.update_model` and waits for the :py:class:`~oci.ai_document.models.WorkRequest`
diff --git a/src/oci/ai_document/models/__init__.py b/src/oci/ai_document/models/__init__.py
index f3c96f0e5e..96863b4fc7 100644
--- a/src/oci/ai_document/models/__init__.py
+++ b/src/oci/ai_document/models/__init__.py
@@ -6,6 +6,8 @@
from __future__ import absolute_import
+from .add_model_lock_details import AddModelLockDetails
+from .add_project_lock_details import AddProjectLockDetails
from .analyze_document_details import AnalyzeDocumentDetails
from .analyze_document_result import AnalyzeDocumentResult
from .bounding_polygon import BoundingPolygon
@@ -67,6 +69,9 @@
from .project import Project
from .project_collection import ProjectCollection
from .project_summary import ProjectSummary
+from .remove_model_lock_details import RemoveModelLockDetails
+from .remove_project_lock_details import RemoveProjectLockDetails
+from .resource_lock import ResourceLock
from .table import Table
from .table_row import TableRow
from .update_model_details import UpdateModelDetails
@@ -90,6 +95,8 @@
# Maps type names to classes for ai_document services.
ai_document_type_mapping = {
+ "AddModelLockDetails": AddModelLockDetails,
+ "AddProjectLockDetails": AddProjectLockDetails,
"AnalyzeDocumentDetails": AnalyzeDocumentDetails,
"AnalyzeDocumentResult": AnalyzeDocumentResult,
"BoundingPolygon": BoundingPolygon,
@@ -151,6 +158,9 @@
"Project": Project,
"ProjectCollection": ProjectCollection,
"ProjectSummary": ProjectSummary,
+ "RemoveModelLockDetails": RemoveModelLockDetails,
+ "RemoveProjectLockDetails": RemoveProjectLockDetails,
+ "ResourceLock": ResourceLock,
"Table": Table,
"TableRow": TableRow,
"UpdateModelDetails": UpdateModelDetails,
diff --git a/src/oci/ai_document/models/add_model_lock_details.py b/src/oci/ai_document/models/add_model_lock_details.py
new file mode 100644
index 0000000000..2dc24e76ae
--- /dev/null
+++ b/src/oci/ai_document/models/add_model_lock_details.py
@@ -0,0 +1,150 @@
+# 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: 20221109
+
+
+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 AddModelLockDetails(object):
+ """
+ Request payload to add lock to the resource.
+ """
+
+ #: A constant which can be used with the type property of a AddModelLockDetails.
+ #: This constant has a value of "FULL"
+ TYPE_FULL = "FULL"
+
+ #: A constant which can be used with the type property of a AddModelLockDetails.
+ #: This constant has a value of "DELETE"
+ TYPE_DELETE = "DELETE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AddModelLockDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this AddModelLockDetails.
+ Allowed values for this property are: "FULL", "DELETE"
+ :type type: str
+
+ :param related_resource_id:
+ The value to assign to the related_resource_id property of this AddModelLockDetails.
+ :type related_resource_id: str
+
+ :param message:
+ The value to assign to the message property of this AddModelLockDetails.
+ :type message: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'related_resource_id': 'str',
+ 'message': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'related_resource_id': 'relatedResourceId',
+ 'message': 'message'
+ }
+
+ self._type = None
+ self._related_resource_id = None
+ self._message = None
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this AddModelLockDetails.
+ Type of the lock.
+
+ Allowed values for this property are: "FULL", "DELETE"
+
+
+ :return: The type of this AddModelLockDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this AddModelLockDetails.
+ Type of the lock.
+
+
+ :param type: The type of this AddModelLockDetails.
+ :type: str
+ """
+ allowed_values = ["FULL", "DELETE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ f"Invalid value for `type`, must be None or one of {allowed_values}"
+ )
+ self._type = type
+
+ @property
+ def related_resource_id(self):
+ """
+ Gets the related_resource_id of this AddModelLockDetails.
+ The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+
+
+ :return: The related_resource_id of this AddModelLockDetails.
+ :rtype: str
+ """
+ return self._related_resource_id
+
+ @related_resource_id.setter
+ def related_resource_id(self, related_resource_id):
+ """
+ Sets the related_resource_id of this AddModelLockDetails.
+ The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+
+
+ :param related_resource_id: The related_resource_id of this AddModelLockDetails.
+ :type: str
+ """
+ self._related_resource_id = related_resource_id
+
+ @property
+ def message(self):
+ """
+ Gets the message of this AddModelLockDetails.
+ A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+
+
+ :return: The message of this AddModelLockDetails.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this AddModelLockDetails.
+ A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+
+
+ :param message: The message of this AddModelLockDetails.
+ :type: str
+ """
+ self._message = message
+
+ 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/ai_document/models/add_project_lock_details.py b/src/oci/ai_document/models/add_project_lock_details.py
new file mode 100644
index 0000000000..2b755a2116
--- /dev/null
+++ b/src/oci/ai_document/models/add_project_lock_details.py
@@ -0,0 +1,150 @@
+# 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: 20221109
+
+
+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 AddProjectLockDetails(object):
+ """
+ Request payload to add lock to the resource.
+ """
+
+ #: A constant which can be used with the type property of a AddProjectLockDetails.
+ #: This constant has a value of "FULL"
+ TYPE_FULL = "FULL"
+
+ #: A constant which can be used with the type property of a AddProjectLockDetails.
+ #: This constant has a value of "DELETE"
+ TYPE_DELETE = "DELETE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AddProjectLockDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this AddProjectLockDetails.
+ Allowed values for this property are: "FULL", "DELETE"
+ :type type: str
+
+ :param related_resource_id:
+ The value to assign to the related_resource_id property of this AddProjectLockDetails.
+ :type related_resource_id: str
+
+ :param message:
+ The value to assign to the message property of this AddProjectLockDetails.
+ :type message: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'related_resource_id': 'str',
+ 'message': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'related_resource_id': 'relatedResourceId',
+ 'message': 'message'
+ }
+
+ self._type = None
+ self._related_resource_id = None
+ self._message = None
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this AddProjectLockDetails.
+ Type of the lock.
+
+ Allowed values for this property are: "FULL", "DELETE"
+
+
+ :return: The type of this AddProjectLockDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this AddProjectLockDetails.
+ Type of the lock.
+
+
+ :param type: The type of this AddProjectLockDetails.
+ :type: str
+ """
+ allowed_values = ["FULL", "DELETE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ f"Invalid value for `type`, must be None or one of {allowed_values}"
+ )
+ self._type = type
+
+ @property
+ def related_resource_id(self):
+ """
+ Gets the related_resource_id of this AddProjectLockDetails.
+ The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+
+
+ :return: The related_resource_id of this AddProjectLockDetails.
+ :rtype: str
+ """
+ return self._related_resource_id
+
+ @related_resource_id.setter
+ def related_resource_id(self, related_resource_id):
+ """
+ Sets the related_resource_id of this AddProjectLockDetails.
+ The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
+
+
+ :param related_resource_id: The related_resource_id of this AddProjectLockDetails.
+ :type: str
+ """
+ self._related_resource_id = related_resource_id
+
+ @property
+ def message(self):
+ """
+ Gets the message of this AddProjectLockDetails.
+ A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+
+
+ :return: The message of this AddProjectLockDetails.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this AddProjectLockDetails.
+ A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
+
+
+ :param message: The message of this AddProjectLockDetails.
+ :type: str
+ """
+ self._message = message
+
+ 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/ai_document/models/analyze_document_details.py b/src/oci/ai_document/models/analyze_document_details.py
index e3c1bab8ab..543723f4c9 100644
--- a/src/oci/ai_document/models/analyze_document_details.py
+++ b/src/oci/ai_document/models/analyze_document_details.py
@@ -56,8 +56,8 @@ class AnalyzeDocumentDetails(object):
DOCUMENT_TYPE_OTHERS = "OTHERS"
#: A constant which can be used with the document_type property of a AnalyzeDocumentDetails.
- #: This constant has a value of "INSURANCE_CLAIM"
- DOCUMENT_TYPE_INSURANCE_CLAIM = "INSURANCE_CLAIM"
+ #: This constant has a value of "HEALTH_INSURANCE_ID"
+ DOCUMENT_TYPE_HEALTH_INSURANCE_ID = "HEALTH_INSURANCE_ID"
def __init__(self, **kwargs):
"""
@@ -86,7 +86,7 @@ def __init__(self, **kwargs):
:param document_type:
The value to assign to the document_type property of this AnalyzeDocumentDetails.
- Allowed values for this property are: "INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "INSURANCE_CLAIM"
+ Allowed values for this property are: "INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "HEALTH_INSURANCE_ID"
:type document_type: str
:param ocr_data:
@@ -240,7 +240,7 @@ def document_type(self):
Gets the document_type of this AnalyzeDocumentDetails.
The document type.
- Allowed values for this property are: "INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "INSURANCE_CLAIM"
+ Allowed values for this property are: "INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "HEALTH_INSURANCE_ID"
:return: The document_type of this AnalyzeDocumentDetails.
@@ -258,7 +258,7 @@ def document_type(self, document_type):
:param document_type: The document_type of this AnalyzeDocumentDetails.
:type: str
"""
- allowed_values = ["INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "INSURANCE_CLAIM"]
+ allowed_values = ["INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "HEALTH_INSURANCE_ID"]
if not value_allowed_none_or_none_sentinel(document_type, allowed_values):
raise ValueError(
f"Invalid value for `document_type`, must be None or one of {allowed_values}"
diff --git a/src/oci/ai_document/models/detected_document_type.py b/src/oci/ai_document/models/detected_document_type.py
index a9108ba0d7..f345388279 100644
--- a/src/oci/ai_document/models/detected_document_type.py
+++ b/src/oci/ai_document/models/detected_document_type.py
@@ -24,10 +24,6 @@ def __init__(self, **kwargs):
The value to assign to the document_type property of this DetectedDocumentType.
:type document_type: str
- :param document_id:
- The value to assign to the document_id property of this DetectedDocumentType.
- :type document_id: str
-
:param confidence:
The value to assign to the confidence property of this DetectedDocumentType.
:type confidence: float
@@ -35,18 +31,15 @@ def __init__(self, **kwargs):
"""
self.swagger_types = {
'document_type': 'str',
- 'document_id': 'str',
'confidence': 'float'
}
self.attribute_map = {
'document_type': 'documentType',
- 'document_id': 'documentId',
'confidence': 'confidence'
}
self._document_type = None
- self._document_id = None
self._confidence = None
@property
@@ -73,34 +66,6 @@ def document_type(self, document_type):
"""
self._document_type = document_type
- @property
- def document_id(self):
- """
- Gets the document_id of this DetectedDocumentType.
- The `OCID`__ of the Key-Value Extraction model that was used to extract the key-value pairs.
-
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
-
-
- :return: The document_id of this DetectedDocumentType.
- :rtype: str
- """
- return self._document_id
-
- @document_id.setter
- def document_id(self, document_id):
- """
- Sets the document_id of this DetectedDocumentType.
- The `OCID`__ of the Key-Value Extraction model that was used to extract the key-value pairs.
-
- __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
-
-
- :param document_id: The document_id of this DetectedDocumentType.
- :type: str
- """
- self._document_id = document_id
-
@property
def confidence(self):
"""
diff --git a/src/oci/ai_document/models/document_classification_feature.py b/src/oci/ai_document/models/document_classification_feature.py
index 38f2b97d73..0556fdf9f5 100644
--- a/src/oci/ai_document/models/document_classification_feature.py
+++ b/src/oci/ai_document/models/document_classification_feature.py
@@ -34,29 +34,22 @@ def __init__(self, **kwargs):
The value to assign to the model_id property of this DocumentClassificationFeature.
:type model_id: str
- :param tenancy_id:
- The value to assign to the tenancy_id property of this DocumentClassificationFeature.
- :type tenancy_id: str
-
"""
self.swagger_types = {
'feature_type': 'str',
'max_results': 'int',
- 'model_id': 'str',
- 'tenancy_id': 'str'
+ 'model_id': 'str'
}
self.attribute_map = {
'feature_type': 'featureType',
'max_results': 'maxResults',
- 'model_id': 'modelId',
- 'tenancy_id': 'tenancyId'
+ 'model_id': 'modelId'
}
self._feature_type = None
self._max_results = None
self._model_id = None
- self._tenancy_id = None
self._feature_type = 'DOCUMENT_CLASSIFICATION'
@property
@@ -107,30 +100,6 @@ def model_id(self, model_id):
"""
self._model_id = model_id
- @property
- def tenancy_id(self):
- """
- Gets the tenancy_id of this DocumentClassificationFeature.
- The custom model tenancy ID when modelId represents aliasName.
-
-
- :return: The tenancy_id of this DocumentClassificationFeature.
- :rtype: str
- """
- return self._tenancy_id
-
- @tenancy_id.setter
- def tenancy_id(self, tenancy_id):
- """
- Sets the tenancy_id of this DocumentClassificationFeature.
- The custom model tenancy ID when modelId represents aliasName.
-
-
- :param tenancy_id: The tenancy_id of this DocumentClassificationFeature.
- :type: str
- """
- self._tenancy_id = tenancy_id
-
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/ai_document/models/document_key_value_extraction_feature.py b/src/oci/ai_document/models/document_key_value_extraction_feature.py
index b90280d150..a2b569a050 100644
--- a/src/oci/ai_document/models/document_key_value_extraction_feature.py
+++ b/src/oci/ai_document/models/document_key_value_extraction_feature.py
@@ -30,26 +30,19 @@ def __init__(self, **kwargs):
The value to assign to the model_id property of this DocumentKeyValueExtractionFeature.
:type model_id: str
- :param tenancy_id:
- The value to assign to the tenancy_id property of this DocumentKeyValueExtractionFeature.
- :type tenancy_id: str
-
"""
self.swagger_types = {
'feature_type': 'str',
- 'model_id': 'str',
- 'tenancy_id': 'str'
+ 'model_id': 'str'
}
self.attribute_map = {
'feature_type': 'featureType',
- 'model_id': 'modelId',
- 'tenancy_id': 'tenancyId'
+ 'model_id': 'modelId'
}
self._feature_type = None
self._model_id = None
- self._tenancy_id = None
self._feature_type = 'KEY_VALUE_EXTRACTION'
@property
@@ -76,30 +69,6 @@ def model_id(self, model_id):
"""
self._model_id = model_id
- @property
- def tenancy_id(self):
- """
- Gets the tenancy_id of this DocumentKeyValueExtractionFeature.
- The custom model tenancy ID when modelId represents aliasName.
-
-
- :return: The tenancy_id of this DocumentKeyValueExtractionFeature.
- :rtype: str
- """
- return self._tenancy_id
-
- @tenancy_id.setter
- def tenancy_id(self, tenancy_id):
- """
- Sets the tenancy_id of this DocumentKeyValueExtractionFeature.
- The custom model tenancy ID when modelId represents aliasName.
-
-
- :param tenancy_id: The tenancy_id of this DocumentKeyValueExtractionFeature.
- :type: str
- """
- self._tenancy_id = tenancy_id
-
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/ai_document/models/general_processor_config.py b/src/oci/ai_document/models/general_processor_config.py
index c93d4bba70..0e9211a59b 100644
--- a/src/oci/ai_document/models/general_processor_config.py
+++ b/src/oci/ai_document/models/general_processor_config.py
@@ -56,8 +56,8 @@ class GeneralProcessorConfig(ProcessorConfig):
DOCUMENT_TYPE_OTHERS = "OTHERS"
#: A constant which can be used with the document_type property of a GeneralProcessorConfig.
- #: This constant has a value of "INSURANCE_CLAIM"
- DOCUMENT_TYPE_INSURANCE_CLAIM = "INSURANCE_CLAIM"
+ #: This constant has a value of "HEALTH_INSURANCE_ID"
+ DOCUMENT_TYPE_HEALTH_INSURANCE_ID = "HEALTH_INSURANCE_ID"
def __init__(self, **kwargs):
"""
@@ -73,7 +73,7 @@ def __init__(self, **kwargs):
:param document_type:
The value to assign to the document_type property of this GeneralProcessorConfig.
- Allowed values for this property are: "INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "INSURANCE_CLAIM", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "HEALTH_INSURANCE_ID", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type document_type: str
@@ -119,7 +119,7 @@ def document_type(self):
Gets the document_type of this GeneralProcessorConfig.
The document type.
- Allowed values for this property are: "INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "INSURANCE_CLAIM", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "HEALTH_INSURANCE_ID", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -138,7 +138,7 @@ def document_type(self, document_type):
:param document_type: The document_type of this GeneralProcessorConfig.
:type: str
"""
- allowed_values = ["INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "INSURANCE_CLAIM"]
+ allowed_values = ["INVOICE", "RECEIPT", "RESUME", "TAX_FORM", "DRIVER_LICENSE", "PASSPORT", "BANK_STATEMENT", "CHECK", "PAYSLIP", "OTHERS", "HEALTH_INSURANCE_ID"]
if not value_allowed_none_or_none_sentinel(document_type, allowed_values):
document_type = 'UNKNOWN_ENUM_VALUE'
self._document_type = document_type
diff --git a/src/oci/ai_document/models/model.py b/src/oci/ai_document/models/model.py
index 8e3e51e82c..e25b54638c 100644
--- a/src/oci/ai_document/models/model.py
+++ b/src/oci/ai_document/models/model.py
@@ -160,6 +160,10 @@ def __init__(self, **kwargs):
The value to assign to the system_tags property of this Model.
:type system_tags: dict(str, dict(str, object))
+ :param locks:
+ The value to assign to the locks property of this Model.
+ :type locks: list[oci.ai_document.models.ResourceLock]
+
"""
self.swagger_types = {
'id': 'str',
@@ -187,7 +191,8 @@ def __init__(self, **kwargs):
'metrics': 'ModelMetrics',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
- 'system_tags': 'dict(str, dict(str, object))'
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'locks': 'list[ResourceLock]'
}
self.attribute_map = {
@@ -216,7 +221,8 @@ def __init__(self, **kwargs):
'metrics': 'metrics',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
- 'system_tags': 'systemTags'
+ 'system_tags': 'systemTags',
+ 'locks': 'locks'
}
self._id = None
@@ -245,6 +251,7 @@ def __init__(self, **kwargs):
self._freeform_tags = None
self._defined_tags = None
self._system_tags = None
+ self._locks = None
@property
def id(self):
@@ -880,6 +887,30 @@ def system_tags(self, system_tags):
"""
self._system_tags = system_tags
+ @property
+ def locks(self):
+ """
+ Gets the locks of this Model.
+ Locks associated with this resource.
+
+
+ :return: The locks of this Model.
+ :rtype: list[oci.ai_document.models.ResourceLock]
+ """
+ return self._locks
+
+ @locks.setter
+ def locks(self, locks):
+ """
+ Sets the locks of this Model.
+ Locks associated with this resource.
+
+
+ :param locks: The locks of this Model.
+ :type: list[oci.ai_document.models.ResourceLock]
+ """
+ self._locks = locks
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/ai_document/models/model_summary.py b/src/oci/ai_document/models/model_summary.py
index 81deadefa1..3d6c110dba 100644
--- a/src/oci/ai_document/models/model_summary.py
+++ b/src/oci/ai_document/models/model_summary.py
@@ -108,6 +108,10 @@ def __init__(self, **kwargs):
The value to assign to the system_tags property of this ModelSummary.
:type system_tags: dict(str, dict(str, object))
+ :param locks:
+ The value to assign to the locks property of this ModelSummary.
+ :type locks: list[oci.ai_document.models.ResourceLock]
+
"""
self.swagger_types = {
'id': 'str',
@@ -131,7 +135,8 @@ def __init__(self, **kwargs):
'is_composed_model': 'bool',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
- 'system_tags': 'dict(str, dict(str, object))'
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'locks': 'list[ResourceLock]'
}
self.attribute_map = {
@@ -156,7 +161,8 @@ def __init__(self, **kwargs):
'is_composed_model': 'isComposedModel',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
- 'system_tags': 'systemTags'
+ 'system_tags': 'systemTags',
+ 'locks': 'locks'
}
self._id = None
@@ -181,6 +187,7 @@ def __init__(self, **kwargs):
self._freeform_tags = None
self._defined_tags = None
self._system_tags = None
+ self._locks = None
@property
def id(self):
@@ -712,6 +719,30 @@ def system_tags(self, system_tags):
"""
self._system_tags = system_tags
+ @property
+ def locks(self):
+ """
+ Gets the locks of this ModelSummary.
+ Locks associated with this resource.
+
+
+ :return: The locks of this ModelSummary.
+ :rtype: list[oci.ai_document.models.ResourceLock]
+ """
+ return self._locks
+
+ @locks.setter
+ def locks(self, locks):
+ """
+ Sets the locks of this ModelSummary.
+ Locks associated with this resource.
+
+
+ :param locks: The locks of this ModelSummary.
+ :type: list[oci.ai_document.models.ResourceLock]
+ """
+ self._locks = locks
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/ai_document/models/output_location.py b/src/oci/ai_document/models/output_location.py
index 5e77d0adf3..ed29608bf1 100644
--- a/src/oci/ai_document/models/output_location.py
+++ b/src/oci/ai_document/models/output_location.py
@@ -12,7 +12,7 @@
@init_model_state_from_kwargs
class OutputLocation(object):
"""
- The object storage location where to store analysis results.
+ The Object Storage Location.
"""
def __init__(self, **kwargs):
diff --git a/src/oci/ai_document/models/project.py b/src/oci/ai_document/models/project.py
index c2497c2c9d..f19053dcf6 100644
--- a/src/oci/ai_document/models/project.py
+++ b/src/oci/ai_document/models/project.py
@@ -90,6 +90,10 @@ def __init__(self, **kwargs):
The value to assign to the system_tags property of this Project.
:type system_tags: dict(str, dict(str, object))
+ :param locks:
+ The value to assign to the locks property of this Project.
+ :type locks: list[oci.ai_document.models.ResourceLock]
+
"""
self.swagger_types = {
'id': 'str',
@@ -102,7 +106,8 @@ def __init__(self, **kwargs):
'lifecycle_details': 'str',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
- 'system_tags': 'dict(str, dict(str, object))'
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'locks': 'list[ResourceLock]'
}
self.attribute_map = {
@@ -116,7 +121,8 @@ def __init__(self, **kwargs):
'lifecycle_details': 'lifecycleDetails',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
- 'system_tags': 'systemTags'
+ 'system_tags': 'systemTags',
+ 'locks': 'locks'
}
self._id = None
@@ -130,6 +136,7 @@ def __init__(self, **kwargs):
self._freeform_tags = None
self._defined_tags = None
self._system_tags = None
+ self._locks = None
@property
def id(self):
@@ -407,6 +414,30 @@ def system_tags(self, system_tags):
"""
self._system_tags = system_tags
+ @property
+ def locks(self):
+ """
+ Gets the locks of this Project.
+ Locks associated with this resource.
+
+
+ :return: The locks of this Project.
+ :rtype: list[oci.ai_document.models.ResourceLock]
+ """
+ return self._locks
+
+ @locks.setter
+ def locks(self, locks):
+ """
+ Sets the locks of this Project.
+ Locks associated with this resource.
+
+
+ :param locks: The locks of this Project.
+ :type: list[oci.ai_document.models.ResourceLock]
+ """
+ self._locks = locks
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/ai_document/models/remove_model_lock_details.py b/src/oci/ai_document/models/remove_model_lock_details.py
new file mode 100644
index 0000000000..dfca81a8b0
--- /dev/null
+++ b/src/oci/ai_document/models/remove_model_lock_details.py
@@ -0,0 +1,88 @@
+# 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: 20221109
+
+
+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 RemoveModelLockDetails(object):
+ """
+ Request payload to remove lock to the resource.
+ """
+
+ #: A constant which can be used with the type property of a RemoveModelLockDetails.
+ #: This constant has a value of "FULL"
+ TYPE_FULL = "FULL"
+
+ #: A constant which can be used with the type property of a RemoveModelLockDetails.
+ #: This constant has a value of "DELETE"
+ TYPE_DELETE = "DELETE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new RemoveModelLockDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this RemoveModelLockDetails.
+ Allowed values for this property are: "FULL", "DELETE"
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type'
+ }
+
+ self._type = None
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this RemoveModelLockDetails.
+ Type of the lock.
+
+ Allowed values for this property are: "FULL", "DELETE"
+
+
+ :return: The type of this RemoveModelLockDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this RemoveModelLockDetails.
+ Type of the lock.
+
+
+ :param type: The type of this RemoveModelLockDetails.
+ :type: str
+ """
+ allowed_values = ["FULL", "DELETE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ f"Invalid value for `type`, must be None or one of {allowed_values}"
+ )
+ self._type = 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/ai_document/models/remove_project_lock_details.py b/src/oci/ai_document/models/remove_project_lock_details.py
new file mode 100644
index 0000000000..100b546f6b
--- /dev/null
+++ b/src/oci/ai_document/models/remove_project_lock_details.py
@@ -0,0 +1,88 @@
+# 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: 20221109
+
+
+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 RemoveProjectLockDetails(object):
+ """
+ Request payload to remove lock to the resource.
+ """
+
+ #: A constant which can be used with the type property of a RemoveProjectLockDetails.
+ #: This constant has a value of "FULL"
+ TYPE_FULL = "FULL"
+
+ #: A constant which can be used with the type property of a RemoveProjectLockDetails.
+ #: This constant has a value of "DELETE"
+ TYPE_DELETE = "DELETE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new RemoveProjectLockDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this RemoveProjectLockDetails.
+ Allowed values for this property are: "FULL", "DELETE"
+ :type type: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type'
+ }
+
+ self._type = None
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this RemoveProjectLockDetails.
+ Type of the lock.
+
+ Allowed values for this property are: "FULL", "DELETE"
+
+
+ :return: The type of this RemoveProjectLockDetails.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this RemoveProjectLockDetails.
+ Type of the lock.
+
+
+ :param type: The type of this RemoveProjectLockDetails.
+ :type: str
+ """
+ allowed_values = ["FULL", "DELETE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ raise ValueError(
+ f"Invalid value for `type`, must be None or one of {allowed_values}"
+ )
+ self._type = 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/ai_document/models/resource_lock.py b/src/oci/ai_document/models/resource_lock.py
new file mode 100644
index 0000000000..8c3deb3918
--- /dev/null
+++ b/src/oci/ai_document/models/resource_lock.py
@@ -0,0 +1,216 @@
+# 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: 20221109
+
+
+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 ResourceLock(object):
+ """
+ Resource locks prevent certain APIs from being called for the resource.
+ A full lock prevents both updating and deleting the resource. A lock delete
+ prevents deleting the resource.
+ """
+
+ #: A constant which can be used with the type property of a ResourceLock.
+ #: This constant has a value of "FULL"
+ TYPE_FULL = "FULL"
+
+ #: A constant which can be used with the type property of a ResourceLock.
+ #: This constant has a value of "DELETE"
+ TYPE_DELETE = "DELETE"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ResourceLock object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this ResourceLock.
+ Allowed values for this property are: "FULL", "DELETE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type type: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this ResourceLock.
+ :type compartment_id: str
+
+ :param related_resource_id:
+ The value to assign to the related_resource_id property of this ResourceLock.
+ :type related_resource_id: str
+
+ :param message:
+ The value to assign to the message property of this ResourceLock.
+ :type message: str
+
+ :param time_created:
+ The value to assign to the time_created property of this ResourceLock.
+ :type time_created: datetime
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'compartment_id': 'str',
+ 'related_resource_id': 'str',
+ 'message': 'str',
+ 'time_created': 'datetime'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'compartment_id': 'compartmentId',
+ 'related_resource_id': 'relatedResourceId',
+ 'message': 'message',
+ 'time_created': 'timeCreated'
+ }
+
+ self._type = None
+ self._compartment_id = None
+ self._related_resource_id = None
+ self._message = None
+ self._time_created = None
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this ResourceLock.
+ Lock type.
+
+ Allowed values for this property are: "FULL", "DELETE", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The type of this ResourceLock.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this ResourceLock.
+ Lock type.
+
+
+ :param type: The type of this ResourceLock.
+ :type: str
+ """
+ allowed_values = ["FULL", "DELETE"]
+ if not value_allowed_none_or_none_sentinel(type, allowed_values):
+ type = 'UNKNOWN_ENUM_VALUE'
+ self._type = type
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this ResourceLock.
+ The lock compartment ID.
+
+
+ :return: The compartment_id of this ResourceLock.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ResourceLock.
+ The lock compartment ID.
+
+
+ :param compartment_id: The compartment_id of this ResourceLock.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def related_resource_id(self):
+ """
+ Gets the related_resource_id of this ResourceLock.
+ The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
+
+
+ :return: The related_resource_id of this ResourceLock.
+ :rtype: str
+ """
+ return self._related_resource_id
+
+ @related_resource_id.setter
+ def related_resource_id(self, related_resource_id):
+ """
+ Sets the related_resource_id of this ResourceLock.
+ The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
+
+
+ :param related_resource_id: The related_resource_id of this ResourceLock.
+ :type: str
+ """
+ self._related_resource_id = related_resource_id
+
+ @property
+ def message(self):
+ """
+ Gets the message of this ResourceLock.
+ A message added by the lock creator. The message typically gives an
+ indication of why the resource is locked.
+
+
+ :return: The message of this ResourceLock.
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """
+ Sets the message of this ResourceLock.
+ A message added by the lock creator. The message typically gives an
+ indication of why the resource is locked.
+
+
+ :param message: The message of this ResourceLock.
+ :type: str
+ """
+ self._message = message
+
+ @property
+ def time_created(self):
+ """
+ Gets the time_created of this ResourceLock.
+ Indicates when the lock was created, in the format defined by RFC 3339.
+
+
+ :return: The time_created of this ResourceLock.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this ResourceLock.
+ Indicates when the lock was created, in the format defined by RFC 3339.
+
+
+ :param time_created: The time_created of this ResourceLock.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ 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/announcements_service/__init__.py b/src/oci/announcements_service/__init__.py
index ec486f910e..51215b3b01 100644
--- a/src/oci/announcements_service/__init__.py
+++ b/src/oci/announcements_service/__init__.py
@@ -13,6 +13,8 @@
from .announcement_subscription_client_composite_operations import AnnouncementSubscriptionClientCompositeOperations
from .announcements_preferences_client import AnnouncementsPreferencesClient
from .announcements_preferences_client_composite_operations import AnnouncementsPreferencesClientCompositeOperations
+from .service_client import ServiceClient
+from .service_client_composite_operations import ServiceClientCompositeOperations
from . import models
-__all__ = ["AnnouncementClient", "AnnouncementClientCompositeOperations", "AnnouncementSubscriptionClient", "AnnouncementSubscriptionClientCompositeOperations", "AnnouncementsPreferencesClient", "AnnouncementsPreferencesClientCompositeOperations", "models"]
+__all__ = ["AnnouncementClient", "AnnouncementClientCompositeOperations", "AnnouncementSubscriptionClient", "AnnouncementSubscriptionClientCompositeOperations", "AnnouncementsPreferencesClient", "AnnouncementsPreferencesClientCompositeOperations", "ServiceClient", "ServiceClientCompositeOperations", "models"]
diff --git a/src/oci/announcements_service/announcement_client.py b/src/oci/announcements_service/announcement_client.py
index 1c2bcc9c44..07654084e8 100644
--- a/src/oci/announcements_service/announcement_client.py
+++ b/src/oci/announcements_service/announcement_client.py
@@ -215,6 +215,103 @@ def get_announcement(self, announcement_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
+ def get_announcement_compartment(self, announcement_id, **kwargs):
+ """
+ Gets the compartment details of an announcement.
+
+
+ :param str announcement_id: (required)
+ The OCID of the announcement.
+
+ :param str opc_request_id: (optional)
+ The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
+ a particular request, please provide the complete request ID.
+
+ :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.announcements_service.models.AnnouncementCompartment`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_announcement_compartment API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['announcementId']
+ resource_path = "/announcements/{announcementId}/compartment"
+ method = "GET"
+ operation_name = "get_announcement_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/announcements/0.0.1/AnnouncementCompartment/GetAnnouncementCompartment"
+
+ # 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_announcement_compartment got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "announcementId": announcement_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,
+ response_type="AnnouncementCompartment",
+ 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="AnnouncementCompartment",
+ allow_control_chars=kwargs.get('allow_control_chars'),
+ operation_name=operation_name,
+ api_reference_link=api_reference_link,
+ required_arguments=required_arguments)
+
def get_announcement_user_status(self, announcement_id, **kwargs):
"""
Gets information about whether a specific announcement was acknowledged by a user.
@@ -366,7 +463,7 @@ def list_announcements(self, compartment_id, **kwargs):
:param str platform_type: (optional)
A filter to return only announcements affecting a specific platform.
- Allowed values are: "IAAS", "SAAS"
+ Allowed values are: "IAAS", "SAAS", "PAAS"
:param list[str] exclude_announcement_types: (optional)
Exclude The type of announcement.
@@ -454,7 +551,7 @@ def list_announcements(self, compartment_id, **kwargs):
)
if 'platform_type' in kwargs:
- platform_type_allowed_values = ["IAAS", "SAAS"]
+ platform_type_allowed_values = ["IAAS", "SAAS", "PAAS"]
if kwargs['platform_type'] not in platform_type_allowed_values:
raise ValueError(
f"Invalid value for `platform_type`, must be one of { platform_type_allowed_values }"
diff --git a/src/oci/announcements_service/models/__init__.py b/src/oci/announcements_service/models/__init__.py
index 397935150d..b5cdf85a01 100644
--- a/src/oci/announcements_service/models/__init__.py
+++ b/src/oci/announcements_service/models/__init__.py
@@ -8,6 +8,7 @@
from .affected_resource import AffectedResource
from .announcement import Announcement
+from .announcement_compartment import AnnouncementCompartment
from .announcement_subscription import AnnouncementSubscription
from .announcement_subscription_collection import AnnouncementSubscriptionCollection
from .announcement_subscription_summary import AnnouncementSubscriptionSummary
@@ -19,6 +20,7 @@
from .base_announcement import BaseAnnouncement
from .base_announcements_preferences import BaseAnnouncementsPreferences
from .base_create_announcements_preferences_details import BaseCreateAnnouncementsPreferencesDetails
+from .base_service import BaseService
from .change_announcement_subscription_compartment_details import ChangeAnnouncementSubscriptionCompartmentDetails
from .create_announcement_subscription_details import CreateAnnouncementSubscriptionDetails
from .create_announcements_preferences_details import CreateAnnouncementsPreferencesDetails
@@ -27,6 +29,10 @@
from .filter_group import FilterGroup
from .filter_group_details import FilterGroupDetails
from .model_property import ModelProperty
+from .notifications_summary import NotificationsSummary
+from .service import Service
+from .service_summary import ServiceSummary
+from .services_collection import ServicesCollection
from .update_announcement_subscription_details import UpdateAnnouncementSubscriptionDetails
from .update_announcements_preferences_details import UpdateAnnouncementsPreferencesDetails
from .update_filter_group_details import UpdateFilterGroupDetails
@@ -35,6 +41,7 @@
announcements_service_type_mapping = {
"AffectedResource": AffectedResource,
"Announcement": Announcement,
+ "AnnouncementCompartment": AnnouncementCompartment,
"AnnouncementSubscription": AnnouncementSubscription,
"AnnouncementSubscriptionCollection": AnnouncementSubscriptionCollection,
"AnnouncementSubscriptionSummary": AnnouncementSubscriptionSummary,
@@ -46,6 +53,7 @@
"BaseAnnouncement": BaseAnnouncement,
"BaseAnnouncementsPreferences": BaseAnnouncementsPreferences,
"BaseCreateAnnouncementsPreferencesDetails": BaseCreateAnnouncementsPreferencesDetails,
+ "BaseService": BaseService,
"ChangeAnnouncementSubscriptionCompartmentDetails": ChangeAnnouncementSubscriptionCompartmentDetails,
"CreateAnnouncementSubscriptionDetails": CreateAnnouncementSubscriptionDetails,
"CreateAnnouncementsPreferencesDetails": CreateAnnouncementsPreferencesDetails,
@@ -54,6 +62,10 @@
"FilterGroup": FilterGroup,
"FilterGroupDetails": FilterGroupDetails,
"ModelProperty": ModelProperty,
+ "NotificationsSummary": NotificationsSummary,
+ "Service": Service,
+ "ServiceSummary": ServiceSummary,
+ "ServicesCollection": ServicesCollection,
"UpdateAnnouncementSubscriptionDetails": UpdateAnnouncementSubscriptionDetails,
"UpdateAnnouncementsPreferencesDetails": UpdateAnnouncementsPreferencesDetails,
"UpdateFilterGroupDetails": UpdateFilterGroupDetails
diff --git a/src/oci/announcements_service/models/announcement.py b/src/oci/announcements_service/models/announcement.py
index b23e93c24b..4459c2c947 100644
--- a/src/oci/announcements_service/models/announcement.py
+++ b/src/oci/announcements_service/models/announcement.py
@@ -103,7 +103,7 @@ def __init__(self, **kwargs):
:param platform_type:
The value to assign to the platform_type property of this Announcement.
- Allowed values for this property are: "IAAS", "SAAS", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type platform_type: str
diff --git a/src/oci/announcements_service/models/announcement_compartment.py b/src/oci/announcements_service/models/announcement_compartment.py
new file mode 100644
index 0000000000..b8569ca112
--- /dev/null
+++ b/src/oci/announcements_service/models/announcement_compartment.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: 0.0.1
+
+
+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 AnnouncementCompartment(object):
+ """
+ Compartment details of an announcement.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new AnnouncementCompartment 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 AnnouncementCompartment.
+ :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 AnnouncementCompartment.
+ The OCID of the compartment to which the announcement belongs to.
+
+
+ :return: The compartment_id of this AnnouncementCompartment.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this AnnouncementCompartment.
+ The OCID of the compartment to which the announcement belongs to.
+
+
+ :param compartment_id: The compartment_id of this AnnouncementCompartment.
+ :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/announcements_service/models/announcement_summary.py b/src/oci/announcements_service/models/announcement_summary.py
index 6e0b8b8c8d..753c9da0b6 100644
--- a/src/oci/announcements_service/models/announcement_summary.py
+++ b/src/oci/announcements_service/models/announcement_summary.py
@@ -103,7 +103,7 @@ def __init__(self, **kwargs):
:param platform_type:
The value to assign to the platform_type property of this AnnouncementSummary.
- Allowed values for this property are: "IAAS", "SAAS", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type platform_type: str
diff --git a/src/oci/announcements_service/models/base_announcement.py b/src/oci/announcements_service/models/base_announcement.py
index 9aea00fe87..5567161973 100644
--- a/src/oci/announcements_service/models/base_announcement.py
+++ b/src/oci/announcements_service/models/base_announcement.py
@@ -123,6 +123,10 @@ class BaseAnnouncement(object):
#: This constant has a value of "SAAS"
PLATFORM_TYPE_SAAS = "SAAS"
+ #: A constant which can be used with the platform_type property of a BaseAnnouncement.
+ #: This constant has a value of "PAAS"
+ PLATFORM_TYPE_PAAS = "PAAS"
+
def __init__(self, **kwargs):
"""
Initializes a new BaseAnnouncement object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
@@ -211,7 +215,7 @@ def __init__(self, **kwargs):
:param platform_type:
The value to assign to the platform_type property of this BaseAnnouncement.
- Allowed values for this property are: "IAAS", "SAAS"
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS"
:type platform_type: str
:param chain_id:
@@ -794,7 +798,7 @@ def platform_type(self):
Gets the platform_type of this BaseAnnouncement.
The platform type that this announcement pertains to.
- Allowed values for this property are: "IAAS", "SAAS"
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS"
:return: The platform_type of this BaseAnnouncement.
@@ -812,7 +816,7 @@ def platform_type(self, platform_type):
:param platform_type: The platform_type of this BaseAnnouncement.
:type: str
"""
- allowed_values = ["IAAS", "SAAS"]
+ allowed_values = ["IAAS", "SAAS", "PAAS"]
if not value_allowed_none_or_none_sentinel(platform_type, allowed_values):
raise ValueError(
f"Invalid value for `platform_type`, must be None or one of {allowed_values}"
diff --git a/src/oci/announcements_service/models/base_service.py b/src/oci/announcements_service/models/base_service.py
new file mode 100644
index 0000000000..0b222e963d
--- /dev/null
+++ b/src/oci/announcements_service/models/base_service.py
@@ -0,0 +1,498 @@
+# 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: 0.0.1
+
+
+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 BaseService(object):
+ """
+ Object representing a single service.
+ """
+
+ #: A constant which can be used with the platform_type property of a BaseService.
+ #: This constant has a value of "IAAS"
+ PLATFORM_TYPE_IAAS = "IAAS"
+
+ #: A constant which can be used with the platform_type property of a BaseService.
+ #: This constant has a value of "SAAS"
+ PLATFORM_TYPE_SAAS = "SAAS"
+
+ #: A constant which can be used with the platform_type property of a BaseService.
+ #: This constant has a value of "PAAS"
+ PLATFORM_TYPE_PAAS = "PAAS"
+
+ #: A constant which can be used with the comms_manager_name property of a BaseService.
+ #: This constant has a value of "CN"
+ COMMS_MANAGER_NAME_CN = "CN"
+
+ #: A constant which can be used with the comms_manager_name property of a BaseService.
+ #: This constant has a value of "FUSION"
+ COMMS_MANAGER_NAME_FUSION = "FUSION"
+
+ #: A constant which can be used with the comms_manager_name property of a BaseService.
+ #: This constant has a value of "AS"
+ COMMS_MANAGER_NAME_AS = "AS"
+
+ #: A constant which can be used with the comms_manager_name property of a BaseService.
+ #: This constant has a value of "ERF"
+ COMMS_MANAGER_NAME_ERF = "ERF"
+
+ #: A constant which can be used with the lifecycle_state property of a BaseService.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a BaseService.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new BaseService 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.announcements_service.models.Service`
+ * :class:`~oci.announcements_service.models.ServiceSummary`
+ * :class:`~oci.announcements_service.models.NotificationsSummary`
+
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this BaseService.
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this BaseService.
+ :type id: str
+
+ :param service_name:
+ The value to assign to the service_name property of this BaseService.
+ :type service_name: str
+
+ :param short_name:
+ The value to assign to the short_name property of this BaseService.
+ :type short_name: str
+
+ :param team_name:
+ The value to assign to the team_name property of this BaseService.
+ :type team_name: str
+
+ :param platform_type:
+ The value to assign to the platform_type property of this BaseService.
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS"
+ :type platform_type: str
+
+ :param comms_manager_name:
+ The value to assign to the comms_manager_name property of this BaseService.
+ Allowed values for this property are: "CN", "FUSION", "AS", "ERF"
+ :type comms_manager_name: str
+
+ :param excluded_realms:
+ The value to assign to the excluded_realms property of this BaseService.
+ :type excluded_realms: list[str]
+
+ :param previous_service_names:
+ The value to assign to the previous_service_names property of this BaseService.
+ :type previous_service_names: list[str]
+
+ :param time_created:
+ The value to assign to the time_created property of this BaseService.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this BaseService.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this BaseService.
+ Allowed values for this property are: "ACTIVE", "DELETED"
+ :type lifecycle_state: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str',
+ 'service_name': 'str',
+ 'short_name': 'str',
+ 'team_name': 'str',
+ 'platform_type': 'str',
+ 'comms_manager_name': 'str',
+ 'excluded_realms': 'list[str]',
+ 'previous_service_names': 'list[str]',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id',
+ 'service_name': 'serviceName',
+ 'short_name': 'shortName',
+ 'team_name': 'teamName',
+ 'platform_type': 'platformType',
+ 'comms_manager_name': 'commsManagerName',
+ 'excluded_realms': 'excludedRealms',
+ 'previous_service_names': 'previousServiceNames',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState'
+ }
+
+ self._type = None
+ self._id = None
+ self._service_name = None
+ self._short_name = None
+ self._team_name = None
+ self._platform_type = None
+ self._comms_manager_name = None
+ self._excluded_realms = None
+ self._previous_service_names = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = 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['type']
+
+ if type == 'Service':
+ return 'Service'
+
+ if type == 'ServiceSummary':
+ return 'ServiceSummary'
+
+ if type == 'NotificationsSummary':
+ return 'NotificationsSummary'
+ else:
+ return 'BaseService'
+
+ @property
+ def type(self):
+ """
+ **[Required]** Gets the type of this BaseService.
+ The discriminator property.
+
+
+ :return: The type of this BaseService.
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """
+ Sets the type of this BaseService.
+ The discriminator property.
+
+
+ :param type: The type of this BaseService.
+ :type: str
+ """
+ self._type = type
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this BaseService.
+ ID of the service object.
+
+
+ :return: The id of this BaseService.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this BaseService.
+ ID of the service object.
+
+
+ :param id: The id of this BaseService.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def service_name(self):
+ """
+ **[Required]** Gets the service_name of this BaseService.
+ Name of the service represented by this object.
+
+
+ :return: The service_name of this BaseService.
+ :rtype: str
+ """
+ return self._service_name
+
+ @service_name.setter
+ def service_name(self, service_name):
+ """
+ Sets the service_name of this BaseService.
+ Name of the service represented by this object.
+
+
+ :param service_name: The service_name of this BaseService.
+ :type: str
+ """
+ self._service_name = service_name
+
+ @property
+ def short_name(self):
+ """
+ **[Required]** Gets the short_name of this BaseService.
+ Short name of the team to whom this service object is related.
+
+
+ :return: The short_name of this BaseService.
+ :rtype: str
+ """
+ return self._short_name
+
+ @short_name.setter
+ def short_name(self, short_name):
+ """
+ Sets the short_name of this BaseService.
+ Short name of the team to whom this service object is related.
+
+
+ :param short_name: The short_name of this BaseService.
+ :type: str
+ """
+ self._short_name = short_name
+
+ @property
+ def team_name(self):
+ """
+ **[Required]** Gets the team_name of this BaseService.
+ Team name to which this service object is related.
+
+
+ :return: The team_name of this BaseService.
+ :rtype: str
+ """
+ return self._team_name
+
+ @team_name.setter
+ def team_name(self, team_name):
+ """
+ Sets the team_name of this BaseService.
+ Team name to which this service object is related.
+
+
+ :param team_name: The team_name of this BaseService.
+ :type: str
+ """
+ self._team_name = team_name
+
+ @property
+ def platform_type(self):
+ """
+ **[Required]** Gets the platform_type of this BaseService.
+ The platform type this service object is related to.
+
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS"
+
+
+ :return: The platform_type of this BaseService.
+ :rtype: str
+ """
+ return self._platform_type
+
+ @platform_type.setter
+ def platform_type(self, platform_type):
+ """
+ Sets the platform_type of this BaseService.
+ The platform type this service object is related to.
+
+
+ :param platform_type: The platform_type of this BaseService.
+ :type: str
+ """
+ allowed_values = ["IAAS", "SAAS", "PAAS"]
+ if not value_allowed_none_or_none_sentinel(platform_type, allowed_values):
+ raise ValueError(
+ f"Invalid value for `platform_type`, must be None or one of {allowed_values}"
+ )
+ self._platform_type = platform_type
+
+ @property
+ def comms_manager_name(self):
+ """
+ **[Required]** Gets the comms_manager_name of this BaseService.
+ Name of the comms manager team that manages Notifications to this service.
+
+ Allowed values for this property are: "CN", "FUSION", "AS", "ERF"
+
+
+ :return: The comms_manager_name of this BaseService.
+ :rtype: str
+ """
+ return self._comms_manager_name
+
+ @comms_manager_name.setter
+ def comms_manager_name(self, comms_manager_name):
+ """
+ Sets the comms_manager_name of this BaseService.
+ Name of the comms manager team that manages Notifications to this service.
+
+
+ :param comms_manager_name: The comms_manager_name of this BaseService.
+ :type: str
+ """
+ allowed_values = ["CN", "FUSION", "AS", "ERF"]
+ if not value_allowed_none_or_none_sentinel(comms_manager_name, allowed_values):
+ raise ValueError(
+ f"Invalid value for `comms_manager_name`, must be None or one of {allowed_values}"
+ )
+ self._comms_manager_name = comms_manager_name
+
+ @property
+ def excluded_realms(self):
+ """
+ **[Required]** Gets the excluded_realms of this BaseService.
+ The list of realms where this service is not available to be used.
+
+
+ :return: The excluded_realms of this BaseService.
+ :rtype: list[str]
+ """
+ return self._excluded_realms
+
+ @excluded_realms.setter
+ def excluded_realms(self, excluded_realms):
+ """
+ Sets the excluded_realms of this BaseService.
+ The list of realms where this service is not available to be used.
+
+
+ :param excluded_realms: The excluded_realms of this BaseService.
+ :type: list[str]
+ """
+ self._excluded_realms = excluded_realms
+
+ @property
+ def previous_service_names(self):
+ """
+ **[Required]** Gets the previous_service_names of this BaseService.
+ The list of previously used names for this service object.
+
+
+ :return: The previous_service_names of this BaseService.
+ :rtype: list[str]
+ """
+ return self._previous_service_names
+
+ @previous_service_names.setter
+ def previous_service_names(self, previous_service_names):
+ """
+ Sets the previous_service_names of this BaseService.
+ The list of previously used names for this service object.
+
+
+ :param previous_service_names: The previous_service_names of this BaseService.
+ :type: list[str]
+ """
+ self._previous_service_names = previous_service_names
+
+ @property
+ def time_created(self):
+ """
+ Gets the time_created of this BaseService.
+ The date and time when the service object was created.
+
+
+ :return: The time_created of this BaseService.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this BaseService.
+ The date and time when the service object was created.
+
+
+ :param time_created: The time_created of this BaseService.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def time_updated(self):
+ """
+ Gets the time_updated of this BaseService.
+ The date and time when the service object was updated.
+
+
+ :return: The time_updated of this BaseService.
+ :rtype: datetime
+ """
+ return self._time_updated
+
+ @time_updated.setter
+ def time_updated(self, time_updated):
+ """
+ Sets the time_updated of this BaseService.
+ The date and time when the service object was updated.
+
+
+ :param time_updated: The time_updated of this BaseService.
+ :type: datetime
+ """
+ self._time_updated = time_updated
+
+ @property
+ def lifecycle_state(self):
+ """
+ Gets the lifecycle_state of this BaseService.
+ Current state of the service object.
+
+ Allowed values for this property are: "ACTIVE", "DELETED"
+
+
+ :return: The lifecycle_state of this BaseService.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this BaseService.
+ Current state of the service object.
+
+
+ :param lifecycle_state: The lifecycle_state of this BaseService.
+ :type: str
+ """
+ allowed_values = ["ACTIVE", "DELETED"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ raise ValueError(
+ f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}"
+ )
+ self._lifecycle_state = lifecycle_state
+
+ 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/announcements_service/models/notifications_summary.py b/src/oci/announcements_service/models/notifications_summary.py
new file mode 100644
index 0000000000..a95cf2292d
--- /dev/null
+++ b/src/oci/announcements_service/models/notifications_summary.py
@@ -0,0 +1,130 @@
+# 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: 0.0.1
+
+from .base_service import BaseService
+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 NotificationsSummary(BaseService):
+ """
+ Summary of notification object, return by List API
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new NotificationsSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.announcements_service.models.NotificationsSummary.type` attribute
+ of this class is ``NotificationsSummary`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this NotificationsSummary.
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this NotificationsSummary.
+ :type id: str
+
+ :param service_name:
+ The value to assign to the service_name property of this NotificationsSummary.
+ :type service_name: str
+
+ :param short_name:
+ The value to assign to the short_name property of this NotificationsSummary.
+ :type short_name: str
+
+ :param team_name:
+ The value to assign to the team_name property of this NotificationsSummary.
+ :type team_name: str
+
+ :param platform_type:
+ The value to assign to the platform_type property of this NotificationsSummary.
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS"
+ :type platform_type: str
+
+ :param comms_manager_name:
+ The value to assign to the comms_manager_name property of this NotificationsSummary.
+ Allowed values for this property are: "CN", "FUSION", "AS", "ERF"
+ :type comms_manager_name: str
+
+ :param excluded_realms:
+ The value to assign to the excluded_realms property of this NotificationsSummary.
+ :type excluded_realms: list[str]
+
+ :param previous_service_names:
+ The value to assign to the previous_service_names property of this NotificationsSummary.
+ :type previous_service_names: list[str]
+
+ :param time_created:
+ The value to assign to the time_created property of this NotificationsSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this NotificationsSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this NotificationsSummary.
+ Allowed values for this property are: "ACTIVE", "DELETED"
+ :type lifecycle_state: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str',
+ 'service_name': 'str',
+ 'short_name': 'str',
+ 'team_name': 'str',
+ 'platform_type': 'str',
+ 'comms_manager_name': 'str',
+ 'excluded_realms': 'list[str]',
+ 'previous_service_names': 'list[str]',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id',
+ 'service_name': 'serviceName',
+ 'short_name': 'shortName',
+ 'team_name': 'teamName',
+ 'platform_type': 'platformType',
+ 'comms_manager_name': 'commsManagerName',
+ 'excluded_realms': 'excludedRealms',
+ 'previous_service_names': 'previousServiceNames',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState'
+ }
+
+ self._type = None
+ self._id = None
+ self._service_name = None
+ self._short_name = None
+ self._team_name = None
+ self._platform_type = None
+ self._comms_manager_name = None
+ self._excluded_realms = None
+ self._previous_service_names = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._type = 'NotificationsSummary'
+
+ 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/announcements_service/models/service.py b/src/oci/announcements_service/models/service.py
new file mode 100644
index 0000000000..ae9fa54b5a
--- /dev/null
+++ b/src/oci/announcements_service/models/service.py
@@ -0,0 +1,130 @@
+# 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: 0.0.1
+
+from .base_service import BaseService
+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 Service(BaseService):
+ """
+ Summary of the service object.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new Service object with values from keyword arguments. The default value of the :py:attr:`~oci.announcements_service.models.Service.type` attribute
+ of this class is ``Service`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this Service.
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this Service.
+ :type id: str
+
+ :param service_name:
+ The value to assign to the service_name property of this Service.
+ :type service_name: str
+
+ :param short_name:
+ The value to assign to the short_name property of this Service.
+ :type short_name: str
+
+ :param team_name:
+ The value to assign to the team_name property of this Service.
+ :type team_name: str
+
+ :param platform_type:
+ The value to assign to the platform_type property of this Service.
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS"
+ :type platform_type: str
+
+ :param comms_manager_name:
+ The value to assign to the comms_manager_name property of this Service.
+ Allowed values for this property are: "CN", "FUSION", "AS", "ERF"
+ :type comms_manager_name: str
+
+ :param excluded_realms:
+ The value to assign to the excluded_realms property of this Service.
+ :type excluded_realms: list[str]
+
+ :param previous_service_names:
+ The value to assign to the previous_service_names property of this Service.
+ :type previous_service_names: list[str]
+
+ :param time_created:
+ The value to assign to the time_created property of this Service.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this Service.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this Service.
+ Allowed values for this property are: "ACTIVE", "DELETED"
+ :type lifecycle_state: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str',
+ 'service_name': 'str',
+ 'short_name': 'str',
+ 'team_name': 'str',
+ 'platform_type': 'str',
+ 'comms_manager_name': 'str',
+ 'excluded_realms': 'list[str]',
+ 'previous_service_names': 'list[str]',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id',
+ 'service_name': 'serviceName',
+ 'short_name': 'shortName',
+ 'team_name': 'teamName',
+ 'platform_type': 'platformType',
+ 'comms_manager_name': 'commsManagerName',
+ 'excluded_realms': 'excludedRealms',
+ 'previous_service_names': 'previousServiceNames',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState'
+ }
+
+ self._type = None
+ self._id = None
+ self._service_name = None
+ self._short_name = None
+ self._team_name = None
+ self._platform_type = None
+ self._comms_manager_name = None
+ self._excluded_realms = None
+ self._previous_service_names = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._type = 'Service'
+
+ 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/announcements_service/models/service_summary.py b/src/oci/announcements_service/models/service_summary.py
new file mode 100644
index 0000000000..c68711ebc5
--- /dev/null
+++ b/src/oci/announcements_service/models/service_summary.py
@@ -0,0 +1,133 @@
+# 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: 0.0.1
+
+from .base_service import BaseService
+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 ServiceSummary(BaseService):
+ """
+ Summary of the service object.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ServiceSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.announcements_service.models.ServiceSummary.type` attribute
+ of this class is ``ServiceSummary`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param type:
+ The value to assign to the type property of this ServiceSummary.
+ :type type: str
+
+ :param id:
+ The value to assign to the id property of this ServiceSummary.
+ :type id: str
+
+ :param service_name:
+ The value to assign to the service_name property of this ServiceSummary.
+ :type service_name: str
+
+ :param short_name:
+ The value to assign to the short_name property of this ServiceSummary.
+ :type short_name: str
+
+ :param team_name:
+ The value to assign to the team_name property of this ServiceSummary.
+ :type team_name: str
+
+ :param platform_type:
+ The value to assign to the platform_type property of this ServiceSummary.
+ Allowed values for this property are: "IAAS", "SAAS", "PAAS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type platform_type: str
+
+ :param comms_manager_name:
+ The value to assign to the comms_manager_name property of this ServiceSummary.
+ Allowed values for this property are: "CN", "FUSION", "AS", "ERF", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type comms_manager_name: str
+
+ :param excluded_realms:
+ The value to assign to the excluded_realms property of this ServiceSummary.
+ :type excluded_realms: list[str]
+
+ :param previous_service_names:
+ The value to assign to the previous_service_names property of this ServiceSummary.
+ :type previous_service_names: list[str]
+
+ :param time_created:
+ The value to assign to the time_created property of this ServiceSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this ServiceSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this ServiceSummary.
+ Allowed values for this property are: "ACTIVE", "DELETED", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ """
+ self.swagger_types = {
+ 'type': 'str',
+ 'id': 'str',
+ 'service_name': 'str',
+ 'short_name': 'str',
+ 'team_name': 'str',
+ 'platform_type': 'str',
+ 'comms_manager_name': 'str',
+ 'excluded_realms': 'list[str]',
+ 'previous_service_names': 'list[str]',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str'
+ }
+
+ self.attribute_map = {
+ 'type': 'type',
+ 'id': 'id',
+ 'service_name': 'serviceName',
+ 'short_name': 'shortName',
+ 'team_name': 'teamName',
+ 'platform_type': 'platformType',
+ 'comms_manager_name': 'commsManagerName',
+ 'excluded_realms': 'excludedRealms',
+ 'previous_service_names': 'previousServiceNames',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState'
+ }
+
+ self._type = None
+ self._id = None
+ self._service_name = None
+ self._short_name = None
+ self._team_name = None
+ self._platform_type = None
+ self._comms_manager_name = None
+ self._excluded_realms = None
+ self._previous_service_names = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._type = 'ServiceSummary'
+
+ 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/announcements_service/models/services_collection.py b/src/oci/announcements_service/models/services_collection.py
new file mode 100644
index 0000000000..80aa2a9f7f
--- /dev/null
+++ b/src/oci/announcements_service/models/services_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: 0.0.1
+
+
+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 ServicesCollection(object):
+ """
+ Collection of all services.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ServicesCollection 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 ServicesCollection.
+ :type items: list[oci.announcements_service.models.ServiceSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[ServiceSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this ServicesCollection.
+ List of all services.
+
+
+ :return: The items of this ServicesCollection.
+ :rtype: list[oci.announcements_service.models.ServiceSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this ServicesCollection.
+ List of all services.
+
+
+ :param items: The items of this ServicesCollection.
+ :type: list[oci.announcements_service.models.ServiceSummary]
+ """
+ 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/announcements_service/service_client.py b/src/oci/announcements_service/service_client.py
new file mode 100644
index 0000000000..40dfaa7b71
--- /dev/null
+++ b/src/oci/announcements_service/service_client.py
@@ -0,0 +1,275 @@
+# 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: 0.0.1
+
+from __future__ import absolute_import
+
+from oci._vendor import requests # noqa: F401
+from oci._vendor import six
+
+from oci import retry, circuit_breaker # noqa: F401
+from oci.base_client import BaseClient
+from oci.config import get_config_value_or_default, validate_config
+from oci.signer import Signer
+from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
+from oci.exceptions import InvalidAlloyConfig
+from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
+from .models import announcements_service_type_mapping
+missing = Sentinel("Missing")
+
+
+class ServiceClient(object):
+ """
+ Manage Oracle Cloud Infrastructure console announcements.
+ """
+
+ def __init__(self, config, **kwargs):
+ """
+ Creates a new service client
+
+ :param dict config:
+ Configuration keys and values as per `SDK and Tool Configuration `__.
+ The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
+ the dict using :py:meth:`~oci.config.validate_config`
+
+ :param str service_endpoint: (optional)
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
+ not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
+ need to specify a service endpoint.
+
+ :param timeout: (optional)
+ The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
+ as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
+ :type timeout: float or tuple(float, float)
+
+ :param signer: (optional)
+ The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
+ provided in the config parameter.
+
+ One use case for this parameter is for `Instance Principals authentication `__
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
+
+ :param obj retry_strategy: (optional)
+ A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
+ Any value provided at the operation level will override whatever is specified at the client level.
+
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
+ is also available. The specifics of the default retry strategy are described `here `__.
+
+ :param obj circuit_breaker_strategy: (optional)
+ A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
+ This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
+ The specifics of circuit breaker strategy are described `here `__.
+
+ :param function circuit_breaker_callback: (optional)
+ Callback function to receive any exceptions triggerred by the circuit breaker.
+
+ :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
+ A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
+
+ :param allow_control_chars: (optional)
+ allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
+ allow control characters to be in the response object.
+ """
+ if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("announcements_service"):
+ raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
+
+ validate_config(config, signer=kwargs.get('signer'))
+ if 'signer' in kwargs:
+ signer = kwargs['signer']
+
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
+ signer = get_signer_from_authentication_type(config)
+
+ else:
+ signer = Signer(
+ tenancy=config["tenancy"],
+ user=config["user"],
+ fingerprint=config["fingerprint"],
+ private_key_file_location=config.get("key_file"),
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
+ private_key_content=config.get("key_content")
+ )
+
+ base_client_init_kwargs = {
+ 'regional_client': True,
+ 'service_endpoint': kwargs.get('service_endpoint'),
+ 'base_path': '/20180904',
+ 'service_endpoint_template': 'https://announcements.{region}.{secondLevelDomain}',
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
+ }
+ if 'timeout' in kwargs:
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
+ if 'allow_control_chars' in kwargs:
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
+ self.base_client = BaseClient("service", config, signer, announcements_service_type_mapping, **base_client_init_kwargs)
+ self.retry_strategy = kwargs.get('retry_strategy')
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
+
+ def list_services(self, compartment_id, **kwargs):
+ """
+ List all active services
+
+
+ :param str compartment_id: (required)
+ The OCID of the compartment.
+
+ :param str platform_type: (optional)
+ A filter to return only announcements affecting a specific platform.
+
+ Allowed values are: "IAAS", "SAAS", "PAAS"
+
+ :param str comms_manager_name: (optional)
+ Filter by comms manager name
+
+ Allowed values are: "CN", "FUSION", "AS", "ERF"
+
+ :param int limit: (optional)
+ The maximum number of items to return in a paginated \"List\" call.
+
+ :param str page: (optional)
+ The value of the `opc-next-page` response header from the previous \"List\" call.
+
+ :param str sort_by: (optional)
+ Sort by service name parameter
+
+ Allowed values are: "serviceName"
+
+ :param str sort_order: (optional)
+ The sort order to use, whether ascending ('ASC') or descending ('DESC').
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str opc_request_id: (optional)
+ The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
+ a particular request, please provide the complete request ID.
+
+ :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.announcements_service.models.ServicesCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_services API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['compartmentId']
+ resource_path = "/services"
+ method = "GET"
+ operation_name = "list_services"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/announcements/0.0.1/Service/ListServices"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "platform_type",
+ "comms_manager_name",
+ "limit",
+ "page",
+ "sort_by",
+ "sort_order",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ f"list_services got unknown kwargs: {extra_kwargs!r}")
+
+ if 'platform_type' in kwargs:
+ platform_type_allowed_values = ["IAAS", "SAAS", "PAAS"]
+ if kwargs['platform_type'] not in platform_type_allowed_values:
+ raise ValueError(
+ f"Invalid value for `platform_type`, must be one of { platform_type_allowed_values }"
+ )
+
+ if 'comms_manager_name' in kwargs:
+ comms_manager_name_allowed_values = ["CN", "FUSION", "AS", "ERF"]
+ if kwargs['comms_manager_name'] not in comms_manager_name_allowed_values:
+ raise ValueError(
+ f"Invalid value for `comms_manager_name`, must be one of { comms_manager_name_allowed_values }"
+ )
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["serviceName"]
+ 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 }"
+ )
+
+ query_params = {
+ "platformType": kwargs.get("platform_type", missing),
+ "commsManagerName": kwargs.get("comms_manager_name", missing),
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "compartmentId": compartment_id
+ }
+ 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:
+ 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="ServicesCollection",
+ 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="ServicesCollection",
+ allow_control_chars=kwargs.get('allow_control_chars'),
+ operation_name=operation_name,
+ api_reference_link=api_reference_link,
+ required_arguments=required_arguments)
diff --git a/src/oci/announcements_service/service_client_composite_operations.py b/src/oci/announcements_service/service_client_composite_operations.py
new file mode 100644
index 0000000000..be10f14838
--- /dev/null
+++ b/src/oci/announcements_service/service_client_composite_operations.py
@@ -0,0 +1,26 @@
+# 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: 0.0.1
+
+import oci # noqa: F401
+from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
+
+
+class ServiceClientCompositeOperations(object):
+ """
+ This class provides a wrapper around :py:class:`~oci.announcements_service.ServiceClient` and offers convenience methods
+ for operations that would otherwise need to be chained together. For example, instead of performing an action
+ on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
+ to enter a given state, you can call a single method in this class to accomplish the same functionality
+ """
+
+ def __init__(self, client, **kwargs):
+ """
+ Creates a new ServiceClientCompositeOperations object
+
+ :param ServiceClient client:
+ The service client which will be wrapped by this object
+ """
+ self.client = client
diff --git a/src/oci/database/database_client.py b/src/oci/database/database_client.py
index a1b3dd7f01..fe6d2f4943 100644
--- a/src/oci/database/database_client.py
+++ b/src/oci/database/database_client.py
@@ -934,22 +934,26 @@ def cancel_backup(self, backup_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def change_autonomous_container_database_compartment(self, change_compartment_details, autonomous_container_database_id, **kwargs):
+ def cancel_execution_window(self, execution_window_id, cancel_execution_window_details, **kwargs):
"""
- Move the Autonomous Container Database and its dependent resources to the specified compartment.
- For more information about moving Autonomous Container Databases, see
- `Moving Database Resources to a Different Compartment`__.
+ Cancels the in progress maintenance activity under this execution window.
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
+ :param str execution_window_id: (required)
+ The execution window `OCID`__.
- :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move Autonomous Container Database to a different compartment
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str autonomous_container_database_id: (required)
- The Autonomous Container Database `OCID`__.
+ :param oci.database.models.CancelExecutionWindowDetails cancel_execution_window_details: (required)
+ Request to cancel the in progress maintenance activity under this execution window.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :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 str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -958,14 +962,6 @@ def change_autonomous_container_database_compartment(self, change_compartment_de
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
- :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.
@@ -978,34 +974,34 @@ def change_autonomous_container_database_compartment(self, change_compartment_de
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExecutionWindow`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_autonomous_container_database_compartment API.
+ Click `here `__ to see an example of how to use cancel_execution_window API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousContainerDatabaseId']
- resource_path = "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/changeCompartment"
+ required_arguments = ['executionWindowId']
+ resource_path = "/executionWindows/{executionWindowId}/actions/cancel"
method = "POST"
- operation_name = "change_autonomous_container_database_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/ChangeAutonomousContainerDatabaseCompartment"
+ operation_name = "cancel_execution_window"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/CancelExecutionWindow"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
+ "if_match",
"opc_request_id",
- "if_match"
+ "opc_retry_token"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_autonomous_container_database_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"cancel_execution_window got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousContainerDatabaseId": autonomous_container_database_id
+ "executionWindowId": execution_window_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -1017,9 +1013,9 @@ def change_autonomous_container_database_compartment(self, change_compartment_de
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "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),
- "if-match": kwargs.get("if_match", 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}
@@ -1039,7 +1035,8 @@ def change_autonomous_container_database_compartment(self, change_compartment_de
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=cancel_execution_window_details,
+ response_type="ExecutionWindow",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -1050,26 +1047,20 @@ def change_autonomous_container_database_compartment(self, change_compartment_de
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=cancel_execution_window_details,
+ response_type="ExecutionWindow",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def change_autonomous_database_compartment(self, change_compartment_details, autonomous_database_id, **kwargs):
+ def cascading_delete_scheduling_plan(self, scheduling_plan_id, **kwargs):
"""
- Move the Autonomous Database and its dependent resources to the specified compartment.
- For more information about moving Autonomous Databases, see
- `Moving Database Resources to a Different Compartment`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
-
+ Delete the scheduling plan resource along with all the scheduled actions associated with this resource.
- :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move Autonomous Database to a different compartment
- :param str autonomous_database_id: (required)
- The database `OCID`__.
+ :param str scheduling_plan_id: (required)
+ The Schedule Plan `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -1080,14 +1071,14 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
: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.
@@ -1104,30 +1095,30 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_autonomous_database_compartment API.
+ Click `here `__ to see an example of how to use cascading_delete_scheduling_plan API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/changeCompartment"
+ required_arguments = ['schedulingPlanId']
+ resource_path = "/schedulingPlans/{schedulingPlanId}/actions/cascadingDeleteSchedulingPlan"
method = "POST"
- operation_name = "change_autonomous_database_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ChangeAutonomousDatabaseCompartment"
+ operation_name = "cascading_delete_scheduling_plan"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/CascadingDeleteSchedulingPlan"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"opc_retry_token",
- "opc_request_id",
- "if_match"
+ "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"change_autonomous_database_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"cascading_delete_scheduling_plan got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousDatabaseId": autonomous_database_id
+ "schedulingPlanId": scheduling_plan_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -1140,8 +1131,8 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut
"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),
- "if-match": kwargs.get("if_match", 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}
@@ -1161,7 +1152,6 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -1172,22 +1162,25 @@ def change_autonomous_database_compartment(self, change_compartment_details, aut
method=method,
path_params=path_params,
header_params=header_params,
- body=change_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_autonomous_database_software_image_compartment(self, change_autonomous_database_software_image_compartment_details, autonomous_database_software_image_id, **kwargs):
+ def change_autonomous_container_database_compartment(self, change_compartment_details, autonomous_container_database_id, **kwargs):
"""
- Move the Autonomous Database Software Image and its dependent resources to the specified compartment.
+ Move the Autonomous Container Database and its dependent resources to the specified compartment.
+ For more information about moving Autonomous Container Databases, see
+ `Moving Database Resources to a Different Compartment`__.
+
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param oci.database.models.ChangeAutonomousDatabaseSoftwareImageCompartmentDetails change_autonomous_database_software_image_compartment_details: (required)
- Request to move Autonomous Database Software Image to a different compartment
+ :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
+ Request to move Autonomous Container Database to a different compartment
- :param str autonomous_database_software_image_id: (required)
- The Autonomous Database Software Image `OCID`__.
+ :param str autonomous_container_database_id: (required)
+ The Autonomous Container Database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -1222,14 +1215,14 @@ def change_autonomous_database_software_image_compartment(self, change_autonomou
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_autonomous_database_software_image_compartment API.
+ Click `here `__ to see an example of how to use change_autonomous_container_database_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseSoftwareImageId']
- resource_path = "/autonomousDatabaseSoftwareImages/{autonomousDatabaseSoftwareImageId}/actions/changeCompartment"
+ required_arguments = ['autonomousContainerDatabaseId']
+ resource_path = "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_autonomous_database_software_image_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseSoftwareImage/ChangeAutonomousDatabaseSoftwareImageCompartment"
+ operation_name = "change_autonomous_container_database_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/ChangeAutonomousContainerDatabaseCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -1242,10 +1235,10 @@ def change_autonomous_database_software_image_compartment(self, change_autonomou
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_autonomous_database_software_image_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_autonomous_container_database_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousDatabaseSoftwareImageId": autonomous_database_software_image_id
+ "autonomousContainerDatabaseId": autonomous_container_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -1279,7 +1272,7 @@ def change_autonomous_database_software_image_compartment(self, change_autonomou
method=method,
path_params=path_params,
header_params=header_params,
- body=change_autonomous_database_software_image_compartment_details,
+ body=change_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -1290,19 +1283,23 @@ def change_autonomous_database_software_image_compartment(self, change_autonomou
method=method,
path_params=path_params,
header_params=header_params,
- body=change_autonomous_database_software_image_compartment_details,
+ body=change_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_autonomous_database_subscription(self, change_autonomous_database_subscription_details, autonomous_database_id, **kwargs):
+ def change_autonomous_database_compartment(self, change_compartment_details, autonomous_database_id, **kwargs):
"""
- Associate an Autonomous Database with a different subscription.
+ Move the Autonomous Database and its dependent resources to the specified compartment.
+ For more information about moving Autonomous Databases, see
+ `Moving Database Resources to a Different Compartment`__.
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param oci.database.models.ChangeAutonomousDatabaseSubscriptionDetails change_autonomous_database_subscription_details: (required)
- Associate an Autonomous Database with a different subscription.
+
+ :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
+ Request to move Autonomous Database to a different compartment
:param str autonomous_database_id: (required)
The database `OCID`__.
@@ -1340,14 +1337,14 @@ def change_autonomous_database_subscription(self, change_autonomous_database_sub
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_autonomous_database_subscription API.
+ Click `here `__ to see an example of how to use change_autonomous_database_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/changeSubscription"
+ resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_autonomous_database_subscription"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ChangeAutonomousDatabaseSubscription"
+ operation_name = "change_autonomous_database_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ChangeAutonomousDatabaseCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -1360,7 +1357,7 @@ def change_autonomous_database_subscription(self, change_autonomous_database_sub
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_autonomous_database_subscription got unknown kwargs: {extra_kwargs!r}")
+ f"change_autonomous_database_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
"autonomousDatabaseId": autonomous_database_id
@@ -1397,7 +1394,7 @@ def change_autonomous_database_subscription(self, change_autonomous_database_sub
method=method,
path_params=path_params,
header_params=header_params,
- body=change_autonomous_database_subscription_details,
+ body=change_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -1408,26 +1405,22 @@ def change_autonomous_database_subscription(self, change_autonomous_database_sub
method=method,
path_params=path_params,
header_params=header_params,
- body=change_autonomous_database_subscription_details,
+ body=change_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_autonomous_exadata_infrastructure_compartment(self, change_compartment_details, autonomous_exadata_infrastructure_id, **kwargs):
+ def change_autonomous_database_software_image_compartment(self, change_autonomous_database_software_image_compartment_details, autonomous_database_software_image_id, **kwargs):
"""
- **Deprecated.** Use the :func:`change_cloud_exadata_infrastructure_compartment` operation to move an Exadata infrastructure resource to a different compartment and :func:`change_cloud_autonomous_vm_cluster_compartment` operation to move an Autonomous Exadata VM cluster to a different compartment.
- For more information, see
- `Moving Database Resources to a Different Compartment`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
+ Move the Autonomous Database Software Image and its dependent resources to the specified compartment.
- :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move an Autonomous Exadata Infrastructure resource to a different compartment.
+ :param oci.database.models.ChangeAutonomousDatabaseSoftwareImageCompartmentDetails change_autonomous_database_software_image_compartment_details: (required)
+ Request to move Autonomous Database Software Image to a different compartment
- :param str autonomous_exadata_infrastructure_id: (required)
- The Autonomous Exadata Infrastructure `OCID`__.
+ :param str autonomous_database_software_image_id: (required)
+ The Autonomous Database Software Image `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -1462,14 +1455,14 @@ def change_autonomous_exadata_infrastructure_compartment(self, change_compartmen
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_autonomous_exadata_infrastructure_compartment API.
+ Click `here `__ to see an example of how to use change_autonomous_database_software_image_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousExadataInfrastructureId']
- resource_path = "/autonomousExadataInfrastructures/{autonomousExadataInfrastructureId}/actions/changeCompartment"
+ required_arguments = ['autonomousDatabaseSoftwareImageId']
+ resource_path = "/autonomousDatabaseSoftwareImages/{autonomousDatabaseSoftwareImageId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_autonomous_exadata_infrastructure_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousExadataInfrastructure/ChangeAutonomousExadataInfrastructureCompartment"
+ operation_name = "change_autonomous_database_software_image_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseSoftwareImage/ChangeAutonomousDatabaseSoftwareImageCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -1482,10 +1475,10 @@ def change_autonomous_exadata_infrastructure_compartment(self, change_compartmen
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_autonomous_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_autonomous_database_software_image_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id
+ "autonomousDatabaseSoftwareImageId": autonomous_database_software_image_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -1519,7 +1512,7 @@ def change_autonomous_exadata_infrastructure_compartment(self, change_compartmen
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_autonomous_database_software_image_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -1530,22 +1523,22 @@ def change_autonomous_exadata_infrastructure_compartment(self, change_compartmen
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_autonomous_database_software_image_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_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_compartment_details, autonomous_vm_cluster_id, **kwargs):
+ def change_autonomous_database_subscription(self, change_autonomous_database_subscription_details, autonomous_database_id, **kwargs):
"""
- Moves an Autonomous VM cluster and its dependent resources to another compartment. Applies to Exadata Cloud@Customer only. For systems in the Oracle cloud, see :func:`change_autonomous_vm_cluster_compartment`.
+ Associate an Autonomous Database with a different subscription.
- :param oci.database.models.ChangeAutonomousVmClusterCompartmentDetails change_autonomous_vm_cluster_compartment_details: (required)
- Request to move Autonomous VM cluster to a different compartment
+ :param oci.database.models.ChangeAutonomousDatabaseSubscriptionDetails change_autonomous_database_subscription_details: (required)
+ Associate an Autonomous Database with a different subscription.
- :param str autonomous_vm_cluster_id: (required)
- The autonomous VM cluster `OCID`__.
+ :param str autonomous_database_id: (required)
+ The database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -1580,14 +1573,14 @@ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_autonomous_vm_cluster_compartment API.
+ Click `here `__ to see an example of how to use change_autonomous_database_subscription API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousVmClusterId']
- resource_path = "/autonomousVmClusters/{autonomousVmClusterId}/actions/changeCompartment"
+ required_arguments = ['autonomousDatabaseId']
+ resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/changeSubscription"
method = "POST"
- operation_name = "change_autonomous_vm_cluster_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/ChangeAutonomousVmClusterCompartment"
+ operation_name = "change_autonomous_database_subscription"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ChangeAutonomousDatabaseSubscription"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -1600,10 +1593,10 @@ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_autonomous_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_autonomous_database_subscription got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousVmClusterId": autonomous_vm_cluster_id
+ "autonomousDatabaseId": autonomous_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -1637,7 +1630,7 @@ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_
method=method,
path_params=path_params,
header_params=header_params,
- body=change_autonomous_vm_cluster_compartment_details,
+ body=change_autonomous_database_subscription_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -1648,15 +1641,15 @@ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_
method=method,
path_params=path_params,
header_params=header_params,
- body=change_autonomous_vm_cluster_compartment_details,
+ body=change_autonomous_database_subscription_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_backup_destination_compartment(self, change_compartment_details, backup_destination_id, **kwargs):
+ def change_autonomous_exadata_infrastructure_compartment(self, change_compartment_details, autonomous_exadata_infrastructure_id, **kwargs):
"""
- Move the backup destination and its dependent resources to the specified compartment.
+ **Deprecated.** Use the :func:`change_cloud_exadata_infrastructure_compartment` operation to move an Exadata infrastructure resource to a different compartment and :func:`change_cloud_autonomous_vm_cluster_compartment` operation to move an Autonomous Exadata VM cluster to a different compartment.
For more information, see
`Moving Database Resources to a Different Compartment`__.
@@ -1664,10 +1657,10 @@ def change_backup_destination_compartment(self, change_compartment_details, back
:param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move backup destination to a different compartment.
+ Request to move an Autonomous Exadata Infrastructure resource to a different compartment.
- :param str backup_destination_id: (required)
- The `OCID`__ of the backup destination.
+ :param str autonomous_exadata_infrastructure_id: (required)
+ The Autonomous Exadata Infrastructure `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -1702,14 +1695,14 @@ def change_backup_destination_compartment(self, change_compartment_details, back
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_backup_destination_compartment API.
+ Click `here `__ to see an example of how to use change_autonomous_exadata_infrastructure_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['backupDestinationId']
- resource_path = "/backupDestinations/{backupDestinationId}/actions/changeCompartment"
+ required_arguments = ['autonomousExadataInfrastructureId']
+ resource_path = "/autonomousExadataInfrastructures/{autonomousExadataInfrastructureId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_backup_destination_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/BackupDestination/ChangeBackupDestinationCompartment"
+ operation_name = "change_autonomous_exadata_infrastructure_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousExadataInfrastructure/ChangeAutonomousExadataInfrastructureCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -1722,10 +1715,10 @@ def change_backup_destination_compartment(self, change_compartment_details, back
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_backup_destination_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_autonomous_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "backupDestinationId": backup_destination_id
+ "autonomousExadataInfrastructureId": autonomous_exadata_infrastructure_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -1776,16 +1769,16 @@ def change_backup_destination_compartment(self, change_compartment_details, back
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous_vm_cluster_compartment_details, cloud_autonomous_vm_cluster_id, **kwargs):
+ def change_autonomous_vm_cluster_compartment(self, change_autonomous_vm_cluster_compartment_details, autonomous_vm_cluster_id, **kwargs):
"""
- Moves an Autonomous Exadata VM cluster in the Oracle cloud and its dependent resources to another compartment. For Exadata Cloud@Customer systems, see :func:`change_autonomous_vm_cluster_compartment`.
+ Moves an Autonomous VM cluster and its dependent resources to another compartment. Applies to Exadata Cloud@Customer only. For systems in the Oracle cloud, see :func:`change_autonomous_vm_cluster_compartment`.
- :param oci.database.models.ChangeCloudAutonomousVmClusterCompartmentDetails change_cloud_autonomous_vm_cluster_compartment_details: (required)
- Request to move cloud Autonomous VM cluster to a different compartment
+ :param oci.database.models.ChangeAutonomousVmClusterCompartmentDetails change_autonomous_vm_cluster_compartment_details: (required)
+ Request to move Autonomous VM cluster to a different compartment
- :param str cloud_autonomous_vm_cluster_id: (required)
- The Cloud VM cluster `OCID`__.
+ :param str autonomous_vm_cluster_id: (required)
+ The autonomous VM cluster `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -1820,14 +1813,14 @@ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_cloud_autonomous_vm_cluster_compartment API.
+ Click `here `__ to see an example of how to use change_autonomous_vm_cluster_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['cloudAutonomousVmClusterId']
- resource_path = "/cloudAutonomousVmClusters/{cloudAutonomousVmClusterId}/actions/changeCompartment"
+ required_arguments = ['autonomousVmClusterId']
+ resource_path = "/autonomousVmClusters/{autonomousVmClusterId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_cloud_autonomous_vm_cluster_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/ChangeCloudAutonomousVmClusterCompartment"
+ operation_name = "change_autonomous_vm_cluster_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/ChangeAutonomousVmClusterCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -1840,10 +1833,10 @@ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_cloud_autonomous_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_autonomous_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id
+ "autonomousVmClusterId": autonomous_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -1877,7 +1870,7 @@ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_autonomous_vm_cluster_compartment_details,
+ body=change_autonomous_vm_cluster_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -1888,24 +1881,26 @@ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_autonomous_vm_cluster_compartment_details,
+ body=change_autonomous_vm_cluster_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_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_infrastructure_compartment_details, cloud_exadata_infrastructure_id, **kwargs):
+ def change_backup_destination_compartment(self, change_compartment_details, backup_destination_id, **kwargs):
"""
- Moves a cloud Exadata infrastructure resource and its dependent resources to another compartment. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.For more information about moving resources to a different compartment, see `Moving Database Resources to a Different Compartment`__.
+ Move the backup destination and its dependent resources to the specified compartment.
+ For more information, see
+ `Moving Database Resources to a Different Compartment`__.
__ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param oci.database.models.ChangeCloudExadataInfrastructureCompartmentDetails change_cloud_exadata_infrastructure_compartment_details: (required)
- Request to move cloud Exadata infrastructure resource to a different compartment.
+ :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
+ Request to move backup destination to a different compartment.
- :param str cloud_exadata_infrastructure_id: (required)
- The cloud Exadata infrastructure `OCID`__.
+ :param str backup_destination_id: (required)
+ The `OCID`__ of the backup destination.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -1940,14 +1935,14 @@ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_i
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_cloud_exadata_infrastructure_compartment API.
+ Click `here `__ to see an example of how to use change_backup_destination_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['cloudExadataInfrastructureId']
- resource_path = "/cloudExadataInfrastructures/{cloudExadataInfrastructureId}/actions/changeCompartment"
+ required_arguments = ['backupDestinationId']
+ resource_path = "/backupDestinations/{backupDestinationId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_cloud_exadata_infrastructure_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ChangeCloudExadataInfrastructureCompartment"
+ operation_name = "change_backup_destination_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/BackupDestination/ChangeBackupDestinationCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -1960,10 +1955,10 @@ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_i
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_cloud_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_backup_destination_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id
+ "backupDestinationId": backup_destination_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -1997,7 +1992,7 @@ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_i
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_exadata_infrastructure_compartment_details,
+ body=change_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -2008,22 +2003,22 @@ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_i
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_exadata_infrastructure_compartment_details,
+ body=change_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_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_infrastructure_subscription_details, cloud_exadata_infrastructure_id, **kwargs):
+ def change_cloud_autonomous_vm_cluster_compartment(self, change_cloud_autonomous_vm_cluster_compartment_details, cloud_autonomous_vm_cluster_id, **kwargs):
"""
- Associate a cloud Exadata infrastructure with a different subscription.
+ Moves an Autonomous Exadata VM cluster in the Oracle cloud and its dependent resources to another compartment. For Exadata Cloud@Customer systems, see :func:`change_autonomous_vm_cluster_compartment`.
- :param oci.database.models.ChangeCloudExadataInfrastructureSubscriptionDetails change_cloud_exadata_infrastructure_subscription_details: (required)
- Associate a cloud Exadata infrastructure with a different subscription.
+ :param oci.database.models.ChangeCloudAutonomousVmClusterCompartmentDetails change_cloud_autonomous_vm_cluster_compartment_details: (required)
+ Request to move cloud Autonomous VM cluster to a different compartment
- :param str cloud_exadata_infrastructure_id: (required)
- The cloud Exadata infrastructure `OCID`__.
+ :param str cloud_autonomous_vm_cluster_id: (required)
+ The Cloud VM cluster `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -2058,14 +2053,14 @@ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_cloud_exadata_infrastructure_subscription API.
+ Click `here `__ to see an example of how to use change_cloud_autonomous_vm_cluster_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['cloudExadataInfrastructureId']
- resource_path = "/cloudExadataInfrastructures/{cloudExadataInfrastructureId}/actions/changeSubscription"
+ required_arguments = ['cloudAutonomousVmClusterId']
+ resource_path = "/cloudAutonomousVmClusters/{cloudAutonomousVmClusterId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_cloud_exadata_infrastructure_subscription"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ChangeCloudExadataInfrastructureSubscription"
+ operation_name = "change_cloud_autonomous_vm_cluster_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/ChangeCloudAutonomousVmClusterCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -2078,10 +2073,10 @@ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_cloud_exadata_infrastructure_subscription got unknown kwargs: {extra_kwargs!r}")
+ f"change_cloud_autonomous_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id
+ "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2115,7 +2110,7 @@ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_exadata_infrastructure_subscription_details,
+ body=change_cloud_autonomous_vm_cluster_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -2126,22 +2121,24 @@ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_exadata_infrastructure_subscription_details,
+ body=change_cloud_autonomous_vm_cluster_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_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartment_details, cloud_vm_cluster_id, **kwargs):
+ def change_cloud_exadata_infrastructure_compartment(self, change_cloud_exadata_infrastructure_compartment_details, cloud_exadata_infrastructure_id, **kwargs):
"""
- Moves a cloud VM cluster and its dependent resources to another compartment. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.
+ Moves a cloud Exadata infrastructure resource and its dependent resources to another compartment. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.For more information about moving resources to a different compartment, see `Moving Database Resources to a Different Compartment`__.
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param oci.database.models.ChangeCloudVmClusterCompartmentDetails change_cloud_vm_cluster_compartment_details: (required)
- Request to move cloud VM cluster to a different compartment
- :param str cloud_vm_cluster_id: (required)
- The cloud VM cluster `OCID`__.
+ :param oci.database.models.ChangeCloudExadataInfrastructureCompartmentDetails change_cloud_exadata_infrastructure_compartment_details: (required)
+ Request to move cloud Exadata infrastructure resource to a different compartment.
+
+ :param str cloud_exadata_infrastructure_id: (required)
+ The cloud Exadata infrastructure `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -2176,14 +2173,14 @@ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartmen
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_cloud_vm_cluster_compartment API.
+ Click `here `__ to see an example of how to use change_cloud_exadata_infrastructure_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['cloudVmClusterId']
- resource_path = "/cloudVmClusters/{cloudVmClusterId}/actions/changeCompartment"
+ required_arguments = ['cloudExadataInfrastructureId']
+ resource_path = "/cloudExadataInfrastructures/{cloudExadataInfrastructureId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_cloud_vm_cluster_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudVmCluster/ChangeCloudVmClusterCompartment"
+ operation_name = "change_cloud_exadata_infrastructure_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ChangeCloudExadataInfrastructureCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -2196,10 +2193,10 @@ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartmen
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_cloud_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_cloud_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "cloudVmClusterId": cloud_vm_cluster_id
+ "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2233,7 +2230,7 @@ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartmen
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_vm_cluster_compartment_details,
+ body=change_cloud_exadata_infrastructure_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -2244,22 +2241,22 @@ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartmen
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_vm_cluster_compartment_details,
+ body=change_cloud_exadata_infrastructure_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_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscription_details, cloud_vm_cluster_id, **kwargs):
+ def change_cloud_exadata_infrastructure_subscription(self, change_cloud_exadata_infrastructure_subscription_details, cloud_exadata_infrastructure_id, **kwargs):
"""
- Associate a cloud VM cluster with a different subscription.
+ Associate a cloud Exadata infrastructure with a different subscription.
- :param oci.database.models.ChangeCloudVmClusterSubscriptionDetails change_cloud_vm_cluster_subscription_details: (required)
- Associate a cloud VM cluster with a different subscription.
+ :param oci.database.models.ChangeCloudExadataInfrastructureSubscriptionDetails change_cloud_exadata_infrastructure_subscription_details: (required)
+ Associate a cloud Exadata infrastructure with a different subscription.
- :param str cloud_vm_cluster_id: (required)
- The cloud VM cluster `OCID`__.
+ :param str cloud_exadata_infrastructure_id: (required)
+ The cloud Exadata infrastructure `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -2294,14 +2291,14 @@ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscript
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_cloud_vm_cluster_subscription API.
+ Click `here `__ to see an example of how to use change_cloud_exadata_infrastructure_subscription API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['cloudVmClusterId']
- resource_path = "/cloudVmClusters/{cloudVmClusterId}/actions/changeSubscription"
+ required_arguments = ['cloudExadataInfrastructureId']
+ resource_path = "/cloudExadataInfrastructures/{cloudExadataInfrastructureId}/actions/changeSubscription"
method = "POST"
- operation_name = "change_cloud_vm_cluster_subscription"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudVmCluster/ChangeCloudVmClusterSubscription"
+ operation_name = "change_cloud_exadata_infrastructure_subscription"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ChangeCloudExadataInfrastructureSubscription"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -2314,10 +2311,10 @@ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscript
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_cloud_vm_cluster_subscription got unknown kwargs: {extra_kwargs!r}")
+ f"change_cloud_exadata_infrastructure_subscription got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "cloudVmClusterId": cloud_vm_cluster_id
+ "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2351,7 +2348,7 @@ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscript
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_vm_cluster_subscription_details,
+ body=change_cloud_exadata_infrastructure_subscription_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -2362,26 +2359,22 @@ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscript
method=method,
path_params=path_params,
header_params=header_params,
- body=change_cloud_vm_cluster_subscription_details,
+ body=change_cloud_exadata_infrastructure_subscription_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_database_software_image_compartment(self, change_compartment_details, database_software_image_id, **kwargs):
+ def change_cloud_vm_cluster_compartment(self, change_cloud_vm_cluster_compartment_details, cloud_vm_cluster_id, **kwargs):
"""
- Move the Database Software Image and its dependent resources to the specified compartment.
- For more information about moving Databse Software Images, see
- `Moving Database Resources to a Different Compartment`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
+ Moves a cloud VM cluster and its dependent resources to another compartment. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.
- :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move Database Software Image to a different compartment
+ :param oci.database.models.ChangeCloudVmClusterCompartmentDetails change_cloud_vm_cluster_compartment_details: (required)
+ Request to move cloud VM cluster to a different compartment
- :param str database_software_image_id: (required)
- The DB system `OCID`__.
+ :param str cloud_vm_cluster_id: (required)
+ The cloud VM cluster `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -2416,14 +2409,14 @@ def change_database_software_image_compartment(self, change_compartment_details,
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_database_software_image_compartment API.
+ Click `here `__ to see an example of how to use change_cloud_vm_cluster_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['databaseSoftwareImageId']
- resource_path = "/databaseSoftwareImages/{databaseSoftwareImageId}/actions/changeCompartment"
+ required_arguments = ['cloudVmClusterId']
+ resource_path = "/cloudVmClusters/{cloudVmClusterId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_database_software_image_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSoftwareImage/ChangeDatabaseSoftwareImageCompartment"
+ operation_name = "change_cloud_vm_cluster_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudVmCluster/ChangeCloudVmClusterCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -2436,10 +2429,10 @@ def change_database_software_image_compartment(self, change_compartment_details,
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_database_software_image_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_cloud_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "databaseSoftwareImageId": database_software_image_id
+ "cloudVmClusterId": cloud_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2473,131 +2466,7 @@ def change_database_software_image_compartment(self, change_compartment_details,
method=method,
path_params=path_params,
header_params=header_params,
- body=change_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_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_dataguard_role(self, change_dataguard_role_details, autonomous_container_database_id, **kwargs):
- """
- Switch the Autonomous Container Database role between Standby and Snapshot Standby.
- For more information about changing Autonomous Container Databases Dataguard Role, see
- `Convert Physical Standby to Snapshot Standby`__ and `Convert Snapshot Standby to Physical Standby`__.
-
- __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-D3B503F1-0032-4B0D-9F00-ACAE8151AB80
- __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-E8D7E0EE-8244-467D-B33A-1BC6F969A0A4
-
-
- :param oci.database.models.ChangeDataguardRoleDetails change_dataguard_role_details: (required)
- Request to Change the Autonomous Container Database Dataguard role.
-
- :param str autonomous_container_database_id: (required)
- The Autonomous Container Database `OCID`__.
-
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
-
- :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
- may 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.
- 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.models.AutonomousContainerDatabase`
- :rtype: :class:`~oci.response.Response`
-
- :example:
- Click `here `__ to see an example of how to use change_dataguard_role API.
- """
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousContainerDatabaseId']
- resource_path = "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/changeDataguardRole"
- method = "POST"
- operation_name = "change_dataguard_role"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/ChangeDataguardRole"
-
- # 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"change_dataguard_role got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "autonomousContainerDatabaseId": autonomous_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:
- 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_dataguard_role_details,
- response_type="AutonomousContainerDatabase",
+ body=change_cloud_vm_cluster_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -2608,34 +2477,22 @@ def change_dataguard_role(self, change_dataguard_role_details, autonomous_contai
method=method,
path_params=path_params,
header_params=header_params,
- body=change_dataguard_role_details,
- response_type="AutonomousContainerDatabase",
+ body=change_cloud_vm_cluster_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_db_system_compartment(self, change_compartment_details, db_system_id, **kwargs):
+ def change_cloud_vm_cluster_subscription(self, change_cloud_vm_cluster_subscription_details, cloud_vm_cluster_id, **kwargs):
"""
- Moves the DB system and its dependent resources to the specified compartment.
- For more information about moving DB systems, see
- `Moving Database Resources to a Different Compartment`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
-
-
- :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move the DB system to a different compartment.
-
- **Note:** Deprecated for Exadata Cloud Service systems. Use the `new resource model APIs`__ instead.
+ Associate a cloud VM cluster with a different subscription.
- For Exadata Cloud Service instances, support for this API will end on May 15th, 2021. See `Switching an Exadata DB System to the New Resource Model and APIs`__ for details on converting existing Exadata DB systems to the new resource model.
- __ https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model
- __ https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem_topic-resource_model_conversion.htm
+ :param oci.database.models.ChangeCloudVmClusterSubscriptionDetails change_cloud_vm_cluster_subscription_details: (required)
+ Associate a cloud VM cluster with a different subscription.
- :param str db_system_id: (required)
- The DB system `OCID`__.
+ :param str cloud_vm_cluster_id: (required)
+ The cloud VM cluster `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -2670,14 +2527,14 @@ def change_db_system_compartment(self, change_compartment_details, db_system_id,
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_db_system_compartment API.
+ Click `here `__ to see an example of how to use change_cloud_vm_cluster_subscription API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['dbSystemId']
- resource_path = "/dbSystems/{dbSystemId}/actions/changeCompartment"
+ required_arguments = ['cloudVmClusterId']
+ resource_path = "/cloudVmClusters/{cloudVmClusterId}/actions/changeSubscription"
method = "POST"
- operation_name = "change_db_system_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystem/ChangeDbSystemCompartment"
+ operation_name = "change_cloud_vm_cluster_subscription"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudVmCluster/ChangeCloudVmClusterSubscription"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -2690,10 +2547,10 @@ def change_db_system_compartment(self, change_compartment_details, db_system_id,
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_db_system_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_cloud_vm_cluster_subscription got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "dbSystemId": db_system_id
+ "cloudVmClusterId": cloud_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2727,7 +2584,7 @@ def change_db_system_compartment(self, change_compartment_details, db_system_id,
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_cloud_vm_cluster_subscription_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -2738,33 +2595,44 @@ def change_db_system_compartment(self, change_compartment_details, db_system_id,
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_cloud_vm_cluster_subscription_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_disaster_recovery_configuration(self, autonomous_database_id, change_disaster_recovery_configuration_details, **kwargs):
+ def change_database_software_image_compartment(self, change_compartment_details, database_software_image_id, **kwargs):
"""
- This operation updates the cross-region disaster recovery (DR) details of the standby Autonomous Database Serverless database, and must be run on the standby side.
+ Move the Database Software Image and its dependent resources to the specified compartment.
+ For more information about moving Databse Software Images, see
+ `Moving Database Resources to a Different Compartment`__.
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param str autonomous_database_id: (required)
- The database `OCID`__.
+
+ :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
+ Request to move Database Software Image to a different compartment
+
+ :param str database_software_image_id: (required)
+ The DB system `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param oci.database.models.ChangeDisasterRecoveryConfigurationDetails change_disaster_recovery_configuration_details: (required)
- Request to update the cross-region disaster recovery (DR) details of the standby Autonomous Database Serverless database.
+ :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
+ may be rejected).
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
: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.
@@ -2777,33 +2645,34 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_
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.models.AutonomousDatabase`
+ :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_disaster_recovery_configuration API.
+ Click `here `__ to see an example of how to use change_database_software_image_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/changeDisasterRecoveryConfiguration"
- method = "PUT"
- operation_name = "change_disaster_recovery_configuration"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ChangeDisasterRecoveryConfiguration"
+ required_arguments = ['databaseSoftwareImageId']
+ resource_path = "/databaseSoftwareImages/{databaseSoftwareImageId}/actions/changeCompartment"
+ method = "POST"
+ operation_name = "change_database_software_image_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSoftwareImage/ChangeDatabaseSoftwareImageCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "if_match",
- "opc_request_id"
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_disaster_recovery_configuration got unknown kwargs: {extra_kwargs!r}")
+ f"change_database_software_image_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousDatabaseId": autonomous_database_id
+ "databaseSoftwareImageId": database_software_image_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2815,8 +2684,9 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_
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)
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", 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}
@@ -2827,6 +2697,7 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_
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(
@@ -2835,8 +2706,7 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_
method=method,
path_params=path_params,
header_params=header_params,
- body=change_disaster_recovery_configuration_details,
- response_type="AutonomousDatabase",
+ body=change_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -2847,27 +2717,33 @@ def change_disaster_recovery_configuration(self, autonomous_database_id, change_
method=method,
path_params=path_params,
header_params=header_params,
- body=change_disaster_recovery_configuration_details,
- response_type="AutonomousDatabase",
+ body=change_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_exadata_infrastructure_compartment(self, change_exadata_infrastructure_compartment_details, exadata_infrastructure_id, **kwargs):
+ def change_dataguard_role(self, change_dataguard_role_details, autonomous_container_database_id, **kwargs):
"""
- Moves an Exadata infrastructure resource and its dependent resources to another compartment. Applies to Exadata Cloud@Customer instances only.
- To move an Exadata Cloud Service infrastructure resource to another compartment, use the :func:`change_cloud_exadata_infrastructure_compartment` operation.
+ Switch the Autonomous Container Database role between Standby and Snapshot Standby.
+ For more information about changing Autonomous Container Databases Dataguard Role, see
+ `Convert Physical Standby to Snapshot Standby`__ and `Convert Snapshot Standby to Physical Standby`__.
+ __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-D3B503F1-0032-4B0D-9F00-ACAE8151AB80
+ __ https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbcl/index.html#ADBCL-GUID-E8D7E0EE-8244-467D-B33A-1BC6F969A0A4
- :param oci.database.models.ChangeExadataInfrastructureCompartmentDetails change_exadata_infrastructure_compartment_details: (required)
- Request to move Exadata infrastructure to a different compartment
- :param str exadata_infrastructure_id: (required)
- The Exadata infrastructure `OCID`__.
+ :param oci.database.models.ChangeDataguardRoleDetails change_dataguard_role_details: (required)
+ Request to Change the Autonomous Container Database Dataguard role.
+
+ :param str autonomous_container_database_id: (required)
+ The Autonomous Container Database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :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
@@ -2875,9 +2751,6 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
: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
@@ -2895,34 +2768,34 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousContainerDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_exadata_infrastructure_compartment API.
+ Click `here `__ to see an example of how to use change_dataguard_role API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['exadataInfrastructureId']
- resource_path = "/exadataInfrastructures/{exadataInfrastructureId}/actions/changeCompartment"
+ required_arguments = ['autonomousContainerDatabaseId']
+ resource_path = "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/actions/changeDataguardRole"
method = "POST"
- operation_name = "change_exadata_infrastructure_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/ChangeExadataInfrastructureCompartment"
+ operation_name = "change_dataguard_role"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/ChangeDataguardRole"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
"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"change_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_dataguard_role got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "exadataInfrastructureId": exadata_infrastructure_id
+ "autonomousContainerDatabaseId": autonomous_container_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -2934,8 +2807,8 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur
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),
+ "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}
@@ -2956,7 +2829,8 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur
method=method,
path_params=path_params,
header_params=header_params,
- body=change_exadata_infrastructure_compartment_details,
+ body=change_dataguard_role_details,
+ response_type="AutonomousContainerDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -2967,22 +2841,34 @@ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructur
method=method,
path_params=path_params,
header_params=header_params,
- body=change_exadata_infrastructure_compartment_details,
+ body=change_dataguard_role_details,
+ response_type="AutonomousContainerDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartment_details, exadb_vm_cluster_id, **kwargs):
+ def change_db_system_compartment(self, change_compartment_details, db_system_id, **kwargs):
"""
- Moves a Exadata VM cluster on Exascale Infrastructure and its dependent resources to another compartment. Applies to Exadata Database Service on Exascale Infrastructure only.
+ Moves the DB system and its dependent resources to the specified compartment.
+ For more information about moving DB systems, see
+ `Moving Database Resources to a Different Compartment`__.
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param oci.database.models.ChangeExadbVmClusterCompartmentDetails change_exadb_vm_cluster_compartment_details: (required)
- Request to move Exadata VM cluster on Exascale Infrastructure to a different compartment
- :param str exadb_vm_cluster_id: (required)
- The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
+ :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
+ Request to move the DB system to a different compartment.
+
+ **Note:** Deprecated for Exadata Cloud Service systems. Use the `new resource model APIs`__ instead.
+
+ For Exadata Cloud Service instances, support for this API will end on May 15th, 2021. See `Switching an Exadata DB System to the New Resource Model and APIs`__ for details on converting existing Exadata DB systems to the new resource model.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model
+ __ https://docs.cloud.oracle.com/iaas/Content/Database/Concepts/exaflexsystem_topic-resource_model_conversion.htm
+
+ :param str db_system_id: (required)
+ The DB system `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -3017,14 +2903,14 @@ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartmen
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_exadb_vm_cluster_compartment API.
+ Click `here `__ to see an example of how to use change_db_system_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['exadbVmClusterId']
- resource_path = "/exadbVmClusters/{exadbVmClusterId}/actions/changeCompartment"
+ required_arguments = ['dbSystemId']
+ resource_path = "/dbSystems/{dbSystemId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_exadb_vm_cluster_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/ChangeExadbVmClusterCompartment"
+ operation_name = "change_db_system_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbSystem/ChangeDbSystemCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -3037,10 +2923,10 @@ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartmen
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_exadb_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_db_system_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "exadbVmClusterId": exadb_vm_cluster_id
+ "dbSystemId": db_system_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3074,7 +2960,7 @@ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartmen
method=method,
path_params=path_params,
header_params=header_params,
- body=change_exadb_vm_cluster_compartment_details,
+ body=change_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -3085,40 +2971,33 @@ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartmen
method=method,
path_params=path_params,
header_params=header_params,
- body=change_exadb_vm_cluster_compartment_details,
+ body=change_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_exascale_db_storage_vault_compartment(self, change_exascale_db_storage_vault_compartment_details, exascale_db_storage_vault_id, **kwargs):
+ def change_disaster_recovery_configuration(self, autonomous_database_id, change_disaster_recovery_configuration_details, **kwargs):
"""
- Moves a Exadata Database Storage Vault to another compartment.
-
+ This operation updates the cross-region disaster recovery (DR) details of the standby Autonomous Database Serverless database, and must be run on the standby side.
- :param oci.database.models.ChangeExascaleDbStorageVaultCompartmentDetails change_exascale_db_storage_vault_compartment_details: (required)
- Request to move Exadata Database Storage Vault to a different compartment
- :param str exascale_db_storage_vault_id: (required)
- The Exadata Database Storage Vault `OCID`__.
+ :param str autonomous_database_id: (required)
+ The database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
- :param str opc_request_id: (optional)
- Unique identifier for the request.
+ :param oci.database.models.ChangeDisasterRecoveryConfigurationDetails change_disaster_recovery_configuration_details: (required)
+ Request to update the cross-region disaster recovery (DR) details of the standby Autonomous Database Serverless 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.
@@ -3131,34 +3010,33 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_exascale_db_storage_vault_compartment API.
+ Click `here `__ to see an example of how to use change_disaster_recovery_configuration API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['exascaleDbStorageVaultId']
- resource_path = "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}/actions/changeCompartment"
- method = "POST"
- operation_name = "change_exascale_db_storage_vault_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ChangeExascaleDbStorageVaultCompartment"
+ required_arguments = ['autonomousDatabaseId']
+ resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/changeDisasterRecoveryConfiguration"
+ method = "PUT"
+ operation_name = "change_disaster_recovery_configuration"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ChangeDisasterRecoveryConfiguration"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id",
- "if_match"
+ "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"change_exascale_db_storage_vault_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_disaster_recovery_configuration got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "exascaleDbStorageVaultId": exascale_db_storage_vault_id
+ "autonomousDatabaseId": autonomous_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3170,9 +3048,8 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag
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),
- "if-match": kwargs.get("if_match", 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}
@@ -3183,7 +3060,6 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag
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(
@@ -3192,7 +3068,8 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag
method=method,
path_params=path_params,
header_params=header_params,
- body=change_exascale_db_storage_vault_compartment_details,
+ body=change_disaster_recovery_configuration_details,
+ response_type="AutonomousDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -3203,27 +3080,24 @@ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storag
method=method,
path_params=path_params,
header_params=header_params,
- body=change_exascale_db_storage_vault_compartment_details,
+ body=change_disaster_recovery_configuration_details,
+ response_type="AutonomousDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def change_external_container_database_compartment(self, change_compartment_details, external_container_database_id, **kwargs):
+ def change_exadata_infrastructure_compartment(self, change_exadata_infrastructure_compartment_details, exadata_infrastructure_id, **kwargs):
"""
- Move the :func:`create_external_container_database_details`
- and its dependent resources to the specified compartment.
- For more information about moving external container databases, see
- `Moving Database Resources to a Different Compartment`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
+ Moves an Exadata infrastructure resource and its dependent resources to another compartment. Applies to Exadata Cloud@Customer instances only.
+ To move an Exadata Cloud Service infrastructure resource to another compartment, use the :func:`change_cloud_exadata_infrastructure_compartment` operation.
- :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move the external container database to a different compartment.
+ :param oci.database.models.ChangeExadataInfrastructureCompartmentDetails change_exadata_infrastructure_compartment_details: (required)
+ Request to move Exadata infrastructure to a different compartment
- :param str external_container_database_id: (required)
- The ExternalContainerDatabase `OCID`__.
+ :param str exadata_infrastructure_id: (required)
+ The Exadata infrastructure `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -3258,14 +3132,14 @@ def change_external_container_database_compartment(self, change_compartment_deta
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_external_container_database_compartment API.
+ Click `here `__ to see an example of how to use change_exadata_infrastructure_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalContainerDatabaseId']
- resource_path = "/externalcontainerdatabases/{externalContainerDatabaseId}/actions/changeCompartment"
+ required_arguments = ['exadataInfrastructureId']
+ resource_path = "/exadataInfrastructures/{exadataInfrastructureId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_external_container_database_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/ChangeExternalContainerDatabaseCompartment"
+ operation_name = "change_exadata_infrastructure_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/ChangeExadataInfrastructureCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -3278,10 +3152,10 @@ def change_external_container_database_compartment(self, change_compartment_deta
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_external_container_database_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_exadata_infrastructure_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalContainerDatabaseId": external_container_database_id
+ "exadataInfrastructureId": exadata_infrastructure_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3315,7 +3189,7 @@ def change_external_container_database_compartment(self, change_compartment_deta
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_exadata_infrastructure_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -3326,26 +3200,22 @@ def change_external_container_database_compartment(self, change_compartment_deta
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_exadata_infrastructure_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_external_non_container_database_compartment(self, change_compartment_details, external_non_container_database_id, **kwargs):
+ def change_exadb_vm_cluster_compartment(self, change_exadb_vm_cluster_compartment_details, exadb_vm_cluster_id, **kwargs):
"""
- Move the external non-container database and its dependent resources to the specified compartment.
- For more information about moving external non-container databases, see
- `Moving Database Resources to a Different Compartment`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
+ Moves a Exadata VM cluster on Exascale Infrastructure and its dependent resources to another compartment. Applies to Exadata Database Service on Exascale Infrastructure only.
- :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move the external non-container database to a different compartment.
+ :param oci.database.models.ChangeExadbVmClusterCompartmentDetails change_exadb_vm_cluster_compartment_details: (required)
+ Request to move Exadata VM cluster on Exascale Infrastructure to a different compartment
- :param str external_non_container_database_id: (required)
- The external non-container database `OCID`__.
+ :param str exadb_vm_cluster_id: (required)
+ The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -3380,14 +3250,14 @@ def change_external_non_container_database_compartment(self, change_compartment_
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_external_non_container_database_compartment API.
+ Click `here `__ to see an example of how to use change_exadb_vm_cluster_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalNonContainerDatabaseId']
- resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}/actions/changeCompartment"
+ required_arguments = ['exadbVmClusterId']
+ resource_path = "/exadbVmClusters/{exadbVmClusterId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_external_non_container_database_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/ChangeExternalNonContainerDatabaseCompartment"
+ operation_name = "change_exadb_vm_cluster_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/ChangeExadbVmClusterCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -3400,10 +3270,10 @@ def change_external_non_container_database_compartment(self, change_compartment_
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_external_non_container_database_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_exadb_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalNonContainerDatabaseId": external_non_container_database_id
+ "exadbVmClusterId": exadb_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3437,7 +3307,7 @@ def change_external_non_container_database_compartment(self, change_compartment_
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_exadb_vm_cluster_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -3448,29 +3318,22 @@ def change_external_non_container_database_compartment(self, change_compartment_
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_exadb_vm_cluster_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_external_pluggable_database_compartment(self, change_compartment_details, external_pluggable_database_id, **kwargs):
+ def change_exascale_db_storage_vault_compartment(self, change_exascale_db_storage_vault_compartment_details, exascale_db_storage_vault_id, **kwargs):
"""
- Move the :func:`create_external_pluggable_database_details` and
- its dependent resources to the specified compartment.
- For more information about moving external pluggable databases, see
- `Moving Database Resources to a Different Compartment`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
+ Moves a Exadata Database Storage Vault to another compartment.
- :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move the
- :func:`create_external_pluggable_database_details` resource
- to a different compartment.
+ :param oci.database.models.ChangeExascaleDbStorageVaultCompartmentDetails change_exascale_db_storage_vault_compartment_details: (required)
+ Request to move Exadata Database Storage Vault to a different compartment
- :param str external_pluggable_database_id: (required)
- The ExternalPluggableDatabaseId `OCID`__.
+ :param str exascale_db_storage_vault_id: (required)
+ The Exadata Database Storage Vault `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -3505,14 +3368,14 @@ def change_external_pluggable_database_compartment(self, change_compartment_deta
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_external_pluggable_database_compartment API.
+ Click `here `__ to see an example of how to use change_exascale_db_storage_vault_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalPluggableDatabaseId']
- resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}/actions/changeCompartment"
+ required_arguments = ['exascaleDbStorageVaultId']
+ resource_path = "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_external_pluggable_database_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/ChangeExternalPluggableDatabaseCompartment"
+ operation_name = "change_exascale_db_storage_vault_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ChangeExascaleDbStorageVaultCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -3525,10 +3388,10 @@ def change_external_pluggable_database_compartment(self, change_compartment_deta
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_external_pluggable_database_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_exascale_db_storage_vault_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalPluggableDatabaseId": external_pluggable_database_id
+ "exascaleDbStorageVaultId": exascale_db_storage_vault_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3562,7 +3425,7 @@ def change_external_pluggable_database_compartment(self, change_compartment_deta
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_exascale_db_storage_vault_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -3573,26 +3436,27 @@ def change_external_pluggable_database_compartment(self, change_compartment_deta
method=method,
path_params=path_params,
header_params=header_params,
- body=change_compartment_details,
+ body=change_exascale_db_storage_vault_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_key_store_compartment(self, change_key_store_compartment_details, key_store_id, **kwargs):
+ def change_external_container_database_compartment(self, change_compartment_details, external_container_database_id, **kwargs):
"""
- Move the key store resource to the specified compartment.
- For more information about moving key stores, see
+ Move the :func:`create_external_container_database_details`
+ and its dependent resources to the specified compartment.
+ For more information about moving external container databases, see
`Moving Database Resources to a Different Compartment`__.
__ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param oci.database.models.ChangeKeyStoreCompartmentDetails change_key_store_compartment_details: (required)
- Request to move key store to a different compartment
+ :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
+ Request to move the external container database to a different compartment.
- :param str key_store_id: (required)
- The `OCID`__ of the key store.
+ :param str external_container_database_id: (required)
+ The ExternalContainerDatabase `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -3627,14 +3491,14 @@ def change_key_store_compartment(self, change_key_store_compartment_details, key
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_key_store_compartment API.
+ Click `here `__ to see an example of how to use change_external_container_database_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['keyStoreId']
- resource_path = "/keyStores/{keyStoreId}/actions/changeCompartment"
+ required_arguments = ['externalContainerDatabaseId']
+ resource_path = "/externalcontainerdatabases/{externalContainerDatabaseId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_key_store_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/KeyStore/ChangeKeyStoreCompartment"
+ operation_name = "change_external_container_database_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/ChangeExternalContainerDatabaseCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -3647,10 +3511,10 @@ def change_key_store_compartment(self, change_key_store_compartment_details, key
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_key_store_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_external_container_database_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "keyStoreId": key_store_id
+ "externalContainerDatabaseId": external_container_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3684,7 +3548,7 @@ def change_key_store_compartment(self, change_key_store_compartment_details, key
method=method,
path_params=path_params,
header_params=header_params,
- body=change_key_store_compartment_details,
+ body=change_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -3695,140 +3559,26 @@ def change_key_store_compartment(self, change_key_store_compartment_details, key
method=method,
path_params=path_params,
header_params=header_params,
- body=change_key_store_compartment_details,
+ body=change_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_key_store_type(self, database_id, change_key_store_type_details, **kwargs):
- """
- Changes encryption key management type
-
-
- :param str database_id: (required)
- The database `OCID`__.
-
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
-
- :param oci.database.models.ChangeKeyStoreTypeDetails change_key_store_type_details: (required)
- Request to change the source of the encryption key for the 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_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
- may 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 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 change_key_store_type API.
+ def change_external_non_container_database_compartment(self, change_compartment_details, external_non_container_database_id, **kwargs):
"""
- # Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['databaseId']
- resource_path = "/databases/{databaseId}/actions/changeKeyStoreType"
- method = "POST"
- operation_name = "change_key_store_type"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ChangeKeyStoreType"
-
- # 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_key_store_type 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",
- "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:
- 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_key_store_type_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_key_store_type_details,
- allow_control_chars=kwargs.get('allow_control_chars'),
- operation_name=operation_name,
- api_reference_link=api_reference_link,
- required_arguments=required_arguments)
+ Move the external non-container database and its dependent resources to the specified compartment.
+ For more information about moving external non-container databases, see
+ `Moving Database Resources to a Different Compartment`__.
- def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_patch_id, **kwargs):
- """
- Move the one-off patch to the specified compartment.
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
:param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
- Request to move one-off patch to a different compartment
+ Request to move the external non-container database to a different compartment.
- :param str oneoff_patch_id: (required)
- The one-off patch `OCID`__.
+ :param str external_non_container_database_id: (required)
+ The external non-container database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -3863,14 +3613,14 @@ def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_pat
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_oneoff_patch_compartment API.
+ Click `here `__ to see an example of how to use change_external_non_container_database_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['oneoffPatchId']
- resource_path = "/oneoffPatches/{oneoffPatchId}/actions/changeCompartment"
+ required_arguments = ['externalNonContainerDatabaseId']
+ resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_oneoff_patch_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/ChangeOneoffPatchCompartment"
+ operation_name = "change_external_non_container_database_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/ChangeExternalNonContainerDatabaseCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -3883,10 +3633,10 @@ def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_pat
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_oneoff_patch_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_external_non_container_database_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "oneoffPatchId": oneoff_patch_id
+ "externalNonContainerDatabaseId": external_non_container_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3937,17 +3687,23 @@ def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_pat
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, vm_cluster_id, **kwargs):
+ def change_external_pluggable_database_compartment(self, change_compartment_details, external_pluggable_database_id, **kwargs):
"""
- Moves a VM cluster and its dependent resources to another compartment. Applies to Exadata Cloud@Customer instances only.
- To move a cloud VM cluster in an Exadata Cloud Service instance to another compartment, use the :func:`change_cloud_vm_cluster_compartment` operation.
+ Move the :func:`create_external_pluggable_database_details` and
+ its dependent resources to the specified compartment.
+ For more information about moving external pluggable databases, see
+ `Moving Database Resources to a Different Compartment`__.
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param oci.database.models.ChangeVmClusterCompartmentDetails change_vm_cluster_compartment_details: (required)
- Request to move the Exadata Cloud@Customer VM cluster to a different compartment.
- :param str vm_cluster_id: (required)
- The VM cluster `OCID`__.
+ :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
+ Request to move the
+ :func:`create_external_pluggable_database_details` resource
+ to a different compartment.
+
+ :param str external_pluggable_database_id: (required)
+ The ExternalPluggableDatabaseId `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -3982,14 +3738,14 @@ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, v
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use change_vm_cluster_compartment API.
+ Click `here `__ to see an example of how to use change_external_pluggable_database_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['vmClusterId']
- resource_path = "/vmClusters/{vmClusterId}/actions/changeCompartment"
+ required_arguments = ['externalPluggableDatabaseId']
+ resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}/actions/changeCompartment"
method = "POST"
- operation_name = "change_vm_cluster_compartment"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/ChangeVmClusterCompartment"
+ operation_name = "change_external_pluggable_database_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/ChangeExternalPluggableDatabaseCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -4002,10 +3758,10 @@ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, v
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"change_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
+ f"change_external_pluggable_database_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "vmClusterId": vm_cluster_id
+ "externalPluggableDatabaseId": external_pluggable_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4039,7 +3795,7 @@ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, v
method=method,
path_params=path_params,
header_params=header_params,
- body=change_vm_cluster_compartment_details,
+ body=change_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4050,21 +3806,26 @@ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, v
method=method,
path_params=path_params,
header_params=header_params,
- body=change_vm_cluster_compartment_details,
+ body=change_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 check_external_database_connector_connection_status(self, external_database_connector_id, **kwargs):
+ def change_key_store_compartment(self, change_key_store_compartment_details, key_store_id, **kwargs):
"""
- Check the status of the external database connection specified in this connector.
- This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields.
+ Move the key store resource to the specified compartment.
+ For more information about moving key stores, see
+ `Moving Database Resources to a Different Compartment`__.
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/databaseoverview.htm#moveRes
- :param str external_database_connector_id: (required)
- The `OCID`__ of the
- external database connector resource (`ExternalDatabaseConnectorId`).
+
+ :param oci.database.models.ChangeKeyStoreCompartmentDetails change_key_store_compartment_details: (required)
+ Request to move key store to a different compartment
+
+ :param str key_store_id: (required)
+ The `OCID`__ of the key store.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -4099,14 +3860,14 @@ def check_external_database_connector_connection_status(self, external_database_
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use check_external_database_connector_connection_status API.
+ Click `here `__ to see an example of how to use change_key_store_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalDatabaseConnectorId']
- resource_path = "/externaldatabaseconnectors/{externalDatabaseConnectorId}/actions/checkConnectionStatus"
+ required_arguments = ['keyStoreId']
+ resource_path = "/keyStores/{keyStoreId}/actions/changeCompartment"
method = "POST"
- operation_name = "check_external_database_connector_connection_status"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/CheckExternalDatabaseConnectorConnectionStatus"
+ operation_name = "change_key_store_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/KeyStore/ChangeKeyStoreCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -4119,10 +3880,10 @@ def check_external_database_connector_connection_status(self, external_database_
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"check_external_database_connector_connection_status got unknown kwargs: {extra_kwargs!r}")
+ f"change_key_store_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalDatabaseConnectorId": external_database_connector_id
+ "keyStoreId": key_store_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4156,6 +3917,7 @@ def check_external_database_connector_connection_status(self, external_database_
method=method,
path_params=path_params,
header_params=header_params,
+ body=change_key_store_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4166,27 +3928,24 @@ def check_external_database_connector_connection_status(self, external_database_
method=method,
path_params=path_params,
header_params=header_params,
+ body=change_key_store_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 complete_external_backup_job(self, backup_id, complete_external_backup_job_details, **kwargs):
+ def change_key_store_type(self, database_id, change_key_store_type_details, **kwargs):
"""
- Changes the status of the standalone backup resource to `ACTIVE` after the backup is created from the on-premises database and placed in Oracle Cloud Infrastructure Object Storage.
-
- **Note:** This API is used by an Oracle Cloud Infrastructure Python script that is packaged with the Oracle Cloud Infrastructure CLI. Oracle recommends that you use the script instead using the API directly. See `Migrating an On-Premises Database to Oracle Cloud Infrastructure by Creating a Backup in the Cloud`__ for more information.
-
- __ https://docs.cloud.oracle.com/Content/Database/Tasks/mig-onprembackup.htm
+ Changes encryption key management type
- :param str backup_id: (required)
- The backup `OCID`__.
+ :param str database_id: (required)
+ The database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param oci.database.models.CompleteExternalBackupJobDetails complete_external_backup_job_details: (required)
- Updates the status of the backup resource.
+ :param oci.database.models.ChangeKeyStoreTypeDetails change_key_store_type_details: (required)
+ Request to change the source of the encryption key for the database.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -4200,6 +3959,9 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -4212,33 +3974,34 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d
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.models.ExternalBackupJob`
+ :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 complete_external_backup_job API.
+ Click `here `__ to see an example of how to use change_key_store_type API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['backupId']
- resource_path = "/externalBackupJobs/{backupId}/actions/complete"
+ required_arguments = ['databaseId']
+ resource_path = "/databases/{databaseId}/actions/changeKeyStoreType"
method = "POST"
- operation_name = "complete_external_backup_job"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalBackupJob/CompleteExternalBackupJob"
+ operation_name = "change_key_store_type"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ChangeKeyStoreType"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
- "opc_retry_token"
+ "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"complete_external_backup_job got unknown kwargs: {extra_kwargs!r}")
+ f"change_key_store_type got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "backupId": backup_id
+ "databaseId": database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4251,7 +4014,8 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
- "opc-retry-token": kwargs.get("opc_retry_token", 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}
@@ -4271,8 +4035,7 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d
method=method,
path_params=path_params,
header_params=header_params,
- body=complete_external_backup_job_details,
- response_type="ExternalBackupJob",
+ body=change_key_store_type_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4283,29 +4046,142 @@ def complete_external_backup_job(self, backup_id, complete_external_backup_job_d
method=method,
path_params=path_params,
header_params=header_params,
- body=complete_external_backup_job_details,
- response_type="ExternalBackupJob",
+ body=change_key_store_type_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def configure_autonomous_database_vault_key(self, autonomous_database_id, configure_autonomous_database_vault_key_details, **kwargs):
+ def change_oneoff_patch_compartment(self, change_compartment_details, oneoff_patch_id, **kwargs):
"""
- Configures the Autonomous Database Vault service `key`__.
+ Move the one-off patch to the specified compartment.
- __ https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts
+ :param oci.database.models.ChangeCompartmentDetails change_compartment_details: (required)
+ Request to move one-off patch to a different compartment
- :param str autonomous_database_id: (required)
- The database `OCID`__.
+ :param str oneoff_patch_id: (required)
+ The one-off patch `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param oci.database.models.ConfigureAutonomousDatabaseVaultKeyDetails configure_autonomous_database_vault_key_details: (required)
- Configuration details for the Autonomous Database Vault service `key`__.
+ :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
+ may be rejected).
- __ https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+
+ :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.
+ 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_oneoff_patch_compartment API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['oneoffPatchId']
+ resource_path = "/oneoffPatches/{oneoffPatchId}/actions/changeCompartment"
+ method = "POST"
+ operation_name = "change_oneoff_patch_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/ChangeOneoffPatchCompartment"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ f"change_oneoff_patch_compartment got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "oneoffPatchId": oneoff_patch_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-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", 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:
+ 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_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_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_scheduling_plan_compartment(self, change_scheduling_plan_compartment_details, scheduling_plan_id, **kwargs):
+ """
+ Moves an scheduling plan resource to another compartment.
+
+
+ :param oci.database.models.ChangeSchedulingPlanCompartmentDetails change_scheduling_plan_compartment_details: (required)
+ Request to move scheduling plan to a different compartment
+
+ :param str scheduling_plan_id: (required)
+ The Schedule Plan `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -4338,14 +4214,14 @@ def configure_autonomous_database_vault_key(self, autonomous_database_id, config
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use configure_autonomous_database_vault_key API.
+ Click `here `__ to see an example of how to use change_scheduling_plan_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/configureAutonomousDatabaseVaultKey"
+ required_arguments = ['schedulingPlanId']
+ resource_path = "/schedulingPlans/{schedulingPlanId}/actions/changeCompartment"
method = "POST"
- operation_name = "configure_autonomous_database_vault_key"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ConfigureAutonomousDatabaseVaultKey"
+ operation_name = "change_scheduling_plan_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/ChangeSchedulingPlanCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -4358,10 +4234,10 @@ def configure_autonomous_database_vault_key(self, autonomous_database_id, config
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"configure_autonomous_database_vault_key got unknown kwargs: {extra_kwargs!r}")
+ f"change_scheduling_plan_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousDatabaseId": autonomous_database_id
+ "schedulingPlanId": scheduling_plan_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4395,7 +4271,7 @@ def configure_autonomous_database_vault_key(self, autonomous_database_id, config
method=method,
path_params=path_params,
header_params=header_params,
- body=configure_autonomous_database_vault_key_details,
+ body=change_scheduling_plan_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4406,24 +4282,24 @@ def configure_autonomous_database_vault_key(self, autonomous_database_id, config
method=method,
path_params=path_params,
header_params=header_params,
- body=configure_autonomous_database_vault_key_details,
+ body=change_scheduling_plan_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 configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin_user_details, **kwargs):
+ def change_scheduling_policy_compartment(self, change_scheduling_policy_compartment_details, scheduling_policy_id, **kwargs):
"""
- This operation updates SaaS administrative user configuration of the Autonomous Database.
+ Moves an scheduling policy resource to another compartment.
- :param str autonomous_database_id: (required)
- The database `OCID`__.
+ :param oci.database.models.ChangeSchedulingPolicyCompartmentDetails change_scheduling_policy_compartment_details: (required)
+ Request to move scheduling policy to a different compartment
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param str scheduling_policy_id: (required)
+ The Scheduling Policy `OCID`__.
- :param oci.database.models.ConfigureSaasAdminUserDetails configure_saas_admin_user_details: (required)
- Request to update SaaS administrative user configuration of the Autonomous Database.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -4433,6 +4309,13 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin
: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
+ may 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.
@@ -4445,33 +4328,34 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin
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.models.AutonomousDatabase`
+ :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 configure_saas_admin_user API.
+ Click `here `__ to see an example of how to use change_scheduling_policy_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/configureSaasAdminUser"
+ required_arguments = ['schedulingPolicyId']
+ resource_path = "/schedulingPolicies/{schedulingPolicyId}/actions/changeCompartment"
method = "POST"
- operation_name = "configure_saas_admin_user"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ConfigureSaasAdminUser"
+ operation_name = "change_scheduling_policy_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/ChangeSchedulingPolicyCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
- "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"configure_saas_admin_user got unknown kwargs: {extra_kwargs!r}")
+ f"change_scheduling_policy_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousDatabaseId": autonomous_database_id
+ "schedulingPolicyId": scheduling_policy_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4484,7 +4368,8 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", missing),
- "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}
@@ -4495,6 +4380,7 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin
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(
@@ -4503,8 +4389,7 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin
method=method,
path_params=path_params,
header_params=header_params,
- body=configure_saas_admin_user_details,
- response_type="AutonomousDatabase",
+ body=change_scheduling_policy_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4515,21 +4400,23 @@ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin
method=method,
path_params=path_params,
header_params=header_params,
- body=configure_saas_admin_user_details,
- response_type="AutonomousDatabase",
+ body=change_scheduling_policy_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 confirm_key_store_details_are_correct(self, key_store_id, **kwargs):
+ def change_vm_cluster_compartment(self, change_vm_cluster_compartment_details, vm_cluster_id, **kwargs):
"""
- This is for user to confirm to DBaaS that the Oracle Key Valut (OKV) connection IPs, username and password are all correct. This operation will put
- the Key Store back into Active state. If details are incorrect, your OKV account may get locked after some unsuccessful attempts to connect.
+ Moves a VM cluster and its dependent resources to another compartment. Applies to Exadata Cloud@Customer instances only.
+ To move a cloud VM cluster in an Exadata Cloud Service instance to another compartment, use the :func:`change_cloud_vm_cluster_compartment` operation.
- :param str key_store_id: (required)
- The `OCID`__ of the key store.
+ :param oci.database.models.ChangeVmClusterCompartmentDetails change_vm_cluster_compartment_details: (required)
+ Request to move the Exadata Cloud@Customer VM cluster to a different compartment.
+
+ :param str vm_cluster_id: (required)
+ The VM cluster `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -4564,14 +4451,14 @@ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use confirm_key_store_details_are_correct API.
+ Click `here `__ to see an example of how to use change_vm_cluster_compartment API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['keyStoreId']
- resource_path = "/keyStores/{keyStoreId}/actions/confirmDetailsAreCorrect"
+ required_arguments = ['vmClusterId']
+ resource_path = "/vmClusters/{vmClusterId}/actions/changeCompartment"
method = "POST"
- operation_name = "confirm_key_store_details_are_correct"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/KeyStore/ConfirmKeyStoreDetailsAreCorrect"
+ operation_name = "change_vm_cluster_compartment"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/ChangeVmClusterCompartment"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -4584,10 +4471,10 @@ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"confirm_key_store_details_are_correct got unknown kwargs: {extra_kwargs!r}")
+ f"change_vm_cluster_compartment got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "keyStoreId": key_store_id
+ "vmClusterId": vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4621,6 +4508,7 @@ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
+ body=change_vm_cluster_compartment_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4631,32 +4519,39 @@ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
+ body=change_vm_cluster_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 convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs):
+ def check_external_database_connector_connection_status(self, external_database_connector_id, **kwargs):
"""
- Converts a non-container database to a pluggable database.
+ Check the status of the external database connection specified in this connector.
+ This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields.
- :param str database_id: (required)
- The database `OCID`__.
+ :param str external_database_connector_id: (required)
+ The `OCID`__ of the
+ external database connector resource (`ExternalDatabaseConnectorId`).
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param oci.database.models.ConvertToPdbDetails convert_to_pdb_details: (required)
- Request to convert a non-container database to a pluggable database.
+ :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
+ may be rejected).
+
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
: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.
@@ -4669,33 +4564,34 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs):
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.models.Database`
+ :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 convert_to_pdb API.
+ Click `here `__ to see an example of how to use check_external_database_connector_connection_status API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['databaseId']
- resource_path = "/databases/{databaseId}/actions/convertToPdb"
+ required_arguments = ['externalDatabaseConnectorId']
+ resource_path = "/externaldatabaseconnectors/{externalDatabaseConnectorId}/actions/checkConnectionStatus"
method = "POST"
- operation_name = "convert_to_pdb"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ConvertToPdb"
+ operation_name = "check_external_database_connector_connection_status"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/CheckExternalDatabaseConnectorConnectionStatus"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "if_match",
- "opc_request_id"
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"convert_to_pdb got unknown kwargs: {extra_kwargs!r}")
+ f"check_external_database_connector_connection_status got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "databaseId": database_id
+ "externalDatabaseConnectorId": external_database_connector_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4707,8 +4603,9 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs):
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)
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", 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}
@@ -4719,6 +4616,7 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs):
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(
@@ -4727,8 +4625,6 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- body=convert_to_pdb_details,
- response_type="Database",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4739,35 +4635,33 @@ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- body=convert_to_pdb_details,
- response_type="Database",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_database_details, pluggable_database_id, **kwargs):
+ def complete_external_backup_job(self, backup_id, complete_external_backup_job_details, **kwargs):
"""
- Converts a Refreshable clone to Regular pluggable database (PDB).
- Pluggable Database will be in `READ_WRITE` openmode after conversion.
+ Changes the status of the standalone backup resource to `ACTIVE` after the backup is created from the on-premises database and placed in Oracle Cloud Infrastructure Object Storage.
+ **Note:** This API is used by an Oracle Cloud Infrastructure Python script that is packaged with the Oracle Cloud Infrastructure CLI. Oracle recommends that you use the script instead using the API directly. See `Migrating an On-Premises Database to Oracle Cloud Infrastructure by Creating a Backup in the Cloud`__ for more information.
- :param oci.database.models.ConvertToRegularPluggableDatabaseDetails convert_to_regular_pluggable_database_details: (required)
- Request to convert a Refreshable clone pluggable database (PDB) to a Regular pluggable database.
+ __ https://docs.cloud.oracle.com/Content/Database/Tasks/mig-onprembackup.htm
- :param str pluggable_database_id: (required)
- The database `OCID`__.
+
+ :param str backup_id: (required)
+ The backup `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param oci.database.models.CompleteExternalBackupJobDetails complete_external_backup_job_details: (required)
+ Updates the status of the backup resource.
+
: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 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
@@ -4787,34 +4681,33 @@ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_dat
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.models.PluggableDatabase`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExternalBackupJob`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use convert_to_regular_pluggable_database API.
+ Click `here `__ to see an example of how to use complete_external_backup_job API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['pluggableDatabaseId']
- resource_path = "/pluggableDatabases/{pluggableDatabaseId}/actions/convertToRegular"
+ required_arguments = ['backupId']
+ resource_path = "/externalBackupJobs/{backupId}/actions/complete"
method = "POST"
- operation_name = "convert_to_regular_pluggable_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/ConvertToRegularPluggableDatabase"
+ operation_name = "complete_external_backup_job"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalBackupJob/CompleteExternalBackupJob"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
- "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"convert_to_regular_pluggable_database got unknown kwargs: {extra_kwargs!r}")
+ f"complete_external_backup_job got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "pluggableDatabaseId": pluggable_database_id
+ "backupId": backup_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -4827,7 +4720,6 @@ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_dat
"accept": "application/json",
"content-type": "application/json",
"if-match": kwargs.get("if_match", 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}
@@ -4848,8 +4740,8 @@ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_dat
method=method,
path_params=path_params,
header_params=header_params,
- body=convert_to_regular_pluggable_database_details,
- response_type="PluggableDatabase",
+ body=complete_external_backup_job_details,
+ response_type="ExternalBackupJob",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4860,20 +4752,37 @@ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_dat
method=method,
path_params=path_params,
header_params=header_params,
- body=convert_to_regular_pluggable_database_details,
- response_type="PluggableDatabase",
+ body=complete_external_backup_job_details,
+ response_type="ExternalBackupJob",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_application_vip(self, create_application_vip_details, **kwargs):
+ def configure_autonomous_database_vault_key(self, autonomous_database_id, configure_autonomous_database_vault_key_details, **kwargs):
"""
- Creates a new application virtual IP (VIP) address in the specified cloud VM cluster based on the request parameters you provide.
+ Configures the Autonomous Database Vault service `key`__.
+ __ https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts
- :param oci.database.models.CreateApplicationVipDetails create_application_vip_details: (required)
- Request to create a new application virtual IP (VIP) address.
+
+ :param str autonomous_database_id: (required)
+ The database `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.database.models.ConfigureAutonomousDatabaseVaultKeyDetails configure_autonomous_database_vault_key_details: (required)
+ Configuration details for the Autonomous Database Vault service `key`__.
+
+ __ https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm#concepts
+
+ :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 str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -4882,9 +4791,6 @@ def create_application_vip(self, create_application_vip_details, **kwargs):
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -4897,36 +4803,48 @@ def create_application_vip(self, create_application_vip_details, **kwargs):
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.models.ApplicationVip`
+ :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 create_application_vip API.
+ Click `here `__ to see an example of how to use configure_autonomous_database_vault_key API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = []
- resource_path = "/applicationVip"
+ required_arguments = ['autonomousDatabaseId']
+ resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/configureAutonomousDatabaseVaultKey"
method = "POST"
- operation_name = "create_application_vip"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ApplicationVip/CreateApplicationVip"
+ operation_name = "configure_autonomous_database_vault_key"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ConfigureAutonomousDatabaseVaultKey"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id"
+ "if_match",
+ "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"create_application_vip got unknown kwargs: {extra_kwargs!r}")
+ f"configure_autonomous_database_vault_key got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "autonomousDatabaseId": autonomous_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-retry-token": kwargs.get("opc_retry_token", missing),
- "opc-request-id": kwargs.get("opc_request_id", missing)
+ "if-match": kwargs.get("if_match", 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}
@@ -4944,9 +4862,9 @@ def create_application_vip(self, create_application_vip_details, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_application_vip_details,
- response_type="ApplicationVip",
+ body=configure_autonomous_database_vault_key_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -4955,28 +4873,34 @@ def create_application_vip(self, create_application_vip_details, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_application_vip_details,
- response_type="ApplicationVip",
+ body=configure_autonomous_database_vault_key_details,
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_autonomous_container_database(self, create_autonomous_container_database_details, **kwargs):
+ def configure_saas_admin_user(self, autonomous_database_id, configure_saas_admin_user_details, **kwargs):
"""
- Creates an Autonomous Container Database in the specified Autonomous Exadata Infrastructure.
+ This operation updates SaaS administrative user configuration of the Autonomous Database.
- :param oci.database.models.CreateAutonomousContainerDatabaseDetails create_autonomous_container_database_details: (required)
- Request to create an Autonomous Container Database in a specified Autonomous Exadata Infrastructure or in Autonomous VM Cluster.
+ :param str autonomous_database_id: (required)
+ The database `OCID`__.
- :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
- may be rejected).
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.database.models.ConfigureSaasAdminUserDetails configure_saas_admin_user_details: (required)
+ Request to update SaaS administrative user configuration of the Autonomous 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.
@@ -4990,34 +4914,46 @@ def create_autonomous_container_database(self, create_autonomous_container_datab
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.models.AutonomousContainerDatabase`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_autonomous_container_database API.
+ Click `here `__ to see an example of how to use configure_saas_admin_user API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = []
- resource_path = "/autonomousContainerDatabases"
+ required_arguments = ['autonomousDatabaseId']
+ resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/configureSaasAdminUser"
method = "POST"
- operation_name = "create_autonomous_container_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/CreateAutonomousContainerDatabase"
+ operation_name = "configure_saas_admin_user"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/ConfigureSaasAdminUser"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "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"create_autonomous_container_database got unknown kwargs: {extra_kwargs!r}")
+ f"configure_saas_admin_user got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "autonomousDatabaseId": autonomous_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-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}
@@ -5028,16 +4964,16 @@ def create_autonomous_container_database(self, create_autonomous_container_datab
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=create_autonomous_container_database_details,
- response_type="AutonomousContainerDatabase",
+ body=configure_saas_admin_user_details,
+ response_type="AutonomousDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5046,37 +4982,26 @@ def create_autonomous_container_database(self, create_autonomous_container_datab
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_autonomous_container_database_details,
- response_type="AutonomousContainerDatabase",
+ body=configure_saas_admin_user_details,
+ response_type="AutonomousDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_autonomous_container_database_dataguard_association(self, autonomous_container_database_id, create_autonomous_container_database_dataguard_association_details, **kwargs):
+ def confirm_key_store_details_are_correct(self, key_store_id, **kwargs):
"""
- Create a new Autonomous Data Guard association. An Autonomous Data Guard association represents the replication relationship between the
- specified Autonomous Container database and a peer Autonomous Container database. For more information, see `Using Oracle Data Guard`__.
-
- All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID
- called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response.
- You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the
- resource in the Console. For more information, see
- `Resource Identifiers`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Tasks/usingdataguard.htm
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ This is for user to confirm to DBaaS that the Oracle Key Valut (OKV) connection IPs, username and password are all correct. This operation will put
+ the Key Store back into Active state. If details are incorrect, your OKV account may get locked after some unsuccessful attempts to connect.
- :param str autonomous_container_database_id: (required)
- The Autonomous Container Database `OCID`__.
+ :param str key_store_id: (required)
+ The `OCID`__ of the key store.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param oci.database.models.CreateAutonomousContainerDatabaseDataguardAssociationDetails create_autonomous_container_database_dataguard_association_details: (required)
- A request to create an Autonomous Data Guard association.
-
: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
@@ -5084,6 +5009,14 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
+ :param str opc_request_id: (optional)
+ Unique identifier for the request.
+
+ :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.
@@ -5096,32 +5029,34 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_
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.models.AutonomousContainerDatabaseDataguardAssociation`
+ :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 create_autonomous_container_database_dataguard_association API.
+ Click `here `__ to see an example of how to use confirm_key_store_details_are_correct API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousContainerDatabaseId']
- resource_path = "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/autonomousContainerDatabaseDataguardAssociations"
+ required_arguments = ['keyStoreId']
+ resource_path = "/keyStores/{keyStoreId}/actions/confirmDetailsAreCorrect"
method = "POST"
- operation_name = "create_autonomous_container_database_dataguard_association"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabaseDataguardAssociation/CreateAutonomousContainerDatabaseDataguardAssociation"
+ operation_name = "confirm_key_store_details_are_correct"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/KeyStore/ConfirmKeyStoreDetailsAreCorrect"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token"
+ "opc_retry_token",
+ "opc_request_id",
+ "if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}")
+ f"confirm_key_store_details_are_correct got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousContainerDatabaseId": autonomous_container_database_id
+ "keyStoreId": key_store_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -5133,7 +5068,9 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-retry-token": kwargs.get("opc_retry_token", missing)
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
+ "opc-request-id": kwargs.get("opc_request_id", 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}
@@ -5153,8 +5090,6 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_
method=method,
path_params=path_params,
header_params=header_params,
- body=create_autonomous_container_database_dataguard_association_details,
- response_type="AutonomousContainerDatabaseDataguardAssociation",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5165,27 +5100,28 @@ def create_autonomous_container_database_dataguard_association(self, autonomous_
method=method,
path_params=path_params,
header_params=header_params,
- body=create_autonomous_container_database_dataguard_association_details,
- response_type="AutonomousContainerDatabaseDataguardAssociation",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_autonomous_database(self, create_autonomous_database_details, **kwargs):
+ def convert_to_pdb(self, database_id, convert_to_pdb_details, **kwargs):
"""
- Creates a new Autonomous Database.
+ Converts a non-container database to a pluggable database.
- :param oci.database.models.CreateAutonomousDatabaseBase create_autonomous_database_details: (required)
- Request to create a new Autonomous Database.
+ :param str database_id: (required)
+ The database `OCID`__.
- :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
- may be rejected).
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.database.models.ConvertToPdbDetails convert_to_pdb_details: (required)
+ Request to convert a non-container database to a pluggable 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.
@@ -5202,35 +5138,45 @@ def create_autonomous_database(self, create_autonomous_database_details, **kwarg
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.models.AutonomousDatabase`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.Database`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_autonomous_database API.
+ Click `here `__ to see an example of how to use convert_to_pdb API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = []
- resource_path = "/autonomousDatabases"
+ required_arguments = ['databaseId']
+ resource_path = "/databases/{databaseId}/actions/convertToPdb"
method = "POST"
- operation_name = "create_autonomous_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/CreateAutonomousDatabase"
+ operation_name = "convert_to_pdb"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/ConvertToPdb"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "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"create_autonomous_database got unknown kwargs: {extra_kwargs!r}")
+ f"convert_to_pdb 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-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}
@@ -5242,16 +5188,16 @@ def create_autonomous_database(self, create_autonomous_database_details, **kwarg
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=create_autonomous_database_details,
- response_type="AutonomousDatabase",
+ body=convert_to_pdb_details,
+ response_type="Database",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5260,21 +5206,36 @@ def create_autonomous_database(self, create_autonomous_database_details, **kwarg
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_autonomous_database_details,
- response_type="AutonomousDatabase",
+ body=convert_to_pdb_details,
+ response_type="Database",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_autonomous_database_backup(self, create_autonomous_database_backup_details, **kwargs):
+ def convert_to_regular_pluggable_database(self, convert_to_regular_pluggable_database_details, pluggable_database_id, **kwargs):
"""
- Creates a new Autonomous Database backup for the specified database based on the provided request parameters.
+ Converts a Refreshable clone to Regular pluggable database (PDB).
+ Pluggable Database will be in `READ_WRITE` openmode after conversion.
- :param oci.database.models.CreateAutonomousDatabaseBackupDetails create_autonomous_database_backup_details: (required)
- Request to create a new Autonomous Database backup.
+ :param oci.database.models.ConvertToRegularPluggableDatabaseDetails convert_to_regular_pluggable_database_details: (required)
+ Request to convert a Refreshable clone pluggable database (PDB) to a Regular pluggable database.
+
+ :param str pluggable_database_id: (required)
+ The database `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :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 str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -5283,9 +5244,6 @@ def create_autonomous_database_backup(self, create_autonomous_database_backup_de
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -5298,36 +5256,48 @@ def create_autonomous_database_backup(self, create_autonomous_database_backup_de
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.models.AutonomousDatabaseBackup`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.PluggableDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_autonomous_database_backup API.
+ Click `here `__ to see an example of how to use convert_to_regular_pluggable_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = []
- resource_path = "/autonomousDatabaseBackups"
+ required_arguments = ['pluggableDatabaseId']
+ resource_path = "/pluggableDatabases/{pluggableDatabaseId}/actions/convertToRegular"
method = "POST"
- operation_name = "create_autonomous_database_backup"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/CreateAutonomousDatabaseBackup"
+ operation_name = "convert_to_regular_pluggable_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/ConvertToRegularPluggableDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id"
+ "if_match",
+ "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"create_autonomous_database_backup got unknown kwargs: {extra_kwargs!r}")
+ f"convert_to_regular_pluggable_database 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-retry-token": kwargs.get("opc_retry_token", missing),
- "opc-request-id": kwargs.get("opc_request_id", missing)
+ "if-match": kwargs.get("if_match", 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}
@@ -5345,9 +5315,10 @@ def create_autonomous_database_backup(self, create_autonomous_database_backup_de
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_autonomous_database_backup_details,
- response_type="AutonomousDatabaseBackup",
+ body=convert_to_regular_pluggable_database_details,
+ response_type="PluggableDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5356,21 +5327,22 @@ def create_autonomous_database_backup(self, create_autonomous_database_backup_de
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_autonomous_database_backup_details,
- response_type="AutonomousDatabaseBackup",
+ body=convert_to_regular_pluggable_database_details,
+ response_type="PluggableDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_autonomous_database_software_image(self, create_autonomous_database_software_image_details, **kwargs):
+ def create_application_vip(self, create_application_vip_details, **kwargs):
"""
- create Autonomous Database Software Image in the specified compartment.
+ Creates a new application virtual IP (VIP) address in the specified cloud VM cluster based on the request parameters you provide.
- :param oci.database.models.CreateAutonomousDatabaseSoftwareImageDetails create_autonomous_database_software_image_details: (required)
- Request to create Autonomous Database Software Image.
+ :param oci.database.models.CreateApplicationVipDetails create_application_vip_details: (required)
+ Request to create a new application virtual IP (VIP) address.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -5394,18 +5366,18 @@ def create_autonomous_database_software_image(self, create_autonomous_database_s
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.models.AutonomousDatabaseSoftwareImage`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ApplicationVip`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_autonomous_database_software_image API.
+ Click `here `__ to see an example of how to use create_application_vip API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/autonomousDatabaseSoftwareImages"
+ resource_path = "/applicationVip"
method = "POST"
- operation_name = "create_autonomous_database_software_image"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseSoftwareImage/CreateAutonomousDatabaseSoftwareImage"
+ operation_name = "create_application_vip"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ApplicationVip/CreateApplicationVip"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -5417,7 +5389,7 @@ def create_autonomous_database_software_image(self, create_autonomous_database_s
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_autonomous_database_software_image got unknown kwargs: {extra_kwargs!r}")
+ f"create_application_vip got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -5442,8 +5414,8 @@ def create_autonomous_database_software_image(self, create_autonomous_database_s
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_autonomous_database_software_image_details,
- response_type="AutonomousDatabaseSoftwareImage",
+ body=create_application_vip_details,
+ response_type="ApplicationVip",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5453,20 +5425,20 @@ def create_autonomous_database_software_image(self, create_autonomous_database_s
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_autonomous_database_software_image_details,
- response_type="AutonomousDatabaseSoftwareImage",
+ body=create_application_vip_details,
+ response_type="ApplicationVip",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_autonomous_vm_cluster(self, create_autonomous_vm_cluster_details, **kwargs):
+ def create_autonomous_container_database(self, create_autonomous_container_database_details, **kwargs):
"""
- Creates an Autonomous VM cluster for Exadata Cloud@Customer. To create an Autonomous VM Cluster in the Oracle cloud, see :func:`create_cloud_autonomous_vm_cluster`.
+ Creates an Autonomous Container Database in the specified Autonomous Exadata Infrastructure.
- :param oci.database.models.CreateAutonomousVmClusterDetails create_autonomous_vm_cluster_details: (required)
- Request to create an Autonomous VM cluster.
+ :param oci.database.models.CreateAutonomousContainerDatabaseDetails create_autonomous_container_database_details: (required)
+ Request to create an Autonomous Container Database in a specified Autonomous Exadata Infrastructure or in Autonomous VM Cluster.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -5475,9 +5447,6 @@ def create_autonomous_vm_cluster(self, create_autonomous_vm_cluster_details, **k
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -5490,36 +5459,34 @@ def create_autonomous_vm_cluster(self, create_autonomous_vm_cluster_details, **k
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.models.AutonomousVmCluster`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousContainerDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_autonomous_vm_cluster API.
+ Click `here `__ to see an example of how to use create_autonomous_container_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/autonomousVmClusters"
+ resource_path = "/autonomousContainerDatabases"
method = "POST"
- operation_name = "create_autonomous_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/CreateAutonomousVmCluster"
+ operation_name = "create_autonomous_container_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabase/CreateAutonomousContainerDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "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"create_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"create_autonomous_container_database got unknown kwargs: {extra_kwargs!r}")
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)
+ "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}
@@ -5538,8 +5505,8 @@ def create_autonomous_vm_cluster(self, create_autonomous_vm_cluster_details, **k
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_autonomous_vm_cluster_details,
- response_type="AutonomousVmCluster",
+ body=create_autonomous_container_database_details,
+ response_type="AutonomousContainerDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5549,20 +5516,35 @@ def create_autonomous_vm_cluster(self, create_autonomous_vm_cluster_details, **k
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_autonomous_vm_cluster_details,
- response_type="AutonomousVmCluster",
+ body=create_autonomous_container_database_details,
+ response_type="AutonomousContainerDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_backup(self, create_backup_details, **kwargs):
+ def create_autonomous_container_database_dataguard_association(self, autonomous_container_database_id, create_autonomous_container_database_dataguard_association_details, **kwargs):
"""
- Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
-
+ Create a new Autonomous Data Guard association. An Autonomous Data Guard association represents the replication relationship between the
+ specified Autonomous Container database and a peer Autonomous Container database. For more information, see `Using Oracle Data Guard`__.
- :param oci.database.models.CreateBackupDetails create_backup_details: (required)
- Request to create a new database backup.
+ All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID
+ called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response.
+ You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the
+ resource in the Console. For more information, see
+ `Resource Identifiers`__.
+
+ __ https://docs.cloud.oracle.com/Content/Database/Tasks/usingdataguard.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param str autonomous_container_database_id: (required)
+ The Autonomous Container Database `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.database.models.CreateAutonomousContainerDatabaseDataguardAssociationDetails create_autonomous_container_database_dataguard_association_details: (required)
+ A request to create an Autonomous Data Guard association.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -5583,18 +5565,18 @@ def create_backup(self, create_backup_details, **kwargs):
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.models.Backup`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousContainerDatabaseDataguardAssociation`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_backup API.
+ Click `here `__ to see an example of how to use create_autonomous_container_database_dataguard_association API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = []
- resource_path = "/backups"
+ required_arguments = ['autonomousContainerDatabaseId']
+ resource_path = "/autonomousContainerDatabases/{autonomousContainerDatabaseId}/autonomousContainerDatabaseDataguardAssociations"
method = "POST"
- operation_name = "create_backup"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Backup/CreateBackup"
+ operation_name = "create_autonomous_container_database_dataguard_association"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousContainerDatabaseDataguardAssociation/CreateAutonomousContainerDatabaseDataguardAssociation"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -5605,7 +5587,17 @@ def create_backup(self, create_backup_details, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_backup got unknown kwargs: {extra_kwargs!r}")
+ f"create_autonomous_container_database_dataguard_association got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "autonomousContainerDatabaseId": autonomous_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",
@@ -5628,9 +5620,10 @@ def create_backup(self, create_backup_details, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_backup_details,
- response_type="Backup",
+ body=create_autonomous_container_database_dataguard_association_details,
+ response_type="AutonomousContainerDatabaseDataguardAssociation",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5639,21 +5632,22 @@ def create_backup(self, create_backup_details, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_backup_details,
- response_type="Backup",
+ body=create_autonomous_container_database_dataguard_association_details,
+ response_type="AutonomousContainerDatabaseDataguardAssociation",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_backup_destination(self, create_backup_destination_details, **kwargs):
+ def create_autonomous_database(self, create_autonomous_database_details, **kwargs):
"""
- Creates a backup destination in an Exadata Cloud@Customer system.
+ Creates a new Autonomous Database.
- :param oci.database.models.CreateBackupDestinationDetails create_backup_destination_details: (required)
- Request to create a new backup destination.
+ :param oci.database.models.CreateAutonomousDatabaseBase create_autonomous_database_details: (required)
+ Request to create a new Autonomous Database.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -5677,18 +5671,18 @@ def create_backup_destination(self, create_backup_destination_details, **kwargs)
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.models.BackupDestination`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_backup_destination API.
+ Click `here `__ to see an example of how to use create_autonomous_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/backupDestinations"
+ resource_path = "/autonomousDatabases"
method = "POST"
- operation_name = "create_backup_destination"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/BackupDestination/CreateBackupDestination"
+ operation_name = "create_autonomous_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/CreateAutonomousDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -5700,7 +5694,7 @@ def create_backup_destination(self, create_backup_destination_details, **kwargs)
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_backup_destination got unknown kwargs: {extra_kwargs!r}")
+ f"create_autonomous_database got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -5725,8 +5719,8 @@ def create_backup_destination(self, create_backup_destination_details, **kwargs)
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_backup_destination_details,
- response_type="BackupDestination",
+ body=create_autonomous_database_details,
+ response_type="AutonomousDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5736,20 +5730,20 @@ def create_backup_destination(self, create_backup_destination_details, **kwargs)
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_backup_destination_details,
- response_type="BackupDestination",
+ body=create_autonomous_database_details,
+ response_type="AutonomousDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_cloud_autonomous_vm_cluster(self, create_cloud_autonomous_vm_cluster_details, **kwargs):
+ def create_autonomous_database_backup(self, create_autonomous_database_backup_details, **kwargs):
"""
- Creates an Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see :func:`create_autonomous_vm_cluster`.
+ Creates a new Autonomous Database backup for the specified database based on the provided request parameters.
- :param oci.database.models.CreateCloudAutonomousVmClusterDetails create_cloud_autonomous_vm_cluster_details: (required)
- Request to create a cloud Autonomous VM cluster.
+ :param oci.database.models.CreateAutonomousDatabaseBackupDetails create_autonomous_database_backup_details: (required)
+ Request to create a new Autonomous Database backup.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -5773,18 +5767,18 @@ def create_cloud_autonomous_vm_cluster(self, create_cloud_autonomous_vm_cluster_
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.models.CloudAutonomousVmCluster`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousDatabaseBackup`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_cloud_autonomous_vm_cluster API.
+ Click `here `__ to see an example of how to use create_autonomous_database_backup API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/cloudAutonomousVmClusters"
+ resource_path = "/autonomousDatabaseBackups"
method = "POST"
- operation_name = "create_cloud_autonomous_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/CreateCloudAutonomousVmCluster"
+ operation_name = "create_autonomous_database_backup"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/CreateAutonomousDatabaseBackup"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -5796,7 +5790,7 @@ def create_cloud_autonomous_vm_cluster(self, create_cloud_autonomous_vm_cluster_
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_cloud_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"create_autonomous_database_backup got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -5821,8 +5815,8 @@ def create_cloud_autonomous_vm_cluster(self, create_cloud_autonomous_vm_cluster_
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_cloud_autonomous_vm_cluster_details,
- response_type="CloudAutonomousVmCluster",
+ body=create_autonomous_database_backup_details,
+ response_type="AutonomousDatabaseBackup",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5832,24 +5826,20 @@ def create_cloud_autonomous_vm_cluster(self, create_cloud_autonomous_vm_cluster_
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_cloud_autonomous_vm_cluster_details,
- response_type="CloudAutonomousVmCluster",
+ body=create_autonomous_database_backup_details,
+ response_type="AutonomousDatabaseBackup",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_cloud_exadata_infrastructure(self, create_cloud_exadata_infrastructure_details, **kwargs):
+ def create_autonomous_database_software_image(self, create_autonomous_database_software_image_details, **kwargs):
"""
- Creates a cloud Exadata infrastructure resource. This resource is used to create either an `Exadata Cloud Service`__ instance or an Autonomous Database on dedicated Exadata infrastructure.
-
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/exaoverview.htm
-
+ create Autonomous Database Software Image in the specified compartment.
- :param oci.database.models.CreateCloudExadataInfrastructureDetails create_cloud_exadata_infrastructure_details: (required)
- Request to create a cloud Exadata infrastructure resource in an `Exadata Cloud Service`__ instance.
- __ https://docs.cloud.oracle.com/Content/Database/Concepts/exaoverview.htm
+ :param oci.database.models.CreateAutonomousDatabaseSoftwareImageDetails create_autonomous_database_software_image_details: (required)
+ Request to create Autonomous Database Software Image.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -5873,18 +5863,18 @@ def create_cloud_exadata_infrastructure(self, create_cloud_exadata_infrastructur
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.models.CloudExadataInfrastructure`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousDatabaseSoftwareImage`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_cloud_exadata_infrastructure API.
+ Click `here `__ to see an example of how to use create_autonomous_database_software_image API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/cloudExadataInfrastructures"
+ resource_path = "/autonomousDatabaseSoftwareImages"
method = "POST"
- operation_name = "create_cloud_exadata_infrastructure"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/CreateCloudExadataInfrastructure"
+ operation_name = "create_autonomous_database_software_image"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseSoftwareImage/CreateAutonomousDatabaseSoftwareImage"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -5896,7 +5886,7 @@ def create_cloud_exadata_infrastructure(self, create_cloud_exadata_infrastructur
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}")
+ f"create_autonomous_database_software_image got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -5921,8 +5911,8 @@ def create_cloud_exadata_infrastructure(self, create_cloud_exadata_infrastructur
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_cloud_exadata_infrastructure_details,
- response_type="CloudExadataInfrastructure",
+ body=create_autonomous_database_software_image_details,
+ response_type="AutonomousDatabaseSoftwareImage",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -5932,22 +5922,20 @@ def create_cloud_exadata_infrastructure(self, create_cloud_exadata_infrastructur
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_cloud_exadata_infrastructure_details,
- response_type="CloudExadataInfrastructure",
+ body=create_autonomous_database_software_image_details,
+ response_type="AutonomousDatabaseSoftwareImage",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_cloud_vm_cluster(self, create_cloud_vm_cluster_details, **kwargs):
+ def create_autonomous_vm_cluster(self, create_autonomous_vm_cluster_details, **kwargs):
"""
- Creates a cloud VM cluster.
-
+ Creates an Autonomous VM cluster for Exadata Cloud@Customer. To create an Autonomous VM Cluster in the Oracle cloud, see :func:`create_cloud_autonomous_vm_cluster`.
- :param oci.database.models.CreateCloudVmClusterDetails create_cloud_vm_cluster_details: (required)
- Request to create a cloud VM cluster. Applies to Exadata Cloud Service instances only. See `The New Exadata Cloud Service Resource Model`__ for information on this resource type.
- __ https://docs.cloud.oracle.com/iaas/Content/Database/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model
+ :param oci.database.models.CreateAutonomousVmClusterDetails create_autonomous_vm_cluster_details: (required)
+ Request to create an Autonomous VM cluster.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -5971,18 +5959,18 @@ def create_cloud_vm_cluster(self, create_cloud_vm_cluster_details, **kwargs):
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.models.CloudVmCluster`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.AutonomousVmCluster`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_cloud_vm_cluster API.
+ Click `here `__ to see an example of how to use create_autonomous_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/cloudVmClusters"
+ resource_path = "/autonomousVmClusters"
method = "POST"
- operation_name = "create_cloud_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudVmCluster/CreateCloudVmCluster"
+ operation_name = "create_autonomous_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/CreateAutonomousVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -5994,7 +5982,7 @@ def create_cloud_vm_cluster(self, create_cloud_vm_cluster_details, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"create_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -6019,8 +6007,8 @@ def create_cloud_vm_cluster(self, create_cloud_vm_cluster_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_cloud_vm_cluster_details,
- response_type="CloudVmCluster",
+ body=create_autonomous_vm_cluster_details,
+ response_type="AutonomousVmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6030,27 +6018,20 @@ def create_cloud_vm_cluster(self, create_cloud_vm_cluster_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_cloud_vm_cluster_details,
- response_type="CloudVmCluster",
+ body=create_autonomous_vm_cluster_details,
+ response_type="AutonomousVmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_console_connection(self, create_console_connection_details, db_node_id, **kwargs):
+ def create_backup(self, create_backup_details, **kwargs):
"""
- Creates a new console connection to the specified database node.
- After the console connection has been created and is available,
- you connect to the console using SSH.
-
-
- :param oci.database.models.CreateConsoleConnectionDetails create_console_connection_details: (required)
- Request object for creating an CreateConsoleConnection
+ Creates a new backup in the specified database based on the request parameters you provide. If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
- :param str db_node_id: (required)
- The database node `OCID`__.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param oci.database.models.CreateBackupDetails create_backup_details: (required)
+ Request to create a new database backup.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6071,18 +6052,18 @@ def create_console_connection(self, create_console_connection_details, db_node_i
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.models.ConsoleConnection`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.Backup`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_console_connection API.
+ Click `here `__ to see an example of how to use create_backup API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['dbNodeId']
- resource_path = "/dbNodes/{dbNodeId}/consoleConnections"
+ required_arguments = []
+ resource_path = "/backups"
method = "POST"
- operation_name = "create_console_connection"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleConnection/CreateConsoleConnection"
+ operation_name = "create_backup"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Backup/CreateBackup"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -6093,17 +6074,7 @@ def create_console_connection(self, create_console_connection_details, db_node_i
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_console_connection got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "dbNodeId": db_node_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')
+ f"create_backup got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -6126,10 +6097,9 @@ def create_console_connection(self, create_console_connection_details, db_node_i
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
- body=create_console_connection_details,
- response_type="ConsoleConnection",
+ body=create_backup_details,
+ response_type="Backup",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6138,27 +6108,21 @@ def create_console_connection(self, create_console_connection_details, db_node_i
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
- body=create_console_connection_details,
- response_type="ConsoleConnection",
+ body=create_backup_details,
+ response_type="Backup",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_console_history(self, create_console_history_details, db_node_id, **kwargs):
+ def create_backup_destination(self, create_backup_destination_details, **kwargs):
"""
- Captures the most recent serial console data (up to a megabyte) for the specified database node.
-
-
- :param oci.database.models.CreateConsoleHistoryDetails create_console_history_details: (required)
- Request object for creating a console history.
+ Creates a backup destination in an Exadata Cloud@Customer system.
- :param str db_node_id: (required)
- The database node `OCID`__.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param oci.database.models.CreateBackupDestinationDetails create_backup_destination_details: (required)
+ Request to create a new backup destination.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6182,18 +6146,18 @@ def create_console_history(self, create_console_history_details, db_node_id, **k
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.models.ConsoleHistory`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.BackupDestination`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_console_history API.
+ Click `here `__ to see an example of how to use create_backup_destination API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['dbNodeId']
- resource_path = "/dbNodes/{dbNodeId}/consoleHistories"
+ required_arguments = []
+ resource_path = "/backupDestinations"
method = "POST"
- operation_name = "create_console_history"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleHistory/CreateConsoleHistory"
+ operation_name = "create_backup_destination"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/BackupDestination/CreateBackupDestination"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -6205,17 +6169,7 @@ def create_console_history(self, create_console_history_details, db_node_id, **k
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_console_history got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "dbNodeId": db_node_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')
+ f"create_backup_destination got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -6239,10 +6193,9 @@ def create_console_history(self, create_console_history_details, db_node_id, **k
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
- body=create_console_history_details,
- response_type="ConsoleHistory",
+ body=create_backup_destination_details,
+ response_type="BackupDestination",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6251,37 +6204,21 @@ def create_console_history(self, create_console_history_details, db_node_id, **k
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
- body=create_console_history_details,
- response_type="ConsoleHistory",
+ body=create_backup_destination_details,
+ response_type="BackupDestination",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_data_guard_association(self, database_id, create_data_guard_association_details, **kwargs):
+ def create_cloud_autonomous_vm_cluster(self, create_cloud_autonomous_vm_cluster_details, **kwargs):
"""
- Creates a new Data Guard association. A Data Guard association represents the replication relationship between the
- specified database and a peer database. For more information, see `Using Oracle Data Guard`__.
-
- All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID
- called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response.
- You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the
- resource in the Console. For more information, see
- `Resource Identifiers`__.
-
- __ https://docs.cloud.oracle.com/Content/Database/Tasks/usingdataguard.htm
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
-
-
- :param str database_id: (required)
- The database `OCID`__.
+ Creates an Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see :func:`create_autonomous_vm_cluster`.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param oci.database.models.CreateDataGuardAssociationDetails create_data_guard_association_details: (required)
- A request to create a Data Guard association.
+ :param oci.database.models.CreateCloudAutonomousVmClusterDetails create_cloud_autonomous_vm_cluster_details: (required)
+ Request to create a cloud Autonomous VM cluster.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6290,6 +6227,9 @@ def create_data_guard_association(self, database_id, create_data_guard_associati
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -6302,44 +6242,36 @@ def create_data_guard_association(self, database_id, create_data_guard_associati
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.models.DataGuardAssociation`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.CloudAutonomousVmCluster`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_data_guard_association API.
+ Click `here `__ to see an example of how to use create_cloud_autonomous_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['databaseId']
- resource_path = "/databases/{databaseId}/dataGuardAssociations"
+ required_arguments = []
+ resource_path = "/cloudAutonomousVmClusters"
method = "POST"
- operation_name = "create_data_guard_association"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DataGuardAssociation/CreateDataGuardAssociation"
+ operation_name = "create_cloud_autonomous_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/CreateCloudAutonomousVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token"
+ "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"create_data_guard_association 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')
+ f"create_cloud_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-retry-token": kwargs.get("opc_retry_token", 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}
@@ -6357,10 +6289,9 @@ def create_data_guard_association(self, database_id, create_data_guard_associati
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
- body=create_data_guard_association_details,
- response_type="DataGuardAssociation",
+ body=create_cloud_autonomous_vm_cluster_details,
+ response_type="CloudAutonomousVmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6369,22 +6300,25 @@ def create_data_guard_association(self, database_id, create_data_guard_associati
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
- body=create_data_guard_association_details,
- response_type="DataGuardAssociation",
+ body=create_cloud_autonomous_vm_cluster_details,
+ response_type="CloudAutonomousVmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_database(self, create_new_database_details, **kwargs):
+ def create_cloud_exadata_infrastructure(self, create_cloud_exadata_infrastructure_details, **kwargs):
"""
- Creates a new database in the specified Database Home. If the database version is provided, it must match the version of the Database Home. Applies to Exadata and Exadata Cloud@Customer systems.
+ Creates a cloud Exadata infrastructure resource. This resource is used to create either an `Exadata Cloud Service`__ instance or an Autonomous Database on dedicated Exadata infrastructure.
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/exaoverview.htm
- :param oci.database.models.CreateDatabaseBase create_new_database_details: (required)
- Request to create a new database.
+
+ :param oci.database.models.CreateCloudExadataInfrastructureDetails create_cloud_exadata_infrastructure_details: (required)
+ Request to create a cloud Exadata infrastructure resource in an `Exadata Cloud Service`__ instance.
+
+ __ https://docs.cloud.oracle.com/Content/Database/Concepts/exaoverview.htm
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6408,18 +6342,18 @@ def create_database(self, create_new_database_details, **kwargs):
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.models.Database`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.CloudExadataInfrastructure`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_database API.
+ Click `here `__ to see an example of how to use create_cloud_exadata_infrastructure API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/databases"
+ resource_path = "/cloudExadataInfrastructures"
method = "POST"
- operation_name = "create_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/CreateDatabase"
+ operation_name = "create_cloud_exadata_infrastructure"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/CreateCloudExadataInfrastructure"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -6431,7 +6365,7 @@ def create_database(self, create_new_database_details, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_database got unknown kwargs: {extra_kwargs!r}")
+ f"create_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -6456,8 +6390,8 @@ def create_database(self, create_new_database_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_new_database_details,
- response_type="Database",
+ body=create_cloud_exadata_infrastructure_details,
+ response_type="CloudExadataInfrastructure",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6467,20 +6401,22 @@ def create_database(self, create_new_database_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_new_database_details,
- response_type="Database",
+ body=create_cloud_exadata_infrastructure_details,
+ response_type="CloudExadataInfrastructure",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_database_software_image(self, create_database_software_image_details, **kwargs):
+ def create_cloud_vm_cluster(self, create_cloud_vm_cluster_details, **kwargs):
"""
- create database software image in the specified compartment.
+ Creates a cloud VM cluster.
- :param oci.database.models.CreateDatabaseSoftwareImageDetails create_database_software_image_details: (required)
- Request to create database software image.
+ :param oci.database.models.CreateCloudVmClusterDetails create_cloud_vm_cluster_details: (required)
+ Request to create a cloud VM cluster. Applies to Exadata Cloud Service instances only. See `The New Exadata Cloud Service Resource Model`__ for information on this resource type.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/Database/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6489,6 +6425,9 @@ def create_database_software_image(self, create_database_software_image_details,
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -6501,34 +6440,36 @@ def create_database_software_image(self, create_database_software_image_details,
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.models.DatabaseSoftwareImage`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.CloudVmCluster`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_database_software_image API.
+ Click `here `__ to see an example of how to use create_cloud_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/databaseSoftwareImages"
+ resource_path = "/cloudVmClusters"
method = "POST"
- operation_name = "create_database_software_image"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSoftwareImage/CreateDatabaseSoftwareImage"
+ operation_name = "create_cloud_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudVmCluster/CreateCloudVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token"
+ "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"create_database_software_image got unknown kwargs: {extra_kwargs!r}")
+ f"create_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-retry-token": kwargs.get("opc_retry_token", 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}
@@ -6547,8 +6488,8 @@ def create_database_software_image(self, create_database_software_image_details,
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_database_software_image_details,
- response_type="DatabaseSoftwareImage",
+ body=create_cloud_vm_cluster_details,
+ response_type="CloudVmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6558,20 +6499,27 @@ def create_database_software_image(self, create_database_software_image_details,
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_database_software_image_details,
- response_type="DatabaseSoftwareImage",
+ body=create_cloud_vm_cluster_details,
+ response_type="CloudVmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_db_home(self, create_db_home_with_db_system_id_details, **kwargs):
+ def create_console_connection(self, create_console_connection_details, db_node_id, **kwargs):
"""
- Creates a new Database Home in the specified database system based on the request parameters you provide. Applies to bare metal DB systems, Exadata systems, and Exadata Cloud@Customer systems.
+ Creates a new console connection to the specified database node.
+ After the console connection has been created and is available,
+ you connect to the console using SSH.
- :param oci.database.models.CreateDbHomeBase create_db_home_with_db_system_id_details: (required)
- Request to create a new Database Home.
+ :param oci.database.models.CreateConsoleConnectionDetails create_console_connection_details: (required)
+ Request object for creating an CreateConsoleConnection
+
+ :param str db_node_id: (required)
+ The database node `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6592,18 +6540,18 @@ def create_db_home(self, create_db_home_with_db_system_id_details, **kwargs):
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.models.DbHome`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ConsoleConnection`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_db_home API.
+ Click `here `__ to see an example of how to use create_console_connection API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = []
- resource_path = "/dbHomes"
+ required_arguments = ['dbNodeId']
+ resource_path = "/dbNodes/{dbNodeId}/consoleConnections"
method = "POST"
- operation_name = "create_db_home"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbHome/CreateDbHome"
+ operation_name = "create_console_connection"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleConnection/CreateConsoleConnection"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -6614,7 +6562,17 @@ def create_db_home(self, create_db_home_with_db_system_id_details, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_db_home got unknown kwargs: {extra_kwargs!r}")
+ f"create_console_connection got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "dbNodeId": db_node_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",
@@ -6637,9 +6595,10 @@ def create_db_home(self, create_db_home_with_db_system_id_details, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_db_home_with_db_system_id_details,
- response_type="DbHome",
+ body=create_console_connection_details,
+ response_type="ConsoleConnection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6648,22 +6607,27 @@ def create_db_home(self, create_db_home_with_db_system_id_details, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_db_home_with_db_system_id_details,
- response_type="DbHome",
+ body=create_console_connection_details,
+ response_type="ConsoleConnection",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_exadata_infrastructure(self, create_exadata_infrastructure_details, **kwargs):
+ def create_console_history(self, create_console_history_details, db_node_id, **kwargs):
"""
- Creates an Exadata infrastructure resource. Applies to Exadata Cloud@Customer instances only.
- To create an Exadata Cloud Service infrastructure resource, use the :func:`create_cloud_exadata_infrastructure` operation.
+ Captures the most recent serial console data (up to a megabyte) for the specified database node.
- :param oci.database.models.CreateExadataInfrastructureDetails create_exadata_infrastructure_details: (required)
- Request to create Exadata Cloud@Customer infrastructure.
+ :param oci.database.models.CreateConsoleHistoryDetails create_console_history_details: (required)
+ Request object for creating a console history.
+
+ :param str db_node_id: (required)
+ The database node `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6687,18 +6651,18 @@ def create_exadata_infrastructure(self, create_exadata_infrastructure_details, *
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.models.ExadataInfrastructure`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ConsoleHistory`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_exadata_infrastructure API.
+ Click `here `__ to see an example of how to use create_console_history API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = []
- resource_path = "/exadataInfrastructures"
+ required_arguments = ['dbNodeId']
+ resource_path = "/dbNodes/{dbNodeId}/consoleHistories"
method = "POST"
- operation_name = "create_exadata_infrastructure"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/CreateExadataInfrastructure"
+ operation_name = "create_console_history"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleHistory/CreateConsoleHistory"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -6710,7 +6674,17 @@ def create_exadata_infrastructure(self, create_exadata_infrastructure_details, *
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}")
+ f"create_console_history got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "dbNodeId": db_node_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",
@@ -6734,9 +6708,10 @@ def create_exadata_infrastructure(self, create_exadata_infrastructure_details, *
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_exadata_infrastructure_details,
- response_type="ExadataInfrastructure",
+ body=create_console_history_details,
+ response_type="ConsoleHistory",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6745,23 +6720,37 @@ def create_exadata_infrastructure(self, create_exadata_infrastructure_details, *
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_exadata_infrastructure_details,
- response_type="ExadataInfrastructure",
+ body=create_console_history_details,
+ response_type="ConsoleHistory",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_exadb_vm_cluster(self, create_exadb_vm_cluster_details, **kwargs):
+ def create_data_guard_association(self, database_id, create_data_guard_association_details, **kwargs):
"""
- Creates an Exadata VM cluster on Exascale Infrastructure
+ Creates a new Data Guard association. A Data Guard association represents the replication relationship between the
+ specified database and a peer database. For more information, see `Using Oracle Data Guard`__.
+ All Oracle Cloud Infrastructure resources, including Data Guard associations, get an Oracle-assigned, unique ID
+ called an Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response.
+ You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the
+ resource in the Console. For more information, see
+ `Resource Identifiers`__.
- :param oci.database.models.CreateExadbVmClusterDetails create_exadb_vm_cluster_details: (required)
- Request to create a Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. See `The New Exadata Cloud Service Resource Model`__ for information on this resource type.
+ __ https://docs.cloud.oracle.com/Content/Database/Tasks/usingdataguard.htm
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- __ https://docs.cloud.oracle.com/iaas/Content/Database/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model
+
+ :param str database_id: (required)
+ The database `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.database.models.CreateDataGuardAssociationDetails create_data_guard_association_details: (required)
+ A request to create a Data Guard association.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6770,9 +6759,6 @@ def create_exadb_vm_cluster(self, create_exadb_vm_cluster_details, **kwargs):
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -6785,36 +6771,44 @@ def create_exadb_vm_cluster(self, create_exadb_vm_cluster_details, **kwargs):
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.models.ExadbVmCluster`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.DataGuardAssociation`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_exadb_vm_cluster API.
+ Click `here `__ to see an example of how to use create_data_guard_association API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = []
- resource_path = "/exadbVmClusters"
+ required_arguments = ['databaseId']
+ resource_path = "/databases/{databaseId}/dataGuardAssociations"
method = "POST"
- operation_name = "create_exadb_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/CreateExadbVmCluster"
+ operation_name = "create_data_guard_association"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DataGuardAssociation/CreateDataGuardAssociation"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "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"create_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"create_data_guard_association 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-retry-token": kwargs.get("opc_retry_token", 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}
@@ -6832,9 +6826,10 @@ def create_exadb_vm_cluster(self, create_exadb_vm_cluster_details, **kwargs):
self.base_client.call_api,
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_exadb_vm_cluster_details,
- response_type="ExadbVmCluster",
+ body=create_data_guard_association_details,
+ response_type="DataGuardAssociation",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6843,21 +6838,22 @@ def create_exadb_vm_cluster(self, create_exadb_vm_cluster_details, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
+ path_params=path_params,
header_params=header_params,
- body=create_exadb_vm_cluster_details,
- response_type="ExadbVmCluster",
+ body=create_data_guard_association_details,
+ response_type="DataGuardAssociation",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_exascale_db_storage_vault(self, create_exascale_db_storage_vault_details, **kwargs):
+ def create_database(self, create_new_database_details, **kwargs):
"""
- Creates an Exadata Database Storage Vault
+ Creates a new database in the specified Database Home. If the database version is provided, it must match the version of the Database Home. Applies to Exadata and Exadata Cloud@Customer systems.
- :param oci.database.models.CreateExascaleDbStorageVaultDetails create_exascale_db_storage_vault_details: (required)
- Request to create a Exadata Database Storage Vault.
+ :param oci.database.models.CreateDatabaseBase create_new_database_details: (required)
+ Request to create a new database.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6881,18 +6877,18 @@ def create_exascale_db_storage_vault(self, create_exascale_db_storage_vault_deta
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.models.ExascaleDbStorageVault`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.Database`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_exascale_db_storage_vault API.
+ Click `here `__ to see an example of how to use create_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/exascaleDbStorageVaults"
+ resource_path = "/databases"
method = "POST"
- operation_name = "create_exascale_db_storage_vault"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/CreateExascaleDbStorageVault"
+ operation_name = "create_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/CreateDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -6904,7 +6900,7 @@ def create_exascale_db_storage_vault(self, create_exascale_db_storage_vault_deta
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_exascale_db_storage_vault got unknown kwargs: {extra_kwargs!r}")
+ f"create_database got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -6929,8 +6925,8 @@ def create_exascale_db_storage_vault(self, create_exascale_db_storage_vault_deta
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_exascale_db_storage_vault_details,
- response_type="ExascaleDbStorageVault",
+ body=create_new_database_details,
+ response_type="Database",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -6940,24 +6936,20 @@ def create_exascale_db_storage_vault(self, create_exascale_db_storage_vault_deta
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_exascale_db_storage_vault_details,
- response_type="ExascaleDbStorageVault",
+ body=create_new_database_details,
+ response_type="Database",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_external_backup_job(self, create_external_backup_job_details, **kwargs):
+ def create_database_software_image(self, create_database_software_image_details, **kwargs):
"""
- Creates a new backup resource and returns the information the caller needs to back up an on-premises Oracle Database to Oracle Cloud Infrastructure.
-
- **Note:** This API is used by an Oracle Cloud Infrastructure Python script that is packaged with the Oracle Cloud Infrastructure CLI. Oracle recommends that you use the script instead using the API directly. See `Migrating an On-Premises Database to Oracle Cloud Infrastructure by Creating a Backup in the Cloud`__ for more information.
-
- __ https://docs.cloud.oracle.com/Content/Database/Tasks/mig-onprembackup.htm
+ create database software image in the specified compartment.
- :param oci.database.models.CreateExternalBackupJobDetails create_external_backup_job_details: (required)
- Request to create a cloud backup resource for a database running outside the cloud.
+ :param oci.database.models.CreateDatabaseSoftwareImageDetails create_database_software_image_details: (required)
+ Request to create database software image.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -6978,18 +6970,18 @@ def create_external_backup_job(self, create_external_backup_job_details, **kwarg
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.models.ExternalBackupJob`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.DatabaseSoftwareImage`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_external_backup_job API.
+ Click `here `__ to see an example of how to use create_database_software_image API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/externalBackupJobs"
+ resource_path = "/databaseSoftwareImages"
method = "POST"
- operation_name = "create_external_backup_job"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalBackupJob/CreateExternalBackupJob"
+ operation_name = "create_database_software_image"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSoftwareImage/CreateDatabaseSoftwareImage"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -7000,7 +6992,7 @@ def create_external_backup_job(self, create_external_backup_job_details, **kwarg
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_external_backup_job got unknown kwargs: {extra_kwargs!r}")
+ f"create_database_software_image got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -7024,8 +7016,8 @@ def create_external_backup_job(self, create_external_backup_job_details, **kwarg
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_backup_job_details,
- response_type="ExternalBackupJob",
+ body=create_database_software_image_details,
+ response_type="DatabaseSoftwareImage",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7035,20 +7027,20 @@ def create_external_backup_job(self, create_external_backup_job_details, **kwarg
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_backup_job_details,
- response_type="ExternalBackupJob",
+ body=create_database_software_image_details,
+ response_type="DatabaseSoftwareImage",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_external_container_database(self, create_external_container_database_details, **kwargs):
+ def create_db_home(self, create_db_home_with_db_system_id_details, **kwargs):
"""
- Creates a new external container database resource.
+ Creates a new Database Home in the specified database system based on the request parameters you provide. Applies to bare metal DB systems, Exadata systems, and Exadata Cloud@Customer systems.
- :param oci.database.models.CreateExternalContainerDatabaseDetails create_external_container_database_details: (required)
- Request to create a new external container database resource.
+ :param oci.database.models.CreateDbHomeBase create_db_home_with_db_system_id_details: (required)
+ Request to create a new Database Home.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7057,9 +7049,6 @@ def create_external_container_database(self, create_external_container_database_
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -7072,36 +7061,34 @@ def create_external_container_database(self, create_external_container_database_
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.models.ExternalContainerDatabase`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.DbHome`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_external_container_database API.
+ Click `here `__ to see an example of how to use create_db_home API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/externalcontainerdatabases"
+ resource_path = "/dbHomes"
method = "POST"
- operation_name = "create_external_container_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/CreateExternalContainerDatabase"
+ operation_name = "create_db_home"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbHome/CreateDbHome"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "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"create_external_container_database got unknown kwargs: {extra_kwargs!r}")
+ f"create_db_home got unknown kwargs: {extra_kwargs!r}")
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)
+ "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}
@@ -7120,8 +7107,8 @@ def create_external_container_database(self, create_external_container_database_
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_container_database_details,
- response_type="ExternalContainerDatabase",
+ body=create_db_home_with_db_system_id_details,
+ response_type="DbHome",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7131,20 +7118,21 @@ def create_external_container_database(self, create_external_container_database_
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_container_database_details,
- response_type="ExternalContainerDatabase",
+ body=create_db_home_with_db_system_id_details,
+ response_type="DbHome",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_external_database_connector(self, create_external_database_connector_details, **kwargs):
+ def create_exadata_infrastructure(self, create_exadata_infrastructure_details, **kwargs):
"""
- Creates a new external database connector.
+ Creates an Exadata infrastructure resource. Applies to Exadata Cloud@Customer instances only.
+ To create an Exadata Cloud Service infrastructure resource, use the :func:`create_cloud_exadata_infrastructure` operation.
- :param oci.database.models.CreateExternalDatabaseConnectorDetails create_external_database_connector_details: (required)
- Request to create a connector to an external database.
+ :param oci.database.models.CreateExadataInfrastructureDetails create_exadata_infrastructure_details: (required)
+ Request to create Exadata Cloud@Customer infrastructure.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7168,18 +7156,18 @@ def create_external_database_connector(self, create_external_database_connector_
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.models.ExternalDatabaseConnector`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExadataInfrastructure`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_external_database_connector API.
+ Click `here `__ to see an example of how to use create_exadata_infrastructure API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/externaldatabaseconnectors"
+ resource_path = "/exadataInfrastructures"
method = "POST"
- operation_name = "create_external_database_connector"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/CreateExternalDatabaseConnector"
+ operation_name = "create_exadata_infrastructure"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/CreateExadataInfrastructure"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -7191,7 +7179,7 @@ def create_external_database_connector(self, create_external_database_connector_
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_external_database_connector got unknown kwargs: {extra_kwargs!r}")
+ f"create_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -7216,8 +7204,8 @@ def create_external_database_connector(self, create_external_database_connector_
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_database_connector_details,
- response_type="ExternalDatabaseConnector",
+ body=create_exadata_infrastructure_details,
+ response_type="ExadataInfrastructure",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7227,20 +7215,22 @@ def create_external_database_connector(self, create_external_database_connector_
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_database_connector_details,
- response_type="ExternalDatabaseConnector",
+ body=create_exadata_infrastructure_details,
+ response_type="ExadataInfrastructure",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_external_non_container_database(self, create_external_non_container_database_details, **kwargs):
+ def create_exadb_vm_cluster(self, create_exadb_vm_cluster_details, **kwargs):
"""
- Creates a new ExternalNonContainerDatabase resource
+ Creates an Exadata VM cluster on Exascale Infrastructure
- :param oci.database.models.CreateExternalNonContainerDatabaseDetails create_external_non_container_database_details: (required)
- Request to create a new external non-container database.
+ :param oci.database.models.CreateExadbVmClusterDetails create_exadb_vm_cluster_details: (required)
+ Request to create a Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only. See `The New Exadata Cloud Service Resource Model`__ for information on this resource type.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/Database/iaas/Content/Database/Concepts/exaflexsystem.htm#exaflexsystem_topic-resource_model
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7264,18 +7254,18 @@ def create_external_non_container_database(self, create_external_non_container_d
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.models.ExternalNonContainerDatabase`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExadbVmCluster`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_external_non_container_database API.
+ Click `here `__ to see an example of how to use create_exadb_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/externalnoncontainerdatabases"
+ resource_path = "/exadbVmClusters"
method = "POST"
- operation_name = "create_external_non_container_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/CreateExternalNonContainerDatabase"
+ operation_name = "create_exadb_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/CreateExadbVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -7287,7 +7277,7 @@ def create_external_non_container_database(self, create_external_non_container_d
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_external_non_container_database got unknown kwargs: {extra_kwargs!r}")
+ f"create_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -7312,8 +7302,8 @@ def create_external_non_container_database(self, create_external_non_container_d
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_non_container_database_details,
- response_type="ExternalNonContainerDatabase",
+ body=create_exadb_vm_cluster_details,
+ response_type="ExadbVmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7323,21 +7313,20 @@ def create_external_non_container_database(self, create_external_non_container_d
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_non_container_database_details,
- response_type="ExternalNonContainerDatabase",
+ body=create_exadb_vm_cluster_details,
+ response_type="ExadbVmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_external_pluggable_database(self, create_external_pluggable_database_details, **kwargs):
+ def create_exascale_db_storage_vault(self, create_exascale_db_storage_vault_details, **kwargs):
"""
- Registers a new :func:`create_external_pluggable_database_details`
- resource.
+ Creates an Exadata Database Storage Vault
- :param oci.database.models.CreateExternalPluggableDatabaseDetails create_external_pluggable_database_details: (required)
- Request to create a new external pluggable database.
+ :param oci.database.models.CreateExascaleDbStorageVaultDetails create_exascale_db_storage_vault_details: (required)
+ Request to create a Exadata Database Storage Vault.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7361,18 +7350,18 @@ def create_external_pluggable_database(self, create_external_pluggable_database_
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.models.ExternalPluggableDatabase`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExascaleDbStorageVault`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_external_pluggable_database API.
+ Click `here `__ to see an example of how to use create_exascale_db_storage_vault API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/externalpluggabledatabases"
+ resource_path = "/exascaleDbStorageVaults"
method = "POST"
- operation_name = "create_external_pluggable_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/CreateExternalPluggableDatabase"
+ operation_name = "create_exascale_db_storage_vault"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/CreateExascaleDbStorageVault"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -7384,7 +7373,7 @@ def create_external_pluggable_database(self, create_external_pluggable_database_
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_external_pluggable_database got unknown kwargs: {extra_kwargs!r}")
+ f"create_exascale_db_storage_vault got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -7409,8 +7398,8 @@ def create_external_pluggable_database(self, create_external_pluggable_database_
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_pluggable_database_details,
- response_type="ExternalPluggableDatabase",
+ body=create_exascale_db_storage_vault_details,
+ response_type="ExascaleDbStorageVault",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7420,20 +7409,20 @@ def create_external_pluggable_database(self, create_external_pluggable_database_
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_external_pluggable_database_details,
- response_type="ExternalPluggableDatabase",
+ body=create_exascale_db_storage_vault_details,
+ response_type="ExascaleDbStorageVault",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_key_store(self, create_key_store_details, **kwargs):
+ def create_execution_action(self, create_execution_action_details, **kwargs):
"""
- Creates a Key Store.
+ Creates an execution action resource.
- :param oci.database.models.CreateKeyStoreDetails create_key_store_details: (required)
- Request to create a new key store.
+ :param oci.database.models.CreateExecutionActionDetails create_execution_action_details: (required)
+ Request to create execution action.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7457,18 +7446,18 @@ def create_key_store(self, create_key_store_details, **kwargs):
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.models.KeyStore`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExecutionAction`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_key_store API.
+ Click `here `__ to see an example of how to use create_execution_action API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/keyStores"
+ resource_path = "/executionActions"
method = "POST"
- operation_name = "create_key_store"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/KeyStore/CreateKeyStore"
+ operation_name = "create_execution_action"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/CreateExecutionAction"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -7480,7 +7469,7 @@ def create_key_store(self, create_key_store_details, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_key_store got unknown kwargs: {extra_kwargs!r}")
+ f"create_execution_action got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -7505,8 +7494,8 @@ def create_key_store(self, create_key_store_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_key_store_details,
- response_type="KeyStore",
+ body=create_execution_action_details,
+ response_type="ExecutionAction",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7516,26 +7505,20 @@ def create_key_store(self, create_key_store_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_key_store_details,
- response_type="KeyStore",
+ body=create_execution_action_details,
+ response_type="ExecutionAction",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_maintenance_run(self, create_maintenance_run_details, **kwargs):
+ def create_execution_window(self, create_execution_window_details, **kwargs):
"""
- Creates a maintenance run with one of the following:
- 1. The latest available release update patch (RUP) for the Autonomous Container Database.
- 2. The latest available RUP and DST time-zone (TZ) file updates for the Autonomous Container Database.
- 3. The DST TZ file updates for the Autonomous Container Database.
+ Creates an execution window resource.
- :param oci.database.models.CreateMaintenanceRunDetails create_maintenance_run_details: (required)
- Request to create a Maintenance Run for the resource.
-
- :param str opc_request_id: (optional)
- Unique identifier for the request.
+ :param oci.database.models.CreateExecutionWindowDetails create_execution_window_details: (required)
+ Request to create execution window.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7544,6 +7527,9 @@ def create_maintenance_run(self, create_maintenance_run_details, **kwargs):
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -7556,36 +7542,36 @@ def create_maintenance_run(self, create_maintenance_run_details, **kwargs):
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.models.MaintenanceRun`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExecutionWindow`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_maintenance_run API.
+ Click `here `__ to see an example of how to use create_execution_window API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/maintenanceRuns"
+ resource_path = "/executionWindows"
method = "POST"
- operation_name = "create_maintenance_run"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/MaintenanceRun/CreateMaintenanceRun"
+ operation_name = "create_execution_window"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/CreateExecutionWindow"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_request_id",
- "opc_retry_token"
+ "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"create_maintenance_run got unknown kwargs: {extra_kwargs!r}")
+ f"create_execution_window 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)
+ "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}
@@ -7604,8 +7590,8 @@ def create_maintenance_run(self, create_maintenance_run_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_maintenance_run_details,
- response_type="MaintenanceRun",
+ body=create_execution_window_details,
+ response_type="ExecutionWindow",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7615,20 +7601,24 @@ def create_maintenance_run(self, create_maintenance_run_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_maintenance_run_details,
- response_type="MaintenanceRun",
+ body=create_execution_window_details,
+ response_type="ExecutionWindow",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_oneoff_patch(self, create_oneoff_patch_details, **kwargs):
+ def create_external_backup_job(self, create_external_backup_job_details, **kwargs):
"""
- Creates one-off patch for specified database version to download.
+ Creates a new backup resource and returns the information the caller needs to back up an on-premises Oracle Database to Oracle Cloud Infrastructure.
+ **Note:** This API is used by an Oracle Cloud Infrastructure Python script that is packaged with the Oracle Cloud Infrastructure CLI. Oracle recommends that you use the script instead using the API directly. See `Migrating an On-Premises Database to Oracle Cloud Infrastructure by Creating a Backup in the Cloud`__ for more information.
+
+ __ https://docs.cloud.oracle.com/Content/Database/Tasks/mig-onprembackup.htm
- :param oci.database.models.CreateOneoffPatchDetails create_oneoff_patch_details: (required)
- Request to create a one-off patch to download.
+
+ :param oci.database.models.CreateExternalBackupJobDetails create_external_backup_job_details: (required)
+ Request to create a cloud backup resource for a database running outside the cloud.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7637,9 +7627,6 @@ def create_oneoff_patch(self, create_oneoff_patch_details, **kwargs):
has been deleted and purged from the system, then a retry of the original creation request
may 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.
@@ -7652,36 +7639,34 @@ def create_oneoff_patch(self, create_oneoff_patch_details, **kwargs):
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.models.OneoffPatch`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExternalBackupJob`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_oneoff_patch API.
+ Click `here `__ to see an example of how to use create_external_backup_job API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/oneoffPatches"
+ resource_path = "/externalBackupJobs"
method = "POST"
- operation_name = "create_oneoff_patch"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/CreateOneoffPatch"
+ operation_name = "create_external_backup_job"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalBackupJob/CreateExternalBackupJob"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "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"create_oneoff_patch got unknown kwargs: {extra_kwargs!r}")
+ f"create_external_backup_job got unknown kwargs: {extra_kwargs!r}")
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)
+ "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}
@@ -7700,8 +7685,8 @@ def create_oneoff_patch(self, create_oneoff_patch_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_oneoff_patch_details,
- response_type="OneoffPatch",
+ body=create_external_backup_job_details,
+ response_type="ExternalBackupJob",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7711,22 +7696,20 @@ def create_oneoff_patch(self, create_oneoff_patch_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_oneoff_patch_details,
- response_type="OneoffPatch",
+ body=create_external_backup_job_details,
+ response_type="ExternalBackupJob",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_pluggable_database(self, create_pluggable_database_details, **kwargs):
+ def create_external_container_database(self, create_external_container_database_details, **kwargs):
"""
- Creates and starts a pluggable database in the specified container database.
- Pluggable Database can be created using different operations (e.g. LocalClone, RemoteClone, Relocate ) with this API.
- Use the :func:`start_pluggable_database` and :func:`stop_pluggable_database` APIs to start and stop the pluggable database.
+ Creates a new external container database resource.
- :param oci.database.models.CreatePluggableDatabaseDetails create_pluggable_database_details: (required)
- Request to create pluggable database.
+ :param oci.database.models.CreateExternalContainerDatabaseDetails create_external_container_database_details: (required)
+ Request to create a new external container database resource.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7750,18 +7733,18 @@ def create_pluggable_database(self, create_pluggable_database_details, **kwargs)
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.models.PluggableDatabase`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExternalContainerDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_pluggable_database API.
+ Click `here `__ to see an example of how to use create_external_container_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/pluggableDatabases"
+ resource_path = "/externalcontainerdatabases"
method = "POST"
- operation_name = "create_pluggable_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/CreatePluggableDatabase"
+ operation_name = "create_external_container_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/CreateExternalContainerDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -7773,7 +7756,7 @@ def create_pluggable_database(self, create_pluggable_database_details, **kwargs)
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_pluggable_database got unknown kwargs: {extra_kwargs!r}")
+ f"create_external_container_database got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -7798,8 +7781,8 @@ def create_pluggable_database(self, create_pluggable_database_details, **kwargs)
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_pluggable_database_details,
- response_type="PluggableDatabase",
+ body=create_external_container_database_details,
+ response_type="ExternalContainerDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7809,21 +7792,20 @@ def create_pluggable_database(self, create_pluggable_database_details, **kwargs)
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_pluggable_database_details,
- response_type="PluggableDatabase",
+ body=create_external_container_database_details,
+ response_type="ExternalContainerDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_vm_cluster(self, create_vm_cluster_details, **kwargs):
+ def create_external_database_connector(self, create_external_database_connector_details, **kwargs):
"""
- Creates an Exadata Cloud@Customer VM cluster.
+ Creates a new external database connector.
- :param oci.database.models.CreateVmClusterDetails create_vm_cluster_details: (required)
- Request to create a VM cluster. Applies to Exadata Cloud@Customer instances only.
- See :func:`create_cloud_vm_cluster_details` for details on creating a cloud VM cluster in an Exadata Cloud Service instance.
+ :param oci.database.models.CreateExternalDatabaseConnectorDetails create_external_database_connector_details: (required)
+ Request to create a connector to an external database.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7847,18 +7829,18 @@ def create_vm_cluster(self, create_vm_cluster_details, **kwargs):
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.models.VmCluster`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExternalDatabaseConnector`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_vm_cluster API.
+ Click `here `__ to see an example of how to use create_external_database_connector API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
required_arguments = []
- resource_path = "/vmClusters"
+ resource_path = "/externaldatabaseconnectors"
method = "POST"
- operation_name = "create_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/CreateVmCluster"
+ operation_name = "create_external_database_connector"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/CreateExternalDatabaseConnector"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -7870,7 +7852,7 @@ def create_vm_cluster(self, create_vm_cluster_details, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"create_external_database_connector got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -7895,8 +7877,8 @@ def create_vm_cluster(self, create_vm_cluster_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_vm_cluster_details,
- response_type="VmCluster",
+ body=create_external_database_connector_details,
+ response_type="ExternalDatabaseConnector",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -7906,26 +7888,20 @@ def create_vm_cluster(self, create_vm_cluster_details, **kwargs):
resource_path=resource_path,
method=method,
header_params=header_params,
- body=create_vm_cluster_details,
- response_type="VmCluster",
+ body=create_external_database_connector_details,
+ response_type="ExternalDatabaseConnector",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_network_details, **kwargs):
+ def create_external_non_container_database(self, create_external_non_container_database_details, **kwargs):
"""
- Creates the VM cluster network. Applies to Exadata Cloud@Customer instances only.
- To create a cloud VM cluster in an Exadata Cloud Service instance, use the :func:`create_cloud_vm_cluster` operation.
-
-
- :param str exadata_infrastructure_id: (required)
- The Exadata infrastructure `OCID`__.
+ Creates a new ExternalNonContainerDatabase resource
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param oci.database.models.VmClusterNetworkDetails vm_cluster_network_details: (required)
- Request to create the Cloud@Customer VM cluster network.
+ :param oci.database.models.CreateExternalNonContainerDatabaseDetails create_external_non_container_database_details: (required)
+ Request to create a new external non-container database.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -7949,18 +7925,18 @@ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ
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.models.VmClusterNetwork`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExternalNonContainerDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use create_vm_cluster_network API.
+ Click `here `__ to see an example of how to use create_external_non_container_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['exadataInfrastructureId']
- resource_path = "/exadataInfrastructures/{exadataInfrastructureId}/vmClusterNetworks"
+ required_arguments = []
+ resource_path = "/externalnoncontainerdatabases"
method = "POST"
- operation_name = "create_vm_cluster_network"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmClusterNetwork/CreateVmClusterNetwork"
+ operation_name = "create_external_non_container_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/CreateExternalNonContainerDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -7972,17 +7948,7 @@ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"create_vm_cluster_network got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "exadataInfrastructureId": exadata_infrastructure_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')
+ f"create_external_non_container_database got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
@@ -8006,10 +7972,9 @@ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ
self.base_client.call_api,
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
- body=vm_cluster_network_details,
- response_type="VmClusterNetwork",
+ body=create_external_non_container_database_details,
+ response_type="ExternalNonContainerDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8018,41 +7983,22 @@ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
- body=vm_cluster_network_details,
- response_type="VmClusterNetwork",
+ body=create_external_non_container_database_details,
+ response_type="ExternalNonContainerDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def db_node_action(self, db_node_id, action, **kwargs):
+ def create_external_pluggable_database(self, create_external_pluggable_database_details, **kwargs):
"""
- Performs one of the following power actions on the specified DB node:
- - start - power on
- - stop - power off
- - softreset - ACPI shutdown and power on
- - reset - power off and power on
-
- **Note:** Stopping a node affects billing differently, depending on the type of DB system:
- *Bare metal and Exadata systems* - The _stop_ state has no effect on the resources you consume.
- Billing continues for DB nodes that you stop, and related resources continue
- to apply against any relevant quotas. You must terminate the DB system
- (:func:`terminate_db_system`)
- to remove its resources from billing and quotas.
- *Virtual machine DB systems* - Stopping a node stops billing for all OCPUs associated with that node, and billing resumes when you restart the node.
-
-
- :param str db_node_id: (required)
- The database node `OCID`__.
-
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ Registers a new :func:`create_external_pluggable_database_details`
+ resource.
- :param str action: (required)
- The action to perform on the DB Node.
- Allowed values are: "STOP", "START", "SOFTRESET", "RESET"
+ :param oci.database.models.CreateExternalPluggableDatabaseDetails create_external_pluggable_database_details: (required)
+ Request to create a new external pluggable database.
:param str opc_retry_token: (optional)
A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -8061,10 +8007,8 @@ def db_node_action(self, db_node_id, action, **kwargs):
has been deleted and purged from the system, then a retry of the original creation request
may 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 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.
@@ -8078,51 +8022,36 @@ def db_node_action(self, db_node_id, action, **kwargs):
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.models.DbNode`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ExternalPluggableDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use db_node_action API.
+ Click `here `__ to see an example of how to use create_external_pluggable_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['dbNodeId', 'action']
- resource_path = "/dbNodes/{dbNodeId}"
+ required_arguments = []
+ resource_path = "/externalpluggabledatabases"
method = "POST"
- operation_name = "db_node_action"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbNode/DbNodeAction"
+ operation_name = "create_external_pluggable_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/CreateExternalPluggableDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"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"db_node_action got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "dbNodeId": db_node_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')
-
- query_params = {
- "action": action
- }
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+ f"create_external_pluggable_database got unknown kwargs: {extra_kwargs!r}")
header_params = {
"accept": "application/json",
"content-type": "application/json",
"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}
@@ -8140,10 +8069,9 @@ def db_node_action(self, db_node_id, action, **kwargs):
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="DbNode",
+ body=create_external_pluggable_database_details,
+ response_type="ExternalPluggableDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8152,29 +8080,28 @@ def db_node_action(self, db_node_id, action, **kwargs):
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="DbNode",
+ body=create_external_pluggable_database_details,
+ response_type="ExternalPluggableDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_application_vip(self, application_vip_id, **kwargs):
+ def create_key_store(self, create_key_store_details, **kwargs):
"""
- Deletes and deregisters the specified application virtual IP (VIP) address.
-
+ Creates a Key Store.
- :param str application_vip_id: (required)
- The `OCID`__ of the application virtual IP (VIP) address.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param oci.database.models.CreateKeyStoreDetails create_key_store_details: (required)
+ Request to create a new key store.
- :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
+ may be rejected).
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -8191,45 +8118,35 @@ def delete_application_vip(self, application_vip_id, **kwargs):
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.KeyStore`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_application_vip API.
+ Click `here `__ to see an example of how to use create_key_store API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['applicationVipId']
- resource_path = "/applicationVip/{applicationVipId}"
- method = "DELETE"
- operation_name = "delete_application_vip"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ApplicationVip/DeleteApplicationVip"
+ required_arguments = []
+ resource_path = "/keyStores"
+ method = "POST"
+ operation_name = "create_key_store"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/KeyStore/CreateKeyStore"
# 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"delete_application_vip got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "applicationVipId": application_vip_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')
+ f"create_key_store got unknown kwargs: {extra_kwargs!r}")
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}
@@ -8241,14 +8158,16 @@ def delete_application_vip(self, application_vip_id, **kwargs):
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=create_key_store_details,
+ response_type="KeyStore",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8257,31 +8176,35 @@ def delete_application_vip(self, application_vip_id, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
+ body=create_key_store_details,
+ response_type="KeyStore",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_autonomous_database(self, autonomous_database_id, **kwargs):
+ def create_maintenance_run(self, create_maintenance_run_details, **kwargs):
"""
- Deletes the specified Autonomous Database.
-
-
- :param str autonomous_database_id: (required)
- The database `OCID`__.
+ Creates a maintenance run with one of the following:
+ 1. The latest available release update patch (RUP) for the Autonomous Container Database.
+ 2. The latest available RUP and DST time-zone (TZ) file updates for the Autonomous Container Database.
+ 3. The DST TZ file updates for the Autonomous Container Database.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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 oci.database.models.CreateMaintenanceRunDetails create_maintenance_run_details: (required)
+ Request to create a Maintenance Run for the resource.
: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
+ may 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.
@@ -8294,46 +8217,36 @@ def delete_autonomous_database(self, autonomous_database_id, **kwargs):
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.MaintenanceRun`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_autonomous_database API.
+ Click `here `__ to see an example of how to use create_maintenance_run API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}"
- method = "DELETE"
- operation_name = "delete_autonomous_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/DeleteAutonomousDatabase"
+ required_arguments = []
+ resource_path = "/maintenanceRuns"
+ method = "POST"
+ operation_name = "create_maintenance_run"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/MaintenanceRun/CreateMaintenanceRun"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "if_match",
- "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"delete_autonomous_database got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "autonomousDatabaseId": autonomous_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')
+ f"create_maintenance_run got unknown kwargs: {extra_kwargs!r}")
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)
+ "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}
@@ -8344,14 +8257,16 @@ def delete_autonomous_database(self, autonomous_database_id, **kwargs):
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=create_maintenance_run_details,
+ response_type="MaintenanceRun",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8360,27 +8275,28 @@ def delete_autonomous_database(self, autonomous_database_id, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
+ body=create_maintenance_run_details,
+ response_type="MaintenanceRun",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwargs):
+ def create_oneoff_patch(self, create_oneoff_patch_details, **kwargs):
"""
- Deletes a long-term backup. You cannot delete other backups using this API.
-
+ Creates one-off patch for specified database version to download.
- :param str autonomous_database_backup_id: (required)
- The `OCID`__ of the Autonomous Database backup.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param oci.database.models.CreateOneoffPatchDetails create_oneoff_patch_details: (required)
+ Request to create a one-off patch to download.
- :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
+ may be rejected).
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -8397,45 +8313,35 @@ def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwa
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.OneoffPatch`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_autonomous_database_backup API.
+ Click `here `__ to see an example of how to use create_oneoff_patch API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseBackupId']
- resource_path = "/autonomousDatabaseBackups/{autonomousDatabaseBackupId}"
- method = "DELETE"
- operation_name = "delete_autonomous_database_backup"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/DeleteAutonomousDatabaseBackup"
+ required_arguments = []
+ resource_path = "/oneoffPatches"
+ method = "POST"
+ operation_name = "create_oneoff_patch"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/CreateOneoffPatch"
# 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"delete_autonomous_database_backup got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "autonomousDatabaseBackupId": autonomous_database_backup_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')
+ f"create_oneoff_patch got unknown kwargs: {extra_kwargs!r}")
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}
@@ -8447,14 +8353,16 @@ def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwa
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=create_oneoff_patch_details,
+ response_type="OneoffPatch",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8463,27 +8371,30 @@ def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwa
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
+ body=create_oneoff_patch_details,
+ response_type="OneoffPatch",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_autonomous_database_software_image(self, autonomous_database_software_image_id, **kwargs):
+ def create_pluggable_database(self, create_pluggable_database_details, **kwargs):
"""
- Delete an Autonomous Database Software Image
-
+ Creates and starts a pluggable database in the specified container database.
+ Pluggable Database can be created using different operations (e.g. LocalClone, RemoteClone, Relocate ) with this API.
+ Use the :func:`start_pluggable_database` and :func:`stop_pluggable_database` APIs to start and stop the pluggable database.
- :param str autonomous_database_software_image_id: (required)
- The Autonomous Database Software Image `OCID`__.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param oci.database.models.CreatePluggableDatabaseDetails create_pluggable_database_details: (required)
+ Request to create pluggable 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_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
+ may be rejected).
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -8500,45 +8411,35 @@ def delete_autonomous_database_software_image(self, autonomous_database_software
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.PluggableDatabase`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_autonomous_database_software_image API.
+ Click `here `__ to see an example of how to use create_pluggable_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseSoftwareImageId']
- resource_path = "/autonomousDatabaseSoftwareImages/{autonomousDatabaseSoftwareImageId}"
- method = "DELETE"
- operation_name = "delete_autonomous_database_software_image"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseSoftwareImage/DeleteAutonomousDatabaseSoftwareImage"
+ required_arguments = []
+ resource_path = "/pluggableDatabases"
+ method = "POST"
+ operation_name = "create_pluggable_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/CreatePluggableDatabase"
# 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"delete_autonomous_database_software_image got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "autonomousDatabaseSoftwareImageId": autonomous_database_software_image_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')
+ f"create_pluggable_database got unknown kwargs: {extra_kwargs!r}")
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}
@@ -8550,14 +8451,16 @@ def delete_autonomous_database_software_image(self, autonomous_database_software
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=create_pluggable_database_details,
+ response_type="PluggableDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8566,27 +8469,28 @@ def delete_autonomous_database_software_image(self, autonomous_database_software
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
+ body=create_pluggable_database_details,
+ response_type="PluggableDatabase",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs):
+ def create_scheduled_action(self, create_scheduled_action_details, **kwargs):
"""
- Deletes the specified Autonomous VM cluster in an Exadata Cloud@Customer system. To delete an Autonomous VM Cluster in the Oracle cloud, see :func:`delete_cloud_autonomous_vm_cluster`.
-
+ Creates a Scheduled Action resource.
- :param str autonomous_vm_cluster_id: (required)
- The autonomous VM cluster `OCID`__.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param oci.database.models.CreateScheduledActionDetails create_scheduled_action_details: (required)
+ Request to create Scheduled Action.
- :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
+ may be rejected).
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -8603,45 +8507,35 @@ def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs):
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.ScheduledAction`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_autonomous_vm_cluster API.
+ Click `here `__ to see an example of how to use create_scheduled_action API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousVmClusterId']
- resource_path = "/autonomousVmClusters/{autonomousVmClusterId}"
- method = "DELETE"
- operation_name = "delete_autonomous_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/DeleteAutonomousVmCluster"
+ required_arguments = []
+ resource_path = "/scheduledActions"
+ method = "POST"
+ operation_name = "create_scheduled_action"
+ api_reference_link = ""
# 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"delete_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "autonomousVmClusterId": autonomous_vm_cluster_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')
+ f"create_scheduled_action got unknown kwargs: {extra_kwargs!r}")
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}
@@ -8653,14 +8547,16 @@ def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs):
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=create_scheduled_action_details,
+ response_type="ScheduledAction",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8669,27 +8565,31 @@ def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
+ body=create_scheduled_action_details,
+ response_type="ScheduledAction",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_backup(self, backup_id, **kwargs):
+ def create_scheduling_plan(self, create_scheduling_plan_details, **kwargs):
"""
- Deletes a full backup. You cannot delete automatic backups using this API.
+ Creates a Scheduling Plan resource.
- :param str backup_id: (required)
- The backup `OCID`__.
+ :param oci.database.models.CreateSchedulingPlanDetails create_scheduling_plan_details: (required)
+ Request to create Scheduling Plan.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :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
+ may 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 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.
@@ -8703,44 +8603,36 @@ def delete_backup(self, backup_id, **kwargs):
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.SchedulingPlan`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_backup API.
+ Click `here `__ to see an example of how to use create_scheduling_plan API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['backupId']
- resource_path = "/backups/{backupId}"
- method = "DELETE"
- operation_name = "delete_backup"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Backup/DeleteBackup"
+ required_arguments = []
+ resource_path = "/schedulingPlans"
+ method = "POST"
+ operation_name = "create_scheduling_plan"
+ api_reference_link = ""
# 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"delete_backup got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "backupId": backup_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')
+ f"create_scheduling_plan got unknown kwargs: {extra_kwargs!r}")
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}
@@ -8751,14 +8643,16 @@ def delete_backup(self, backup_id, **kwargs):
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=create_scheduling_plan_details,
+ response_type="SchedulingPlan",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8767,27 +8661,28 @@ def delete_backup(self, backup_id, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
+ body=create_scheduling_plan_details,
+ response_type="SchedulingPlan",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_backup_destination(self, backup_destination_id, **kwargs):
+ def create_scheduling_policy(self, create_scheduling_policy_details, **kwargs):
"""
- Deletes a backup destination in an Exadata Cloud@Customer system.
+ Creates a Scheduling Policy resource.
- :param str backup_destination_id: (required)
- The `OCID`__ of the backup destination.
-
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param oci.database.models.CreateSchedulingPolicyDetails create_scheduling_policy_details: (required)
+ Request to create Scheduling 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
+ may be rejected).
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -8804,45 +8699,35 @@ def delete_backup_destination(self, backup_destination_id, **kwargs):
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.SchedulingPolicy`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_backup_destination API.
+ Click `here `__ to see an example of how to use create_scheduling_policy API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['backupDestinationId']
- resource_path = "/backupDestinations/{backupDestinationId}"
- method = "DELETE"
- operation_name = "delete_backup_destination"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/BackupDestination/DeleteBackupDestination"
+ required_arguments = []
+ resource_path = "/schedulingPolicies"
+ method = "POST"
+ operation_name = "create_scheduling_policy"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/CreateSchedulingPolicy"
# 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"delete_backup_destination got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "backupDestinationId": backup_destination_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')
+ f"create_scheduling_policy got unknown kwargs: {extra_kwargs!r}")
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}
@@ -8854,14 +8739,16 @@ def delete_backup_destination(self, backup_destination_id, **kwargs):
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=create_scheduling_policy_details,
+ response_type="SchedulingPolicy",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8870,27 +8757,33 @@ def delete_backup_destination(self, backup_destination_id, **kwargs):
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
header_params=header_params,
+ body=create_scheduling_policy_details,
+ response_type="SchedulingPolicy",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **kwargs):
+ def create_scheduling_window(self, scheduling_policy_id, create_scheduling_window_details, **kwargs):
"""
- Deletes the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see :func:`delete_autonomous_vm_cluster`.
+ Creates a Scheduling Window resource.
- :param str cloud_autonomous_vm_cluster_id: (required)
- The Cloud VM cluster `OCID`__.
+ :param str scheduling_policy_id: (required)
+ The Scheduling Policy `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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 oci.database.models.CreateSchedulingWindowDetails create_scheduling_window_details: (required)
+ Request to create Scheduling Window.
+
+ :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
+ may be rejected).
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -8907,33 +8800,33 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.SchedulingWindow`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_cloud_autonomous_vm_cluster API.
+ Click `here `__ to see an example of how to use create_scheduling_window API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['cloudAutonomousVmClusterId']
- resource_path = "/cloudAutonomousVmClusters/{cloudAutonomousVmClusterId}"
- method = "DELETE"
- operation_name = "delete_cloud_autonomous_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/DeleteCloudAutonomousVmCluster"
+ required_arguments = ['schedulingPolicyId']
+ resource_path = "/schedulingPolicies/{schedulingPolicyId}/schedulingWindows"
+ method = "POST"
+ operation_name = "create_scheduling_window"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingWindow/CreateSchedulingWindow"
# 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"delete_cloud_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"create_scheduling_window got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id
+ "schedulingPolicyId": scheduling_policy_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -8945,7 +8838,7 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k
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}
@@ -8957,6 +8850,7 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k
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(
@@ -8965,6 +8859,8 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k
method=method,
path_params=path_params,
header_params=header_params,
+ body=create_scheduling_window_details,
+ response_type="SchedulingWindow",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -8975,28 +8871,28 @@ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **k
method=method,
path_params=path_params,
header_params=header_params,
+ body=create_scheduling_window_details,
+ response_type="SchedulingWindow",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, **kwargs):
+ def create_vm_cluster(self, create_vm_cluster_details, **kwargs):
"""
- Deletes the cloud Exadata infrastructure resource. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.
-
-
- :param str cloud_exadata_infrastructure_id: (required)
- The cloud Exadata infrastructure `OCID`__.
+ Creates an Exadata Cloud@Customer VM cluster.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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 oci.database.models.CreateVmClusterDetails create_vm_cluster_details: (required)
+ Request to create a VM cluster. Applies to Exadata Cloud@Customer instances only.
+ See :func:`create_cloud_vm_cluster_details` for details on creating a cloud VM cluster in an Exadata Cloud Service instance.
- :param bool is_delete_vm_clusters: (optional)
- If `true`, forces the deletion the specified cloud Exadata infrastructure resource as well as all associated VM clusters. If `false`, the cloud Exadata infrastructure resource can be deleted only if it has no associated VM clusters. Default value is `false`.
+ :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
+ may be rejected).
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -9013,51 +8909,35 @@ def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, *
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.VmCluster`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_cloud_exadata_infrastructure API.
+ Click `here `__ to see an example of how to use create_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['cloudExadataInfrastructureId']
- resource_path = "/cloudExadataInfrastructures/{cloudExadataInfrastructureId}"
- method = "DELETE"
- operation_name = "delete_cloud_exadata_infrastructure"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/DeleteCloudExadataInfrastructure"
+ required_arguments = []
+ resource_path = "/vmClusters"
+ method = "POST"
+ operation_name = "create_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/CreateVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "if_match",
- "is_delete_vm_clusters",
+ "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"delete_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}")
-
- path_params = {
- "cloudExadataInfrastructureId": cloud_exadata_infrastructure_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')
-
- query_params = {
- "isDeleteVmClusters": kwargs.get("is_delete_vm_clusters", missing)
- }
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+ f"create_vm_cluster got unknown kwargs: {extra_kwargs!r}")
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}
@@ -9069,15 +8949,16 @@ def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, *
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,
- query_params=query_params,
header_params=header_params,
+ body=create_vm_cluster_details,
+ response_type="VmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -9086,28 +8967,34 @@ def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, *
return self.base_client.call_api(
resource_path=resource_path,
method=method,
- path_params=path_params,
- query_params=query_params,
header_params=header_params,
+ body=create_vm_cluster_details,
+ response_type="VmCluster",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs):
+ def create_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_network_details, **kwargs):
"""
- Deletes the specified cloud VM cluster. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.
+ Creates the VM cluster network. Applies to Exadata Cloud@Customer instances only.
+ To create a cloud VM cluster in an Exadata Cloud Service instance, use the :func:`create_cloud_vm_cluster` operation.
- :param str cloud_vm_cluster_id: (required)
- The cloud VM cluster `OCID`__.
+ :param str exadata_infrastructure_id: (required)
+ The Exadata infrastructure `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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 oci.database.models.VmClusterNetworkDetails vm_cluster_network_details: (required)
+ Request to create the Cloud@Customer VM cluster network.
+
+ :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
+ may be rejected).
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -9124,33 +9011,33 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs):
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.VmClusterNetwork`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_cloud_vm_cluster API.
+ Click `here `__ to see an example of how to use create_vm_cluster_network API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['cloudVmClusterId']
- resource_path = "/cloudVmClusters/{cloudVmClusterId}"
- method = "DELETE"
- operation_name = "delete_cloud_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudVmCluster/DeleteCloudVmCluster"
+ required_arguments = ['exadataInfrastructureId']
+ resource_path = "/exadataInfrastructures/{exadataInfrastructureId}/vmClusterNetworks"
+ method = "POST"
+ operation_name = "create_vm_cluster_network"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmClusterNetwork/CreateVmClusterNetwork"
# 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"delete_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"create_vm_cluster_network got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "cloudVmClusterId": cloud_vm_cluster_id
+ "exadataInfrastructureId": exadata_infrastructure_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -9162,7 +9049,7 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs):
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}
@@ -9174,6 +9061,7 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs):
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(
@@ -9182,6 +9070,8 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
+ body=vm_cluster_network_details,
+ response_type="VmClusterNetwork",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -9192,14 +9082,28 @@ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
+ body=vm_cluster_network_details,
+ response_type="VmClusterNetwork",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_console_connection(self, db_node_id, console_connection_id, **kwargs):
+ def db_node_action(self, db_node_id, action, **kwargs):
"""
- Deletes the specified database node console connection.
+ Performs one of the following power actions on the specified DB node:
+ - start - power on
+ - stop - power off
+ - softreset - ACPI shutdown and power on
+ - reset - power off and power on
+
+ **Note:** Stopping a node affects billing differently, depending on the type of DB system:
+ *Bare metal and Exadata systems* - The _stop_ state has no effect on the resources you consume.
+ Billing continues for DB nodes that you stop, and related resources continue
+ to apply against any relevant quotas. You must terminate the DB system
+ (:func:`terminate_db_system`)
+ to remove its resources from billing and quotas.
+ *Virtual machine DB systems* - Stopping a node stops billing for all OCPUs associated with that node, and billing resumes when you restart the node.
:param str db_node_id: (required)
@@ -9207,8 +9111,17 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs)
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str console_connection_id: (required)
- The OCID of the console connection.
+ :param str action: (required)
+ The action to perform on the DB Node.
+
+ Allowed values are: "STOP", "START", "SOFTRESET", "RESET"
+
+ :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
+ may be rejected).
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -9227,33 +9140,33 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs)
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
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.DbNode`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_console_connection API.
+ Click `here `__ to see an example of how to use db_node_action API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['dbNodeId', 'consoleConnectionId']
- resource_path = "/dbNodes/{dbNodeId}/consoleConnections/{consoleConnectionId}"
- method = "DELETE"
- operation_name = "delete_console_connection"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleConnection/DeleteConsoleConnection"
+ required_arguments = ['dbNodeId', 'action']
+ resource_path = "/dbNodes/{dbNodeId}"
+ method = "POST"
+ operation_name = "db_node_action"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbNode/DbNodeAction"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
+ "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"delete_console_connection got unknown kwargs: {extra_kwargs!r}")
+ f"db_node_action got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "dbNodeId": db_node_id,
- "consoleConnectionId": console_connection_id
+ "dbNodeId": db_node_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -9262,9 +9175,15 @@ def delete_console_connection(self, db_node_id, console_connection_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')
+ query_params = {
+ "action": action
+ }
+ 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-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}
@@ -9276,6 +9195,7 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs)
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(
@@ -9283,7 +9203,9 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs)
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
+ response_type="DbNode",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -9293,25 +9215,24 @@ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs)
resource_path=resource_path,
method=method,
path_params=path_params,
+ query_params=query_params,
header_params=header_params,
+ response_type="DbNode",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_console_history(self, db_node_id, console_history_id, **kwargs):
+ def delete_application_vip(self, application_vip_id, **kwargs):
"""
- Deletes the specified database node console history.
+ Deletes and deregisters the specified application virtual IP (VIP) address.
- :param str db_node_id: (required)
- The database node `OCID`__.
+ :param str application_vip_id: (required)
+ The `OCID`__ of the application virtual IP (VIP) address.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str console_history_id: (required)
- The OCID of the console history.
-
: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
@@ -9336,14 +9257,14 @@ def delete_console_history(self, db_node_id, console_history_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_console_history API.
+ Click `here `__ to see an example of how to use delete_application_vip API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['dbNodeId', 'consoleHistoryId']
- resource_path = "/dbNodes/{dbNodeId}/consoleHistories/{consoleHistoryId}"
+ required_arguments = ['applicationVipId']
+ resource_path = "/applicationVip/{applicationVipId}"
method = "DELETE"
- operation_name = "delete_console_history"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleHistory/DeleteConsoleHistory"
+ operation_name = "delete_application_vip"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ApplicationVip/DeleteApplicationVip"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -9355,11 +9276,10 @@ def delete_console_history(self, db_node_id, console_history_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_console_history got unknown kwargs: {extra_kwargs!r}")
+ f"delete_application_vip got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "dbNodeId": db_node_id,
- "consoleHistoryId": console_history_id
+ "applicationVipId": application_vip_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -9406,14 +9326,12 @@ def delete_console_history(self, db_node_id, console_history_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_database(self, database_id, **kwargs):
+ def delete_autonomous_database(self, autonomous_database_id, **kwargs):
"""
- Deletes the specified database. Applies only to Exadata systems.
-
- The data in this database is local to the Exadata system and will be lost when the database is deleted. Oracle recommends that you back up any data in the Exadata system prior to deleting it. You can use the `performFinalBackup` parameter to have the Exadata system database backed up before it is deleted.
+ Deletes the specified Autonomous Database.
- :param str database_id: (required)
+ :param str autonomous_database_id: (required)
The database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -9423,13 +9341,6 @@ def delete_database(self, database_id, **kwargs):
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 bool perform_final_backup: (optional)
- Whether to perform a final backup of the database or not. Default is false.
-
- If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
-
- This parameter is used in multiple APIs. Refer to the API description for details on how the operation uses it.
-
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -9449,30 +9360,29 @@ def delete_database(self, database_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_database API.
+ Click `here `__ to see an example of how to use delete_autonomous_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['databaseId']
- resource_path = "/databases/{databaseId}"
+ required_arguments = ['autonomousDatabaseId']
+ resource_path = "/autonomousDatabases/{autonomousDatabaseId}"
method = "DELETE"
- operation_name = "delete_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/DeleteDatabase"
+ operation_name = "delete_autonomous_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/DeleteAutonomousDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
- "perform_final_backup",
"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_database got unknown kwargs: {extra_kwargs!r}")
+ f"delete_autonomous_database got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "databaseId": database_id
+ "autonomousDatabaseId": autonomous_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -9481,11 +9391,6 @@ def delete_database(self, 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')
- query_params = {
- "performFinalBackup": kwargs.get("perform_final_backup", 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",
@@ -9508,7 +9413,6 @@ def delete_database(self, 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,
@@ -9519,20 +9423,19 @@ def delete_database(self, 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,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_database_software_image(self, database_software_image_id, **kwargs):
+ def delete_autonomous_database_backup(self, autonomous_database_backup_id, **kwargs):
"""
- Delete a database software image
+ Deletes a long-term backup. You cannot delete other backups using this API.
- :param str database_software_image_id: (required)
- The DB system `OCID`__.
+ :param str autonomous_database_backup_id: (required)
+ The `OCID`__ of the Autonomous Database backup.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -9541,6 +9444,9 @@ def delete_database_software_image(self, database_software_image_id, **kwargs):
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.
@@ -9557,28 +9463,29 @@ def delete_database_software_image(self, database_software_image_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_database_software_image API.
+ Click `here `__ to see an example of how to use delete_autonomous_database_backup API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['databaseSoftwareImageId']
- resource_path = "/databaseSoftwareImages/{databaseSoftwareImageId}"
+ required_arguments = ['autonomousDatabaseBackupId']
+ resource_path = "/autonomousDatabaseBackups/{autonomousDatabaseBackupId}"
method = "DELETE"
- operation_name = "delete_database_software_image"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSoftwareImage/DeleteDatabaseSoftwareImage"
+ operation_name = "delete_autonomous_database_backup"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/DeleteAutonomousDatabaseBackup"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "if_match"
+ "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_database_software_image got unknown kwargs: {extra_kwargs!r}")
+ f"delete_autonomous_database_backup got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "databaseSoftwareImageId": database_software_image_id
+ "autonomousDatabaseBackupId": autonomous_database_backup_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -9590,7 +9497,8 @@ def delete_database_software_image(self, database_software_image_id, **kwargs):
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "if-match": kwargs.get("if_match", 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}
@@ -9624,15 +9532,13 @@ def delete_database_software_image(self, database_software_image_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_db_home(self, db_home_id, **kwargs):
+ def delete_autonomous_database_software_image(self, autonomous_database_software_image_id, **kwargs):
"""
- Deletes a Database Home. Applies to bare metal DB systems, Exadata Cloud Service, and Exadata Cloud@Customer systems.
-
- Oracle recommends that you use the `performFinalBackup` parameter to back up any data on a bare metal DB system before you delete a Database Home. On an Exadata Cloud@Customer system or an Exadata Cloud Service system, you can delete a Database Home only when there are no databases in it and therefore you cannot use the `performFinalBackup` parameter to back up data.
+ Delete an Autonomous Database Software Image
- :param str db_home_id: (required)
- The Database Home `OCID`__.
+ :param str autonomous_database_software_image_id: (required)
+ The Autonomous Database Software Image `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -9641,12 +9547,8 @@ def delete_db_home(self, db_home_id, **kwargs):
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 bool perform_final_backup: (optional)
- Whether to perform a final backup of the database or not. Default is false.
-
- If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
-
- This parameter is used in multiple APIs. Refer to the API description for details on how the operation uses it.
+ :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.
@@ -9664,29 +9566,29 @@ def delete_db_home(self, db_home_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_db_home API.
+ Click `here `__ to see an example of how to use delete_autonomous_database_software_image API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['dbHomeId']
- resource_path = "/dbHomes/{dbHomeId}"
+ required_arguments = ['autonomousDatabaseSoftwareImageId']
+ resource_path = "/autonomousDatabaseSoftwareImages/{autonomousDatabaseSoftwareImageId}"
method = "DELETE"
- operation_name = "delete_db_home"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbHome/DeleteDbHome"
+ operation_name = "delete_autonomous_database_software_image"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabaseSoftwareImage/DeleteAutonomousDatabaseSoftwareImage"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
- "perform_final_backup"
+ "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_db_home got unknown kwargs: {extra_kwargs!r}")
+ f"delete_autonomous_database_software_image got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "dbHomeId": db_home_id
+ "autonomousDatabaseSoftwareImageId": autonomous_database_software_image_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -9695,15 +9597,11 @@ def delete_db_home(self, db_home_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')
- query_params = {
- "performFinalBackup": kwargs.get("perform_final_backup", 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",
- "if-match": kwargs.get("if_match", 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}
@@ -9721,7 +9619,6 @@ def delete_db_home(self, db_home_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,
@@ -9732,20 +9629,19 @@ def delete_db_home(self, db_home_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,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs):
+ def delete_autonomous_vm_cluster(self, autonomous_vm_cluster_id, **kwargs):
"""
- Deletes the Exadata Cloud@Customer infrastructure.
+ Deletes the specified Autonomous VM cluster in an Exadata Cloud@Customer system. To delete an Autonomous VM Cluster in the Oracle cloud, see :func:`delete_cloud_autonomous_vm_cluster`.
- :param str exadata_infrastructure_id: (required)
- The Exadata infrastructure `OCID`__.
+ :param str autonomous_vm_cluster_id: (required)
+ The autonomous VM cluster `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -9773,14 +9669,14 @@ def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_exadata_infrastructure API.
+ Click `here `__ to see an example of how to use delete_autonomous_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['exadataInfrastructureId']
- resource_path = "/exadataInfrastructures/{exadataInfrastructureId}"
+ required_arguments = ['autonomousVmClusterId']
+ resource_path = "/autonomousVmClusters/{autonomousVmClusterId}"
method = "DELETE"
- operation_name = "delete_exadata_infrastructure"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/DeleteExadataInfrastructure"
+ operation_name = "delete_autonomous_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousVmCluster/DeleteAutonomousVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -9792,10 +9688,10 @@ def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}")
+ f"delete_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "exadataInfrastructureId": exadata_infrastructure_id
+ "autonomousVmClusterId": autonomous_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -9842,13 +9738,13 @@ def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs):
+ def delete_backup(self, backup_id, **kwargs):
"""
- Deletes the specified Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only.
+ Deletes a full backup. You cannot delete automatic backups using this API.
- :param str exadb_vm_cluster_id: (required)
- The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
+ :param str backup_id: (required)
+ The backup `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -9857,9 +9753,6 @@ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs):
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.
@@ -9876,29 +9769,28 @@ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_exadb_vm_cluster API.
+ Click `here `__ to see an example of how to use delete_backup API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['exadbVmClusterId']
- resource_path = "/exadbVmClusters/{exadbVmClusterId}"
+ required_arguments = ['backupId']
+ resource_path = "/backups/{backupId}"
method = "DELETE"
- operation_name = "delete_exadb_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/DeleteExadbVmCluster"
+ operation_name = "delete_backup"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Backup/DeleteBackup"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "if_match",
- "opc_request_id"
+ "if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"delete_backup got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "exadbVmClusterId": exadb_vm_cluster_id
+ "backupId": backup_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -9910,8 +9802,7 @@ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs):
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)
+ "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}
@@ -9945,13 +9836,13 @@ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwargs):
+ def delete_backup_destination(self, backup_destination_id, **kwargs):
"""
- Deletes the specified Exadata Database Storage Vault.
+ Deletes a backup destination in an Exadata Cloud@Customer system.
- :param str exascale_db_storage_vault_id: (required)
- The Exadata Database Storage Vault `OCID`__.
+ :param str backup_destination_id: (required)
+ The `OCID`__ of the backup destination.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -9979,14 +9870,14 @@ def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwarg
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_exascale_db_storage_vault API.
+ Click `here `__ to see an example of how to use delete_backup_destination API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['exascaleDbStorageVaultId']
- resource_path = "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}"
+ required_arguments = ['backupDestinationId']
+ resource_path = "/backupDestinations/{backupDestinationId}"
method = "DELETE"
- operation_name = "delete_exascale_db_storage_vault"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/DeleteExascaleDbStorageVault"
+ operation_name = "delete_backup_destination"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/BackupDestination/DeleteBackupDestination"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -9998,10 +9889,10 @@ def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwarg
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_exascale_db_storage_vault got unknown kwargs: {extra_kwargs!r}")
+ f"delete_backup_destination got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "exascaleDbStorageVaultId": exascale_db_storage_vault_id
+ "backupDestinationId": backup_destination_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10048,26 +9939,24 @@ def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwarg
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_external_container_database(self, external_container_database_id, **kwargs):
+ def delete_cloud_autonomous_vm_cluster(self, cloud_autonomous_vm_cluster_id, **kwargs):
"""
- Deletes the :func:`create_external_container_database_details`
- resource. Any external pluggable databases registered under this container database must be deleted in
- your Oracle Cloud Infrastructure tenancy prior to this operation.
+ Deletes the specified Autonomous Exadata VM cluster in the Oracle cloud. For Exadata Cloud@Customer systems, see :func:`delete_autonomous_vm_cluster`.
- :param str external_container_database_id: (required)
- The ExternalContainerDatabase `OCID`__.
+ :param str cloud_autonomous_vm_cluster_id: (required)
+ The Cloud VM cluster `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
: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.
@@ -10084,29 +9973,29 @@ def delete_external_container_database(self, external_container_database_id, **k
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_external_container_database API.
+ Click `here `__ to see an example of how to use delete_cloud_autonomous_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalContainerDatabaseId']
- resource_path = "/externalcontainerdatabases/{externalContainerDatabaseId}"
+ required_arguments = ['cloudAutonomousVmClusterId']
+ resource_path = "/cloudAutonomousVmClusters/{cloudAutonomousVmClusterId}"
method = "DELETE"
- operation_name = "delete_external_container_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/DeleteExternalContainerDatabase"
+ operation_name = "delete_cloud_autonomous_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudAutonomousVmCluster/DeleteCloudAutonomousVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_request_id",
- "if_match"
+ "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_external_container_database got unknown kwargs: {extra_kwargs!r}")
+ f"delete_cloud_autonomous_vm_cluster got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalContainerDatabaseId": external_container_database_id
+ "cloudAutonomousVmClusterId": cloud_autonomous_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10118,8 +10007,8 @@ def delete_external_container_database(self, external_container_database_id, **k
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", missing),
- "if-match": kwargs.get("if_match", 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}
@@ -10153,16 +10042,13 @@ def delete_external_container_database(self, external_container_database_id, **k
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_external_database_connector(self, external_database_connector_id, **kwargs):
+ def delete_cloud_exadata_infrastructure(self, cloud_exadata_infrastructure_id, **kwargs):
"""
- Deletes an external database connector.
- Any services enabled using the external database connector must be
- deleted prior to this operation.
+ Deletes the cloud Exadata infrastructure resource. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.
- :param str external_database_connector_id: (required)
- The `OCID`__ of the
- external database connector resource (`ExternalDatabaseConnectorId`).
+ :param str cloud_exadata_infrastructure_id: (required)
+ The cloud Exadata infrastructure `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -10171,6 +10057,9 @@ def delete_external_database_connector(self, external_database_connector_id, **k
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 bool is_delete_vm_clusters: (optional)
+ If `true`, forces the deletion the specified cloud Exadata infrastructure resource as well as all associated VM clusters. If `false`, the cloud Exadata infrastructure resource can be deleted only if it has no associated VM clusters. Default value is `false`.
+
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -10190,29 +10079,30 @@ def delete_external_database_connector(self, external_database_connector_id, **k
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_external_database_connector API.
+ Click `here `__ to see an example of how to use delete_cloud_exadata_infrastructure API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalDatabaseConnectorId']
- resource_path = "/externaldatabaseconnectors/{externalDatabaseConnectorId}"
+ required_arguments = ['cloudExadataInfrastructureId']
+ resource_path = "/cloudExadataInfrastructures/{cloudExadataInfrastructureId}"
method = "DELETE"
- operation_name = "delete_external_database_connector"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/DeleteExternalDatabaseConnector"
+ operation_name = "delete_cloud_exadata_infrastructure"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/DeleteCloudExadataInfrastructure"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
+ "is_delete_vm_clusters",
"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_external_database_connector got unknown kwargs: {extra_kwargs!r}")
+ f"delete_cloud_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalDatabaseConnectorId": external_database_connector_id
+ "cloudExadataInfrastructureId": cloud_exadata_infrastructure_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10221,6 +10111,11 @@ def delete_external_database_connector(self, external_database_connector_id, **k
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')
+ query_params = {
+ "isDeleteVmClusters": kwargs.get("is_delete_vm_clusters", 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",
@@ -10243,6 +10138,7 @@ def delete_external_database_connector(self, external_database_connector_id, **k
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,
@@ -10253,19 +10149,20 @@ def delete_external_database_connector(self, external_database_connector_id, **k
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,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_external_non_container_database(self, external_non_container_database_id, **kwargs):
+ def delete_cloud_vm_cluster(self, cloud_vm_cluster_id, **kwargs):
"""
- Deletes the Oracle Cloud Infrastructure resource representing an external non-container database.
+ Deletes the specified cloud VM cluster. Applies to Exadata Cloud Service instances and Autonomous Database on dedicated Exadata infrastructure only.
- :param str external_non_container_database_id: (required)
- The external non-container database `OCID`__.
+ :param str cloud_vm_cluster_id: (required)
+ The cloud VM cluster `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -10293,14 +10190,14 @@ def delete_external_non_container_database(self, external_non_container_database
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_external_non_container_database API.
+ Click `here `__ to see an example of how to use delete_cloud_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalNonContainerDatabaseId']
- resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}"
+ required_arguments = ['cloudVmClusterId']
+ resource_path = "/cloudVmClusters/{cloudVmClusterId}"
method = "DELETE"
- operation_name = "delete_external_non_container_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/DeleteExternalNonContainerDatabase"
+ operation_name = "delete_cloud_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/CloudVmCluster/DeleteCloudVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -10312,10 +10209,10 @@ def delete_external_non_container_database(self, external_non_container_database
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_external_non_container_database got unknown kwargs: {extra_kwargs!r}")
+ f"delete_cloud_vm_cluster got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalNonContainerDatabaseId": external_non_container_database_id
+ "cloudVmClusterId": cloud_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10362,19 +10259,18 @@ def delete_external_non_container_database(self, external_non_container_database
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_external_pluggable_database(self, external_pluggable_database_id, **kwargs):
+ def delete_console_connection(self, db_node_id, console_connection_id, **kwargs):
"""
- Deletes the :func:`create_external_pluggable_database_details`.
- resource.
+ Deletes the specified database node console connection.
- :param str external_pluggable_database_id: (required)
- The ExternalPluggableDatabaseId `OCID`__.
+ :param str db_node_id: (required)
+ The database node `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str opc_request_id: (optional)
- Unique identifier for the request.
+ :param str console_connection_id: (required)
+ The OCID of the console connection.
:param str if_match: (optional)
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
@@ -10397,29 +10293,29 @@ def delete_external_pluggable_database(self, external_pluggable_database_id, **k
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_external_pluggable_database API.
+ Click `here `__ to see an example of how to use delete_console_connection API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalPluggableDatabaseId']
- resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}"
+ required_arguments = ['dbNodeId', 'consoleConnectionId']
+ resource_path = "/dbNodes/{dbNodeId}/consoleConnections/{consoleConnectionId}"
method = "DELETE"
- operation_name = "delete_external_pluggable_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/DeleteExternalPluggableDatabase"
+ operation_name = "delete_console_connection"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleConnection/DeleteConsoleConnection"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_external_pluggable_database got unknown kwargs: {extra_kwargs!r}")
+ f"delete_console_connection got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalPluggableDatabaseId": external_pluggable_database_id
+ "dbNodeId": db_node_id,
+ "consoleConnectionId": console_connection_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10431,7 +10327,6 @@ def delete_external_pluggable_database(self, external_pluggable_database_id, **k
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", 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}
@@ -10466,16 +10361,19 @@ def delete_external_pluggable_database(self, external_pluggable_database_id, **k
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_key_store(self, key_store_id, **kwargs):
+ def delete_console_history(self, db_node_id, console_history_id, **kwargs):
"""
- Deletes a key store.
+ Deletes the specified database node console history.
- :param str key_store_id: (required)
- The `OCID`__ of the key store.
+ :param str db_node_id: (required)
+ The database node `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :param str console_history_id: (required)
+ The OCID of the console history.
+
: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
@@ -10500,14 +10398,14 @@ def delete_key_store(self, key_store_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_key_store API.
+ Click `here `__ to see an example of how to use delete_console_history API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['keyStoreId']
- resource_path = "/keyStores/{keyStoreId}"
+ required_arguments = ['dbNodeId', 'consoleHistoryId']
+ resource_path = "/dbNodes/{dbNodeId}/consoleHistories/{consoleHistoryId}"
method = "DELETE"
- operation_name = "delete_key_store"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/KeyStore/DeleteKeyStore"
+ operation_name = "delete_console_history"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ConsoleHistory/DeleteConsoleHistory"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -10519,10 +10417,11 @@ def delete_key_store(self, key_store_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_key_store got unknown kwargs: {extra_kwargs!r}")
+ f"delete_console_history got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "keyStoreId": key_store_id
+ "dbNodeId": db_node_id,
+ "consoleHistoryId": console_history_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10569,19 +10468,136 @@ def delete_key_store(self, key_store_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_oneoff_patch(self, oneoff_patch_id, **kwargs):
+ def delete_database(self, database_id, **kwargs):
"""
- Deletes a one-off patch.
+ Deletes the specified database. Applies only to Exadata systems.
+ The data in this database is local to the Exadata system and will be lost when the database is deleted. Oracle recommends that you back up any data in the Exadata system prior to deleting it. You can use the `performFinalBackup` parameter to have the Exadata system database backed up before it is deleted.
- :param str oneoff_patch_id: (required)
- The one-off patch `OCID`__.
+
+ :param str database_id: (required)
+ The database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :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 bool perform_final_backup: (optional)
+ Whether to perform a final backup of the database or not. Default is false.
+
+ If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
+
+ This parameter is used in multiple APIs. Refer to the API description for details on how the operation uses it.
+
: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 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 delete_database API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['databaseId']
+ resource_path = "/databases/{databaseId}"
+ method = "DELETE"
+ operation_name = "delete_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/DeleteDatabase"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "if_match",
+ "perform_final_backup",
+ "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_database 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')
+
+ query_params = {
+ "performFinalBackup": kwargs.get("perform_final_backup", 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",
+ "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:
+ 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,
+ 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,
+ allow_control_chars=kwargs.get('allow_control_chars'),
+ operation_name=operation_name,
+ api_reference_link=api_reference_link,
+ required_arguments=required_arguments)
+
+ def delete_database_software_image(self, database_software_image_id, **kwargs):
+ """
+ Delete a database software image
+
+
+ :param str database_software_image_id: (required)
+ The DB system `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
: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
@@ -10603,29 +10619,28 @@ def delete_oneoff_patch(self, oneoff_patch_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_oneoff_patch API.
+ Click `here `__ to see an example of how to use delete_database_software_image API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['oneoffPatchId']
- resource_path = "/oneoffPatches/{oneoffPatchId}"
+ required_arguments = ['databaseSoftwareImageId']
+ resource_path = "/databaseSoftwareImages/{databaseSoftwareImageId}"
method = "DELETE"
- operation_name = "delete_oneoff_patch"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/DeleteOneoffPatch"
+ operation_name = "delete_database_software_image"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DatabaseSoftwareImage/DeleteDatabaseSoftwareImage"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_oneoff_patch got unknown kwargs: {extra_kwargs!r}")
+ f"delete_database_software_image got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "oneoffPatchId": oneoff_patch_id
+ "databaseSoftwareImageId": database_software_image_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10637,7 +10652,6 @@ def delete_oneoff_patch(self, oneoff_patch_id, **kwargs):
header_params = {
"accept": "application/json",
"content-type": "application/json",
- "opc-request-id": kwargs.get("opc_request_id", 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}
@@ -10672,13 +10686,15 @@ def delete_oneoff_patch(self, oneoff_patch_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_pluggable_database(self, pluggable_database_id, **kwargs):
+ def delete_db_home(self, db_home_id, **kwargs):
"""
- Deletes the specified pluggable database.
+ Deletes a Database Home. Applies to bare metal DB systems, Exadata Cloud Service, and Exadata Cloud@Customer systems.
+ Oracle recommends that you use the `performFinalBackup` parameter to back up any data on a bare metal DB system before you delete a Database Home. On an Exadata Cloud@Customer system or an Exadata Cloud Service system, you can delete a Database Home only when there are no databases in it and therefore you cannot use the `performFinalBackup` parameter to back up data.
- :param str pluggable_database_id: (required)
- The database `OCID`__.
+
+ :param str db_home_id: (required)
+ The Database Home `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -10687,8 +10703,12 @@ def delete_pluggable_database(self, pluggable_database_id, **kwargs):
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 bool perform_final_backup: (optional)
+ Whether to perform a final backup of the database or not. Default is false.
+
+ If you previously used RMAN or dbcli to configure backups and then you switch to using the Console or the API for backups, a new backup configuration is created and associated with your database. This means that you can no longer rely on your previously configured unmanaged backups to work.
+
+ This parameter is used in multiple APIs. Refer to the API description for details on how the operation uses it.
: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.
@@ -10706,29 +10726,29 @@ def delete_pluggable_database(self, pluggable_database_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_pluggable_database API.
+ Click `here `__ to see an example of how to use delete_db_home API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['pluggableDatabaseId']
- resource_path = "/pluggableDatabases/{pluggableDatabaseId}"
+ required_arguments = ['dbHomeId']
+ resource_path = "/dbHomes/{dbHomeId}"
method = "DELETE"
- operation_name = "delete_pluggable_database"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/DeletePluggableDatabase"
+ operation_name = "delete_db_home"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/DbHome/DeleteDbHome"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
"if_match",
- "opc_request_id"
+ "perform_final_backup"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_pluggable_database got unknown kwargs: {extra_kwargs!r}")
+ f"delete_db_home got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "pluggableDatabaseId": pluggable_database_id
+ "dbHomeId": db_home_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10737,11 +10757,15 @@ def delete_pluggable_database(self, pluggable_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')
+ query_params = {
+ "performFinalBackup": kwargs.get("perform_final_backup", 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",
- "if-match": kwargs.get("if_match", missing),
- "opc-request-id": kwargs.get("opc_request_id", 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}
@@ -10759,6 +10783,7 @@ def delete_pluggable_database(self, pluggable_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,
@@ -10769,19 +10794,20 @@ def delete_pluggable_database(self, pluggable_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,
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_vm_cluster(self, vm_cluster_id, **kwargs):
+ def delete_exadata_infrastructure(self, exadata_infrastructure_id, **kwargs):
"""
- Deletes the specified VM cluster. Applies to Exadata Cloud@Customer instances only.
+ Deletes the Exadata Cloud@Customer infrastructure.
- :param str vm_cluster_id: (required)
- The VM cluster `OCID`__.
+ :param str exadata_infrastructure_id: (required)
+ The Exadata infrastructure `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -10809,14 +10835,14 @@ def delete_vm_cluster(self, vm_cluster_id, **kwargs):
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_vm_cluster API.
+ Click `here `__ to see an example of how to use delete_exadata_infrastructure API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['vmClusterId']
- resource_path = "/vmClusters/{vmClusterId}"
+ required_arguments = ['exadataInfrastructureId']
+ resource_path = "/exadataInfrastructures/{exadataInfrastructureId}"
method = "DELETE"
- operation_name = "delete_vm_cluster"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmCluster/DeleteVmCluster"
+ operation_name = "delete_exadata_infrastructure"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadataInfrastructure/DeleteExadataInfrastructure"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -10828,10 +10854,10 @@ def delete_vm_cluster(self, vm_cluster_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_vm_cluster got unknown kwargs: {extra_kwargs!r}")
+ f"delete_exadata_infrastructure got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "vmClusterId": vm_cluster_id
+ "exadataInfrastructureId": exadata_infrastructure_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10878,19 +10904,13 @@ def delete_vm_cluster(self, vm_cluster_id, **kwargs):
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_network_id, **kwargs):
+ def delete_exadb_vm_cluster(self, exadb_vm_cluster_id, **kwargs):
"""
- Deletes the specified VM cluster network. Applies to Exadata Cloud@Customer instances only.
- To delete a cloud VM cluster in an Exadata Cloud Service instance, use the :func:`delete_cloud_vm_cluster` operation.
-
-
- :param str exadata_infrastructure_id: (required)
- The Exadata infrastructure `OCID`__.
+ Deletes the specified Exadata VM cluster on Exascale Infrastructure. Applies to Exadata Database Service on Exascale Infrastructure only.
- __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :param str vm_cluster_network_id: (required)
- The VM cluster network `OCID`__.
+ :param str exadb_vm_cluster_id: (required)
+ The Exadata VM cluster `OCID`__ on Exascale Infrastructure.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
@@ -10918,14 +10938,14 @@ def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use delete_vm_cluster_network API.
+ Click `here `__ to see an example of how to use delete_exadb_vm_cluster API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['exadataInfrastructureId', 'vmClusterNetworkId']
- resource_path = "/exadataInfrastructures/{exadataInfrastructureId}/vmClusterNetworks/{vmClusterNetworkId}"
+ required_arguments = ['exadbVmClusterId']
+ resource_path = "/exadbVmClusters/{exadbVmClusterId}"
method = "DELETE"
- operation_name = "delete_vm_cluster_network"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/VmClusterNetwork/DeleteVmClusterNetwork"
+ operation_name = "delete_exadb_vm_cluster"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExadbVmCluster/DeleteExadbVmCluster"
# Don't accept unknown kwargs
expected_kwargs = [
@@ -10937,11 +10957,10 @@ def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"delete_vm_cluster_network got unknown kwargs: {extra_kwargs!r}")
+ f"delete_exadb_vm_cluster got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "exadataInfrastructureId": exadata_infrastructure_id,
- "vmClusterNetworkId": vm_cluster_network_id
+ "exadbVmClusterId": exadb_vm_cluster_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -10988,22 +11007,24 @@ def delete_vm_cluster_network(self, exadata_infrastructure_id, vm_cluster_networ
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwargs):
+ def delete_exascale_db_storage_vault(self, exascale_db_storage_vault_id, **kwargs):
"""
- Asynchronously deregisters this Autonomous Database with Data Safe.
+ Deletes the specified Exadata Database Storage Vault.
- :param str autonomous_database_id: (required)
- The database `OCID`__.
+ :param str exascale_db_storage_vault_id: (required)
+ The Exadata Database Storage Vault `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :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 oci.database.models.DeregisterAutonomousDatabaseDataSafeDetails deregister_autonomous_database_data_safe_details: (optional)
- Details for deregistering an Autonomous Database with Data Safe.
-
: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.
@@ -11020,29 +11041,29 @@ def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwa
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use deregister_autonomous_database_data_safe API.
+ Click `here `__ to see an example of how to use delete_exascale_db_storage_vault API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/deregisterDataSafe"
- method = "POST"
- operation_name = "deregister_autonomous_database_data_safe"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/DeregisterAutonomousDatabaseDataSafe"
+ required_arguments = ['exascaleDbStorageVaultId']
+ resource_path = "/exascaleDbStorageVaults/{exascaleDbStorageVaultId}"
+ method = "DELETE"
+ operation_name = "delete_exascale_db_storage_vault"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/DeleteExascaleDbStorageVault"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_request_id",
- "deregister_autonomous_database_data_safe_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"deregister_autonomous_database_data_safe got unknown kwargs: {extra_kwargs!r}")
+ f"delete_exascale_db_storage_vault got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousDatabaseId": autonomous_database_id
+ "exascaleDbStorageVaultId": exascale_db_storage_vault_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11054,6 +11075,7 @@ def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwa
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}
@@ -11073,7 +11095,6 @@ def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwa
method=method,
path_params=path_params,
header_params=header_params,
- body=kwargs.get('deregister_autonomous_database_data_safe_details'),
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -11084,22 +11105,26 @@ def deregister_autonomous_database_data_safe(self, autonomous_database_id, **kwa
method=method,
path_params=path_params,
header_params=header_params,
- body=kwargs.get('deregister_autonomous_database_data_safe_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_autonomous_database_management(self, autonomous_database_id, **kwargs):
+ def delete_execution_action(self, execution_action_id, **kwargs):
"""
- Disables Database Management for the Autonomous Database resource.
+ Deletes the execution action.
- :param str autonomous_database_id: (required)
- The database `OCID`__.
+ :param str execution_action_id: (required)
+ The execution action `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :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.
@@ -11119,28 +11144,29 @@ def disable_autonomous_database_management(self, autonomous_database_id, **kwarg
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_autonomous_database_management API.
+ Click `here `__ to see an example of how to use delete_execution_action API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/disableDatabaseManagement"
- method = "POST"
- operation_name = "disable_autonomous_database_management"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/DisableAutonomousDatabaseManagement"
+ required_arguments = ['executionActionId']
+ resource_path = "/executionActions/{executionActionId}"
+ method = "DELETE"
+ operation_name = "delete_execution_action"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionAction/DeleteExecutionAction"
# 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"disable_autonomous_database_management got unknown kwargs: {extra_kwargs!r}")
+ f"delete_execution_action got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousDatabaseId": autonomous_database_id
+ "executionActionId": execution_action_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11152,6 +11178,7 @@ def disable_autonomous_database_management(self, autonomous_database_id, **kwarg
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}
@@ -11186,16 +11213,21 @@ def disable_autonomous_database_management(self, autonomous_database_id, **kwarg
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_autonomous_database_operations_insights(self, autonomous_database_id, **kwargs):
+ def delete_execution_window(self, execution_window_id, **kwargs):
"""
- Disables Operations Insights for the Autonomous Database resource.
+ Deletes the execution window.
- :param str autonomous_database_id: (required)
- The database `OCID`__.
+ :param str execution_window_id: (required)
+ The execution window `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+ :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.
@@ -11215,28 +11247,29 @@ def disable_autonomous_database_operations_insights(self, autonomous_database_id
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_autonomous_database_operations_insights API.
+ Click `here `__ to see an example of how to use delete_execution_window API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['autonomousDatabaseId']
- resource_path = "/autonomousDatabases/{autonomousDatabaseId}/actions/disableOperationsInsights"
- method = "POST"
- operation_name = "disable_autonomous_database_operations_insights"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/AutonomousDatabase/DisableAutonomousDatabaseOperationsInsights"
+ required_arguments = ['executionWindowId']
+ resource_path = "/executionWindows/{executionWindowId}"
+ method = "DELETE"
+ operation_name = "delete_execution_window"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExecutionWindow/DeleteExecutionWindow"
# 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"disable_autonomous_database_operations_insights got unknown kwargs: {extra_kwargs!r}")
+ f"delete_execution_window got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "autonomousDatabaseId": autonomous_database_id
+ "executionWindowId": execution_window_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11248,6 +11281,7 @@ def disable_autonomous_database_operations_insights(self, autonomous_database_id
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}
@@ -11282,23 +11316,18 @@ def disable_autonomous_database_operations_insights(self, autonomous_database_id
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_database_management(self, database_id, **kwargs):
+ def delete_external_container_database(self, external_container_database_id, **kwargs):
"""
- Disables the Database Management service for the database.
+ Deletes the :func:`create_external_container_database_details`
+ resource. Any external pluggable databases registered under this container database must be deleted in
+ your Oracle Cloud Infrastructure tenancy prior to this operation.
- :param str database_id: (required)
- The database `OCID`__.
+ :param str external_container_database_id: (required)
+ The ExternalContainerDatabase `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -11319,34 +11348,33 @@ def disable_database_management(self, database_id, **kwargs):
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.models.Database`
+ :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_database_management API.
+ Click `here `__ to see an example of how to use delete_external_container_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['databaseId']
- resource_path = "/databases/{databaseId}/actions/disableDatabaseManagement"
- method = "POST"
- operation_name = "disable_database_management"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/DisableDatabaseManagement"
+ required_arguments = ['externalContainerDatabaseId']
+ resource_path = "/externalcontainerdatabases/{externalContainerDatabaseId}"
+ method = "DELETE"
+ operation_name = "delete_external_container_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/DeleteExternalContainerDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
"opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"disable_database_management got unknown kwargs: {extra_kwargs!r}")
+ f"delete_external_container_database got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "databaseId": database_id
+ "externalContainerDatabaseId": external_container_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11358,7 +11386,6 @@ def disable_database_management(self, database_id, **kwargs):
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),
"if-match": kwargs.get("if_match", missing)
}
@@ -11371,7 +11398,6 @@ def disable_database_management(self, database_id, **kwargs):
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(
@@ -11380,7 +11406,6 @@ def disable_database_management(self, database_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- response_type="Database",
allow_control_chars=kwargs.get('allow_control_chars'),
operation_name=operation_name,
api_reference_link=api_reference_link,
@@ -11391,37 +11416,32 @@ def disable_database_management(self, database_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- response_type="Database",
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_container_database_database_management(self, external_container_database_id, **kwargs):
+ def delete_external_database_connector(self, external_database_connector_id, **kwargs):
"""
- Disable Database Management service for the external container database.
+ Deletes an external database connector.
+ Any services enabled using the external database connector must be
+ deleted prior to this operation.
- :param str external_container_database_id: (required)
- The ExternalContainerDatabase `OCID`__.
+ :param str external_database_connector_id: (required)
+ The `OCID`__ of the
+ external database connector resource (`ExternalDatabaseConnectorId`).
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
: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.
@@ -11438,30 +11458,29 @@ def disable_external_container_database_database_management(self, external_conta
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_external_container_database_database_management API.
+ Click `here `__ to see an example of how to use delete_external_database_connector API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalContainerDatabaseId']
- resource_path = "/externalcontainerdatabases/{externalContainerDatabaseId}/actions/disableDatabaseManagement"
- method = "POST"
- operation_name = "disable_external_container_database_database_management"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/DisableExternalContainerDatabaseDatabaseManagement"
+ required_arguments = ['externalDatabaseConnectorId']
+ resource_path = "/externaldatabaseconnectors/{externalDatabaseConnectorId}"
+ method = "DELETE"
+ operation_name = "delete_external_database_connector"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalDatabaseConnector/DeleteExternalDatabaseConnector"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id",
- "if_match"
+ "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"disable_external_container_database_database_management got unknown kwargs: {extra_kwargs!r}")
+ f"delete_external_database_connector got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalContainerDatabaseId": external_container_database_id
+ "externalDatabaseConnectorId": external_database_connector_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11473,9 +11492,8 @@ def disable_external_container_database_database_management(self, external_conta
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),
- "if-match": kwargs.get("if_match", 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}
@@ -11486,7 +11504,6 @@ def disable_external_container_database_database_management(self, external_conta
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(
@@ -11510,31 +11527,24 @@ def disable_external_container_database_database_management(self, external_conta
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_external_container_database_stack_monitoring(self, external_container_database_id, **kwargs):
+ def delete_external_non_container_database(self, external_non_container_database_id, **kwargs):
"""
- Disable Stack Monitoring for the external container database.
+ Deletes the Oracle Cloud Infrastructure resource representing an external non-container database.
- :param str external_container_database_id: (required)
- The ExternalContainerDatabase `OCID`__.
+ :param str external_non_container_database_id: (required)
+ The external non-container database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
: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.
@@ -11551,30 +11561,29 @@ def disable_external_container_database_stack_monitoring(self, external_containe
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_external_container_database_stack_monitoring API.
+ Click `here `__ to see an example of how to use delete_external_non_container_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalContainerDatabaseId']
- resource_path = "/externalcontainerdatabases/{externalContainerDatabaseId}/actions/disableStackMonitoring"
- method = "POST"
- operation_name = "disable_external_container_database_stack_monitoring"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalContainerDatabase/DisableExternalContainerDatabaseStackMonitoring"
+ required_arguments = ['externalNonContainerDatabaseId']
+ resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}"
+ method = "DELETE"
+ operation_name = "delete_external_non_container_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/DeleteExternalNonContainerDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id",
- "if_match"
+ "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"disable_external_container_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}")
+ f"delete_external_non_container_database got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalContainerDatabaseId": external_container_database_id
+ "externalNonContainerDatabaseId": external_non_container_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11586,9 +11595,8 @@ def disable_external_container_database_stack_monitoring(self, external_containe
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),
- "if-match": kwargs.get("if_match", 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}
@@ -11599,7 +11607,6 @@ def disable_external_container_database_stack_monitoring(self, external_containe
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(
@@ -11623,27 +11630,17 @@ def disable_external_container_database_stack_monitoring(self, external_containe
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_external_non_container_database_database_management(self, external_non_container_database_id, **kwargs):
+ def delete_external_pluggable_database(self, external_pluggable_database_id, **kwargs):
"""
- Disable Database Management Service for the external non-container database.
- For more information about the Database Management Service, see
- `Database Management Service`__.
-
- __ https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm
+ Deletes the :func:`create_external_pluggable_database_details`.
+ resource.
- :param str external_non_container_database_id: (required)
- The external non-container database `OCID`__.
+ :param str external_pluggable_database_id: (required)
+ The ExternalPluggableDatabaseId `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -11668,30 +11665,29 @@ def disable_external_non_container_database_database_management(self, external_n
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_external_non_container_database_database_management API.
+ Click `here `__ to see an example of how to use delete_external_pluggable_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalNonContainerDatabaseId']
- resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}/actions/disableDatabaseManagement"
- method = "POST"
- operation_name = "disable_external_non_container_database_database_management"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/DisableExternalNonContainerDatabaseDatabaseManagement"
+ required_arguments = ['externalPluggableDatabaseId']
+ resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}"
+ method = "DELETE"
+ operation_name = "delete_external_pluggable_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/DeleteExternalPluggableDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
"opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"disable_external_non_container_database_database_management got unknown kwargs: {extra_kwargs!r}")
+ f"delete_external_pluggable_database got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalNonContainerDatabaseId": external_non_container_database_id
+ "externalPluggableDatabaseId": external_pluggable_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11703,7 +11699,6 @@ def disable_external_non_container_database_database_management(self, external_n
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),
"if-match": kwargs.get("if_match", missing)
}
@@ -11716,7 +11711,6 @@ def disable_external_non_container_database_database_management(self, external_n
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(
@@ -11740,31 +11734,24 @@ def disable_external_non_container_database_database_management(self, external_n
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_external_non_container_database_operations_insights(self, external_non_container_database_id, **kwargs):
+ def delete_key_store(self, key_store_id, **kwargs):
"""
- Disable Operations Insights for the external non-container database.
+ Deletes a key store.
- :param str external_non_container_database_id: (required)
- The external non-container database `OCID`__.
+ :param str key_store_id: (required)
+ The `OCID`__ of the key store.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
: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.
@@ -11781,30 +11768,29 @@ def disable_external_non_container_database_operations_insights(self, external_n
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_external_non_container_database_operations_insights API.
+ Click `here `__ to see an example of how to use delete_key_store API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalNonContainerDatabaseId']
- resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}/actions/disableOperationsInsights"
- method = "POST"
- operation_name = "disable_external_non_container_database_operations_insights"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/DisableExternalNonContainerDatabaseOperationsInsights"
+ required_arguments = ['keyStoreId']
+ resource_path = "/keyStores/{keyStoreId}"
+ method = "DELETE"
+ operation_name = "delete_key_store"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/KeyStore/DeleteKeyStore"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id",
- "if_match"
+ "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"disable_external_non_container_database_operations_insights got unknown kwargs: {extra_kwargs!r}")
+ f"delete_key_store got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalNonContainerDatabaseId": external_non_container_database_id
+ "keyStoreId": key_store_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11816,9 +11802,8 @@ def disable_external_non_container_database_operations_insights(self, external_n
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),
- "if-match": kwargs.get("if_match", 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}
@@ -11829,7 +11814,6 @@ def disable_external_non_container_database_operations_insights(self, external_n
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(
@@ -11853,23 +11837,16 @@ def disable_external_non_container_database_operations_insights(self, external_n
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_external_non_container_database_stack_monitoring(self, external_non_container_database_id, **kwargs):
+ def delete_oneoff_patch(self, oneoff_patch_id, **kwargs):
"""
- Disable Stack Monitoring for the external non-container database.
+ Deletes a one-off patch.
- :param str external_non_container_database_id: (required)
- The external non-container database `OCID`__.
+ :param str oneoff_patch_id: (required)
+ The one-off patch `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
:param str opc_request_id: (optional)
Unique identifier for the request.
@@ -11894,30 +11871,29 @@ def disable_external_non_container_database_stack_monitoring(self, external_non_
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_external_non_container_database_stack_monitoring API.
+ Click `here `__ to see an example of how to use delete_oneoff_patch API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalNonContainerDatabaseId']
- resource_path = "/externalnoncontainerdatabases/{externalNonContainerDatabaseId}/actions/disableStackMonitoring"
- method = "POST"
- operation_name = "disable_external_non_container_database_stack_monitoring"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalNonContainerDatabase/DisableExternalNonContainerDatabaseStackMonitoring"
+ required_arguments = ['oneoffPatchId']
+ resource_path = "/oneoffPatches/{oneoffPatchId}"
+ method = "DELETE"
+ operation_name = "delete_oneoff_patch"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/OneoffPatch/DeleteOneoffPatch"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
"opc_request_id",
"if_match"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- f"disable_external_non_container_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}")
+ f"delete_oneoff_patch got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalNonContainerDatabaseId": external_non_container_database_id
+ "oneoffPatchId": oneoff_patch_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -11929,7 +11905,6 @@ def disable_external_non_container_database_stack_monitoring(self, external_non_
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),
"if-match": kwargs.get("if_match", missing)
}
@@ -11942,7 +11917,6 @@ def disable_external_non_container_database_stack_monitoring(self, external_non_
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(
@@ -11966,35 +11940,24 @@ def disable_external_non_container_database_stack_monitoring(self, external_non_
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_external_pluggable_database_database_management(self, external_pluggable_database_id, **kwargs):
+ def delete_pluggable_database(self, pluggable_database_id, **kwargs):
"""
- Disable Database Management Service for the external pluggable database.
- For more information about the Database Management Service, see
- `Database Management Service`__.
-
- __ https://docs.cloud.oracle.com/Content/ExternalDatabase/Concepts/databasemanagementservice.htm
+ Deletes the specified pluggable database.
- :param str external_pluggable_database_id: (required)
- The ExternalPluggableDatabaseId `OCID`__.
+ :param str pluggable_database_id: (required)
+ The database `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
: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.
@@ -12011,30 +11974,29 @@ def disable_external_pluggable_database_database_management(self, external_plugg
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_external_pluggable_database_database_management API.
+ Click `here `__ to see an example of how to use delete_pluggable_database API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalPluggableDatabaseId']
- resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}/actions/disableDatabaseManagement"
- method = "POST"
- operation_name = "disable_external_pluggable_database_database_management"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/DisableExternalPluggableDatabaseDatabaseManagement"
+ required_arguments = ['pluggableDatabaseId']
+ resource_path = "/pluggableDatabases/{pluggableDatabaseId}"
+ method = "DELETE"
+ operation_name = "delete_pluggable_database"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/DeletePluggableDatabase"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id",
- "if_match"
+ "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"disable_external_pluggable_database_database_management got unknown kwargs: {extra_kwargs!r}")
+ f"delete_pluggable_database got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalPluggableDatabaseId": external_pluggable_database_id
+ "pluggableDatabaseId": pluggable_database_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -12046,9 +12008,8 @@ def disable_external_pluggable_database_database_management(self, external_plugg
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),
- "if-match": kwargs.get("if_match", 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}
@@ -12059,7 +12020,6 @@ def disable_external_pluggable_database_database_management(self, external_plugg
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(
@@ -12083,31 +12043,24 @@ def disable_external_pluggable_database_database_management(self, external_plugg
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_external_pluggable_database_operations_insights(self, external_pluggable_database_id, **kwargs):
+ def delete_scheduled_action(self, scheduled_action_id, **kwargs):
"""
- Disable Operations Insights for the external pluggable database.
+ Deletes the scheduled action.
- :param str external_pluggable_database_id: (required)
- The ExternalPluggableDatabaseId `OCID`__.
+ :param str scheduled_action_id: (required)
+ The Scheduled Action `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
-
- :param str opc_request_id: (optional)
- Unique identifier for the request.
-
: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.
@@ -12124,30 +12077,29 @@ def disable_external_pluggable_database_operations_insights(self, external_plugg
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_external_pluggable_database_operations_insights API.
+ Click `here `__ to see an example of how to use delete_scheduled_action API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalPluggableDatabaseId']
- resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}/actions/disableOperationsInsights"
- method = "POST"
- operation_name = "disable_external_pluggable_database_operations_insights"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/DisableExternalPluggableDatabaseOperationsInsights"
+ required_arguments = ['scheduledActionId']
+ resource_path = "/scheduledActions/{scheduledActionId}"
+ method = "DELETE"
+ operation_name = "delete_scheduled_action"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ScheduledAction/DeleteScheduledAction"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id",
- "if_match"
+ "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"disable_external_pluggable_database_operations_insights got unknown kwargs: {extra_kwargs!r}")
+ f"delete_scheduled_action got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalPluggableDatabaseId": external_pluggable_database_id
+ "scheduledActionId": scheduled_action_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -12159,9 +12111,8 @@ def disable_external_pluggable_database_operations_insights(self, external_plugg
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),
- "if-match": kwargs.get("if_match", 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}
@@ -12172,7 +12123,6 @@ def disable_external_pluggable_database_operations_insights(self, external_plugg
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(
@@ -12196,31 +12146,127 @@ def disable_external_pluggable_database_operations_insights(self, external_plugg
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_external_pluggable_database_stack_monitoring(self, external_pluggable_database_id, **kwargs):
+ def delete_scheduling_plan(self, scheduling_plan_id, **kwargs):
"""
- Disable Stack Monitoring for the external pluggable database.
+ Deletes the scheduling plan.
- :param str external_pluggable_database_id: (required)
- The ExternalPluggableDatabaseId `OCID`__.
+ :param str scheduling_plan_id: (required)
+ The Schedule Plan `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may 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 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 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 delete_scheduling_plan API.
+ """
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
+ required_arguments = ['schedulingPlanId']
+ resource_path = "/schedulingPlans/{schedulingPlanId}"
+ method = "DELETE"
+ operation_name = "delete_scheduling_plan"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPlan/DeleteSchedulingPlan"
+
+ # 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_scheduling_plan got unknown kwargs: {extra_kwargs!r}")
+
+ path_params = {
+ "schedulingPlanId": scheduling_plan_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:
+ 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_scheduling_policy(self, scheduling_policy_id, **kwargs):
+ """
+ Deletes the scheduling policy.
+
+
+ :param str scheduling_policy_id: (required)
+ The Scheduling Policy `OCID`__.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
: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.
@@ -12237,30 +12283,29 @@ def disable_external_pluggable_database_stack_monitoring(self, external_pluggabl
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use disable_external_pluggable_database_stack_monitoring API.
+ Click `here `__ to see an example of how to use delete_scheduling_policy API.
"""
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
- required_arguments = ['externalPluggableDatabaseId']
- resource_path = "/externalpluggabledatabases/{externalPluggableDatabaseId}/actions/disableStackMonitoring"
- method = "POST"
- operation_name = "disable_external_pluggable_database_stack_monitoring"
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/ExternalPluggableDatabase/DisableExternalPluggableDatabaseStackMonitoring"
+ required_arguments = ['schedulingPolicyId']
+ resource_path = "/schedulingPolicies/{schedulingPolicyId}"
+ method = "DELETE"
+ operation_name = "delete_scheduling_policy"
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/SchedulingPolicy/DeleteSchedulingPolicy"
# Don't accept unknown kwargs
expected_kwargs = [
"allow_control_chars",
"retry_strategy",
- "opc_retry_token",
- "opc_request_id",
- "if_match"
+ "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"disable_external_pluggable_database_stack_monitoring got unknown kwargs: {extra_kwargs!r}")
+ f"delete_scheduling_policy got unknown kwargs: {extra_kwargs!r}")
path_params = {
- "externalPluggableDatabaseId": external_pluggable_database_id
+ "schedulingPolicyId": scheduling_policy_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -12272,9 +12317,8 @@ def disable_external_pluggable_database_stack_monitoring(self, external_pluggabl
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),
- "if-match": kwargs.get("if_match", 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}
@@ -12285,7 +12329,6 @@ def disable_external_pluggable_database_stack_monitoring(self, external_pluggabl
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(
@@ -12309,31 +12352,29 @@ def disable_external_pluggable_database_stack_monitoring(self, external_pluggabl
api_reference_link=api_reference_link,
required_arguments=required_arguments)
- def disable_pluggable_database_management(self, pluggable_database_id, **kwargs):
+ def delete_scheduling_window(self, scheduling_policy_id, scheduling_window_id, **kwargs):
"""
- Disables the Database Management service for the pluggable database.
+ Deletes the scheduling window.
- :param str pluggable_database_id: (required)
- The database `OCID`__.
+ :param str scheduling_policy_id: (required)
+ The Scheduling Policy `OCID`__.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
- :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
- may be rejected).
+ :param str scheduling_window_id: (required)
+ The Scheduling Window `OCID`__.
- :param str opc_request_id: (optional)
- Unique identifier for the request.
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
: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.
@@ -12346,34 +12387,34 @@ def disable_pluggable_database_management(self, pluggable_database_id, **kwargs)
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.models.PluggableDatabase`
+ :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_pluggable_database_management API.
+ Click `here