diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 2a966659a9..4afd3706eb 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -3,6 +3,20 @@ Change Log
All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog `_.
+====================
+2.61.0 - 2022-03-22
+====================
+
+Added
+-----
+* Support for getting the storage utilization of a deployment on deployment list and get operations in the GoldenGate service
+* Support for virtual machines, bare metal machines, and Exadata databases with private endpoints in the Operations Insights service
+* Support for setting deletion policies on database systems in the MySQL Database service
+
+Breaking
+--------
+* Support for retries by default on operations in the Data Labeling service (data plane and control plane)
+
====================
2.60.1 - 2022-03-15
====================
diff --git a/docs/api/mysql.rst b/docs/api/mysql.rst
index 4e38a6c528..389b0def0f 100644
--- a/docs/api/mysql.rst
+++ b/docs/api/mysql.rst
@@ -61,6 +61,7 @@ Mysql
oci.mysql.models.CreateDbSystemSourceFromBackupDetails
oci.mysql.models.CreateDbSystemSourceFromNoneDetails
oci.mysql.models.CreateDbSystemSourceImportFromUrlDetails
+ oci.mysql.models.CreateDeletionPolicyDetails
oci.mysql.models.CreateMaintenanceDetails
oci.mysql.models.DbSystem
oci.mysql.models.DbSystemEndpoint
@@ -71,6 +72,7 @@ Mysql
oci.mysql.models.DbSystemSourceFromNone
oci.mysql.models.DbSystemSourceImportFromUrl
oci.mysql.models.DbSystemSummary
+ oci.mysql.models.DeletionPolicyDetails
oci.mysql.models.HeatWaveCluster
oci.mysql.models.HeatWaveClusterMemoryEstimate
oci.mysql.models.HeatWaveClusterSchemaMemoryEstimate
@@ -92,6 +94,7 @@ Mysql
oci.mysql.models.UpdateChannelTargetFromDbSystemDetails
oci.mysql.models.UpdateConfigurationDetails
oci.mysql.models.UpdateDbSystemDetails
+ oci.mysql.models.UpdateDeletionPolicyDetails
oci.mysql.models.UpdateHeatWaveClusterDetails
oci.mysql.models.UpdateMaintenanceDetails
oci.mysql.models.Version
diff --git a/docs/api/mysql/models/oci.mysql.models.CreateDeletionPolicyDetails.rst b/docs/api/mysql/models/oci.mysql.models.CreateDeletionPolicyDetails.rst
new file mode 100644
index 0000000000..2d8526401b
--- /dev/null
+++ b/docs/api/mysql/models/oci.mysql.models.CreateDeletionPolicyDetails.rst
@@ -0,0 +1,11 @@
+CreateDeletionPolicyDetails
+===========================
+
+.. currentmodule:: oci.mysql.models
+
+.. autoclass:: CreateDeletionPolicyDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/mysql/models/oci.mysql.models.DeletionPolicyDetails.rst b/docs/api/mysql/models/oci.mysql.models.DeletionPolicyDetails.rst
new file mode 100644
index 0000000000..b258c24ff9
--- /dev/null
+++ b/docs/api/mysql/models/oci.mysql.models.DeletionPolicyDetails.rst
@@ -0,0 +1,11 @@
+DeletionPolicyDetails
+=====================
+
+.. currentmodule:: oci.mysql.models
+
+.. autoclass:: DeletionPolicyDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/mysql/models/oci.mysql.models.UpdateDeletionPolicyDetails.rst b/docs/api/mysql/models/oci.mysql.models.UpdateDeletionPolicyDetails.rst
new file mode 100644
index 0000000000..eb40eb5b8c
--- /dev/null
+++ b/docs/api/mysql/models/oci.mysql.models.UpdateDeletionPolicyDetails.rst
@@ -0,0 +1,11 @@
+UpdateDeletionPolicyDetails
+===========================
+
+.. currentmodule:: oci.mysql.models
+
+.. autoclass:: UpdateDeletionPolicyDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi.rst b/docs/api/opsi.rst
index 840cd65f78..d2910f4c88 100644
--- a/docs/api/opsi.rst
+++ b/docs/api/opsi.rst
@@ -35,6 +35,8 @@ Opsi
oci.opsi.models.ChangeEnterpriseManagerBridgeCompartmentDetails
oci.opsi.models.ChangeExadataInsightCompartmentDetails
oci.opsi.models.ChangeHostInsightCompartmentDetails
+ oci.opsi.models.ChangeOperationsInsightsPrivateEndpointCompartmentDetails
+ oci.opsi.models.ChangePeComanagedDatabaseInsightDetails
oci.opsi.models.ConnectionDetails
oci.opsi.models.CreateAwrHubDetails
oci.opsi.models.CreateDatabaseInsightDetails
@@ -46,8 +48,11 @@ Opsi
oci.opsi.models.CreateExadataInsightDetails
oci.opsi.models.CreateHostInsightDetails
oci.opsi.models.CreateMacsManagedExternalHostInsightDetails
+ oci.opsi.models.CreateOperationsInsightsPrivateEndpointDetails
oci.opsi.models.CreateOperationsInsightsWarehouseDetails
oci.opsi.models.CreateOperationsInsightsWarehouseUserDetails
+ oci.opsi.models.CreatePeComanagedDatabaseInsightDetails
+ oci.opsi.models.CredentialByVault
oci.opsi.models.CredentialDetails
oci.opsi.models.CredentialsBySource
oci.opsi.models.DBExternalInstance
@@ -78,6 +83,7 @@ Opsi
oci.opsi.models.EnableExadataInsightDetails
oci.opsi.models.EnableHostInsightDetails
oci.opsi.models.EnableMacsManagedExternalHostInsightDetails
+ oci.opsi.models.EnablePeComanagedDatabaseInsightDetails
oci.opsi.models.EnterpriseManagerBridge
oci.opsi.models.EnterpriseManagerBridgeCollection
oci.opsi.models.EnterpriseManagerBridgeSummary
@@ -156,6 +162,9 @@ Opsi
oci.opsi.models.MacsManagedExternalHostConfigurationSummary
oci.opsi.models.MacsManagedExternalHostInsight
oci.opsi.models.MacsManagedExternalHostInsightSummary
+ oci.opsi.models.OperationsInsightsPrivateEndpoint
+ oci.opsi.models.OperationsInsightsPrivateEndpointCollection
+ oci.opsi.models.OperationsInsightsPrivateEndpointSummary
oci.opsi.models.OperationsInsightsWarehouse
oci.opsi.models.OperationsInsightsWarehouseSummary
oci.opsi.models.OperationsInsightsWarehouseSummaryCollection
@@ -164,6 +173,11 @@ Opsi
oci.opsi.models.OperationsInsightsWarehouseUserSummaryCollection
oci.opsi.models.OperationsInsightsWarehouseUsers
oci.opsi.models.OperationsInsightsWarehouses
+ oci.opsi.models.PeComanagedDatabaseConnectionDetails
+ oci.opsi.models.PeComanagedDatabaseHostDetails
+ oci.opsi.models.PeComanagedDatabaseInsight
+ oci.opsi.models.PeComanagedDatabaseInsightSummary
+ oci.opsi.models.PeComanagedManagedExternalDatabaseConfigurationSummary
oci.opsi.models.ProjectedDataItem
oci.opsi.models.ResourceCapacityTrendAggregation
oci.opsi.models.ResourceInsightCurrentUtilization
@@ -238,8 +252,10 @@ Opsi
oci.opsi.models.UpdateHostInsightDetails
oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails
oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails
+ oci.opsi.models.UpdateOperationsInsightsPrivateEndpointDetails
oci.opsi.models.UpdateOperationsInsightsWarehouseDetails
oci.opsi.models.UpdateOperationsInsightsWarehouseUserDetails
+ oci.opsi.models.UpdatePeComanagedDatabaseInsightDetails
oci.opsi.models.WorkRequest
oci.opsi.models.WorkRequestCollection
oci.opsi.models.WorkRequestError
diff --git a/docs/api/opsi/models/oci.opsi.models.ChangeOperationsInsightsPrivateEndpointCompartmentDetails.rst b/docs/api/opsi/models/oci.opsi.models.ChangeOperationsInsightsPrivateEndpointCompartmentDetails.rst
new file mode 100644
index 0000000000..1114ba719f
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.ChangeOperationsInsightsPrivateEndpointCompartmentDetails.rst
@@ -0,0 +1,11 @@
+ChangeOperationsInsightsPrivateEndpointCompartmentDetails
+=========================================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: ChangeOperationsInsightsPrivateEndpointCompartmentDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.ChangePeComanagedDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.ChangePeComanagedDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..6f6ca32bb4
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.ChangePeComanagedDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+ChangePeComanagedDatabaseInsightDetails
+=======================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: ChangePeComanagedDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CreateOperationsInsightsPrivateEndpointDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateOperationsInsightsPrivateEndpointDetails.rst
new file mode 100644
index 0000000000..07736501c2
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CreateOperationsInsightsPrivateEndpointDetails.rst
@@ -0,0 +1,11 @@
+CreateOperationsInsightsPrivateEndpointDetails
+==============================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CreateOperationsInsightsPrivateEndpointDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CreatePeComanagedDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreatePeComanagedDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..68f85b7b46
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CreatePeComanagedDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+CreatePeComanagedDatabaseInsightDetails
+=======================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CreatePeComanagedDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.CredentialByVault.rst b/docs/api/opsi/models/oci.opsi.models.CredentialByVault.rst
new file mode 100644
index 0000000000..ad74d0e9f4
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.CredentialByVault.rst
@@ -0,0 +1,11 @@
+CredentialByVault
+=================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: CredentialByVault
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.EnablePeComanagedDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.EnablePeComanagedDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..cf5b3bbe1c
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.EnablePeComanagedDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+EnablePeComanagedDatabaseInsightDetails
+=======================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: EnablePeComanagedDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpoint.rst b/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpoint.rst
new file mode 100644
index 0000000000..2cbd949900
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpoint.rst
@@ -0,0 +1,11 @@
+OperationsInsightsPrivateEndpoint
+=================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: OperationsInsightsPrivateEndpoint
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpointCollection.rst b/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpointCollection.rst
new file mode 100644
index 0000000000..b1ab60ea70
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpointCollection.rst
@@ -0,0 +1,11 @@
+OperationsInsightsPrivateEndpointCollection
+===========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: OperationsInsightsPrivateEndpointCollection
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpointSummary.rst b/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpointSummary.rst
new file mode 100644
index 0000000000..44cb4d363a
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.OperationsInsightsPrivateEndpointSummary.rst
@@ -0,0 +1,11 @@
+OperationsInsightsPrivateEndpointSummary
+========================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: OperationsInsightsPrivateEndpointSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseConnectionDetails.rst b/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseConnectionDetails.rst
new file mode 100644
index 0000000000..b48d07f906
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseConnectionDetails.rst
@@ -0,0 +1,11 @@
+PeComanagedDatabaseConnectionDetails
+====================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: PeComanagedDatabaseConnectionDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseHostDetails.rst b/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseHostDetails.rst
new file mode 100644
index 0000000000..9774e8d501
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseHostDetails.rst
@@ -0,0 +1,11 @@
+PeComanagedDatabaseHostDetails
+==============================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: PeComanagedDatabaseHostDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseInsight.rst b/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseInsight.rst
new file mode 100644
index 0000000000..c0af726ee2
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseInsight.rst
@@ -0,0 +1,11 @@
+PeComanagedDatabaseInsight
+==========================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: PeComanagedDatabaseInsight
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseInsightSummary.rst
new file mode 100644
index 0000000000..02d7b60ac9
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.PeComanagedDatabaseInsightSummary.rst
@@ -0,0 +1,11 @@
+PeComanagedDatabaseInsightSummary
+=================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: PeComanagedDatabaseInsightSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.PeComanagedManagedExternalDatabaseConfigurationSummary.rst b/docs/api/opsi/models/oci.opsi.models.PeComanagedManagedExternalDatabaseConfigurationSummary.rst
new file mode 100644
index 0000000000..cfc2993001
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.PeComanagedManagedExternalDatabaseConfigurationSummary.rst
@@ -0,0 +1,11 @@
+PeComanagedManagedExternalDatabaseConfigurationSummary
+======================================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: PeComanagedManagedExternalDatabaseConfigurationSummary
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdateOperationsInsightsPrivateEndpointDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateOperationsInsightsPrivateEndpointDetails.rst
new file mode 100644
index 0000000000..8253b95fad
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdateOperationsInsightsPrivateEndpointDetails.rst
@@ -0,0 +1,11 @@
+UpdateOperationsInsightsPrivateEndpointDetails
+==============================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdateOperationsInsightsPrivateEndpointDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/docs/api/opsi/models/oci.opsi.models.UpdatePeComanagedDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdatePeComanagedDatabaseInsightDetails.rst
new file mode 100644
index 0000000000..235e02f51a
--- /dev/null
+++ b/docs/api/opsi/models/oci.opsi.models.UpdatePeComanagedDatabaseInsightDetails.rst
@@ -0,0 +1,11 @@
+UpdatePeComanagedDatabaseInsightDetails
+=======================================
+
+.. currentmodule:: oci.opsi.models
+
+.. autoclass:: UpdatePeComanagedDatabaseInsightDetails
+ :show-inheritance:
+ :special-members: __init__
+ :members:
+ :undoc-members:
+ :inherited-members:
\ No newline at end of file
diff --git a/examples/tag_resources_in_tenancy/tag_resources_in_tenancy.py b/examples/tag_resources_in_tenancy/tag_resources_in_tenancy.py
index 75881ac305..a00ac8ca84 100755
--- a/examples/tag_resources_in_tenancy/tag_resources_in_tenancy.py
+++ b/examples/tag_resources_in_tenancy/tag_resources_in_tenancy.py
@@ -1,5 +1,5 @@
# coding: utf-8
-# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
##########################################################################
diff --git a/src/oci/data_labeling_service/data_labeling_management_client.py b/src/oci/data_labeling_service/data_labeling_management_client.py
index ef6f59f32b..de7b2f42e5 100644
--- a/src/oci/data_labeling_service/data_labeling_management_client.py
+++ b/src/oci/data_labeling_service/data_labeling_management_client.py
@@ -135,7 +135,7 @@ def add_dataset_labels(self, dataset_id, add_dataset_labels_details, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -189,6 +189,8 @@ def add_dataset_labels(self, dataset_id, add_dataset_labels_details, **kwargs):
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):
@@ -234,7 +236,7 @@ def change_dataset_compartment(self, dataset_id, change_dataset_compartment_deta
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -286,6 +288,8 @@ def change_dataset_compartment(self, dataset_id, change_dataset_compartment_deta
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):
@@ -327,7 +331,7 @@ def create_dataset(self, create_dataset_details, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -369,6 +373,8 @@ def create_dataset(self, create_dataset_details, **kwargs):
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):
@@ -411,7 +417,7 @@ def delete_dataset(self, dataset_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -463,6 +469,8 @@ def delete_dataset(self, dataset_id, **kwargs):
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):
@@ -512,7 +520,7 @@ def generate_dataset_records(self, dataset_id, generate_dataset_records_details,
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -566,6 +574,8 @@ def generate_dataset_records(self, dataset_id, generate_dataset_records_details,
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):
@@ -601,7 +611,7 @@ def get_dataset(self, dataset_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -651,6 +661,8 @@ def get_dataset(self, dataset_id, **kwargs):
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):
@@ -685,7 +697,7 @@ def get_work_request(self, work_request_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -735,6 +747,8 @@ def get_work_request(self, work_request_id, **kwargs):
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):
@@ -780,7 +794,7 @@ def list_annotation_formats(self, compartment_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -838,6 +852,8 @@ def list_annotation_formats(self, compartment_id, **kwargs):
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):
@@ -902,7 +918,7 @@ def list_datasets(self, compartment_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -984,6 +1000,8 @@ def list_datasets(self, compartment_id, **kwargs):
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):
@@ -1024,7 +1042,7 @@ def list_work_request_errors(self, work_request_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1082,6 +1100,8 @@ def list_work_request_errors(self, work_request_id, **kwargs):
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):
@@ -1124,7 +1144,7 @@ def list_work_request_logs(self, work_request_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1182,6 +1202,8 @@ def list_work_request_logs(self, work_request_id, **kwargs):
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):
@@ -1227,7 +1249,7 @@ def list_work_requests(self, compartment_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1278,6 +1300,8 @@ def list_work_requests(self, compartment_id, **kwargs):
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):
@@ -1329,7 +1353,7 @@ def remove_dataset_labels(self, dataset_id, remove_dataset_labels_details, **kwa
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1383,6 +1407,8 @@ def remove_dataset_labels(self, dataset_id, remove_dataset_labels_details, **kwa
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):
@@ -1435,7 +1461,7 @@ def rename_dataset_labels(self, dataset_id, rename_dataset_labels_details, **kwa
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1489,6 +1515,8 @@ def rename_dataset_labels(self, dataset_id, rename_dataset_labels_details, **kwa
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):
@@ -1542,7 +1570,7 @@ def snapshot_dataset(self, dataset_id, snapshot_dataset_details, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1596,6 +1624,8 @@ def snapshot_dataset(self, dataset_id, snapshot_dataset_details, **kwargs):
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):
@@ -1641,7 +1671,7 @@ def update_dataset(self, dataset_id, update_dataset_details, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1693,6 +1723,8 @@ def update_dataset(self, dataset_id, update_dataset_details, **kwargs):
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):
diff --git a/src/oci/data_labeling_service_dataplane/data_labeling_client.py b/src/oci/data_labeling_service_dataplane/data_labeling_client.py
index a51b968560..33d921f3f5 100644
--- a/src/oci/data_labeling_service_dataplane/data_labeling_client.py
+++ b/src/oci/data_labeling_service_dataplane/data_labeling_client.py
@@ -209,7 +209,7 @@ def create_record(self, create_record_details, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -251,6 +251,8 @@ def create_record(self, create_record_details, **kwargs):
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):
@@ -293,7 +295,7 @@ def delete_annotation(self, annotation_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -345,6 +347,8 @@ def delete_annotation(self, annotation_id, **kwargs):
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):
@@ -384,7 +388,7 @@ def delete_record(self, record_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -436,6 +440,8 @@ def delete_record(self, record_id, **kwargs):
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):
@@ -468,7 +474,7 @@ def get_annotation(self, annotation_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -518,6 +524,8 @@ def get_annotation(self, annotation_id, **kwargs):
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):
@@ -552,7 +560,7 @@ def get_dataset(self, dataset_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -602,6 +610,8 @@ def get_dataset(self, dataset_id, **kwargs):
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):
@@ -636,7 +646,7 @@ def get_record(self, record_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -686,6 +696,8 @@ def get_record(self, record_id, **kwargs):
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):
@@ -727,7 +739,7 @@ def get_record_content(self, record_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -779,6 +791,8 @@ def get_record_content(self, record_id, **kwargs):
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):
@@ -820,7 +834,7 @@ def get_record_preview_content(self, record_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -872,6 +886,8 @@ def get_record_preview_content(self, record_id, **kwargs):
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):
@@ -945,7 +961,7 @@ def list_annotations(self, compartment_id, dataset_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1032,6 +1048,8 @@ def list_annotations(self, compartment_id, dataset_id, **kwargs):
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):
@@ -1102,7 +1120,7 @@ def list_records(self, compartment_id, dataset_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1187,6 +1205,8 @@ def list_records(self, compartment_id, dataset_id, **kwargs):
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):
@@ -1253,7 +1273,7 @@ def summarize_annotation_analytics(self, compartment_id, dataset_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1341,6 +1361,8 @@ def summarize_annotation_analytics(self, compartment_id, dataset_id, **kwargs):
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):
@@ -1404,7 +1426,7 @@ def summarize_record_analytics(self, compartment_id, dataset_id, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1490,6 +1512,8 @@ def summarize_record_analytics(self, compartment_id, dataset_id, **kwargs):
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):
@@ -1534,7 +1558,7 @@ def update_annotation(self, annotation_id, update_annotation_details, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1586,6 +1610,8 @@ def update_annotation(self, annotation_id, update_annotation_details, **kwargs):
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):
@@ -1632,7 +1658,7 @@ def update_record(self, record_id, update_record_details, **kwargs):
:param obj retry_strategy: (optional)
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
- This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
The specifics of the default retry strategy are described `here `__.
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
@@ -1684,6 +1710,8 @@ def update_record(self, record_id, update_record_details, **kwargs):
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):
diff --git a/src/oci/golden_gate/models/create_deployment_details.py b/src/oci/golden_gate/models/create_deployment_details.py
index 49634f3bac..e722396f62 100644
--- a/src/oci/golden_gate/models/create_deployment_details.py
+++ b/src/oci/golden_gate/models/create_deployment_details.py
@@ -489,8 +489,7 @@ def is_auto_scaling_enabled(self, is_auto_scaling_enabled):
def deployment_type(self):
"""
**[Required]** Gets the deployment_type of this CreateDeploymentDetails.
- The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value OGG is maintained for backward compatibility purposes. Its use is discouraged
- in favor of the equivalent DATABASE_ORACLE value.
+ The deployment type.
Allowed values for this property are: "OGG"
@@ -504,8 +503,7 @@ def deployment_type(self):
def deployment_type(self, deployment_type):
"""
Sets the deployment_type of this CreateDeploymentDetails.
- The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value OGG is maintained for backward compatibility purposes. Its use is discouraged
- in favor of the equivalent DATABASE_ORACLE value.
+ The deployment type.
:param deployment_type: The deployment_type of this CreateDeploymentDetails.
diff --git a/src/oci/golden_gate/models/deployment.py b/src/oci/golden_gate/models/deployment.py
index cf6ef35310..dee10df3df 100644
--- a/src/oci/golden_gate/models/deployment.py
+++ b/src/oci/golden_gate/models/deployment.py
@@ -216,6 +216,14 @@ def __init__(self, **kwargs):
The value to assign to the time_upgrade_required property of this Deployment.
:type time_upgrade_required: datetime
+ :param storage_utilization_in_bytes:
+ The value to assign to the storage_utilization_in_bytes property of this Deployment.
+ :type storage_utilization_in_bytes: int
+
+ :param is_storage_utilization_limit_exceeded:
+ The value to assign to the is_storage_utilization_limit_exceeded property of this Deployment.
+ :type is_storage_utilization_limit_exceeded: bool
+
:param deployment_type:
The value to assign to the deployment_type property of this Deployment.
Allowed values for this property are: "OGG", 'UNKNOWN_ENUM_VALUE'.
@@ -254,6 +262,8 @@ def __init__(self, **kwargs):
'system_tags': 'dict(str, dict(str, object))',
'is_latest_version': 'bool',
'time_upgrade_required': 'datetime',
+ 'storage_utilization_in_bytes': 'int',
+ 'is_storage_utilization_limit_exceeded': 'bool',
'deployment_type': 'str',
'ogg_data': 'OggDeployment'
}
@@ -285,6 +295,8 @@ def __init__(self, **kwargs):
'system_tags': 'systemTags',
'is_latest_version': 'isLatestVersion',
'time_upgrade_required': 'timeUpgradeRequired',
+ 'storage_utilization_in_bytes': 'storageUtilizationInBytes',
+ 'is_storage_utilization_limit_exceeded': 'isStorageUtilizationLimitExceeded',
'deployment_type': 'deploymentType',
'ogg_data': 'oggData'
}
@@ -315,6 +327,8 @@ def __init__(self, **kwargs):
self._system_tags = None
self._is_latest_version = None
self._time_upgrade_required = None
+ self._storage_utilization_in_bytes = None
+ self._is_storage_utilization_limit_exceeded = None
self._deployment_type = None
self._ogg_data = None
@@ -1002,12 +1016,59 @@ def time_upgrade_required(self, time_upgrade_required):
"""
self._time_upgrade_required = time_upgrade_required
+ @property
+ def storage_utilization_in_bytes(self):
+ """
+ Gets the storage_utilization_in_bytes of this Deployment.
+ The amount of storage being utilized (in bytes)
+
+
+ :return: The storage_utilization_in_bytes of this Deployment.
+ :rtype: int
+ """
+ return self._storage_utilization_in_bytes
+
+ @storage_utilization_in_bytes.setter
+ def storage_utilization_in_bytes(self, storage_utilization_in_bytes):
+ """
+ Sets the storage_utilization_in_bytes of this Deployment.
+ The amount of storage being utilized (in bytes)
+
+
+ :param storage_utilization_in_bytes: The storage_utilization_in_bytes of this Deployment.
+ :type: int
+ """
+ self._storage_utilization_in_bytes = storage_utilization_in_bytes
+
+ @property
+ def is_storage_utilization_limit_exceeded(self):
+ """
+ Gets the is_storage_utilization_limit_exceeded of this Deployment.
+ Indicator will be true if the amount of storage being utilized exceeds the allowable storage utilization limit. Exceeding the limit may be an indication of a misconfiguration of the deployment's GoldenGate service.
+
+
+ :return: The is_storage_utilization_limit_exceeded of this Deployment.
+ :rtype: bool
+ """
+ return self._is_storage_utilization_limit_exceeded
+
+ @is_storage_utilization_limit_exceeded.setter
+ def is_storage_utilization_limit_exceeded(self, is_storage_utilization_limit_exceeded):
+ """
+ Sets the is_storage_utilization_limit_exceeded of this Deployment.
+ Indicator will be true if the amount of storage being utilized exceeds the allowable storage utilization limit. Exceeding the limit may be an indication of a misconfiguration of the deployment's GoldenGate service.
+
+
+ :param is_storage_utilization_limit_exceeded: The is_storage_utilization_limit_exceeded of this Deployment.
+ :type: bool
+ """
+ self._is_storage_utilization_limit_exceeded = is_storage_utilization_limit_exceeded
+
@property
def deployment_type(self):
"""
**[Required]** Gets the deployment_type of this Deployment.
- The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value OGG is maintained for backward compatibility purposes. Its use is discouraged
- in favor of the equivalent DATABASE_ORACLE value.
+ The deployment type.
Allowed values for this property are: "OGG", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -1022,8 +1083,7 @@ def deployment_type(self):
def deployment_type(self, deployment_type):
"""
Sets the deployment_type of this Deployment.
- The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value OGG is maintained for backward compatibility purposes. Its use is discouraged
- in favor of the equivalent DATABASE_ORACLE value.
+ The deployment type.
:param deployment_type: The deployment_type of this Deployment.
diff --git a/src/oci/golden_gate/models/deployment_summary.py b/src/oci/golden_gate/models/deployment_summary.py
index 9973ac4803..a5e4a9397b 100644
--- a/src/oci/golden_gate/models/deployment_summary.py
+++ b/src/oci/golden_gate/models/deployment_summary.py
@@ -210,6 +210,14 @@ def __init__(self, **kwargs):
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type deployment_type: str
+ :param storage_utilization_in_bytes:
+ The value to assign to the storage_utilization_in_bytes property of this DeploymentSummary.
+ :type storage_utilization_in_bytes: int
+
+ :param is_storage_utilization_limit_exceeded:
+ The value to assign to the is_storage_utilization_limit_exceeded property of this DeploymentSummary.
+ :type is_storage_utilization_limit_exceeded: bool
+
"""
self.swagger_types = {
'id': 'str',
@@ -235,7 +243,9 @@ def __init__(self, **kwargs):
'system_tags': 'dict(str, dict(str, object))',
'is_latest_version': 'bool',
'time_upgrade_required': 'datetime',
- 'deployment_type': 'str'
+ 'deployment_type': 'str',
+ 'storage_utilization_in_bytes': 'int',
+ 'is_storage_utilization_limit_exceeded': 'bool'
}
self.attribute_map = {
@@ -262,7 +272,9 @@ def __init__(self, **kwargs):
'system_tags': 'systemTags',
'is_latest_version': 'isLatestVersion',
'time_upgrade_required': 'timeUpgradeRequired',
- 'deployment_type': 'deploymentType'
+ 'deployment_type': 'deploymentType',
+ 'storage_utilization_in_bytes': 'storageUtilizationInBytes',
+ 'is_storage_utilization_limit_exceeded': 'isStorageUtilizationLimitExceeded'
}
self._id = None
@@ -289,6 +301,8 @@ def __init__(self, **kwargs):
self._is_latest_version = None
self._time_upgrade_required = None
self._deployment_type = None
+ self._storage_utilization_in_bytes = None
+ self._is_storage_utilization_limit_exceeded = None
@property
def id(self):
@@ -898,8 +912,7 @@ def time_upgrade_required(self, time_upgrade_required):
def deployment_type(self):
"""
Gets the deployment_type of this DeploymentSummary.
- The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value OGG is maintained for backward compatibility purposes. Its use is discouraged
- in favor of the equivalent DATABASE_ORACLE value.
+ The deployment type.
Allowed values for this property are: "OGG", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -914,8 +927,7 @@ def deployment_type(self):
def deployment_type(self, deployment_type):
"""
Sets the deployment_type of this DeploymentSummary.
- The type of deployment, the value determines the exact 'type' of service executed in the Deployment. NOTE: Use of the value OGG is maintained for backward compatibility purposes. Its use is discouraged
- in favor of the equivalent DATABASE_ORACLE value.
+ The deployment type.
:param deployment_type: The deployment_type of this DeploymentSummary.
@@ -926,6 +938,54 @@ def deployment_type(self, deployment_type):
deployment_type = 'UNKNOWN_ENUM_VALUE'
self._deployment_type = deployment_type
+ @property
+ def storage_utilization_in_bytes(self):
+ """
+ Gets the storage_utilization_in_bytes of this DeploymentSummary.
+ The amount of storage being utilized (in bytes)
+
+
+ :return: The storage_utilization_in_bytes of this DeploymentSummary.
+ :rtype: int
+ """
+ return self._storage_utilization_in_bytes
+
+ @storage_utilization_in_bytes.setter
+ def storage_utilization_in_bytes(self, storage_utilization_in_bytes):
+ """
+ Sets the storage_utilization_in_bytes of this DeploymentSummary.
+ The amount of storage being utilized (in bytes)
+
+
+ :param storage_utilization_in_bytes: The storage_utilization_in_bytes of this DeploymentSummary.
+ :type: int
+ """
+ self._storage_utilization_in_bytes = storage_utilization_in_bytes
+
+ @property
+ def is_storage_utilization_limit_exceeded(self):
+ """
+ Gets the is_storage_utilization_limit_exceeded of this DeploymentSummary.
+ Indicator will be true if the amount of storage being utilized exceeds the allowable storage utilization limit. Exceeding the limit may be an indication of a misconfiguration of the deployment's GoldenGate service.
+
+
+ :return: The is_storage_utilization_limit_exceeded of this DeploymentSummary.
+ :rtype: bool
+ """
+ return self._is_storage_utilization_limit_exceeded
+
+ @is_storage_utilization_limit_exceeded.setter
+ def is_storage_utilization_limit_exceeded(self, is_storage_utilization_limit_exceeded):
+ """
+ Sets the is_storage_utilization_limit_exceeded of this DeploymentSummary.
+ Indicator will be true if the amount of storage being utilized exceeds the allowable storage utilization limit. Exceeding the limit may be an indication of a misconfiguration of the deployment's GoldenGate service.
+
+
+ :param is_storage_utilization_limit_exceeded: The is_storage_utilization_limit_exceeded of this DeploymentSummary.
+ :type: bool
+ """
+ self._is_storage_utilization_limit_exceeded = is_storage_utilization_limit_exceeded
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/mysql/models/__init__.py b/src/oci/mysql/models/__init__.py
index b5233909e4..0e83ed03e1 100644
--- a/src/oci/mysql/models/__init__.py
+++ b/src/oci/mysql/models/__init__.py
@@ -39,6 +39,7 @@
from .create_db_system_source_from_backup_details import CreateDbSystemSourceFromBackupDetails
from .create_db_system_source_from_none_details import CreateDbSystemSourceFromNoneDetails
from .create_db_system_source_import_from_url_details import CreateDbSystemSourceImportFromUrlDetails
+from .create_deletion_policy_details import CreateDeletionPolicyDetails
from .create_maintenance_details import CreateMaintenanceDetails
from .db_system import DbSystem
from .db_system_endpoint import DbSystemEndpoint
@@ -49,6 +50,7 @@
from .db_system_source_from_none import DbSystemSourceFromNone
from .db_system_source_import_from_url import DbSystemSourceImportFromUrl
from .db_system_summary import DbSystemSummary
+from .deletion_policy_details import DeletionPolicyDetails
from .heat_wave_cluster import HeatWaveCluster
from .heat_wave_cluster_memory_estimate import HeatWaveClusterMemoryEstimate
from .heat_wave_cluster_schema_memory_estimate import HeatWaveClusterSchemaMemoryEstimate
@@ -70,6 +72,7 @@
from .update_channel_target_from_db_system_details import UpdateChannelTargetFromDbSystemDetails
from .update_configuration_details import UpdateConfigurationDetails
from .update_db_system_details import UpdateDbSystemDetails
+from .update_deletion_policy_details import UpdateDeletionPolicyDetails
from .update_heat_wave_cluster_details import UpdateHeatWaveClusterDetails
from .update_maintenance_details import UpdateMaintenanceDetails
from .version import Version
@@ -117,6 +120,7 @@
"CreateDbSystemSourceFromBackupDetails": CreateDbSystemSourceFromBackupDetails,
"CreateDbSystemSourceFromNoneDetails": CreateDbSystemSourceFromNoneDetails,
"CreateDbSystemSourceImportFromUrlDetails": CreateDbSystemSourceImportFromUrlDetails,
+ "CreateDeletionPolicyDetails": CreateDeletionPolicyDetails,
"CreateMaintenanceDetails": CreateMaintenanceDetails,
"DbSystem": DbSystem,
"DbSystemEndpoint": DbSystemEndpoint,
@@ -127,6 +131,7 @@
"DbSystemSourceFromNone": DbSystemSourceFromNone,
"DbSystemSourceImportFromUrl": DbSystemSourceImportFromUrl,
"DbSystemSummary": DbSystemSummary,
+ "DeletionPolicyDetails": DeletionPolicyDetails,
"HeatWaveCluster": HeatWaveCluster,
"HeatWaveClusterMemoryEstimate": HeatWaveClusterMemoryEstimate,
"HeatWaveClusterSchemaMemoryEstimate": HeatWaveClusterSchemaMemoryEstimate,
@@ -148,6 +153,7 @@
"UpdateChannelTargetFromDbSystemDetails": UpdateChannelTargetFromDbSystemDetails,
"UpdateConfigurationDetails": UpdateConfigurationDetails,
"UpdateDbSystemDetails": UpdateDbSystemDetails,
+ "UpdateDeletionPolicyDetails": UpdateDeletionPolicyDetails,
"UpdateHeatWaveClusterDetails": UpdateHeatWaveClusterDetails,
"UpdateMaintenanceDetails": UpdateMaintenanceDetails,
"Version": Version,
diff --git a/src/oci/mysql/models/create_db_system_details.py b/src/oci/mysql/models/create_db_system_details.py
index 7f8821893b..2d79dbc65c 100644
--- a/src/oci/mysql/models/create_db_system_details.py
+++ b/src/oci/mysql/models/create_db_system_details.py
@@ -114,6 +114,10 @@ def __init__(self, **kwargs):
The value to assign to the defined_tags property of this CreateDbSystemDetails.
:type defined_tags: dict(str, dict(str, object))
+ :param deletion_policy:
+ The value to assign to the deletion_policy property of this CreateDbSystemDetails.
+ :type deletion_policy: oci.mysql.models.CreateDeletionPolicyDetails
+
:param crash_recovery:
The value to assign to the crash_recovery property of this CreateDbSystemDetails.
Allowed values for this property are: "ENABLED", "DISABLED"
@@ -143,6 +147,7 @@ def __init__(self, **kwargs):
'maintenance': 'CreateMaintenanceDetails',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
+ 'deletion_policy': 'CreateDeletionPolicyDetails',
'crash_recovery': 'str'
}
@@ -169,6 +174,7 @@ def __init__(self, **kwargs):
'maintenance': 'maintenance',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
+ 'deletion_policy': 'deletionPolicy',
'crash_recovery': 'crashRecovery'
}
@@ -194,6 +200,7 @@ def __init__(self, **kwargs):
self._maintenance = None
self._freeform_tags = None
self._defined_tags = None
+ self._deletion_policy = None
self._crash_recovery = None
@property
@@ -786,6 +793,26 @@ def defined_tags(self, defined_tags):
"""
self._defined_tags = defined_tags
+ @property
+ def deletion_policy(self):
+ """
+ Gets the deletion_policy of this CreateDbSystemDetails.
+
+ :return: The deletion_policy of this CreateDbSystemDetails.
+ :rtype: oci.mysql.models.CreateDeletionPolicyDetails
+ """
+ return self._deletion_policy
+
+ @deletion_policy.setter
+ def deletion_policy(self, deletion_policy):
+ """
+ Sets the deletion_policy of this CreateDbSystemDetails.
+
+ :param deletion_policy: The deletion_policy of this CreateDbSystemDetails.
+ :type: oci.mysql.models.CreateDeletionPolicyDetails
+ """
+ self._deletion_policy = deletion_policy
+
@property
def crash_recovery(self):
"""
diff --git a/src/oci/mysql/models/create_deletion_policy_details.py b/src/oci/mysql/models/create_deletion_policy_details.py
new file mode 100644
index 0000000000..bdfcd6225e
--- /dev/null
+++ b/src/oci/mysql/models/create_deletion_policy_details.py
@@ -0,0 +1,170 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 CreateDeletionPolicyDetails(object):
+ """
+ Policy for how the DB System and related resources should be handled at the time of its deletion.
+ """
+
+ #: A constant which can be used with the automatic_backup_retention property of a CreateDeletionPolicyDetails.
+ #: This constant has a value of "DELETE"
+ AUTOMATIC_BACKUP_RETENTION_DELETE = "DELETE"
+
+ #: A constant which can be used with the automatic_backup_retention property of a CreateDeletionPolicyDetails.
+ #: This constant has a value of "RETAIN"
+ AUTOMATIC_BACKUP_RETENTION_RETAIN = "RETAIN"
+
+ #: A constant which can be used with the final_backup property of a CreateDeletionPolicyDetails.
+ #: This constant has a value of "SKIP_FINAL_BACKUP"
+ FINAL_BACKUP_SKIP_FINAL_BACKUP = "SKIP_FINAL_BACKUP"
+
+ #: A constant which can be used with the final_backup property of a CreateDeletionPolicyDetails.
+ #: This constant has a value of "REQUIRE_FINAL_BACKUP"
+ FINAL_BACKUP_REQUIRE_FINAL_BACKUP = "REQUIRE_FINAL_BACKUP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateDeletionPolicyDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param automatic_backup_retention:
+ The value to assign to the automatic_backup_retention property of this CreateDeletionPolicyDetails.
+ Allowed values for this property are: "DELETE", "RETAIN"
+ :type automatic_backup_retention: str
+
+ :param final_backup:
+ The value to assign to the final_backup property of this CreateDeletionPolicyDetails.
+ Allowed values for this property are: "SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP"
+ :type final_backup: str
+
+ :param is_delete_protected:
+ The value to assign to the is_delete_protected property of this CreateDeletionPolicyDetails.
+ :type is_delete_protected: bool
+
+ """
+ self.swagger_types = {
+ 'automatic_backup_retention': 'str',
+ 'final_backup': 'str',
+ 'is_delete_protected': 'bool'
+ }
+
+ self.attribute_map = {
+ 'automatic_backup_retention': 'automaticBackupRetention',
+ 'final_backup': 'finalBackup',
+ 'is_delete_protected': 'isDeleteProtected'
+ }
+
+ self._automatic_backup_retention = None
+ self._final_backup = None
+ self._is_delete_protected = None
+
+ @property
+ def automatic_backup_retention(self):
+ """
+ Gets the automatic_backup_retention of this CreateDeletionPolicyDetails.
+ Specifies if any automatic backups created for a DB System should be retained or deleted when the DB System is deleted.
+
+ Allowed values for this property are: "DELETE", "RETAIN"
+
+
+ :return: The automatic_backup_retention of this CreateDeletionPolicyDetails.
+ :rtype: str
+ """
+ return self._automatic_backup_retention
+
+ @automatic_backup_retention.setter
+ def automatic_backup_retention(self, automatic_backup_retention):
+ """
+ Sets the automatic_backup_retention of this CreateDeletionPolicyDetails.
+ Specifies if any automatic backups created for a DB System should be retained or deleted when the DB System is deleted.
+
+
+ :param automatic_backup_retention: The automatic_backup_retention of this CreateDeletionPolicyDetails.
+ :type: str
+ """
+ allowed_values = ["DELETE", "RETAIN"]
+ if not value_allowed_none_or_none_sentinel(automatic_backup_retention, allowed_values):
+ raise ValueError(
+ "Invalid value for `automatic_backup_retention`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._automatic_backup_retention = automatic_backup_retention
+
+ @property
+ def final_backup(self):
+ """
+ Gets the final_backup of this CreateDeletionPolicyDetails.
+ Specifies whether or not a backup is taken when the DB System is deleted.
+ REQUIRE_FINAL_BACKUP: a backup is taken if the DB System is deleted.
+ SKIP_FINAL_BACKUP: a backup is not taken if the DB System is deleted.
+
+ Allowed values for this property are: "SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP"
+
+
+ :return: The final_backup of this CreateDeletionPolicyDetails.
+ :rtype: str
+ """
+ return self._final_backup
+
+ @final_backup.setter
+ def final_backup(self, final_backup):
+ """
+ Sets the final_backup of this CreateDeletionPolicyDetails.
+ Specifies whether or not a backup is taken when the DB System is deleted.
+ REQUIRE_FINAL_BACKUP: a backup is taken if the DB System is deleted.
+ SKIP_FINAL_BACKUP: a backup is not taken if the DB System is deleted.
+
+
+ :param final_backup: The final_backup of this CreateDeletionPolicyDetails.
+ :type: str
+ """
+ allowed_values = ["SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP"]
+ if not value_allowed_none_or_none_sentinel(final_backup, allowed_values):
+ raise ValueError(
+ "Invalid value for `final_backup`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._final_backup = final_backup
+
+ @property
+ def is_delete_protected(self):
+ """
+ Gets the is_delete_protected of this CreateDeletionPolicyDetails.
+ Specifies whether the DB System can be deleted. Set to true to prevent deletion, false (default) to allow.
+
+
+ :return: The is_delete_protected of this CreateDeletionPolicyDetails.
+ :rtype: bool
+ """
+ return self._is_delete_protected
+
+ @is_delete_protected.setter
+ def is_delete_protected(self, is_delete_protected):
+ """
+ Sets the is_delete_protected of this CreateDeletionPolicyDetails.
+ Specifies whether the DB System can be deleted. Set to true to prevent deletion, false (default) to allow.
+
+
+ :param is_delete_protected: The is_delete_protected of this CreateDeletionPolicyDetails.
+ :type: bool
+ """
+ self._is_delete_protected = is_delete_protected
+
+ 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/mysql/models/db_system.py b/src/oci/mysql/models/db_system.py
index a7fa74e8f7..e3df4646de 100644
--- a/src/oci/mysql/models/db_system.py
+++ b/src/oci/mysql/models/db_system.py
@@ -168,6 +168,10 @@ def __init__(self, **kwargs):
The value to assign to the maintenance property of this DbSystem.
:type maintenance: oci.mysql.models.MaintenanceDetails
+ :param deletion_policy:
+ The value to assign to the deletion_policy property of this DbSystem.
+ :type deletion_policy: oci.mysql.models.DeletionPolicyDetails
+
:param time_created:
The value to assign to the time_created property of this DbSystem.
:type time_created: datetime
@@ -220,6 +224,7 @@ def __init__(self, **kwargs):
'lifecycle_state': 'str',
'lifecycle_details': 'str',
'maintenance': 'MaintenanceDetails',
+ 'deletion_policy': 'DeletionPolicyDetails',
'time_created': 'datetime',
'time_updated': 'datetime',
'freeform_tags': 'dict(str, str)',
@@ -256,6 +261,7 @@ def __init__(self, **kwargs):
'lifecycle_state': 'lifecycleState',
'lifecycle_details': 'lifecycleDetails',
'maintenance': 'maintenance',
+ 'deletion_policy': 'deletionPolicy',
'time_created': 'timeCreated',
'time_updated': 'timeUpdated',
'freeform_tags': 'freeformTags',
@@ -291,6 +297,7 @@ def __init__(self, **kwargs):
self._lifecycle_state = None
self._lifecycle_details = None
self._maintenance = None
+ self._deletion_policy = None
self._time_created = None
self._time_updated = None
self._freeform_tags = None
@@ -999,6 +1006,26 @@ def maintenance(self, maintenance):
"""
self._maintenance = maintenance
+ @property
+ def deletion_policy(self):
+ """
+ **[Required]** Gets the deletion_policy of this DbSystem.
+
+ :return: The deletion_policy of this DbSystem.
+ :rtype: oci.mysql.models.DeletionPolicyDetails
+ """
+ return self._deletion_policy
+
+ @deletion_policy.setter
+ def deletion_policy(self, deletion_policy):
+ """
+ Sets the deletion_policy of this DbSystem.
+
+ :param deletion_policy: The deletion_policy of this DbSystem.
+ :type: oci.mysql.models.DeletionPolicyDetails
+ """
+ self._deletion_policy = deletion_policy
+
@property
def time_created(self):
"""
diff --git a/src/oci/mysql/models/db_system_snapshot.py b/src/oci/mysql/models/db_system_snapshot.py
index 93e6edc1f7..079c0583e2 100644
--- a/src/oci/mysql/models/db_system_snapshot.py
+++ b/src/oci/mysql/models/db_system_snapshot.py
@@ -106,6 +106,10 @@ def __init__(self, **kwargs):
The value to assign to the maintenance property of this DbSystemSnapshot.
:type maintenance: oci.mysql.models.MaintenanceDetails
+ :param deletion_policy:
+ The value to assign to the deletion_policy property of this DbSystemSnapshot.
+ :type deletion_policy: oci.mysql.models.DeletionPolicyDetails
+
:param freeform_tags:
The value to assign to the freeform_tags property of this DbSystemSnapshot.
:type freeform_tags: dict(str, str)
@@ -142,6 +146,7 @@ def __init__(self, **kwargs):
'is_highly_available': 'bool',
'endpoints': 'list[DbSystemEndpoint]',
'maintenance': 'MaintenanceDetails',
+ 'deletion_policy': 'DeletionPolicyDetails',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
'crash_recovery': 'str'
@@ -168,6 +173,7 @@ def __init__(self, **kwargs):
'is_highly_available': 'isHighlyAvailable',
'endpoints': 'endpoints',
'maintenance': 'maintenance',
+ 'deletion_policy': 'deletionPolicy',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
'crash_recovery': 'crashRecovery'
@@ -193,6 +199,7 @@ def __init__(self, **kwargs):
self._is_highly_available = None
self._endpoints = None
self._maintenance = None
+ self._deletion_policy = None
self._freeform_tags = None
self._defined_tags = None
self._crash_recovery = None
@@ -691,6 +698,26 @@ def maintenance(self, maintenance):
"""
self._maintenance = maintenance
+ @property
+ def deletion_policy(self):
+ """
+ **[Required]** Gets the deletion_policy of this DbSystemSnapshot.
+
+ :return: The deletion_policy of this DbSystemSnapshot.
+ :rtype: oci.mysql.models.DeletionPolicyDetails
+ """
+ return self._deletion_policy
+
+ @deletion_policy.setter
+ def deletion_policy(self, deletion_policy):
+ """
+ Sets the deletion_policy of this DbSystemSnapshot.
+
+ :param deletion_policy: The deletion_policy of this DbSystemSnapshot.
+ :type: oci.mysql.models.DeletionPolicyDetails
+ """
+ self._deletion_policy = deletion_policy
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/mysql/models/db_system_summary.py b/src/oci/mysql/models/db_system_summary.py
index c628765ffc..0b3acf7799 100644
--- a/src/oci/mysql/models/db_system_summary.py
+++ b/src/oci/mysql/models/db_system_summary.py
@@ -94,6 +94,10 @@ def __init__(self, **kwargs):
The value to assign to the time_updated property of this DbSystemSummary.
:type time_updated: datetime
+ :param deletion_policy:
+ The value to assign to the deletion_policy property of this DbSystemSummary.
+ :type deletion_policy: oci.mysql.models.DeletionPolicyDetails
+
:param freeform_tags:
The value to assign to the freeform_tags property of this DbSystemSummary.
:type freeform_tags: dict(str, str)
@@ -127,6 +131,7 @@ def __init__(self, **kwargs):
'mysql_version': 'str',
'time_created': 'datetime',
'time_updated': 'datetime',
+ 'deletion_policy': 'DeletionPolicyDetails',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
'crash_recovery': 'str'
@@ -150,6 +155,7 @@ def __init__(self, **kwargs):
'mysql_version': 'mysqlVersion',
'time_created': 'timeCreated',
'time_updated': 'timeUpdated',
+ 'deletion_policy': 'deletionPolicy',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
'crash_recovery': 'crashRecovery'
@@ -172,6 +178,7 @@ def __init__(self, **kwargs):
self._mysql_version = None
self._time_created = None
self._time_updated = None
+ self._deletion_policy = None
self._freeform_tags = None
self._defined_tags = None
self._crash_recovery = None
@@ -600,6 +607,26 @@ def time_updated(self, time_updated):
"""
self._time_updated = time_updated
+ @property
+ def deletion_policy(self):
+ """
+ Gets the deletion_policy of this DbSystemSummary.
+
+ :return: The deletion_policy of this DbSystemSummary.
+ :rtype: oci.mysql.models.DeletionPolicyDetails
+ """
+ return self._deletion_policy
+
+ @deletion_policy.setter
+ def deletion_policy(self, deletion_policy):
+ """
+ Sets the deletion_policy of this DbSystemSummary.
+
+ :param deletion_policy: The deletion_policy of this DbSystemSummary.
+ :type: oci.mysql.models.DeletionPolicyDetails
+ """
+ self._deletion_policy = deletion_policy
+
@property
def freeform_tags(self):
"""
diff --git a/src/oci/mysql/models/deletion_policy_details.py b/src/oci/mysql/models/deletion_policy_details.py
new file mode 100644
index 0000000000..38a0d93494
--- /dev/null
+++ b/src/oci/mysql/models/deletion_policy_details.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 DeletionPolicyDetails(object):
+ """
+ The Deletion policy for the DB System.
+ """
+
+ #: A constant which can be used with the automatic_backup_retention property of a DeletionPolicyDetails.
+ #: This constant has a value of "DELETE"
+ AUTOMATIC_BACKUP_RETENTION_DELETE = "DELETE"
+
+ #: A constant which can be used with the automatic_backup_retention property of a DeletionPolicyDetails.
+ #: This constant has a value of "RETAIN"
+ AUTOMATIC_BACKUP_RETENTION_RETAIN = "RETAIN"
+
+ #: A constant which can be used with the final_backup property of a DeletionPolicyDetails.
+ #: This constant has a value of "SKIP_FINAL_BACKUP"
+ FINAL_BACKUP_SKIP_FINAL_BACKUP = "SKIP_FINAL_BACKUP"
+
+ #: A constant which can be used with the final_backup property of a DeletionPolicyDetails.
+ #: This constant has a value of "REQUIRE_FINAL_BACKUP"
+ FINAL_BACKUP_REQUIRE_FINAL_BACKUP = "REQUIRE_FINAL_BACKUP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new DeletionPolicyDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param automatic_backup_retention:
+ The value to assign to the automatic_backup_retention property of this DeletionPolicyDetails.
+ Allowed values for this property are: "DELETE", "RETAIN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type automatic_backup_retention: str
+
+ :param final_backup:
+ The value to assign to the final_backup property of this DeletionPolicyDetails.
+ Allowed values for this property are: "SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type final_backup: str
+
+ :param is_delete_protected:
+ The value to assign to the is_delete_protected property of this DeletionPolicyDetails.
+ :type is_delete_protected: bool
+
+ """
+ self.swagger_types = {
+ 'automatic_backup_retention': 'str',
+ 'final_backup': 'str',
+ 'is_delete_protected': 'bool'
+ }
+
+ self.attribute_map = {
+ 'automatic_backup_retention': 'automaticBackupRetention',
+ 'final_backup': 'finalBackup',
+ 'is_delete_protected': 'isDeleteProtected'
+ }
+
+ self._automatic_backup_retention = None
+ self._final_backup = None
+ self._is_delete_protected = None
+
+ @property
+ def automatic_backup_retention(self):
+ """
+ **[Required]** Gets the automatic_backup_retention of this DeletionPolicyDetails.
+ Specifies if any automatic backups created for a DB System should be retained or deleted when the DB System is deleted.
+
+ Allowed values for this property are: "DELETE", "RETAIN", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The automatic_backup_retention of this DeletionPolicyDetails.
+ :rtype: str
+ """
+ return self._automatic_backup_retention
+
+ @automatic_backup_retention.setter
+ def automatic_backup_retention(self, automatic_backup_retention):
+ """
+ Sets the automatic_backup_retention of this DeletionPolicyDetails.
+ Specifies if any automatic backups created for a DB System should be retained or deleted when the DB System is deleted.
+
+
+ :param automatic_backup_retention: The automatic_backup_retention of this DeletionPolicyDetails.
+ :type: str
+ """
+ allowed_values = ["DELETE", "RETAIN"]
+ if not value_allowed_none_or_none_sentinel(automatic_backup_retention, allowed_values):
+ automatic_backup_retention = 'UNKNOWN_ENUM_VALUE'
+ self._automatic_backup_retention = automatic_backup_retention
+
+ @property
+ def final_backup(self):
+ """
+ **[Required]** Gets the final_backup of this DeletionPolicyDetails.
+ Specifies whether or not a backup is taken when the DB System is deleted.
+ REQUIRE_FINAL_BACKUP: a backup is taken if the DB System is deleted.
+ SKIP_FINAL_BACKUP: a backup is not taken if the DB System is deleted.
+
+ Allowed values for this property are: "SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The final_backup of this DeletionPolicyDetails.
+ :rtype: str
+ """
+ return self._final_backup
+
+ @final_backup.setter
+ def final_backup(self, final_backup):
+ """
+ Sets the final_backup of this DeletionPolicyDetails.
+ Specifies whether or not a backup is taken when the DB System is deleted.
+ REQUIRE_FINAL_BACKUP: a backup is taken if the DB System is deleted.
+ SKIP_FINAL_BACKUP: a backup is not taken if the DB System is deleted.
+
+
+ :param final_backup: The final_backup of this DeletionPolicyDetails.
+ :type: str
+ """
+ allowed_values = ["SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP"]
+ if not value_allowed_none_or_none_sentinel(final_backup, allowed_values):
+ final_backup = 'UNKNOWN_ENUM_VALUE'
+ self._final_backup = final_backup
+
+ @property
+ def is_delete_protected(self):
+ """
+ **[Required]** Gets the is_delete_protected of this DeletionPolicyDetails.
+ Specifies whether the DB System can be deleted. Set to true to prevent deletion, false (default) to allow.
+
+
+ :return: The is_delete_protected of this DeletionPolicyDetails.
+ :rtype: bool
+ """
+ return self._is_delete_protected
+
+ @is_delete_protected.setter
+ def is_delete_protected(self, is_delete_protected):
+ """
+ Sets the is_delete_protected of this DeletionPolicyDetails.
+ Specifies whether the DB System can be deleted. Set to true to prevent deletion, false (default) to allow.
+
+
+ :param is_delete_protected: The is_delete_protected of this DeletionPolicyDetails.
+ :type: bool
+ """
+ self._is_delete_protected = is_delete_protected
+
+ 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/mysql/models/update_db_system_details.py b/src/oci/mysql/models/update_db_system_details.py
index d071b54fa6..78bb3770a3 100644
--- a/src/oci/mysql/models/update_db_system_details.py
+++ b/src/oci/mysql/models/update_db_system_details.py
@@ -106,6 +106,10 @@ def __init__(self, **kwargs):
The value to assign to the defined_tags property of this UpdateDbSystemDetails.
:type defined_tags: dict(str, dict(str, object))
+ :param deletion_policy:
+ The value to assign to the deletion_policy property of this UpdateDbSystemDetails.
+ :type deletion_policy: oci.mysql.models.UpdateDeletionPolicyDetails
+
:param crash_recovery:
The value to assign to the crash_recovery property of this UpdateDbSystemDetails.
Allowed values for this property are: "ENABLED", "DISABLED"
@@ -133,6 +137,7 @@ def __init__(self, **kwargs):
'maintenance': 'UpdateMaintenanceDetails',
'freeform_tags': 'dict(str, str)',
'defined_tags': 'dict(str, dict(str, object))',
+ 'deletion_policy': 'UpdateDeletionPolicyDetails',
'crash_recovery': 'str'
}
@@ -157,6 +162,7 @@ def __init__(self, **kwargs):
'maintenance': 'maintenance',
'freeform_tags': 'freeformTags',
'defined_tags': 'definedTags',
+ 'deletion_policy': 'deletionPolicy',
'crash_recovery': 'crashRecovery'
}
@@ -180,6 +186,7 @@ def __init__(self, **kwargs):
self._maintenance = None
self._freeform_tags = None
self._defined_tags = None
+ self._deletion_policy = None
self._crash_recovery = None
@property
@@ -726,6 +733,26 @@ def defined_tags(self, defined_tags):
"""
self._defined_tags = defined_tags
+ @property
+ def deletion_policy(self):
+ """
+ Gets the deletion_policy of this UpdateDbSystemDetails.
+
+ :return: The deletion_policy of this UpdateDbSystemDetails.
+ :rtype: oci.mysql.models.UpdateDeletionPolicyDetails
+ """
+ return self._deletion_policy
+
+ @deletion_policy.setter
+ def deletion_policy(self, deletion_policy):
+ """
+ Sets the deletion_policy of this UpdateDbSystemDetails.
+
+ :param deletion_policy: The deletion_policy of this UpdateDbSystemDetails.
+ :type: oci.mysql.models.UpdateDeletionPolicyDetails
+ """
+ self._deletion_policy = deletion_policy
+
@property
def crash_recovery(self):
"""
diff --git a/src/oci/mysql/models/update_deletion_policy_details.py b/src/oci/mysql/models/update_deletion_policy_details.py
new file mode 100644
index 0000000000..93339ee736
--- /dev/null
+++ b/src/oci/mysql/models/update_deletion_policy_details.py
@@ -0,0 +1,170 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 UpdateDeletionPolicyDetails(object):
+ """
+ Policy for how the DB System and related resources should be handled at the time of its deletion.
+ """
+
+ #: A constant which can be used with the automatic_backup_retention property of a UpdateDeletionPolicyDetails.
+ #: This constant has a value of "DELETE"
+ AUTOMATIC_BACKUP_RETENTION_DELETE = "DELETE"
+
+ #: A constant which can be used with the automatic_backup_retention property of a UpdateDeletionPolicyDetails.
+ #: This constant has a value of "RETAIN"
+ AUTOMATIC_BACKUP_RETENTION_RETAIN = "RETAIN"
+
+ #: A constant which can be used with the final_backup property of a UpdateDeletionPolicyDetails.
+ #: This constant has a value of "SKIP_FINAL_BACKUP"
+ FINAL_BACKUP_SKIP_FINAL_BACKUP = "SKIP_FINAL_BACKUP"
+
+ #: A constant which can be used with the final_backup property of a UpdateDeletionPolicyDetails.
+ #: This constant has a value of "REQUIRE_FINAL_BACKUP"
+ FINAL_BACKUP_REQUIRE_FINAL_BACKUP = "REQUIRE_FINAL_BACKUP"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateDeletionPolicyDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param automatic_backup_retention:
+ The value to assign to the automatic_backup_retention property of this UpdateDeletionPolicyDetails.
+ Allowed values for this property are: "DELETE", "RETAIN"
+ :type automatic_backup_retention: str
+
+ :param final_backup:
+ The value to assign to the final_backup property of this UpdateDeletionPolicyDetails.
+ Allowed values for this property are: "SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP"
+ :type final_backup: str
+
+ :param is_delete_protected:
+ The value to assign to the is_delete_protected property of this UpdateDeletionPolicyDetails.
+ :type is_delete_protected: bool
+
+ """
+ self.swagger_types = {
+ 'automatic_backup_retention': 'str',
+ 'final_backup': 'str',
+ 'is_delete_protected': 'bool'
+ }
+
+ self.attribute_map = {
+ 'automatic_backup_retention': 'automaticBackupRetention',
+ 'final_backup': 'finalBackup',
+ 'is_delete_protected': 'isDeleteProtected'
+ }
+
+ self._automatic_backup_retention = None
+ self._final_backup = None
+ self._is_delete_protected = None
+
+ @property
+ def automatic_backup_retention(self):
+ """
+ Gets the automatic_backup_retention of this UpdateDeletionPolicyDetails.
+ Specifies if any automatic backups created for a DB System should be retained or deleted when the DB System is deleted.
+
+ Allowed values for this property are: "DELETE", "RETAIN"
+
+
+ :return: The automatic_backup_retention of this UpdateDeletionPolicyDetails.
+ :rtype: str
+ """
+ return self._automatic_backup_retention
+
+ @automatic_backup_retention.setter
+ def automatic_backup_retention(self, automatic_backup_retention):
+ """
+ Sets the automatic_backup_retention of this UpdateDeletionPolicyDetails.
+ Specifies if any automatic backups created for a DB System should be retained or deleted when the DB System is deleted.
+
+
+ :param automatic_backup_retention: The automatic_backup_retention of this UpdateDeletionPolicyDetails.
+ :type: str
+ """
+ allowed_values = ["DELETE", "RETAIN"]
+ if not value_allowed_none_or_none_sentinel(automatic_backup_retention, allowed_values):
+ raise ValueError(
+ "Invalid value for `automatic_backup_retention`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._automatic_backup_retention = automatic_backup_retention
+
+ @property
+ def final_backup(self):
+ """
+ Gets the final_backup of this UpdateDeletionPolicyDetails.
+ Specifies whether or not a backup is taken when the DB System is deleted.
+ REQUIRE_FINAL_BACKUP: a backup is taken if the DB System is deleted.
+ SKIP_FINAL_BACKUP: a backup is not taken if the DB System is deleted.
+
+ Allowed values for this property are: "SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP"
+
+
+ :return: The final_backup of this UpdateDeletionPolicyDetails.
+ :rtype: str
+ """
+ return self._final_backup
+
+ @final_backup.setter
+ def final_backup(self, final_backup):
+ """
+ Sets the final_backup of this UpdateDeletionPolicyDetails.
+ Specifies whether or not a backup is taken when the DB System is deleted.
+ REQUIRE_FINAL_BACKUP: a backup is taken if the DB System is deleted.
+ SKIP_FINAL_BACKUP: a backup is not taken if the DB System is deleted.
+
+
+ :param final_backup: The final_backup of this UpdateDeletionPolicyDetails.
+ :type: str
+ """
+ allowed_values = ["SKIP_FINAL_BACKUP", "REQUIRE_FINAL_BACKUP"]
+ if not value_allowed_none_or_none_sentinel(final_backup, allowed_values):
+ raise ValueError(
+ "Invalid value for `final_backup`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._final_backup = final_backup
+
+ @property
+ def is_delete_protected(self):
+ """
+ Gets the is_delete_protected of this UpdateDeletionPolicyDetails.
+ Specifies whether the DB System can be deleted. Set to true to prevent deletion, false (default) to allow.
+
+
+ :return: The is_delete_protected of this UpdateDeletionPolicyDetails.
+ :rtype: bool
+ """
+ return self._is_delete_protected
+
+ @is_delete_protected.setter
+ def is_delete_protected(self, is_delete_protected):
+ """
+ Sets the is_delete_protected of this UpdateDeletionPolicyDetails.
+ Specifies whether the DB System can be deleted. Set to true to prevent deletion, false (default) to allow.
+
+
+ :param is_delete_protected: The is_delete_protected of this UpdateDeletionPolicyDetails.
+ :type: bool
+ """
+ self._is_delete_protected = is_delete_protected
+
+ 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/opsi/models/__init__.py b/src/oci/opsi/models/__init__.py
index 66e3daf154..394f2ce897 100644
--- a/src/oci/opsi/models/__init__.py
+++ b/src/oci/opsi/models/__init__.py
@@ -21,6 +21,8 @@
from .change_enterprise_manager_bridge_compartment_details import ChangeEnterpriseManagerBridgeCompartmentDetails
from .change_exadata_insight_compartment_details import ChangeExadataInsightCompartmentDetails
from .change_host_insight_compartment_details import ChangeHostInsightCompartmentDetails
+from .change_operations_insights_private_endpoint_compartment_details import ChangeOperationsInsightsPrivateEndpointCompartmentDetails
+from .change_pe_comanaged_database_insight_details import ChangePeComanagedDatabaseInsightDetails
from .connection_details import ConnectionDetails
from .create_awr_hub_details import CreateAwrHubDetails
from .create_database_insight_details import CreateDatabaseInsightDetails
@@ -32,8 +34,11 @@
from .create_exadata_insight_details import CreateExadataInsightDetails
from .create_host_insight_details import CreateHostInsightDetails
from .create_macs_managed_external_host_insight_details import CreateMacsManagedExternalHostInsightDetails
+from .create_operations_insights_private_endpoint_details import CreateOperationsInsightsPrivateEndpointDetails
from .create_operations_insights_warehouse_details import CreateOperationsInsightsWarehouseDetails
from .create_operations_insights_warehouse_user_details import CreateOperationsInsightsWarehouseUserDetails
+from .create_pe_comanaged_database_insight_details import CreatePeComanagedDatabaseInsightDetails
+from .credential_by_vault import CredentialByVault
from .credential_details import CredentialDetails
from .credentials_by_source import CredentialsBySource
from .db_external_instance import DBExternalInstance
@@ -64,6 +69,7 @@
from .enable_exadata_insight_details import EnableExadataInsightDetails
from .enable_host_insight_details import EnableHostInsightDetails
from .enable_macs_managed_external_host_insight_details import EnableMacsManagedExternalHostInsightDetails
+from .enable_pe_comanaged_database_insight_details import EnablePeComanagedDatabaseInsightDetails
from .enterprise_manager_bridge import EnterpriseManagerBridge
from .enterprise_manager_bridge_collection import EnterpriseManagerBridgeCollection
from .enterprise_manager_bridge_summary import EnterpriseManagerBridgeSummary
@@ -142,6 +148,9 @@
from .macs_managed_external_host_configuration_summary import MacsManagedExternalHostConfigurationSummary
from .macs_managed_external_host_insight import MacsManagedExternalHostInsight
from .macs_managed_external_host_insight_summary import MacsManagedExternalHostInsightSummary
+from .operations_insights_private_endpoint import OperationsInsightsPrivateEndpoint
+from .operations_insights_private_endpoint_collection import OperationsInsightsPrivateEndpointCollection
+from .operations_insights_private_endpoint_summary import OperationsInsightsPrivateEndpointSummary
from .operations_insights_warehouse import OperationsInsightsWarehouse
from .operations_insights_warehouse_summary import OperationsInsightsWarehouseSummary
from .operations_insights_warehouse_summary_collection import OperationsInsightsWarehouseSummaryCollection
@@ -150,6 +159,11 @@
from .operations_insights_warehouse_user_summary_collection import OperationsInsightsWarehouseUserSummaryCollection
from .operations_insights_warehouse_users import OperationsInsightsWarehouseUsers
from .operations_insights_warehouses import OperationsInsightsWarehouses
+from .pe_comanaged_database_connection_details import PeComanagedDatabaseConnectionDetails
+from .pe_comanaged_database_host_details import PeComanagedDatabaseHostDetails
+from .pe_comanaged_database_insight import PeComanagedDatabaseInsight
+from .pe_comanaged_database_insight_summary import PeComanagedDatabaseInsightSummary
+from .pe_comanaged_managed_external_database_configuration_summary import PeComanagedManagedExternalDatabaseConfigurationSummary
from .projected_data_item import ProjectedDataItem
from .resource_capacity_trend_aggregation import ResourceCapacityTrendAggregation
from .resource_insight_current_utilization import ResourceInsightCurrentUtilization
@@ -224,8 +238,10 @@
from .update_host_insight_details import UpdateHostInsightDetails
from .update_macs_managed_external_database_insight_details import UpdateMacsManagedExternalDatabaseInsightDetails
from .update_macs_managed_external_host_insight_details import UpdateMacsManagedExternalHostInsightDetails
+from .update_operations_insights_private_endpoint_details import UpdateOperationsInsightsPrivateEndpointDetails
from .update_operations_insights_warehouse_details import UpdateOperationsInsightsWarehouseDetails
from .update_operations_insights_warehouse_user_details import UpdateOperationsInsightsWarehouseUserDetails
+from .update_pe_comanaged_database_insight_details import UpdatePeComanagedDatabaseInsightDetails
from .work_request import WorkRequest
from .work_request_collection import WorkRequestCollection
from .work_request_error import WorkRequestError
@@ -254,6 +270,8 @@
"ChangeEnterpriseManagerBridgeCompartmentDetails": ChangeEnterpriseManagerBridgeCompartmentDetails,
"ChangeExadataInsightCompartmentDetails": ChangeExadataInsightCompartmentDetails,
"ChangeHostInsightCompartmentDetails": ChangeHostInsightCompartmentDetails,
+ "ChangeOperationsInsightsPrivateEndpointCompartmentDetails": ChangeOperationsInsightsPrivateEndpointCompartmentDetails,
+ "ChangePeComanagedDatabaseInsightDetails": ChangePeComanagedDatabaseInsightDetails,
"ConnectionDetails": ConnectionDetails,
"CreateAwrHubDetails": CreateAwrHubDetails,
"CreateDatabaseInsightDetails": CreateDatabaseInsightDetails,
@@ -265,8 +283,11 @@
"CreateExadataInsightDetails": CreateExadataInsightDetails,
"CreateHostInsightDetails": CreateHostInsightDetails,
"CreateMacsManagedExternalHostInsightDetails": CreateMacsManagedExternalHostInsightDetails,
+ "CreateOperationsInsightsPrivateEndpointDetails": CreateOperationsInsightsPrivateEndpointDetails,
"CreateOperationsInsightsWarehouseDetails": CreateOperationsInsightsWarehouseDetails,
"CreateOperationsInsightsWarehouseUserDetails": CreateOperationsInsightsWarehouseUserDetails,
+ "CreatePeComanagedDatabaseInsightDetails": CreatePeComanagedDatabaseInsightDetails,
+ "CredentialByVault": CredentialByVault,
"CredentialDetails": CredentialDetails,
"CredentialsBySource": CredentialsBySource,
"DBExternalInstance": DBExternalInstance,
@@ -297,6 +318,7 @@
"EnableExadataInsightDetails": EnableExadataInsightDetails,
"EnableHostInsightDetails": EnableHostInsightDetails,
"EnableMacsManagedExternalHostInsightDetails": EnableMacsManagedExternalHostInsightDetails,
+ "EnablePeComanagedDatabaseInsightDetails": EnablePeComanagedDatabaseInsightDetails,
"EnterpriseManagerBridge": EnterpriseManagerBridge,
"EnterpriseManagerBridgeCollection": EnterpriseManagerBridgeCollection,
"EnterpriseManagerBridgeSummary": EnterpriseManagerBridgeSummary,
@@ -375,6 +397,9 @@
"MacsManagedExternalHostConfigurationSummary": MacsManagedExternalHostConfigurationSummary,
"MacsManagedExternalHostInsight": MacsManagedExternalHostInsight,
"MacsManagedExternalHostInsightSummary": MacsManagedExternalHostInsightSummary,
+ "OperationsInsightsPrivateEndpoint": OperationsInsightsPrivateEndpoint,
+ "OperationsInsightsPrivateEndpointCollection": OperationsInsightsPrivateEndpointCollection,
+ "OperationsInsightsPrivateEndpointSummary": OperationsInsightsPrivateEndpointSummary,
"OperationsInsightsWarehouse": OperationsInsightsWarehouse,
"OperationsInsightsWarehouseSummary": OperationsInsightsWarehouseSummary,
"OperationsInsightsWarehouseSummaryCollection": OperationsInsightsWarehouseSummaryCollection,
@@ -383,6 +408,11 @@
"OperationsInsightsWarehouseUserSummaryCollection": OperationsInsightsWarehouseUserSummaryCollection,
"OperationsInsightsWarehouseUsers": OperationsInsightsWarehouseUsers,
"OperationsInsightsWarehouses": OperationsInsightsWarehouses,
+ "PeComanagedDatabaseConnectionDetails": PeComanagedDatabaseConnectionDetails,
+ "PeComanagedDatabaseHostDetails": PeComanagedDatabaseHostDetails,
+ "PeComanagedDatabaseInsight": PeComanagedDatabaseInsight,
+ "PeComanagedDatabaseInsightSummary": PeComanagedDatabaseInsightSummary,
+ "PeComanagedManagedExternalDatabaseConfigurationSummary": PeComanagedManagedExternalDatabaseConfigurationSummary,
"ProjectedDataItem": ProjectedDataItem,
"ResourceCapacityTrendAggregation": ResourceCapacityTrendAggregation,
"ResourceInsightCurrentUtilization": ResourceInsightCurrentUtilization,
@@ -457,8 +487,10 @@
"UpdateHostInsightDetails": UpdateHostInsightDetails,
"UpdateMacsManagedExternalDatabaseInsightDetails": UpdateMacsManagedExternalDatabaseInsightDetails,
"UpdateMacsManagedExternalHostInsightDetails": UpdateMacsManagedExternalHostInsightDetails,
+ "UpdateOperationsInsightsPrivateEndpointDetails": UpdateOperationsInsightsPrivateEndpointDetails,
"UpdateOperationsInsightsWarehouseDetails": UpdateOperationsInsightsWarehouseDetails,
"UpdateOperationsInsightsWarehouseUserDetails": UpdateOperationsInsightsWarehouseUserDetails,
+ "UpdatePeComanagedDatabaseInsightDetails": UpdatePeComanagedDatabaseInsightDetails,
"WorkRequest": WorkRequest,
"WorkRequestCollection": WorkRequestCollection,
"WorkRequestError": WorkRequestError,
diff --git a/src/oci/opsi/models/autonomous_database_configuration_summary.py b/src/oci/opsi/models/autonomous_database_configuration_summary.py
index 44543bf566..e93239512d 100644
--- a/src/oci/opsi/models/autonomous_database_configuration_summary.py
+++ b/src/oci/opsi/models/autonomous_database_configuration_summary.py
@@ -25,7 +25,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this AutonomousDatabaseConfigurationSummary.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param compartment_id:
diff --git a/src/oci/opsi/models/autonomous_database_insight.py b/src/oci/opsi/models/autonomous_database_insight.py
index 91473addee..1357e65798 100644
--- a/src/oci/opsi/models/autonomous_database_insight.py
+++ b/src/oci/opsi/models/autonomous_database_insight.py
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this AutonomousDatabaseInsight.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param id:
@@ -78,6 +78,10 @@ def __init__(self, **kwargs):
The value to assign to the lifecycle_details property of this AutonomousDatabaseInsight.
:type lifecycle_details: str
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this AutonomousDatabaseInsight.
+ :type database_connection_status_details: str
+
:param database_id:
The value to assign to the database_id property of this AutonomousDatabaseInsight.
:type database_id: str
@@ -114,6 +118,7 @@ def __init__(self, **kwargs):
'time_updated': 'datetime',
'lifecycle_state': 'str',
'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str',
'database_id': 'str',
'database_name': 'str',
'database_display_name': 'str',
@@ -136,6 +141,7 @@ def __init__(self, **kwargs):
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails',
'database_id': 'databaseId',
'database_name': 'databaseName',
'database_display_name': 'databaseDisplayName',
@@ -157,6 +163,7 @@ def __init__(self, **kwargs):
self._time_updated = None
self._lifecycle_state = None
self._lifecycle_details = None
+ self._database_connection_status_details = None
self._database_id = None
self._database_name = None
self._database_display_name = None
diff --git a/src/oci/opsi/models/autonomous_database_insight_summary.py b/src/oci/opsi/models/autonomous_database_insight_summary.py
index 7486a5ea80..65ed7d2fc7 100644
--- a/src/oci/opsi/models/autonomous_database_insight_summary.py
+++ b/src/oci/opsi/models/autonomous_database_insight_summary.py
@@ -65,7 +65,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this AutonomousDatabaseInsightSummary.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param processor_count:
@@ -94,6 +94,10 @@ def __init__(self, **kwargs):
The value to assign to the lifecycle_details property of this AutonomousDatabaseInsightSummary.
:type lifecycle_details: str
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this AutonomousDatabaseInsightSummary.
+ :type database_connection_status_details: str
+
:param database_resource_type:
The value to assign to the database_resource_type property of this AutonomousDatabaseInsightSummary.
:type database_resource_type: str
@@ -118,6 +122,7 @@ def __init__(self, **kwargs):
'time_updated': 'datetime',
'lifecycle_state': 'str',
'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str',
'database_resource_type': 'str'
}
@@ -140,6 +145,7 @@ def __init__(self, **kwargs):
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails',
'database_resource_type': 'databaseResourceType'
}
@@ -161,6 +167,7 @@ def __init__(self, **kwargs):
self._time_updated = None
self._lifecycle_state = None
self._lifecycle_details = None
+ self._database_connection_status_details = None
self._database_resource_type = None
self._entity_source = 'AUTONOMOUS_DATABASE'
diff --git a/src/oci/opsi/models/change_operations_insights_private_endpoint_compartment_details.py b/src/oci/opsi/models/change_operations_insights_private_endpoint_compartment_details.py
new file mode 100644
index 0000000000..3e2e80c03d
--- /dev/null
+++ b/src/oci/opsi/models/change_operations_insights_private_endpoint_compartment_details.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 ChangeOperationsInsightsPrivateEndpointCompartmentDetails(object):
+ """
+ The details used to change the compartment of a Operation Insights private endpoint.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ChangeOperationsInsightsPrivateEndpointCompartmentDetails 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 ChangeOperationsInsightsPrivateEndpointCompartmentDetails.
+ :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):
+ """
+ Gets the compartment_id of this ChangeOperationsInsightsPrivateEndpointCompartmentDetails.
+ The new compartment `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this ChangeOperationsInsightsPrivateEndpointCompartmentDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this ChangeOperationsInsightsPrivateEndpointCompartmentDetails.
+ The new compartment `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this ChangeOperationsInsightsPrivateEndpointCompartmentDetails.
+ :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/opsi/models/change_pe_comanaged_database_insight_details.py b/src/oci/opsi/models/change_pe_comanaged_database_insight_details.py
new file mode 100644
index 0000000000..c74dbaa298
--- /dev/null
+++ b/src/oci/opsi/models/change_pe_comanaged_database_insight_details.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 ChangePeComanagedDatabaseInsightDetails(object):
+ """
+ Details of a Private Endpoint co-managed database insight.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new ChangePeComanagedDatabaseInsightDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param service_name:
+ The value to assign to the service_name property of this ChangePeComanagedDatabaseInsightDetails.
+ :type service_name: str
+
+ :param credential_details:
+ The value to assign to the credential_details property of this ChangePeComanagedDatabaseInsightDetails.
+ :type credential_details: oci.opsi.models.CredentialDetails
+
+ :param opsi_private_endpoint_id:
+ The value to assign to the opsi_private_endpoint_id property of this ChangePeComanagedDatabaseInsightDetails.
+ :type opsi_private_endpoint_id: str
+
+ """
+ self.swagger_types = {
+ 'service_name': 'str',
+ 'credential_details': 'CredentialDetails',
+ 'opsi_private_endpoint_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'service_name': 'serviceName',
+ 'credential_details': 'credentialDetails',
+ 'opsi_private_endpoint_id': 'opsiPrivateEndpointId'
+ }
+
+ self._service_name = None
+ self._credential_details = None
+ self._opsi_private_endpoint_id = None
+
+ @property
+ def service_name(self):
+ """
+ **[Required]** Gets the service_name of this ChangePeComanagedDatabaseInsightDetails.
+ Database service name used for connection requests.
+
+
+ :return: The service_name of this ChangePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._service_name
+
+ @service_name.setter
+ def service_name(self, service_name):
+ """
+ Sets the service_name of this ChangePeComanagedDatabaseInsightDetails.
+ Database service name used for connection requests.
+
+
+ :param service_name: The service_name of this ChangePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._service_name = service_name
+
+ @property
+ def credential_details(self):
+ """
+ **[Required]** Gets the credential_details of this ChangePeComanagedDatabaseInsightDetails.
+
+ :return: The credential_details of this ChangePeComanagedDatabaseInsightDetails.
+ :rtype: oci.opsi.models.CredentialDetails
+ """
+ return self._credential_details
+
+ @credential_details.setter
+ def credential_details(self, credential_details):
+ """
+ Sets the credential_details of this ChangePeComanagedDatabaseInsightDetails.
+
+ :param credential_details: The credential_details of this ChangePeComanagedDatabaseInsightDetails.
+ :type: oci.opsi.models.CredentialDetails
+ """
+ self._credential_details = credential_details
+
+ @property
+ def opsi_private_endpoint_id(self):
+ """
+ **[Required]** Gets the opsi_private_endpoint_id of this ChangePeComanagedDatabaseInsightDetails.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The opsi_private_endpoint_id of this ChangePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._opsi_private_endpoint_id
+
+ @opsi_private_endpoint_id.setter
+ def opsi_private_endpoint_id(self, opsi_private_endpoint_id):
+ """
+ Sets the opsi_private_endpoint_id of this ChangePeComanagedDatabaseInsightDetails.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param opsi_private_endpoint_id: The opsi_private_endpoint_id of this ChangePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._opsi_private_endpoint_id = opsi_private_endpoint_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/opsi/models/connection_details.py b/src/oci/opsi/models/connection_details.py
index 00101bd26d..f88dd6b476 100644
--- a/src/oci/opsi/models/connection_details.py
+++ b/src/oci/opsi/models/connection_details.py
@@ -146,7 +146,7 @@ def port(self, port):
def service_name(self):
"""
**[Required]** Gets the service_name of this ConnectionDetails.
- Service name used for connection requests.
+ Database service name used for connection requests.
:return: The service_name of this ConnectionDetails.
@@ -158,7 +158,7 @@ def service_name(self):
def service_name(self, service_name):
"""
Sets the service_name of this ConnectionDetails.
- Service name used for connection requests.
+ Database service name used for connection requests.
:param service_name: The service_name of this ConnectionDetails.
diff --git a/src/oci/opsi/models/create_database_insight_details.py b/src/oci/opsi/models/create_database_insight_details.py
index 8cc18d8644..f455a9a556 100644
--- a/src/oci/opsi/models/create_database_insight_details.py
+++ b/src/oci/opsi/models/create_database_insight_details.py
@@ -17,18 +17,23 @@ class CreateDatabaseInsightDetails(object):
#: This constant has a value of "EM_MANAGED_EXTERNAL_DATABASE"
ENTITY_SOURCE_EM_MANAGED_EXTERNAL_DATABASE = "EM_MANAGED_EXTERNAL_DATABASE"
+ #: A constant which can be used with the entity_source property of a CreateDatabaseInsightDetails.
+ #: This constant has a value of "PE_COMANAGED_DATABASE"
+ ENTITY_SOURCE_PE_COMANAGED_DATABASE = "PE_COMANAGED_DATABASE"
+
def __init__(self, **kwargs):
"""
Initializes a new CreateDatabaseInsightDetails 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.opsi.models.CreateEmManagedExternalDatabaseInsightDetails`
+ * :class:`~oci.opsi.models.CreatePeComanagedDatabaseInsightDetails`
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param entity_source:
The value to assign to the entity_source property of this CreateDatabaseInsightDetails.
- Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param compartment_id:
@@ -73,6 +78,9 @@ def get_subtype(object_dictionary):
if type == 'EM_MANAGED_EXTERNAL_DATABASE':
return 'CreateEmManagedExternalDatabaseInsightDetails'
+
+ if type == 'PE_COMANAGED_DATABASE':
+ return 'CreatePeComanagedDatabaseInsightDetails'
else:
return 'CreateDatabaseInsightDetails'
@@ -82,7 +90,7 @@ def entity_source(self):
**[Required]** Gets the entity_source of this CreateDatabaseInsightDetails.
Source of the database entity.
- Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:return: The entity_source of this CreateDatabaseInsightDetails.
@@ -100,7 +108,7 @@ def entity_source(self, entity_source):
:param entity_source: The entity_source of this CreateDatabaseInsightDetails.
:type: str
"""
- allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE"]
+ allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"]
if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
raise ValueError(
"Invalid value for `entity_source`, must be None or one of {0}"
diff --git a/src/oci/opsi/models/create_em_managed_external_database_insight_details.py b/src/oci/opsi/models/create_em_managed_external_database_insight_details.py
index 51109a321b..6c985c8c7f 100644
--- a/src/oci/opsi/models/create_em_managed_external_database_insight_details.py
+++ b/src/oci/opsi/models/create_em_managed_external_database_insight_details.py
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this CreateEmManagedExternalDatabaseInsightDetails.
- Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param compartment_id:
diff --git a/src/oci/opsi/models/create_operations_insights_private_endpoint_details.py b/src/oci/opsi/models/create_operations_insights_private_endpoint_details.py
new file mode 100644
index 0000000000..c53e9f2b64
--- /dev/null
+++ b/src/oci/opsi/models/create_operations_insights_private_endpoint_details.py
@@ -0,0 +1,338 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 CreateOperationsInsightsPrivateEndpointDetails(object):
+ """
+ The details used to create a new Operation Insights private endpoint.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreateOperationsInsightsPrivateEndpointDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param display_name:
+ The value to assign to the display_name property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type compartment_id: str
+
+ :param vcn_id:
+ The value to assign to the vcn_id property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type vcn_id: str
+
+ :param subnet_id:
+ The value to assign to the subnet_id property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type subnet_id: str
+
+ :param is_used_for_rac_dbs:
+ The value to assign to the is_used_for_rac_dbs property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type is_used_for_rac_dbs: bool
+
+ :param description:
+ The value to assign to the description property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type description: str
+
+ :param nsg_ids:
+ The value to assign to the nsg_ids property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type nsg_ids: list[str]
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'vcn_id': 'str',
+ 'subnet_id': 'str',
+ 'is_used_for_rac_dbs': 'bool',
+ 'description': 'str',
+ 'nsg_ids': 'list[str]',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'vcn_id': 'vcnId',
+ 'subnet_id': 'subnetId',
+ 'is_used_for_rac_dbs': 'isUsedForRacDbs',
+ 'description': 'description',
+ 'nsg_ids': 'nsgIds',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._display_name = None
+ self._compartment_id = None
+ self._vcn_id = None
+ self._subnet_id = None
+ self._is_used_for_rac_dbs = None
+ self._description = None
+ self._nsg_ids = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this CreateOperationsInsightsPrivateEndpointDetails.
+ The display name for the private endpoint. It is changeable.
+
+
+ :return: The display_name of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this CreateOperationsInsightsPrivateEndpointDetails.
+ The display name for the private endpoint. It is changeable.
+
+
+ :param display_name: The display_name of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ The compartment `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ The compartment `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vcn_id(self):
+ """
+ **[Required]** Gets the vcn_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ The VCN `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The vcn_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._vcn_id
+
+ @vcn_id.setter
+ def vcn_id(self, vcn_id):
+ """
+ Sets the vcn_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ The VCN `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param vcn_id: The vcn_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: str
+ """
+ self._vcn_id = vcn_id
+
+ @property
+ def subnet_id(self):
+ """
+ **[Required]** Gets the subnet_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ The Subnet `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The subnet_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._subnet_id
+
+ @subnet_id.setter
+ def subnet_id(self, subnet_id):
+ """
+ Sets the subnet_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ The Subnet `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param subnet_id: The subnet_id of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: str
+ """
+ self._subnet_id = subnet_id
+
+ @property
+ def is_used_for_rac_dbs(self):
+ """
+ **[Required]** Gets the is_used_for_rac_dbs of this CreateOperationsInsightsPrivateEndpointDetails.
+ The flag to identify if private endpoint is used for rac database or not
+
+
+ :return: The is_used_for_rac_dbs of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: bool
+ """
+ return self._is_used_for_rac_dbs
+
+ @is_used_for_rac_dbs.setter
+ def is_used_for_rac_dbs(self, is_used_for_rac_dbs):
+ """
+ Sets the is_used_for_rac_dbs of this CreateOperationsInsightsPrivateEndpointDetails.
+ The flag to identify if private endpoint is used for rac database or not
+
+
+ :param is_used_for_rac_dbs: The is_used_for_rac_dbs of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: bool
+ """
+ self._is_used_for_rac_dbs = is_used_for_rac_dbs
+
+ @property
+ def description(self):
+ """
+ Gets the description of this CreateOperationsInsightsPrivateEndpointDetails.
+ The description of the private endpoint.
+
+
+ :return: The description of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """
+ Sets the description of this CreateOperationsInsightsPrivateEndpointDetails.
+ The description of the private endpoint.
+
+
+ :param description: The description of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: str
+ """
+ self._description = description
+
+ @property
+ def nsg_ids(self):
+ """
+ Gets the nsg_ids of this CreateOperationsInsightsPrivateEndpointDetails.
+ The `OCID`__ of the network security groups that the private endpoint belongs to.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The nsg_ids of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: list[str]
+ """
+ return self._nsg_ids
+
+ @nsg_ids.setter
+ def nsg_ids(self, nsg_ids):
+ """
+ Sets the nsg_ids of this CreateOperationsInsightsPrivateEndpointDetails.
+ The `OCID`__ of the network security groups that the private endpoint belongs to.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param nsg_ids: The nsg_ids of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: list[str]
+ """
+ self._nsg_ids = nsg_ids
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this CreateOperationsInsightsPrivateEndpointDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this CreateOperationsInsightsPrivateEndpointDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this CreateOperationsInsightsPrivateEndpointDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this CreateOperationsInsightsPrivateEndpointDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this CreateOperationsInsightsPrivateEndpointDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this CreateOperationsInsightsPrivateEndpointDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/create_pe_comanaged_database_insight_details.py b/src/oci/opsi/models/create_pe_comanaged_database_insight_details.py
new file mode 100644
index 0000000000..81782039c3
--- /dev/null
+++ b/src/oci/opsi/models/create_pe_comanaged_database_insight_details.py
@@ -0,0 +1,314 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+from .create_database_insight_details import CreateDatabaseInsightDetails
+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 CreatePeComanagedDatabaseInsightDetails(CreateDatabaseInsightDetails):
+ """
+ The information about database to be analyzed.
+ """
+
+ #: A constant which can be used with the deployment_type property of a CreatePeComanagedDatabaseInsightDetails.
+ #: This constant has a value of "VIRTUAL_MACHINE"
+ DEPLOYMENT_TYPE_VIRTUAL_MACHINE = "VIRTUAL_MACHINE"
+
+ #: A constant which can be used with the deployment_type property of a CreatePeComanagedDatabaseInsightDetails.
+ #: This constant has a value of "BARE_METAL"
+ DEPLOYMENT_TYPE_BARE_METAL = "BARE_METAL"
+
+ #: A constant which can be used with the deployment_type property of a CreatePeComanagedDatabaseInsightDetails.
+ #: This constant has a value of "EXACS"
+ DEPLOYMENT_TYPE_EXACS = "EXACS"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CreatePeComanagedDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CreatePeComanagedDatabaseInsightDetails.entity_source` attribute
+ of this class is ``PE_COMANAGED_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this CreatePeComanagedDatabaseInsightDetails.
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
+ :type entity_source: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this CreatePeComanagedDatabaseInsightDetails.
+ :type compartment_id: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this CreatePeComanagedDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this CreatePeComanagedDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param database_id:
+ The value to assign to the database_id property of this CreatePeComanagedDatabaseInsightDetails.
+ :type database_id: str
+
+ :param database_resource_type:
+ The value to assign to the database_resource_type property of this CreatePeComanagedDatabaseInsightDetails.
+ :type database_resource_type: str
+
+ :param opsi_private_endpoint_id:
+ The value to assign to the opsi_private_endpoint_id property of this CreatePeComanagedDatabaseInsightDetails.
+ :type opsi_private_endpoint_id: str
+
+ :param service_name:
+ The value to assign to the service_name property of this CreatePeComanagedDatabaseInsightDetails.
+ :type service_name: str
+
+ :param credential_details:
+ The value to assign to the credential_details property of this CreatePeComanagedDatabaseInsightDetails.
+ :type credential_details: oci.opsi.models.CredentialDetails
+
+ :param deployment_type:
+ The value to assign to the deployment_type property of this CreatePeComanagedDatabaseInsightDetails.
+ Allowed values for this property are: "VIRTUAL_MACHINE", "BARE_METAL", "EXACS"
+ :type deployment_type: str
+
+ :param system_tags:
+ The value to assign to the system_tags property of this CreatePeComanagedDatabaseInsightDetails.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'compartment_id': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'database_id': 'str',
+ 'database_resource_type': 'str',
+ 'opsi_private_endpoint_id': 'str',
+ 'service_name': 'str',
+ 'credential_details': 'CredentialDetails',
+ 'deployment_type': 'str',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'compartment_id': 'compartmentId',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'database_id': 'databaseId',
+ 'database_resource_type': 'databaseResourceType',
+ 'opsi_private_endpoint_id': 'opsiPrivateEndpointId',
+ 'service_name': 'serviceName',
+ 'credential_details': 'credentialDetails',
+ 'deployment_type': 'deploymentType',
+ 'system_tags': 'systemTags'
+ }
+
+ self._entity_source = None
+ self._compartment_id = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._database_id = None
+ self._database_resource_type = None
+ self._opsi_private_endpoint_id = None
+ self._service_name = None
+ self._credential_details = None
+ self._deployment_type = None
+ self._system_tags = None
+ self._entity_source = 'PE_COMANAGED_DATABASE'
+
+ @property
+ def database_id(self):
+ """
+ **[Required]** Gets the database_id of this CreatePeComanagedDatabaseInsightDetails.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The database_id of this CreatePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this CreatePeComanagedDatabaseInsightDetails.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param database_id: The database_id of this CreatePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def database_resource_type(self):
+ """
+ **[Required]** Gets the database_resource_type of this CreatePeComanagedDatabaseInsightDetails.
+ OCI database resource type
+
+
+ :return: The database_resource_type of this CreatePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._database_resource_type
+
+ @database_resource_type.setter
+ def database_resource_type(self, database_resource_type):
+ """
+ Sets the database_resource_type of this CreatePeComanagedDatabaseInsightDetails.
+ OCI database resource type
+
+
+ :param database_resource_type: The database_resource_type of this CreatePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._database_resource_type = database_resource_type
+
+ @property
+ def opsi_private_endpoint_id(self):
+ """
+ **[Required]** Gets the opsi_private_endpoint_id of this CreatePeComanagedDatabaseInsightDetails.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The opsi_private_endpoint_id of this CreatePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._opsi_private_endpoint_id
+
+ @opsi_private_endpoint_id.setter
+ def opsi_private_endpoint_id(self, opsi_private_endpoint_id):
+ """
+ Sets the opsi_private_endpoint_id of this CreatePeComanagedDatabaseInsightDetails.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param opsi_private_endpoint_id: The opsi_private_endpoint_id of this CreatePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._opsi_private_endpoint_id = opsi_private_endpoint_id
+
+ @property
+ def service_name(self):
+ """
+ **[Required]** Gets the service_name of this CreatePeComanagedDatabaseInsightDetails.
+ Database service name used for connection requests.
+
+
+ :return: The service_name of this CreatePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._service_name
+
+ @service_name.setter
+ def service_name(self, service_name):
+ """
+ Sets the service_name of this CreatePeComanagedDatabaseInsightDetails.
+ Database service name used for connection requests.
+
+
+ :param service_name: The service_name of this CreatePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._service_name = service_name
+
+ @property
+ def credential_details(self):
+ """
+ **[Required]** Gets the credential_details of this CreatePeComanagedDatabaseInsightDetails.
+
+ :return: The credential_details of this CreatePeComanagedDatabaseInsightDetails.
+ :rtype: oci.opsi.models.CredentialDetails
+ """
+ return self._credential_details
+
+ @credential_details.setter
+ def credential_details(self, credential_details):
+ """
+ Sets the credential_details of this CreatePeComanagedDatabaseInsightDetails.
+
+ :param credential_details: The credential_details of this CreatePeComanagedDatabaseInsightDetails.
+ :type: oci.opsi.models.CredentialDetails
+ """
+ self._credential_details = credential_details
+
+ @property
+ def deployment_type(self):
+ """
+ **[Required]** Gets the deployment_type of this CreatePeComanagedDatabaseInsightDetails.
+ Database Deployment Type
+
+ Allowed values for this property are: "VIRTUAL_MACHINE", "BARE_METAL", "EXACS"
+
+
+ :return: The deployment_type of this CreatePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._deployment_type
+
+ @deployment_type.setter
+ def deployment_type(self, deployment_type):
+ """
+ Sets the deployment_type of this CreatePeComanagedDatabaseInsightDetails.
+ Database Deployment Type
+
+
+ :param deployment_type: The deployment_type of this CreatePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ allowed_values = ["VIRTUAL_MACHINE", "BARE_METAL", "EXACS"]
+ if not value_allowed_none_or_none_sentinel(deployment_type, allowed_values):
+ raise ValueError(
+ "Invalid value for `deployment_type`, must be None or one of {0}"
+ .format(allowed_values)
+ )
+ self._deployment_type = deployment_type
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this CreatePeComanagedDatabaseInsightDetails.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this CreatePeComanagedDatabaseInsightDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this CreatePeComanagedDatabaseInsightDetails.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this CreatePeComanagedDatabaseInsightDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/credential_by_vault.py b/src/oci/opsi/models/credential_by_vault.py
new file mode 100644
index 0000000000..9fde49890d
--- /dev/null
+++ b/src/oci/opsi/models/credential_by_vault.py
@@ -0,0 +1,166 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+from .credential_details import CredentialDetails
+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 CredentialByVault(CredentialDetails):
+ """
+ Vault Credential Details to connect to the database.
+ """
+
+ #: A constant which can be used with the role property of a CredentialByVault.
+ #: This constant has a value of "NORMAL"
+ ROLE_NORMAL = "NORMAL"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new CredentialByVault object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CredentialByVault.credential_type` attribute
+ of this class is ``CREDENTIALS_BY_VAULT`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param credential_source_name:
+ The value to assign to the credential_source_name property of this CredentialByVault.
+ :type credential_source_name: str
+
+ :param credential_type:
+ The value to assign to the credential_type property of this CredentialByVault.
+ Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type credential_type: str
+
+ :param user_name:
+ The value to assign to the user_name property of this CredentialByVault.
+ :type user_name: str
+
+ :param password_secret_id:
+ The value to assign to the password_secret_id property of this CredentialByVault.
+ :type password_secret_id: str
+
+ :param role:
+ The value to assign to the role property of this CredentialByVault.
+ Allowed values for this property are: "NORMAL", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type role: str
+
+ """
+ self.swagger_types = {
+ 'credential_source_name': 'str',
+ 'credential_type': 'str',
+ 'user_name': 'str',
+ 'password_secret_id': 'str',
+ 'role': 'str'
+ }
+
+ self.attribute_map = {
+ 'credential_source_name': 'credentialSourceName',
+ 'credential_type': 'credentialType',
+ 'user_name': 'userName',
+ 'password_secret_id': 'passwordSecretId',
+ 'role': 'role'
+ }
+
+ self._credential_source_name = None
+ self._credential_type = None
+ self._user_name = None
+ self._password_secret_id = None
+ self._role = None
+ self._credential_type = 'CREDENTIALS_BY_VAULT'
+
+ @property
+ def user_name(self):
+ """
+ Gets the user_name of this CredentialByVault.
+ database user name.
+
+
+ :return: The user_name of this CredentialByVault.
+ :rtype: str
+ """
+ return self._user_name
+
+ @user_name.setter
+ def user_name(self, user_name):
+ """
+ Sets the user_name of this CredentialByVault.
+ database user name.
+
+
+ :param user_name: The user_name of this CredentialByVault.
+ :type: str
+ """
+ self._user_name = user_name
+
+ @property
+ def password_secret_id(self):
+ """
+ Gets the password_secret_id of this CredentialByVault.
+ The secret `OCID`__ mapping to the database credentials.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :return: The password_secret_id of this CredentialByVault.
+ :rtype: str
+ """
+ return self._password_secret_id
+
+ @password_secret_id.setter
+ def password_secret_id(self, password_secret_id):
+ """
+ Sets the password_secret_id of this CredentialByVault.
+ The secret `OCID`__ mapping to the database credentials.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+
+ :param password_secret_id: The password_secret_id of this CredentialByVault.
+ :type: str
+ """
+ self._password_secret_id = password_secret_id
+
+ @property
+ def role(self):
+ """
+ Gets the role of this CredentialByVault.
+ database user role.
+
+ Allowed values for this property are: "NORMAL", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The role of this CredentialByVault.
+ :rtype: str
+ """
+ return self._role
+
+ @role.setter
+ def role(self, role):
+ """
+ Sets the role of this CredentialByVault.
+ database user role.
+
+
+ :param role: The role of this CredentialByVault.
+ :type: str
+ """
+ allowed_values = ["NORMAL"]
+ if not value_allowed_none_or_none_sentinel(role, allowed_values):
+ role = 'UNKNOWN_ENUM_VALUE'
+ self._role = role
+
+ 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/opsi/models/credential_details.py b/src/oci/opsi/models/credential_details.py
index 5976a7d6bb..c019fbc450 100644
--- a/src/oci/opsi/models/credential_details.py
+++ b/src/oci/opsi/models/credential_details.py
@@ -17,12 +17,17 @@ class CredentialDetails(object):
#: This constant has a value of "CREDENTIALS_BY_SOURCE"
CREDENTIAL_TYPE_CREDENTIALS_BY_SOURCE = "CREDENTIALS_BY_SOURCE"
+ #: A constant which can be used with the credential_type property of a CredentialDetails.
+ #: This constant has a value of "CREDENTIALS_BY_VAULT"
+ CREDENTIAL_TYPE_CREDENTIALS_BY_VAULT = "CREDENTIALS_BY_VAULT"
+
def __init__(self, **kwargs):
"""
Initializes a new CredentialDetails 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.opsi.models.CredentialsBySource`
+ * :class:`~oci.opsi.models.CredentialByVault`
The following keyword arguments are supported (corresponding to the getters/setters of this class):
@@ -32,7 +37,7 @@ def __init__(self, **kwargs):
:param credential_type:
The value to assign to the credential_type property of this CredentialDetails.
- Allowed values for this property are: "CREDENTIALS_BY_SOURCE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type credential_type: str
@@ -60,6 +65,9 @@ def get_subtype(object_dictionary):
if type == 'CREDENTIALS_BY_SOURCE':
return 'CredentialsBySource'
+
+ if type == 'CREDENTIALS_BY_VAULT':
+ return 'CredentialByVault'
else:
return 'CredentialDetails'
@@ -93,7 +101,7 @@ def credential_type(self):
**[Required]** Gets the credential_type of this CredentialDetails.
Credential type.
- Allowed values for this property are: "CREDENTIALS_BY_SOURCE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -112,7 +120,7 @@ def credential_type(self, credential_type):
:param credential_type: The credential_type of this CredentialDetails.
:type: str
"""
- allowed_values = ["CREDENTIALS_BY_SOURCE"]
+ allowed_values = ["CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT"]
if not value_allowed_none_or_none_sentinel(credential_type, allowed_values):
credential_type = 'UNKNOWN_ENUM_VALUE'
self._credential_type = credential_type
diff --git a/src/oci/opsi/models/credentials_by_source.py b/src/oci/opsi/models/credentials_by_source.py
index aa16f7ee46..70c3cf65ce 100644
--- a/src/oci/opsi/models/credentials_by_source.py
+++ b/src/oci/opsi/models/credentials_by_source.py
@@ -25,7 +25,7 @@ def __init__(self, **kwargs):
:param credential_type:
The value to assign to the credential_type property of this CredentialsBySource.
- Allowed values for this property are: "CREDENTIALS_BY_SOURCE"
+ Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT"
:type credential_type: str
"""
diff --git a/src/oci/opsi/models/database_configuration_summary.py b/src/oci/opsi/models/database_configuration_summary.py
index c5afd37d3a..85061dc080 100644
--- a/src/oci/opsi/models/database_configuration_summary.py
+++ b/src/oci/opsi/models/database_configuration_summary.py
@@ -25,6 +25,10 @@ class DatabaseConfigurationSummary(object):
#: This constant has a value of "MACS_MANAGED_EXTERNAL_DATABASE"
ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_DATABASE = "MACS_MANAGED_EXTERNAL_DATABASE"
+ #: A constant which can be used with the entity_source property of a DatabaseConfigurationSummary.
+ #: This constant has a value of "PE_COMANAGED_DATABASE"
+ ENTITY_SOURCE_PE_COMANAGED_DATABASE = "PE_COMANAGED_DATABASE"
+
def __init__(self, **kwargs):
"""
Initializes a new DatabaseConfigurationSummary object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
@@ -33,6 +37,7 @@ def __init__(self, **kwargs):
* :class:`~oci.opsi.models.EmManagedExternalDatabaseConfigurationSummary`
* :class:`~oci.opsi.models.AutonomousDatabaseConfigurationSummary`
* :class:`~oci.opsi.models.MacsManagedExternalDatabaseConfigurationSummary`
+ * :class:`~oci.opsi.models.PeComanagedManagedExternalDatabaseConfigurationSummary`
The following keyword arguments are supported (corresponding to the getters/setters of this class):
@@ -42,7 +47,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this DatabaseConfigurationSummary.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type entity_source: str
@@ -139,6 +144,9 @@ def get_subtype(object_dictionary):
if type == 'MACS_MANAGED_EXTERNAL_DATABASE':
return 'MacsManagedExternalDatabaseConfigurationSummary'
+
+ if type == 'PE_COMANAGED_DATABASE':
+ return 'PeComanagedManagedExternalDatabaseConfigurationSummary'
else:
return 'DatabaseConfigurationSummary'
@@ -176,7 +184,7 @@ def entity_source(self):
**[Required]** Gets the entity_source of this DatabaseConfigurationSummary.
Source of the database entity.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -195,7 +203,7 @@ def entity_source(self, entity_source):
:param entity_source: The entity_source of this DatabaseConfigurationSummary.
:type: str
"""
- allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"]
+ allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"]
if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
entity_source = 'UNKNOWN_ENUM_VALUE'
self._entity_source = entity_source
diff --git a/src/oci/opsi/models/database_insight.py b/src/oci/opsi/models/database_insight.py
index 3a1a0f4c95..c1bda7d48c 100644
--- a/src/oci/opsi/models/database_insight.py
+++ b/src/oci/opsi/models/database_insight.py
@@ -25,6 +25,10 @@ class DatabaseInsight(object):
#: This constant has a value of "MACS_MANAGED_EXTERNAL_DATABASE"
ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_DATABASE = "MACS_MANAGED_EXTERNAL_DATABASE"
+ #: A constant which can be used with the entity_source property of a DatabaseInsight.
+ #: This constant has a value of "PE_COMANAGED_DATABASE"
+ ENTITY_SOURCE_PE_COMANAGED_DATABASE = "PE_COMANAGED_DATABASE"
+
#: A constant which can be used with the status property of a DatabaseInsight.
#: This constant has a value of "DISABLED"
STATUS_DISABLED = "DISABLED"
@@ -72,13 +76,14 @@ def __init__(self, **kwargs):
* :class:`~oci.opsi.models.EmManagedExternalDatabaseInsight`
* :class:`~oci.opsi.models.MacsManagedExternalDatabaseInsight`
+ * :class:`~oci.opsi.models.PeComanagedDatabaseInsight`
* :class:`~oci.opsi.models.AutonomousDatabaseInsight`
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param entity_source:
The value to assign to the entity_source property of this DatabaseInsight.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type entity_source: str
@@ -138,6 +143,10 @@ def __init__(self, **kwargs):
The value to assign to the lifecycle_details property of this DatabaseInsight.
:type lifecycle_details: str
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this DatabaseInsight.
+ :type database_connection_status_details: str
+
"""
self.swagger_types = {
'entity_source': 'str',
@@ -153,7 +162,8 @@ def __init__(self, **kwargs):
'time_created': 'datetime',
'time_updated': 'datetime',
'lifecycle_state': 'str',
- 'lifecycle_details': 'str'
+ 'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str'
}
self.attribute_map = {
@@ -170,7 +180,8 @@ def __init__(self, **kwargs):
'time_created': 'timeCreated',
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
- 'lifecycle_details': 'lifecycleDetails'
+ 'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails'
}
self._entity_source = None
@@ -187,6 +198,7 @@ def __init__(self, **kwargs):
self._time_updated = None
self._lifecycle_state = None
self._lifecycle_details = None
+ self._database_connection_status_details = None
@staticmethod
def get_subtype(object_dictionary):
@@ -202,6 +214,9 @@ def get_subtype(object_dictionary):
if type == 'MACS_MANAGED_EXTERNAL_DATABASE':
return 'MacsManagedExternalDatabaseInsight'
+ if type == 'PE_COMANAGED_DATABASE':
+ return 'PeComanagedDatabaseInsight'
+
if type == 'AUTONOMOUS_DATABASE':
return 'AutonomousDatabaseInsight'
else:
@@ -213,7 +228,7 @@ def entity_source(self):
**[Required]** Gets the entity_source of this DatabaseInsight.
Source of the database entity.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -232,7 +247,7 @@ def entity_source(self, entity_source):
:param entity_source: The entity_source of this DatabaseInsight.
:type: str
"""
- allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"]
+ allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"]
if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
entity_source = 'UNKNOWN_ENUM_VALUE'
self._entity_source = entity_source
@@ -567,6 +582,30 @@ def lifecycle_details(self, lifecycle_details):
"""
self._lifecycle_details = lifecycle_details
+ @property
+ def database_connection_status_details(self):
+ """
+ Gets the database_connection_status_details of this DatabaseInsight.
+ A message describing the status of the database connection of this resource. For example, it can be used to provide actionable information about the permission and content validity of the database connection.
+
+
+ :return: The database_connection_status_details of this DatabaseInsight.
+ :rtype: str
+ """
+ return self._database_connection_status_details
+
+ @database_connection_status_details.setter
+ def database_connection_status_details(self, database_connection_status_details):
+ """
+ Sets the database_connection_status_details of this DatabaseInsight.
+ A message describing the status of the database connection of this resource. For example, it can be used to provide actionable information about the permission and content validity of the database connection.
+
+
+ :param database_connection_status_details: The database_connection_status_details of this DatabaseInsight.
+ :type: str
+ """
+ self._database_connection_status_details = database_connection_status_details
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/opsi/models/database_insight_summary.py b/src/oci/opsi/models/database_insight_summary.py
index c96efa161a..16080ea802 100644
--- a/src/oci/opsi/models/database_insight_summary.py
+++ b/src/oci/opsi/models/database_insight_summary.py
@@ -25,6 +25,10 @@ class DatabaseInsightSummary(object):
#: This constant has a value of "MACS_MANAGED_EXTERNAL_DATABASE"
ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_DATABASE = "MACS_MANAGED_EXTERNAL_DATABASE"
+ #: A constant which can be used with the entity_source property of a DatabaseInsightSummary.
+ #: This constant has a value of "PE_COMANAGED_DATABASE"
+ ENTITY_SOURCE_PE_COMANAGED_DATABASE = "PE_COMANAGED_DATABASE"
+
#: A constant which can be used with the status property of a DatabaseInsightSummary.
#: This constant has a value of "DISABLED"
STATUS_DISABLED = "DISABLED"
@@ -72,6 +76,7 @@ def __init__(self, **kwargs):
* :class:`~oci.opsi.models.MacsManagedExternalDatabaseInsightSummary`
* :class:`~oci.opsi.models.AutonomousDatabaseInsightSummary`
+ * :class:`~oci.opsi.models.PeComanagedDatabaseInsightSummary`
* :class:`~oci.opsi.models.EmManagedExternalDatabaseInsightSummary`
The following keyword arguments are supported (corresponding to the getters/setters of this class):
@@ -122,7 +127,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this DatabaseInsightSummary.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type entity_source: str
@@ -154,6 +159,10 @@ def __init__(self, **kwargs):
The value to assign to the lifecycle_details property of this DatabaseInsightSummary.
:type lifecycle_details: str
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this DatabaseInsightSummary.
+ :type database_connection_status_details: str
+
"""
self.swagger_types = {
'id': 'str',
@@ -173,7 +182,8 @@ def __init__(self, **kwargs):
'time_created': 'datetime',
'time_updated': 'datetime',
'lifecycle_state': 'str',
- 'lifecycle_details': 'str'
+ 'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str'
}
self.attribute_map = {
@@ -194,7 +204,8 @@ def __init__(self, **kwargs):
'time_created': 'timeCreated',
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
- 'lifecycle_details': 'lifecycleDetails'
+ 'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails'
}
self._id = None
@@ -215,6 +226,7 @@ def __init__(self, **kwargs):
self._time_updated = None
self._lifecycle_state = None
self._lifecycle_details = None
+ self._database_connection_status_details = None
@staticmethod
def get_subtype(object_dictionary):
@@ -230,6 +242,9 @@ def get_subtype(object_dictionary):
if type == 'AUTONOMOUS_DATABASE':
return 'AutonomousDatabaseInsightSummary'
+ if type == 'PE_COMANAGED_DATABASE':
+ return 'PeComanagedDatabaseInsightSummary'
+
if type == 'EM_MANAGED_EXTERNAL_DATABASE':
return 'EmManagedExternalDatabaseInsightSummary'
else:
@@ -523,7 +538,7 @@ def entity_source(self):
**[Required]** Gets the entity_source of this DatabaseInsightSummary.
Source of the database entity.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -542,7 +557,7 @@ def entity_source(self, entity_source):
:param entity_source: The entity_source of this DatabaseInsightSummary.
:type: str
"""
- allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"]
+ allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"]
if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
entity_source = 'UNKNOWN_ENUM_VALUE'
self._entity_source = entity_source
@@ -703,6 +718,30 @@ def lifecycle_details(self, lifecycle_details):
"""
self._lifecycle_details = lifecycle_details
+ @property
+ def database_connection_status_details(self):
+ """
+ Gets the database_connection_status_details of this DatabaseInsightSummary.
+ A message describing the status of the database connection of this resource. For example, it can be used to provide actionable information about the permission and content validity of the database connection.
+
+
+ :return: The database_connection_status_details of this DatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._database_connection_status_details
+
+ @database_connection_status_details.setter
+ def database_connection_status_details(self, database_connection_status_details):
+ """
+ Sets the database_connection_status_details of this DatabaseInsightSummary.
+ A message describing the status of the database connection of this resource. For example, it can be used to provide actionable information about the permission and content validity of the database connection.
+
+
+ :param database_connection_status_details: The database_connection_status_details of this DatabaseInsightSummary.
+ :type: str
+ """
+ self._database_connection_status_details = database_connection_status_details
+
def __repr__(self):
return formatted_flat_dict(self)
diff --git a/src/oci/opsi/models/em_managed_external_database_configuration_summary.py b/src/oci/opsi/models/em_managed_external_database_configuration_summary.py
index b583f3d30c..00325f41eb 100644
--- a/src/oci/opsi/models/em_managed_external_database_configuration_summary.py
+++ b/src/oci/opsi/models/em_managed_external_database_configuration_summary.py
@@ -25,7 +25,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this EmManagedExternalDatabaseConfigurationSummary.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param compartment_id:
diff --git a/src/oci/opsi/models/em_managed_external_database_insight.py b/src/oci/opsi/models/em_managed_external_database_insight.py
index b4957cb3ff..ff09842e61 100644
--- a/src/oci/opsi/models/em_managed_external_database_insight.py
+++ b/src/oci/opsi/models/em_managed_external_database_insight.py
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this EmManagedExternalDatabaseInsight.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param id:
@@ -78,6 +78,10 @@ def __init__(self, **kwargs):
The value to assign to the lifecycle_details property of this EmManagedExternalDatabaseInsight.
:type lifecycle_details: str
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this EmManagedExternalDatabaseInsight.
+ :type database_connection_status_details: str
+
:param enterprise_manager_identifier:
The value to assign to the enterprise_manager_identifier property of this EmManagedExternalDatabaseInsight.
:type enterprise_manager_identifier: str
@@ -122,6 +126,7 @@ def __init__(self, **kwargs):
'time_updated': 'datetime',
'lifecycle_state': 'str',
'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str',
'enterprise_manager_identifier': 'str',
'enterprise_manager_entity_name': 'str',
'enterprise_manager_entity_type': 'str',
@@ -146,6 +151,7 @@ def __init__(self, **kwargs):
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails',
'enterprise_manager_identifier': 'enterpriseManagerIdentifier',
'enterprise_manager_entity_name': 'enterpriseManagerEntityName',
'enterprise_manager_entity_type': 'enterpriseManagerEntityType',
@@ -169,6 +175,7 @@ def __init__(self, **kwargs):
self._time_updated = None
self._lifecycle_state = None
self._lifecycle_details = None
+ self._database_connection_status_details = None
self._enterprise_manager_identifier = None
self._enterprise_manager_entity_name = None
self._enterprise_manager_entity_type = None
diff --git a/src/oci/opsi/models/em_managed_external_database_insight_summary.py b/src/oci/opsi/models/em_managed_external_database_insight_summary.py
index 4f4a121a32..0954062932 100644
--- a/src/oci/opsi/models/em_managed_external_database_insight_summary.py
+++ b/src/oci/opsi/models/em_managed_external_database_insight_summary.py
@@ -65,7 +65,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this EmManagedExternalDatabaseInsightSummary.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param processor_count:
@@ -94,6 +94,10 @@ def __init__(self, **kwargs):
The value to assign to the lifecycle_details property of this EmManagedExternalDatabaseInsightSummary.
:type lifecycle_details: str
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this EmManagedExternalDatabaseInsightSummary.
+ :type database_connection_status_details: str
+
:param enterprise_manager_identifier:
The value to assign to the enterprise_manager_identifier property of this EmManagedExternalDatabaseInsightSummary.
:type enterprise_manager_identifier: str
@@ -142,6 +146,7 @@ def __init__(self, **kwargs):
'time_updated': 'datetime',
'lifecycle_state': 'str',
'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str',
'enterprise_manager_identifier': 'str',
'enterprise_manager_entity_name': 'str',
'enterprise_manager_entity_type': 'str',
@@ -170,6 +175,7 @@ def __init__(self, **kwargs):
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails',
'enterprise_manager_identifier': 'enterpriseManagerIdentifier',
'enterprise_manager_entity_name': 'enterpriseManagerEntityName',
'enterprise_manager_entity_type': 'enterpriseManagerEntityType',
@@ -197,6 +203,7 @@ def __init__(self, **kwargs):
self._time_updated = None
self._lifecycle_state = None
self._lifecycle_details = None
+ self._database_connection_status_details = None
self._enterprise_manager_identifier = None
self._enterprise_manager_entity_name = None
self._enterprise_manager_entity_type = None
diff --git a/src/oci/opsi/models/enable_database_insight_details.py b/src/oci/opsi/models/enable_database_insight_details.py
index 83f425214f..0d5617a23e 100644
--- a/src/oci/opsi/models/enable_database_insight_details.py
+++ b/src/oci/opsi/models/enable_database_insight_details.py
@@ -17,18 +17,23 @@ class EnableDatabaseInsightDetails(object):
#: This constant has a value of "EM_MANAGED_EXTERNAL_DATABASE"
ENTITY_SOURCE_EM_MANAGED_EXTERNAL_DATABASE = "EM_MANAGED_EXTERNAL_DATABASE"
+ #: A constant which can be used with the entity_source property of a EnableDatabaseInsightDetails.
+ #: This constant has a value of "PE_COMANAGED_DATABASE"
+ ENTITY_SOURCE_PE_COMANAGED_DATABASE = "PE_COMANAGED_DATABASE"
+
def __init__(self, **kwargs):
"""
Initializes a new EnableDatabaseInsightDetails 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.opsi.models.EnableEmManagedExternalDatabaseInsightDetails`
+ * :class:`~oci.opsi.models.EnablePeComanagedDatabaseInsightDetails`
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param entity_source:
The value to assign to the entity_source property of this EnableDatabaseInsightDetails.
- Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
"""
@@ -52,6 +57,9 @@ def get_subtype(object_dictionary):
if type == 'EM_MANAGED_EXTERNAL_DATABASE':
return 'EnableEmManagedExternalDatabaseInsightDetails'
+
+ if type == 'PE_COMANAGED_DATABASE':
+ return 'EnablePeComanagedDatabaseInsightDetails'
else:
return 'EnableDatabaseInsightDetails'
@@ -61,7 +69,7 @@ def entity_source(self):
**[Required]** Gets the entity_source of this EnableDatabaseInsightDetails.
Source of the database entity.
- Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:return: The entity_source of this EnableDatabaseInsightDetails.
@@ -79,7 +87,7 @@ def entity_source(self, entity_source):
:param entity_source: The entity_source of this EnableDatabaseInsightDetails.
:type: str
"""
- allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE"]
+ allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"]
if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
raise ValueError(
"Invalid value for `entity_source`, must be None or one of {0}"
diff --git a/src/oci/opsi/models/enable_em_managed_external_database_insight_details.py b/src/oci/opsi/models/enable_em_managed_external_database_insight_details.py
index e5ecc081cc..7505d96c09 100644
--- a/src/oci/opsi/models/enable_em_managed_external_database_insight_details.py
+++ b/src/oci/opsi/models/enable_em_managed_external_database_insight_details.py
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this EnableEmManagedExternalDatabaseInsightDetails.
- Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
"""
diff --git a/src/oci/opsi/models/enable_pe_comanaged_database_insight_details.py b/src/oci/opsi/models/enable_pe_comanaged_database_insight_details.py
new file mode 100644
index 0000000000..b4ac261aaf
--- /dev/null
+++ b/src/oci/opsi/models/enable_pe_comanaged_database_insight_details.py
@@ -0,0 +1,276 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+from .enable_database_insight_details import EnableDatabaseInsightDetails
+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 EnablePeComanagedDatabaseInsightDetails(EnableDatabaseInsightDetails):
+ """
+ The information about database to be analyzed.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new EnablePeComanagedDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.EnablePeComanagedDatabaseInsightDetails.entity_source` attribute
+ of this class is ``PE_COMANAGED_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this EnablePeComanagedDatabaseInsightDetails.
+ Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
+ :type entity_source: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this EnablePeComanagedDatabaseInsightDetails.
+ :type compartment_id: str
+
+ :param opsi_private_endpoint_id:
+ The value to assign to the opsi_private_endpoint_id property of this EnablePeComanagedDatabaseInsightDetails.
+ :type opsi_private_endpoint_id: str
+
+ :param service_name:
+ The value to assign to the service_name property of this EnablePeComanagedDatabaseInsightDetails.
+ :type service_name: str
+
+ :param credential_details:
+ The value to assign to the credential_details property of this EnablePeComanagedDatabaseInsightDetails.
+ :type credential_details: oci.opsi.models.CredentialDetails
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this EnablePeComanagedDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this EnablePeComanagedDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this EnablePeComanagedDatabaseInsightDetails.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'compartment_id': 'str',
+ 'opsi_private_endpoint_id': 'str',
+ 'service_name': 'str',
+ 'credential_details': 'CredentialDetails',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'compartment_id': 'compartmentId',
+ 'opsi_private_endpoint_id': 'opsiPrivateEndpointId',
+ 'service_name': 'serviceName',
+ 'credential_details': 'credentialDetails',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._entity_source = None
+ self._compartment_id = None
+ self._opsi_private_endpoint_id = None
+ self._service_name = None
+ self._credential_details = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._entity_source = 'PE_COMANAGED_DATABASE'
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this EnablePeComanagedDatabaseInsightDetails.
+ The compartment `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The compartment_id of this EnablePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this EnablePeComanagedDatabaseInsightDetails.
+ The compartment `OCID`__ of the Private service accessed database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param compartment_id: The compartment_id of this EnablePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def opsi_private_endpoint_id(self):
+ """
+ **[Required]** Gets the opsi_private_endpoint_id of this EnablePeComanagedDatabaseInsightDetails.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The opsi_private_endpoint_id of this EnablePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._opsi_private_endpoint_id
+
+ @opsi_private_endpoint_id.setter
+ def opsi_private_endpoint_id(self, opsi_private_endpoint_id):
+ """
+ Sets the opsi_private_endpoint_id of this EnablePeComanagedDatabaseInsightDetails.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param opsi_private_endpoint_id: The opsi_private_endpoint_id of this EnablePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._opsi_private_endpoint_id = opsi_private_endpoint_id
+
+ @property
+ def service_name(self):
+ """
+ **[Required]** Gets the service_name of this EnablePeComanagedDatabaseInsightDetails.
+ Database service name used for connection requests.
+
+
+ :return: The service_name of this EnablePeComanagedDatabaseInsightDetails.
+ :rtype: str
+ """
+ return self._service_name
+
+ @service_name.setter
+ def service_name(self, service_name):
+ """
+ Sets the service_name of this EnablePeComanagedDatabaseInsightDetails.
+ Database service name used for connection requests.
+
+
+ :param service_name: The service_name of this EnablePeComanagedDatabaseInsightDetails.
+ :type: str
+ """
+ self._service_name = service_name
+
+ @property
+ def credential_details(self):
+ """
+ **[Required]** Gets the credential_details of this EnablePeComanagedDatabaseInsightDetails.
+
+ :return: The credential_details of this EnablePeComanagedDatabaseInsightDetails.
+ :rtype: oci.opsi.models.CredentialDetails
+ """
+ return self._credential_details
+
+ @credential_details.setter
+ def credential_details(self, credential_details):
+ """
+ Sets the credential_details of this EnablePeComanagedDatabaseInsightDetails.
+
+ :param credential_details: The credential_details of this EnablePeComanagedDatabaseInsightDetails.
+ :type: oci.opsi.models.CredentialDetails
+ """
+ self._credential_details = credential_details
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this EnablePeComanagedDatabaseInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this EnablePeComanagedDatabaseInsightDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this EnablePeComanagedDatabaseInsightDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this EnablePeComanagedDatabaseInsightDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this EnablePeComanagedDatabaseInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this EnablePeComanagedDatabaseInsightDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this EnablePeComanagedDatabaseInsightDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this EnablePeComanagedDatabaseInsightDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this EnablePeComanagedDatabaseInsightDetails.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this EnablePeComanagedDatabaseInsightDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this EnablePeComanagedDatabaseInsightDetails.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this EnablePeComanagedDatabaseInsightDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/exadata_member_summary.py b/src/oci/opsi/models/exadata_member_summary.py
index 76dd57cf02..21644027bd 100644
--- a/src/oci/opsi/models/exadata_member_summary.py
+++ b/src/oci/opsi/models/exadata_member_summary.py
@@ -41,6 +41,10 @@ class ExadataMemberSummary(object):
#: This constant has a value of "ETHERNET_SWITCH"
ENTITY_TYPE_ETHERNET_SWITCH = "ETHERNET_SWITCH"
+ #: A constant which can be used with the entity_type property of a ExadataMemberSummary.
+ #: This constant has a value of "HOST"
+ ENTITY_TYPE_HOST = "HOST"
+
def __init__(self, **kwargs):
"""
Initializes a new ExadataMemberSummary object with values from keyword arguments.
@@ -56,7 +60,7 @@ def __init__(self, **kwargs):
:param entity_type:
The value to assign to the entity_type property of this ExadataMemberSummary.
- Allowed values for this property are: "DATABASE", "ILOM_SERVER", "PDU", "STORAGE_SERVER", "CLUSTER_ASM", "INFINIBAND_SWITCH", "ETHERNET_SWITCH", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "DATABASE", "ILOM_SERVER", "PDU", "STORAGE_SERVER", "CLUSTER_ASM", "INFINIBAND_SWITCH", "ETHERNET_SWITCH", "HOST", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type entity_type: str
@@ -131,7 +135,7 @@ def entity_type(self):
**[Required]** Gets the entity_type of this ExadataMemberSummary.
Entity type of exadata member target
- Allowed values for this property are: "DATABASE", "ILOM_SERVER", "PDU", "STORAGE_SERVER", "CLUSTER_ASM", "INFINIBAND_SWITCH", "ETHERNET_SWITCH", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "DATABASE", "ILOM_SERVER", "PDU", "STORAGE_SERVER", "CLUSTER_ASM", "INFINIBAND_SWITCH", "ETHERNET_SWITCH", "HOST", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -150,7 +154,7 @@ def entity_type(self, entity_type):
:param entity_type: The entity_type of this ExadataMemberSummary.
:type: str
"""
- allowed_values = ["DATABASE", "ILOM_SERVER", "PDU", "STORAGE_SERVER", "CLUSTER_ASM", "INFINIBAND_SWITCH", "ETHERNET_SWITCH"]
+ allowed_values = ["DATABASE", "ILOM_SERVER", "PDU", "STORAGE_SERVER", "CLUSTER_ASM", "INFINIBAND_SWITCH", "ETHERNET_SWITCH", "HOST"]
if not value_allowed_none_or_none_sentinel(entity_type, allowed_values):
entity_type = 'UNKNOWN_ENUM_VALUE'
self._entity_type = entity_type
diff --git a/src/oci/opsi/models/macs_managed_external_database_configuration_summary.py b/src/oci/opsi/models/macs_managed_external_database_configuration_summary.py
index cbdbd61ad0..858443203f 100644
--- a/src/oci/opsi/models/macs_managed_external_database_configuration_summary.py
+++ b/src/oci/opsi/models/macs_managed_external_database_configuration_summary.py
@@ -25,7 +25,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this MacsManagedExternalDatabaseConfigurationSummary.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param compartment_id:
diff --git a/src/oci/opsi/models/macs_managed_external_database_insight.py b/src/oci/opsi/models/macs_managed_external_database_insight.py
index c1c5364f95..5b049e63a3 100644
--- a/src/oci/opsi/models/macs_managed_external_database_insight.py
+++ b/src/oci/opsi/models/macs_managed_external_database_insight.py
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this MacsManagedExternalDatabaseInsight.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param id:
@@ -78,6 +78,10 @@ def __init__(self, **kwargs):
The value to assign to the lifecycle_details property of this MacsManagedExternalDatabaseInsight.
:type lifecycle_details: str
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this MacsManagedExternalDatabaseInsight.
+ :type database_connection_status_details: str
+
:param management_agent_id:
The value to assign to the management_agent_id property of this MacsManagedExternalDatabaseInsight.
:type management_agent_id: str
@@ -130,6 +134,7 @@ def __init__(self, **kwargs):
'time_updated': 'datetime',
'lifecycle_state': 'str',
'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str',
'management_agent_id': 'str',
'connector_id': 'str',
'connection_details': 'ConnectionDetails',
@@ -156,6 +161,7 @@ def __init__(self, **kwargs):
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails',
'management_agent_id': 'managementAgentId',
'connector_id': 'connectorId',
'connection_details': 'connectionDetails',
@@ -181,6 +187,7 @@ def __init__(self, **kwargs):
self._time_updated = None
self._lifecycle_state = None
self._lifecycle_details = None
+ self._database_connection_status_details = None
self._management_agent_id = None
self._connector_id = None
self._connection_details = None
diff --git a/src/oci/opsi/models/macs_managed_external_database_insight_summary.py b/src/oci/opsi/models/macs_managed_external_database_insight_summary.py
index 8bcb63580a..bad79a44fb 100644
--- a/src/oci/opsi/models/macs_managed_external_database_insight_summary.py
+++ b/src/oci/opsi/models/macs_managed_external_database_insight_summary.py
@@ -65,7 +65,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this MacsManagedExternalDatabaseInsightSummary.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param processor_count:
@@ -94,6 +94,10 @@ def __init__(self, **kwargs):
The value to assign to the lifecycle_details property of this MacsManagedExternalDatabaseInsightSummary.
:type lifecycle_details: str
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this MacsManagedExternalDatabaseInsightSummary.
+ :type database_connection_status_details: str
+
:param database_resource_type:
The value to assign to the database_resource_type property of this MacsManagedExternalDatabaseInsightSummary.
:type database_resource_type: str
@@ -126,6 +130,7 @@ def __init__(self, **kwargs):
'time_updated': 'datetime',
'lifecycle_state': 'str',
'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str',
'database_resource_type': 'str',
'management_agent_id': 'str',
'connector_id': 'str'
@@ -150,6 +155,7 @@ def __init__(self, **kwargs):
'time_updated': 'timeUpdated',
'lifecycle_state': 'lifecycleState',
'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails',
'database_resource_type': 'databaseResourceType',
'management_agent_id': 'managementAgentId',
'connector_id': 'connectorId'
@@ -173,6 +179,7 @@ def __init__(self, **kwargs):
self._time_updated = None
self._lifecycle_state = None
self._lifecycle_details = None
+ self._database_connection_status_details = None
self._database_resource_type = None
self._management_agent_id = None
self._connector_id = None
diff --git a/src/oci/opsi/models/operations_insights_private_endpoint.py b/src/oci/opsi/models/operations_insights_private_endpoint.py
new file mode 100644
index 0000000000..2e7430b1cf
--- /dev/null
+++ b/src/oci/opsi/models/operations_insights_private_endpoint.py
@@ -0,0 +1,581 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 OperationsInsightsPrivateEndpoint(object):
+ """
+ A private endpoint that allows Operation Insights services to connect to databases in a customer's virtual cloud network (VCN).
+ """
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpoint.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpoint.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpoint.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpoint.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpoint.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpoint.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpoint.
+ #: This constant has a value of "NEEDS_ATTENTION"
+ LIFECYCLE_STATE_NEEDS_ATTENTION = "NEEDS_ATTENTION"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new OperationsInsightsPrivateEndpoint object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this OperationsInsightsPrivateEndpoint.
+ :type id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this OperationsInsightsPrivateEndpoint.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this OperationsInsightsPrivateEndpoint.
+ :type compartment_id: str
+
+ :param vcn_id:
+ The value to assign to the vcn_id property of this OperationsInsightsPrivateEndpoint.
+ :type vcn_id: str
+
+ :param subnet_id:
+ The value to assign to the subnet_id property of this OperationsInsightsPrivateEndpoint.
+ :type subnet_id: str
+
+ :param private_ip:
+ The value to assign to the private_ip property of this OperationsInsightsPrivateEndpoint.
+ :type private_ip: str
+
+ :param description:
+ The value to assign to the description property of this OperationsInsightsPrivateEndpoint.
+ :type description: str
+
+ :param time_created:
+ The value to assign to the time_created property of this OperationsInsightsPrivateEndpoint.
+ :type time_created: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this OperationsInsightsPrivateEndpoint.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this OperationsInsightsPrivateEndpoint.
+ :type lifecycle_details: str
+
+ :param private_endpoint_status_details:
+ The value to assign to the private_endpoint_status_details property of this OperationsInsightsPrivateEndpoint.
+ :type private_endpoint_status_details: str
+
+ :param is_used_for_rac_dbs:
+ The value to assign to the is_used_for_rac_dbs property of this OperationsInsightsPrivateEndpoint.
+ :type is_used_for_rac_dbs: bool
+
+ :param nsg_ids:
+ The value to assign to the nsg_ids property of this OperationsInsightsPrivateEndpoint.
+ :type nsg_ids: list[str]
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this OperationsInsightsPrivateEndpoint.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this OperationsInsightsPrivateEndpoint.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this OperationsInsightsPrivateEndpoint.
+ :type system_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'vcn_id': 'str',
+ 'subnet_id': 'str',
+ 'private_ip': 'str',
+ 'description': 'str',
+ 'time_created': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'private_endpoint_status_details': 'str',
+ 'is_used_for_rac_dbs': 'bool',
+ 'nsg_ids': 'list[str]',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'vcn_id': 'vcnId',
+ 'subnet_id': 'subnetId',
+ 'private_ip': 'privateIp',
+ 'description': 'description',
+ 'time_created': 'timeCreated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'private_endpoint_status_details': 'privateEndpointStatusDetails',
+ 'is_used_for_rac_dbs': 'isUsedForRacDbs',
+ 'nsg_ids': 'nsgIds',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags'
+ }
+
+ self._id = None
+ self._display_name = None
+ self._compartment_id = None
+ self._vcn_id = None
+ self._subnet_id = None
+ self._private_ip = None
+ self._description = None
+ self._time_created = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._private_endpoint_status_details = None
+ self._is_used_for_rac_dbs = None
+ self._nsg_ids = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this OperationsInsightsPrivateEndpoint.
+ The OCID of the Private service accessed database.
+
+
+ :return: The id of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this OperationsInsightsPrivateEndpoint.
+ The OCID of the Private service accessed database.
+
+
+ :param id: The id of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this OperationsInsightsPrivateEndpoint.
+ The display name of the private endpoint.
+
+
+ :return: The display_name of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this OperationsInsightsPrivateEndpoint.
+ The display name of the private endpoint.
+
+
+ :param display_name: The display_name of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this OperationsInsightsPrivateEndpoint.
+ The compartment OCID of the Private service accessed database.
+
+
+ :return: The compartment_id of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this OperationsInsightsPrivateEndpoint.
+ The compartment OCID of the Private service accessed database.
+
+
+ :param compartment_id: The compartment_id of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vcn_id(self):
+ """
+ **[Required]** Gets the vcn_id of this OperationsInsightsPrivateEndpoint.
+ The OCID of the VCN.
+
+
+ :return: The vcn_id of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._vcn_id
+
+ @vcn_id.setter
+ def vcn_id(self, vcn_id):
+ """
+ Sets the vcn_id of this OperationsInsightsPrivateEndpoint.
+ The OCID of the VCN.
+
+
+ :param vcn_id: The vcn_id of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._vcn_id = vcn_id
+
+ @property
+ def subnet_id(self):
+ """
+ **[Required]** Gets the subnet_id of this OperationsInsightsPrivateEndpoint.
+ The OCID of the subnet.
+
+
+ :return: The subnet_id of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._subnet_id
+
+ @subnet_id.setter
+ def subnet_id(self, subnet_id):
+ """
+ Sets the subnet_id of this OperationsInsightsPrivateEndpoint.
+ The OCID of the subnet.
+
+
+ :param subnet_id: The subnet_id of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._subnet_id = subnet_id
+
+ @property
+ def private_ip(self):
+ """
+ Gets the private_ip of this OperationsInsightsPrivateEndpoint.
+ The private IP addresses assigned to the private endpoint. All IP addresses will be concatenated if it is RAC DBs.
+
+
+ :return: The private_ip of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._private_ip
+
+ @private_ip.setter
+ def private_ip(self, private_ip):
+ """
+ Sets the private_ip of this OperationsInsightsPrivateEndpoint.
+ The private IP addresses assigned to the private endpoint. All IP addresses will be concatenated if it is RAC DBs.
+
+
+ :param private_ip: The private_ip of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._private_ip = private_ip
+
+ @property
+ def description(self):
+ """
+ Gets the description of this OperationsInsightsPrivateEndpoint.
+ The description of the private endpoint.
+
+
+ :return: The description of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """
+ Sets the description of this OperationsInsightsPrivateEndpoint.
+ The description of the private endpoint.
+
+
+ :param description: The description of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._description = description
+
+ @property
+ def time_created(self):
+ """
+ Gets the time_created of this OperationsInsightsPrivateEndpoint.
+ The date and time the private endpoint was created, in the format defined by `RFC3339`__.
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :return: The time_created of this OperationsInsightsPrivateEndpoint.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this OperationsInsightsPrivateEndpoint.
+ The date and time the private endpoint was created, in the format defined by `RFC3339`__.
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :param time_created: The time_created of this OperationsInsightsPrivateEndpoint.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this OperationsInsightsPrivateEndpoint.
+ The current state of the private endpoint.
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this OperationsInsightsPrivateEndpoint.
+ The current state of the private endpoint.
+
+
+ :param lifecycle_state: The lifecycle_state of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this OperationsInsightsPrivateEndpoint.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this OperationsInsightsPrivateEndpoint.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def private_endpoint_status_details(self):
+ """
+ Gets the private_endpoint_status_details of this OperationsInsightsPrivateEndpoint.
+ A message describing the status of the private endpoint connection of this resource. For example, it can be used to provide actionable information about the validity of the private endpoint connection.
+
+
+ :return: The private_endpoint_status_details of this OperationsInsightsPrivateEndpoint.
+ :rtype: str
+ """
+ return self._private_endpoint_status_details
+
+ @private_endpoint_status_details.setter
+ def private_endpoint_status_details(self, private_endpoint_status_details):
+ """
+ Sets the private_endpoint_status_details of this OperationsInsightsPrivateEndpoint.
+ A message describing the status of the private endpoint connection of this resource. For example, it can be used to provide actionable information about the validity of the private endpoint connection.
+
+
+ :param private_endpoint_status_details: The private_endpoint_status_details of this OperationsInsightsPrivateEndpoint.
+ :type: str
+ """
+ self._private_endpoint_status_details = private_endpoint_status_details
+
+ @property
+ def is_used_for_rac_dbs(self):
+ """
+ Gets the is_used_for_rac_dbs of this OperationsInsightsPrivateEndpoint.
+ The flag is to identify if private endpoint is used for rac database or not
+
+
+ :return: The is_used_for_rac_dbs of this OperationsInsightsPrivateEndpoint.
+ :rtype: bool
+ """
+ return self._is_used_for_rac_dbs
+
+ @is_used_for_rac_dbs.setter
+ def is_used_for_rac_dbs(self, is_used_for_rac_dbs):
+ """
+ Sets the is_used_for_rac_dbs of this OperationsInsightsPrivateEndpoint.
+ The flag is to identify if private endpoint is used for rac database or not
+
+
+ :param is_used_for_rac_dbs: The is_used_for_rac_dbs of this OperationsInsightsPrivateEndpoint.
+ :type: bool
+ """
+ self._is_used_for_rac_dbs = is_used_for_rac_dbs
+
+ @property
+ def nsg_ids(self):
+ """
+ Gets the nsg_ids of this OperationsInsightsPrivateEndpoint.
+ The OCIDs of the network security groups that the private endpoint belongs to.
+
+
+ :return: The nsg_ids of this OperationsInsightsPrivateEndpoint.
+ :rtype: list[str]
+ """
+ return self._nsg_ids
+
+ @nsg_ids.setter
+ def nsg_ids(self, nsg_ids):
+ """
+ Sets the nsg_ids of this OperationsInsightsPrivateEndpoint.
+ The OCIDs of the network security groups that the private endpoint belongs to.
+
+
+ :param nsg_ids: The nsg_ids of this OperationsInsightsPrivateEndpoint.
+ :type: list[str]
+ """
+ self._nsg_ids = nsg_ids
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this OperationsInsightsPrivateEndpoint.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this OperationsInsightsPrivateEndpoint.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this OperationsInsightsPrivateEndpoint.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this OperationsInsightsPrivateEndpoint.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this OperationsInsightsPrivateEndpoint.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this OperationsInsightsPrivateEndpoint.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this OperationsInsightsPrivateEndpoint.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this OperationsInsightsPrivateEndpoint.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this OperationsInsightsPrivateEndpoint.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this OperationsInsightsPrivateEndpoint.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this OperationsInsightsPrivateEndpoint.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this OperationsInsightsPrivateEndpoint.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/operations_insights_private_endpoint_collection.py b/src/oci/opsi/models/operations_insights_private_endpoint_collection.py
new file mode 100644
index 0000000000..75df6c2ddb
--- /dev/null
+++ b/src/oci/opsi/models/operations_insights_private_endpoint_collection.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 OperationsInsightsPrivateEndpointCollection(object):
+ """
+ A collection of Operation Insights private endpoint objects.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new OperationsInsightsPrivateEndpointCollection 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 OperationsInsightsPrivateEndpointCollection.
+ :type items: list[oci.opsi.models.OperationsInsightsPrivateEndpointSummary]
+
+ """
+ self.swagger_types = {
+ 'items': 'list[OperationsInsightsPrivateEndpointSummary]'
+ }
+
+ self.attribute_map = {
+ 'items': 'items'
+ }
+
+ self._items = None
+
+ @property
+ def items(self):
+ """
+ **[Required]** Gets the items of this OperationsInsightsPrivateEndpointCollection.
+ A list of OperationsInsightsPrivateEndpointSummary objects.
+
+
+ :return: The items of this OperationsInsightsPrivateEndpointCollection.
+ :rtype: list[oci.opsi.models.OperationsInsightsPrivateEndpointSummary]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """
+ Sets the items of this OperationsInsightsPrivateEndpointCollection.
+ A list of OperationsInsightsPrivateEndpointSummary objects.
+
+
+ :param items: The items of this OperationsInsightsPrivateEndpointCollection.
+ :type: list[oci.opsi.models.OperationsInsightsPrivateEndpointSummary]
+ """
+ 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/opsi/models/operations_insights_private_endpoint_summary.py b/src/oci/opsi/models/operations_insights_private_endpoint_summary.py
new file mode 100644
index 0000000000..47b03164eb
--- /dev/null
+++ b/src/oci/opsi/models/operations_insights_private_endpoint_summary.py
@@ -0,0 +1,519 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 OperationsInsightsPrivateEndpointSummary(object):
+ """
+ Summary of a Operation Insights private endpoint.
+ """
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpointSummary.
+ #: This constant has a value of "CREATING"
+ LIFECYCLE_STATE_CREATING = "CREATING"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpointSummary.
+ #: This constant has a value of "UPDATING"
+ LIFECYCLE_STATE_UPDATING = "UPDATING"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpointSummary.
+ #: This constant has a value of "ACTIVE"
+ LIFECYCLE_STATE_ACTIVE = "ACTIVE"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpointSummary.
+ #: This constant has a value of "DELETING"
+ LIFECYCLE_STATE_DELETING = "DELETING"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpointSummary.
+ #: This constant has a value of "DELETED"
+ LIFECYCLE_STATE_DELETED = "DELETED"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpointSummary.
+ #: This constant has a value of "FAILED"
+ LIFECYCLE_STATE_FAILED = "FAILED"
+
+ #: A constant which can be used with the lifecycle_state property of a OperationsInsightsPrivateEndpointSummary.
+ #: This constant has a value of "NEEDS_ATTENTION"
+ LIFECYCLE_STATE_NEEDS_ATTENTION = "NEEDS_ATTENTION"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new OperationsInsightsPrivateEndpointSummary object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this OperationsInsightsPrivateEndpointSummary.
+ :type id: str
+
+ :param display_name:
+ The value to assign to the display_name property of this OperationsInsightsPrivateEndpointSummary.
+ :type display_name: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this OperationsInsightsPrivateEndpointSummary.
+ :type compartment_id: str
+
+ :param vcn_id:
+ The value to assign to the vcn_id property of this OperationsInsightsPrivateEndpointSummary.
+ :type vcn_id: str
+
+ :param subnet_id:
+ The value to assign to the subnet_id property of this OperationsInsightsPrivateEndpointSummary.
+ :type subnet_id: str
+
+ :param is_used_for_rac_dbs:
+ The value to assign to the is_used_for_rac_dbs property of this OperationsInsightsPrivateEndpointSummary.
+ :type is_used_for_rac_dbs: bool
+
+ :param description:
+ The value to assign to the description property of this OperationsInsightsPrivateEndpointSummary.
+ :type description: str
+
+ :param time_created:
+ The value to assign to the time_created property of this OperationsInsightsPrivateEndpointSummary.
+ :type time_created: datetime
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this OperationsInsightsPrivateEndpointSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this OperationsInsightsPrivateEndpointSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this OperationsInsightsPrivateEndpointSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this OperationsInsightsPrivateEndpointSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this OperationsInsightsPrivateEndpointSummary.
+ :type lifecycle_details: str
+
+ :param private_endpoint_status_details:
+ The value to assign to the private_endpoint_status_details property of this OperationsInsightsPrivateEndpointSummary.
+ :type private_endpoint_status_details: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'display_name': 'str',
+ 'compartment_id': 'str',
+ 'vcn_id': 'str',
+ 'subnet_id': 'str',
+ 'is_used_for_rac_dbs': 'bool',
+ 'description': 'str',
+ 'time_created': 'datetime',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'private_endpoint_status_details': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'display_name': 'displayName',
+ 'compartment_id': 'compartmentId',
+ 'vcn_id': 'vcnId',
+ 'subnet_id': 'subnetId',
+ 'is_used_for_rac_dbs': 'isUsedForRacDbs',
+ 'description': 'description',
+ 'time_created': 'timeCreated',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'private_endpoint_status_details': 'privateEndpointStatusDetails'
+ }
+
+ self._id = None
+ self._display_name = None
+ self._compartment_id = None
+ self._vcn_id = None
+ self._subnet_id = None
+ self._is_used_for_rac_dbs = None
+ self._description = None
+ self._time_created = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._private_endpoint_status_details = None
+
+ @property
+ def id(self):
+ """
+ **[Required]** Gets the id of this OperationsInsightsPrivateEndpointSummary.
+ The OCID of the Private service accessed database.
+
+
+ :return: The id of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """
+ Sets the id of this OperationsInsightsPrivateEndpointSummary.
+ The OCID of the Private service accessed database.
+
+
+ :param id: The id of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ self._id = id
+
+ @property
+ def display_name(self):
+ """
+ **[Required]** Gets the display_name of this OperationsInsightsPrivateEndpointSummary.
+ The display name of the private endpoint.
+
+
+ :return: The display_name of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this OperationsInsightsPrivateEndpointSummary.
+ The display name of the private endpoint.
+
+
+ :param display_name: The display_name of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def compartment_id(self):
+ """
+ **[Required]** Gets the compartment_id of this OperationsInsightsPrivateEndpointSummary.
+ The compartment OCID of the Private service accessed database.
+
+
+ :return: The compartment_id of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._compartment_id
+
+ @compartment_id.setter
+ def compartment_id(self, compartment_id):
+ """
+ Sets the compartment_id of this OperationsInsightsPrivateEndpointSummary.
+ The compartment OCID of the Private service accessed database.
+
+
+ :param compartment_id: The compartment_id of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ self._compartment_id = compartment_id
+
+ @property
+ def vcn_id(self):
+ """
+ **[Required]** Gets the vcn_id of this OperationsInsightsPrivateEndpointSummary.
+ The OCID of the VCN.
+
+
+ :return: The vcn_id of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._vcn_id
+
+ @vcn_id.setter
+ def vcn_id(self, vcn_id):
+ """
+ Sets the vcn_id of this OperationsInsightsPrivateEndpointSummary.
+ The OCID of the VCN.
+
+
+ :param vcn_id: The vcn_id of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ self._vcn_id = vcn_id
+
+ @property
+ def subnet_id(self):
+ """
+ **[Required]** Gets the subnet_id of this OperationsInsightsPrivateEndpointSummary.
+ The OCID of the subnet.
+
+
+ :return: The subnet_id of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._subnet_id
+
+ @subnet_id.setter
+ def subnet_id(self, subnet_id):
+ """
+ Sets the subnet_id of this OperationsInsightsPrivateEndpointSummary.
+ The OCID of the subnet.
+
+
+ :param subnet_id: The subnet_id of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ self._subnet_id = subnet_id
+
+ @property
+ def is_used_for_rac_dbs(self):
+ """
+ Gets the is_used_for_rac_dbs of this OperationsInsightsPrivateEndpointSummary.
+ The flag to identify if private endpoint is used for rac database or not
+
+
+ :return: The is_used_for_rac_dbs of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: bool
+ """
+ return self._is_used_for_rac_dbs
+
+ @is_used_for_rac_dbs.setter
+ def is_used_for_rac_dbs(self, is_used_for_rac_dbs):
+ """
+ Sets the is_used_for_rac_dbs of this OperationsInsightsPrivateEndpointSummary.
+ The flag to identify if private endpoint is used for rac database or not
+
+
+ :param is_used_for_rac_dbs: The is_used_for_rac_dbs of this OperationsInsightsPrivateEndpointSummary.
+ :type: bool
+ """
+ self._is_used_for_rac_dbs = is_used_for_rac_dbs
+
+ @property
+ def description(self):
+ """
+ Gets the description of this OperationsInsightsPrivateEndpointSummary.
+ The description of the private endpoint.
+
+
+ :return: The description of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """
+ Sets the description of this OperationsInsightsPrivateEndpointSummary.
+ The description of the private endpoint.
+
+
+ :param description: The description of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ self._description = description
+
+ @property
+ def time_created(self):
+ """
+ **[Required]** Gets the time_created of this OperationsInsightsPrivateEndpointSummary.
+ The date and time the private endpoint was created, in the format defined by `RFC3339`__.
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :return: The time_created of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: datetime
+ """
+ return self._time_created
+
+ @time_created.setter
+ def time_created(self, time_created):
+ """
+ Sets the time_created of this OperationsInsightsPrivateEndpointSummary.
+ The date and time the private endpoint was created, in the format defined by `RFC3339`__.
+
+ __ https://tools.ietf.org/html/rfc3339
+
+
+ :param time_created: The time_created of this OperationsInsightsPrivateEndpointSummary.
+ :type: datetime
+ """
+ self._time_created = time_created
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this OperationsInsightsPrivateEndpointSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this OperationsInsightsPrivateEndpointSummary.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this OperationsInsightsPrivateEndpointSummary.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this OperationsInsightsPrivateEndpointSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this OperationsInsightsPrivateEndpointSummary.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this OperationsInsightsPrivateEndpointSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ @property
+ def system_tags(self):
+ """
+ Gets the system_tags of this OperationsInsightsPrivateEndpointSummary.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :return: The system_tags of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._system_tags
+
+ @system_tags.setter
+ def system_tags(self, system_tags):
+ """
+ Sets the system_tags of this OperationsInsightsPrivateEndpointSummary.
+ System tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}`
+
+
+ :param system_tags: The system_tags of this OperationsInsightsPrivateEndpointSummary.
+ :type: dict(str, dict(str, object))
+ """
+ self._system_tags = system_tags
+
+ @property
+ def lifecycle_state(self):
+ """
+ **[Required]** Gets the lifecycle_state of this OperationsInsightsPrivateEndpointSummary.
+ Private endpoint lifecycle states
+
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The lifecycle_state of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._lifecycle_state
+
+ @lifecycle_state.setter
+ def lifecycle_state(self, lifecycle_state):
+ """
+ Sets the lifecycle_state of this OperationsInsightsPrivateEndpointSummary.
+ Private endpoint lifecycle states
+
+
+ :param lifecycle_state: The lifecycle_state of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"]
+ if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
+ lifecycle_state = 'UNKNOWN_ENUM_VALUE'
+ self._lifecycle_state = lifecycle_state
+
+ @property
+ def lifecycle_details(self):
+ """
+ Gets the lifecycle_details of this OperationsInsightsPrivateEndpointSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :return: The lifecycle_details of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._lifecycle_details
+
+ @lifecycle_details.setter
+ def lifecycle_details(self, lifecycle_details):
+ """
+ Sets the lifecycle_details of this OperationsInsightsPrivateEndpointSummary.
+ A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
+
+
+ :param lifecycle_details: The lifecycle_details of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ self._lifecycle_details = lifecycle_details
+
+ @property
+ def private_endpoint_status_details(self):
+ """
+ Gets the private_endpoint_status_details of this OperationsInsightsPrivateEndpointSummary.
+ A message describing the status of the private endpoint connection of this resource. For example, it can be used to provide actionable information about the validity of the private endpoint connection.
+
+
+ :return: The private_endpoint_status_details of this OperationsInsightsPrivateEndpointSummary.
+ :rtype: str
+ """
+ return self._private_endpoint_status_details
+
+ @private_endpoint_status_details.setter
+ def private_endpoint_status_details(self, private_endpoint_status_details):
+ """
+ Sets the private_endpoint_status_details of this OperationsInsightsPrivateEndpointSummary.
+ A message describing the status of the private endpoint connection of this resource. For example, it can be used to provide actionable information about the validity of the private endpoint connection.
+
+
+ :param private_endpoint_status_details: The private_endpoint_status_details of this OperationsInsightsPrivateEndpointSummary.
+ :type: str
+ """
+ self._private_endpoint_status_details = private_endpoint_status_details
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/pe_comanaged_database_connection_details.py b/src/oci/opsi/models/pe_comanaged_database_connection_details.py
new file mode 100644
index 0000000000..26136f645e
--- /dev/null
+++ b/src/oci/opsi/models/pe_comanaged_database_connection_details.py
@@ -0,0 +1,148 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 PeComanagedDatabaseConnectionDetails(object):
+ """
+ Connection details of the private endpoints.
+ """
+
+ #: A constant which can be used with the protocol property of a PeComanagedDatabaseConnectionDetails.
+ #: This constant has a value of "TCP"
+ PROTOCOL_TCP = "TCP"
+
+ #: A constant which can be used with the protocol property of a PeComanagedDatabaseConnectionDetails.
+ #: This constant has a value of "TCPS"
+ PROTOCOL_TCPS = "TCPS"
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PeComanagedDatabaseConnectionDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param hosts:
+ The value to assign to the hosts property of this PeComanagedDatabaseConnectionDetails.
+ :type hosts: list[oci.opsi.models.PeComanagedDatabaseHostDetails]
+
+ :param protocol:
+ The value to assign to the protocol property of this PeComanagedDatabaseConnectionDetails.
+ Allowed values for this property are: "TCP", "TCPS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+ :type protocol: str
+
+ :param service_name:
+ The value to assign to the service_name property of this PeComanagedDatabaseConnectionDetails.
+ :type service_name: str
+
+ """
+ self.swagger_types = {
+ 'hosts': 'list[PeComanagedDatabaseHostDetails]',
+ 'protocol': 'str',
+ 'service_name': 'str'
+ }
+
+ self.attribute_map = {
+ 'hosts': 'hosts',
+ 'protocol': 'protocol',
+ 'service_name': 'serviceName'
+ }
+
+ self._hosts = None
+ self._protocol = None
+ self._service_name = None
+
+ @property
+ def hosts(self):
+ """
+ **[Required]** Gets the hosts of this PeComanagedDatabaseConnectionDetails.
+ List of hosts and port for private endpoint accessed database resource.
+
+
+ :return: The hosts of this PeComanagedDatabaseConnectionDetails.
+ :rtype: list[oci.opsi.models.PeComanagedDatabaseHostDetails]
+ """
+ return self._hosts
+
+ @hosts.setter
+ def hosts(self, hosts):
+ """
+ Sets the hosts of this PeComanagedDatabaseConnectionDetails.
+ List of hosts and port for private endpoint accessed database resource.
+
+
+ :param hosts: The hosts of this PeComanagedDatabaseConnectionDetails.
+ :type: list[oci.opsi.models.PeComanagedDatabaseHostDetails]
+ """
+ self._hosts = hosts
+
+ @property
+ def protocol(self):
+ """
+ Gets the protocol of this PeComanagedDatabaseConnectionDetails.
+ Protocol used for connection requests for private endpoint accssed database resource.
+
+ Allowed values for this property are: "TCP", "TCPS", 'UNKNOWN_ENUM_VALUE'.
+ Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
+
+
+ :return: The protocol of this PeComanagedDatabaseConnectionDetails.
+ :rtype: str
+ """
+ return self._protocol
+
+ @protocol.setter
+ def protocol(self, protocol):
+ """
+ Sets the protocol of this PeComanagedDatabaseConnectionDetails.
+ Protocol used for connection requests for private endpoint accssed database resource.
+
+
+ :param protocol: The protocol of this PeComanagedDatabaseConnectionDetails.
+ :type: str
+ """
+ allowed_values = ["TCP", "TCPS"]
+ if not value_allowed_none_or_none_sentinel(protocol, allowed_values):
+ protocol = 'UNKNOWN_ENUM_VALUE'
+ self._protocol = protocol
+
+ @property
+ def service_name(self):
+ """
+ Gets the service_name of this PeComanagedDatabaseConnectionDetails.
+ Database service name used for connection requests.
+
+
+ :return: The service_name of this PeComanagedDatabaseConnectionDetails.
+ :rtype: str
+ """
+ return self._service_name
+
+ @service_name.setter
+ def service_name(self, service_name):
+ """
+ Sets the service_name of this PeComanagedDatabaseConnectionDetails.
+ Database service name used for connection requests.
+
+
+ :param service_name: The service_name of this PeComanagedDatabaseConnectionDetails.
+ :type: str
+ """
+ self._service_name = service_name
+
+ 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/opsi/models/pe_comanaged_database_host_details.py b/src/oci/opsi/models/pe_comanaged_database_host_details.py
new file mode 100644
index 0000000000..a34b4b0c19
--- /dev/null
+++ b/src/oci/opsi/models/pe_comanaged_database_host_details.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 PeComanagedDatabaseHostDetails(object):
+ """
+ Input Host Details used for connection requests for private endpoint accessed db resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PeComanagedDatabaseHostDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param host_ip:
+ The value to assign to the host_ip property of this PeComanagedDatabaseHostDetails.
+ :type host_ip: str
+
+ :param port:
+ The value to assign to the port property of this PeComanagedDatabaseHostDetails.
+ :type port: int
+
+ """
+ self.swagger_types = {
+ 'host_ip': 'str',
+ 'port': 'int'
+ }
+
+ self.attribute_map = {
+ 'host_ip': 'hostIp',
+ 'port': 'port'
+ }
+
+ self._host_ip = None
+ self._port = None
+
+ @property
+ def host_ip(self):
+ """
+ Gets the host_ip of this PeComanagedDatabaseHostDetails.
+ Host IP used for connection requests for Cloud DB resource.
+
+
+ :return: The host_ip of this PeComanagedDatabaseHostDetails.
+ :rtype: str
+ """
+ return self._host_ip
+
+ @host_ip.setter
+ def host_ip(self, host_ip):
+ """
+ Sets the host_ip of this PeComanagedDatabaseHostDetails.
+ Host IP used for connection requests for Cloud DB resource.
+
+
+ :param host_ip: The host_ip of this PeComanagedDatabaseHostDetails.
+ :type: str
+ """
+ self._host_ip = host_ip
+
+ @property
+ def port(self):
+ """
+ Gets the port of this PeComanagedDatabaseHostDetails.
+ Listener port number used for connection requests for rivate endpoint accessed db resource.
+
+
+ :return: The port of this PeComanagedDatabaseHostDetails.
+ :rtype: int
+ """
+ return self._port
+
+ @port.setter
+ def port(self, port):
+ """
+ Sets the port of this PeComanagedDatabaseHostDetails.
+ Listener port number used for connection requests for rivate endpoint accessed db resource.
+
+
+ :param port: The port of this PeComanagedDatabaseHostDetails.
+ :type: int
+ """
+ self._port = port
+
+ 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/opsi/models/pe_comanaged_database_insight.py b/src/oci/opsi/models/pe_comanaged_database_insight.py
new file mode 100644
index 0000000000..b31b1c55ab
--- /dev/null
+++ b/src/oci/opsi/models/pe_comanaged_database_insight.py
@@ -0,0 +1,366 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+from .database_insight import DatabaseInsight
+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 PeComanagedDatabaseInsight(DatabaseInsight):
+ """
+ Database insight resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PeComanagedDatabaseInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.PeComanagedDatabaseInsight.entity_source` attribute
+ of this class is ``PE_COMANAGED_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this PeComanagedDatabaseInsight.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
+ :type entity_source: str
+
+ :param id:
+ The value to assign to the id property of this PeComanagedDatabaseInsight.
+ :type id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this PeComanagedDatabaseInsight.
+ :type compartment_id: str
+
+ :param status:
+ The value to assign to the status property of this PeComanagedDatabaseInsight.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED"
+ :type status: str
+
+ :param database_type:
+ The value to assign to the database_type property of this PeComanagedDatabaseInsight.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this PeComanagedDatabaseInsight.
+ :type database_version: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this PeComanagedDatabaseInsight.
+ :type processor_count: int
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this PeComanagedDatabaseInsight.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this PeComanagedDatabaseInsight.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this PeComanagedDatabaseInsight.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param time_created:
+ The value to assign to the time_created property of this PeComanagedDatabaseInsight.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this PeComanagedDatabaseInsight.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this PeComanagedDatabaseInsight.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this PeComanagedDatabaseInsight.
+ :type lifecycle_details: str
+
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this PeComanagedDatabaseInsight.
+ :type database_connection_status_details: str
+
+ :param opsi_private_endpoint_id:
+ The value to assign to the opsi_private_endpoint_id property of this PeComanagedDatabaseInsight.
+ :type opsi_private_endpoint_id: str
+
+ :param connection_details:
+ The value to assign to the connection_details property of this PeComanagedDatabaseInsight.
+ :type connection_details: oci.opsi.models.PeComanagedDatabaseConnectionDetails
+
+ :param credential_details:
+ The value to assign to the credential_details property of this PeComanagedDatabaseInsight.
+ :type credential_details: oci.opsi.models.CredentialDetails
+
+ :param database_id:
+ The value to assign to the database_id property of this PeComanagedDatabaseInsight.
+ :type database_id: str
+
+ :param database_name:
+ The value to assign to the database_name property of this PeComanagedDatabaseInsight.
+ :type database_name: str
+
+ :param database_display_name:
+ The value to assign to the database_display_name property of this PeComanagedDatabaseInsight.
+ :type database_display_name: str
+
+ :param database_resource_type:
+ The value to assign to the database_resource_type property of this PeComanagedDatabaseInsight.
+ :type database_resource_type: str
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'id': 'str',
+ 'compartment_id': 'str',
+ 'status': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'processor_count': 'int',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str',
+ 'opsi_private_endpoint_id': 'str',
+ 'connection_details': 'PeComanagedDatabaseConnectionDetails',
+ 'credential_details': 'CredentialDetails',
+ 'database_id': 'str',
+ 'database_name': 'str',
+ 'database_display_name': 'str',
+ 'database_resource_type': 'str'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'id': 'id',
+ 'compartment_id': 'compartmentId',
+ 'status': 'status',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'processor_count': 'processorCount',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails',
+ 'opsi_private_endpoint_id': 'opsiPrivateEndpointId',
+ 'connection_details': 'connectionDetails',
+ 'credential_details': 'credentialDetails',
+ 'database_id': 'databaseId',
+ 'database_name': 'databaseName',
+ 'database_display_name': 'databaseDisplayName',
+ 'database_resource_type': 'databaseResourceType'
+ }
+
+ self._entity_source = None
+ self._id = None
+ self._compartment_id = None
+ self._status = None
+ self._database_type = None
+ self._database_version = None
+ self._processor_count = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._database_connection_status_details = None
+ self._opsi_private_endpoint_id = None
+ self._connection_details = None
+ self._credential_details = None
+ self._database_id = None
+ self._database_name = None
+ self._database_display_name = None
+ self._database_resource_type = None
+ self._entity_source = 'PE_COMANAGED_DATABASE'
+
+ @property
+ def opsi_private_endpoint_id(self):
+ """
+ Gets the opsi_private_endpoint_id of this PeComanagedDatabaseInsight.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The opsi_private_endpoint_id of this PeComanagedDatabaseInsight.
+ :rtype: str
+ """
+ return self._opsi_private_endpoint_id
+
+ @opsi_private_endpoint_id.setter
+ def opsi_private_endpoint_id(self, opsi_private_endpoint_id):
+ """
+ Sets the opsi_private_endpoint_id of this PeComanagedDatabaseInsight.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param opsi_private_endpoint_id: The opsi_private_endpoint_id of this PeComanagedDatabaseInsight.
+ :type: str
+ """
+ self._opsi_private_endpoint_id = opsi_private_endpoint_id
+
+ @property
+ def connection_details(self):
+ """
+ Gets the connection_details of this PeComanagedDatabaseInsight.
+
+ :return: The connection_details of this PeComanagedDatabaseInsight.
+ :rtype: oci.opsi.models.PeComanagedDatabaseConnectionDetails
+ """
+ return self._connection_details
+
+ @connection_details.setter
+ def connection_details(self, connection_details):
+ """
+ Sets the connection_details of this PeComanagedDatabaseInsight.
+
+ :param connection_details: The connection_details of this PeComanagedDatabaseInsight.
+ :type: oci.opsi.models.PeComanagedDatabaseConnectionDetails
+ """
+ self._connection_details = connection_details
+
+ @property
+ def credential_details(self):
+ """
+ Gets the credential_details of this PeComanagedDatabaseInsight.
+
+ :return: The credential_details of this PeComanagedDatabaseInsight.
+ :rtype: oci.opsi.models.CredentialDetails
+ """
+ return self._credential_details
+
+ @credential_details.setter
+ def credential_details(self, credential_details):
+ """
+ Sets the credential_details of this PeComanagedDatabaseInsight.
+
+ :param credential_details: The credential_details of this PeComanagedDatabaseInsight.
+ :type: oci.opsi.models.CredentialDetails
+ """
+ self._credential_details = credential_details
+
+ @property
+ def database_id(self):
+ """
+ **[Required]** Gets the database_id of this PeComanagedDatabaseInsight.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The database_id of this PeComanagedDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this PeComanagedDatabaseInsight.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param database_id: The database_id of this PeComanagedDatabaseInsight.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def database_name(self):
+ """
+ **[Required]** Gets the database_name of this PeComanagedDatabaseInsight.
+ Name of database
+
+
+ :return: The database_name of this PeComanagedDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_name
+
+ @database_name.setter
+ def database_name(self, database_name):
+ """
+ Sets the database_name of this PeComanagedDatabaseInsight.
+ Name of database
+
+
+ :param database_name: The database_name of this PeComanagedDatabaseInsight.
+ :type: str
+ """
+ self._database_name = database_name
+
+ @property
+ def database_display_name(self):
+ """
+ Gets the database_display_name of this PeComanagedDatabaseInsight.
+ Display name of database
+
+
+ :return: The database_display_name of this PeComanagedDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_display_name
+
+ @database_display_name.setter
+ def database_display_name(self, database_display_name):
+ """
+ Sets the database_display_name of this PeComanagedDatabaseInsight.
+ Display name of database
+
+
+ :param database_display_name: The database_display_name of this PeComanagedDatabaseInsight.
+ :type: str
+ """
+ self._database_display_name = database_display_name
+
+ @property
+ def database_resource_type(self):
+ """
+ **[Required]** Gets the database_resource_type of this PeComanagedDatabaseInsight.
+ OCI database resource type
+
+
+ :return: The database_resource_type of this PeComanagedDatabaseInsight.
+ :rtype: str
+ """
+ return self._database_resource_type
+
+ @database_resource_type.setter
+ def database_resource_type(self, database_resource_type):
+ """
+ Sets the database_resource_type of this PeComanagedDatabaseInsight.
+ OCI database resource type
+
+
+ :param database_resource_type: The database_resource_type of this PeComanagedDatabaseInsight.
+ :type: str
+ """
+ self._database_resource_type = database_resource_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/opsi/models/pe_comanaged_database_insight_summary.py b/src/oci/opsi/models/pe_comanaged_database_insight_summary.py
new file mode 100644
index 0000000000..365bc7cbd7
--- /dev/null
+++ b/src/oci/opsi/models/pe_comanaged_database_insight_summary.py
@@ -0,0 +1,243 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+from .database_insight_summary import DatabaseInsightSummary
+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 PeComanagedDatabaseInsightSummary(DatabaseInsightSummary):
+ """
+ Summary of a database insight resource.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PeComanagedDatabaseInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.PeComanagedDatabaseInsightSummary.entity_source` attribute
+ of this class is ``PE_COMANAGED_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param id:
+ The value to assign to the id property of this PeComanagedDatabaseInsightSummary.
+ :type id: str
+
+ :param database_id:
+ The value to assign to the database_id property of this PeComanagedDatabaseInsightSummary.
+ :type database_id: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this PeComanagedDatabaseInsightSummary.
+ :type compartment_id: str
+
+ :param database_name:
+ The value to assign to the database_name property of this PeComanagedDatabaseInsightSummary.
+ :type database_name: str
+
+ :param database_display_name:
+ The value to assign to the database_display_name property of this PeComanagedDatabaseInsightSummary.
+ :type database_display_name: str
+
+ :param database_type:
+ The value to assign to the database_type property of this PeComanagedDatabaseInsightSummary.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this PeComanagedDatabaseInsightSummary.
+ :type database_version: str
+
+ :param database_host_names:
+ The value to assign to the database_host_names property of this PeComanagedDatabaseInsightSummary.
+ :type database_host_names: list[str]
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this PeComanagedDatabaseInsightSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this PeComanagedDatabaseInsightSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param system_tags:
+ The value to assign to the system_tags property of this PeComanagedDatabaseInsightSummary.
+ :type system_tags: dict(str, dict(str, object))
+
+ :param entity_source:
+ The value to assign to the entity_source property of this PeComanagedDatabaseInsightSummary.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
+ :type entity_source: str
+
+ :param processor_count:
+ The value to assign to the processor_count property of this PeComanagedDatabaseInsightSummary.
+ :type processor_count: int
+
+ :param status:
+ The value to assign to the status property of this PeComanagedDatabaseInsightSummary.
+ Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED"
+ :type status: str
+
+ :param time_created:
+ The value to assign to the time_created property of this PeComanagedDatabaseInsightSummary.
+ :type time_created: datetime
+
+ :param time_updated:
+ The value to assign to the time_updated property of this PeComanagedDatabaseInsightSummary.
+ :type time_updated: datetime
+
+ :param lifecycle_state:
+ The value to assign to the lifecycle_state property of this PeComanagedDatabaseInsightSummary.
+ Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"
+ :type lifecycle_state: str
+
+ :param lifecycle_details:
+ The value to assign to the lifecycle_details property of this PeComanagedDatabaseInsightSummary.
+ :type lifecycle_details: str
+
+ :param database_connection_status_details:
+ The value to assign to the database_connection_status_details property of this PeComanagedDatabaseInsightSummary.
+ :type database_connection_status_details: str
+
+ :param database_resource_type:
+ The value to assign to the database_resource_type property of this PeComanagedDatabaseInsightSummary.
+ :type database_resource_type: str
+
+ :param opsi_private_endpoint_id:
+ The value to assign to the opsi_private_endpoint_id property of this PeComanagedDatabaseInsightSummary.
+ :type opsi_private_endpoint_id: str
+
+ """
+ self.swagger_types = {
+ 'id': 'str',
+ 'database_id': 'str',
+ 'compartment_id': 'str',
+ 'database_name': 'str',
+ 'database_display_name': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'database_host_names': 'list[str]',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'system_tags': 'dict(str, dict(str, object))',
+ 'entity_source': 'str',
+ 'processor_count': 'int',
+ 'status': 'str',
+ 'time_created': 'datetime',
+ 'time_updated': 'datetime',
+ 'lifecycle_state': 'str',
+ 'lifecycle_details': 'str',
+ 'database_connection_status_details': 'str',
+ 'database_resource_type': 'str',
+ 'opsi_private_endpoint_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'id': 'id',
+ 'database_id': 'databaseId',
+ 'compartment_id': 'compartmentId',
+ 'database_name': 'databaseName',
+ 'database_display_name': 'databaseDisplayName',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'database_host_names': 'databaseHostNames',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags',
+ 'system_tags': 'systemTags',
+ 'entity_source': 'entitySource',
+ 'processor_count': 'processorCount',
+ 'status': 'status',
+ 'time_created': 'timeCreated',
+ 'time_updated': 'timeUpdated',
+ 'lifecycle_state': 'lifecycleState',
+ 'lifecycle_details': 'lifecycleDetails',
+ 'database_connection_status_details': 'databaseConnectionStatusDetails',
+ 'database_resource_type': 'databaseResourceType',
+ 'opsi_private_endpoint_id': 'opsiPrivateEndpointId'
+ }
+
+ self._id = None
+ self._database_id = None
+ self._compartment_id = None
+ self._database_name = None
+ self._database_display_name = None
+ self._database_type = None
+ self._database_version = None
+ self._database_host_names = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._system_tags = None
+ self._entity_source = None
+ self._processor_count = None
+ self._status = None
+ self._time_created = None
+ self._time_updated = None
+ self._lifecycle_state = None
+ self._lifecycle_details = None
+ self._database_connection_status_details = None
+ self._database_resource_type = None
+ self._opsi_private_endpoint_id = None
+ self._entity_source = 'PE_COMANAGED_DATABASE'
+
+ @property
+ def database_resource_type(self):
+ """
+ Gets the database_resource_type of this PeComanagedDatabaseInsightSummary.
+ OCI database resource type
+
+
+ :return: The database_resource_type of this PeComanagedDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._database_resource_type
+
+ @database_resource_type.setter
+ def database_resource_type(self, database_resource_type):
+ """
+ Sets the database_resource_type of this PeComanagedDatabaseInsightSummary.
+ OCI database resource type
+
+
+ :param database_resource_type: The database_resource_type of this PeComanagedDatabaseInsightSummary.
+ :type: str
+ """
+ self._database_resource_type = database_resource_type
+
+ @property
+ def opsi_private_endpoint_id(self):
+ """
+ Gets the opsi_private_endpoint_id of this PeComanagedDatabaseInsightSummary.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The opsi_private_endpoint_id of this PeComanagedDatabaseInsightSummary.
+ :rtype: str
+ """
+ return self._opsi_private_endpoint_id
+
+ @opsi_private_endpoint_id.setter
+ def opsi_private_endpoint_id(self, opsi_private_endpoint_id):
+ """
+ Sets the opsi_private_endpoint_id of this PeComanagedDatabaseInsightSummary.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param opsi_private_endpoint_id: The opsi_private_endpoint_id of this PeComanagedDatabaseInsightSummary.
+ :type: str
+ """
+ self._opsi_private_endpoint_id = opsi_private_endpoint_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/opsi/models/pe_comanaged_managed_external_database_configuration_summary.py b/src/oci/opsi/models/pe_comanaged_managed_external_database_configuration_summary.py
new file mode 100644
index 0000000000..88a17d34be
--- /dev/null
+++ b/src/oci/opsi/models/pe_comanaged_managed_external_database_configuration_summary.py
@@ -0,0 +1,189 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+from .database_configuration_summary import DatabaseConfigurationSummary
+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 PeComanagedManagedExternalDatabaseConfigurationSummary(DatabaseConfigurationSummary):
+ """
+ Configuration Summary of a Private Endpoint Co-managed External database.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new PeComanagedManagedExternalDatabaseConfigurationSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.PeComanagedManagedExternalDatabaseConfigurationSummary.entity_source` attribute
+ of this class is ``PE_COMANAGED_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param database_insight_id:
+ The value to assign to the database_insight_id property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type database_insight_id: str
+
+ :param entity_source:
+ The value to assign to the entity_source property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
+ :type entity_source: str
+
+ :param compartment_id:
+ The value to assign to the compartment_id property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type compartment_id: str
+
+ :param database_name:
+ The value to assign to the database_name property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type database_name: str
+
+ :param database_display_name:
+ The value to assign to the database_display_name property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type database_display_name: str
+
+ :param database_type:
+ The value to assign to the database_type property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type database_type: str
+
+ :param database_version:
+ The value to assign to the database_version property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type database_version: str
+
+ :param cdb_name:
+ The value to assign to the cdb_name property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type cdb_name: str
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type defined_tags: dict(str, dict(str, object))
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type freeform_tags: dict(str, str)
+
+ :param processor_count:
+ The value to assign to the processor_count property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type processor_count: int
+
+ :param database_id:
+ The value to assign to the database_id property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type database_id: str
+
+ :param opsi_private_endpoint_id:
+ The value to assign to the opsi_private_endpoint_id property of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type opsi_private_endpoint_id: str
+
+ """
+ self.swagger_types = {
+ 'database_insight_id': 'str',
+ 'entity_source': 'str',
+ 'compartment_id': 'str',
+ 'database_name': 'str',
+ 'database_display_name': 'str',
+ 'database_type': 'str',
+ 'database_version': 'str',
+ 'cdb_name': 'str',
+ 'defined_tags': 'dict(str, dict(str, object))',
+ 'freeform_tags': 'dict(str, str)',
+ 'processor_count': 'int',
+ 'database_id': 'str',
+ 'opsi_private_endpoint_id': 'str'
+ }
+
+ self.attribute_map = {
+ 'database_insight_id': 'databaseInsightId',
+ 'entity_source': 'entitySource',
+ 'compartment_id': 'compartmentId',
+ 'database_name': 'databaseName',
+ 'database_display_name': 'databaseDisplayName',
+ 'database_type': 'databaseType',
+ 'database_version': 'databaseVersion',
+ 'cdb_name': 'cdbName',
+ 'defined_tags': 'definedTags',
+ 'freeform_tags': 'freeformTags',
+ 'processor_count': 'processorCount',
+ 'database_id': 'databaseId',
+ 'opsi_private_endpoint_id': 'opsiPrivateEndpointId'
+ }
+
+ self._database_insight_id = None
+ self._entity_source = None
+ self._compartment_id = None
+ self._database_name = None
+ self._database_display_name = None
+ self._database_type = None
+ self._database_version = None
+ self._cdb_name = None
+ self._defined_tags = None
+ self._freeform_tags = None
+ self._processor_count = None
+ self._database_id = None
+ self._opsi_private_endpoint_id = None
+ self._entity_source = 'PE_COMANAGED_DATABASE'
+
+ @property
+ def database_id(self):
+ """
+ **[Required]** Gets the database_id of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The database_id of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :rtype: str
+ """
+ return self._database_id
+
+ @database_id.setter
+ def database_id(self, database_id):
+ """
+ Sets the database_id of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ The `OCID`__ of the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param database_id: The database_id of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type: str
+ """
+ self._database_id = database_id
+
+ @property
+ def opsi_private_endpoint_id(self):
+ """
+ **[Required]** Gets the opsi_private_endpoint_id of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The opsi_private_endpoint_id of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :rtype: str
+ """
+ return self._opsi_private_endpoint_id
+
+ @opsi_private_endpoint_id.setter
+ def opsi_private_endpoint_id(self, opsi_private_endpoint_id):
+ """
+ Sets the opsi_private_endpoint_id of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ The `OCID`__ of the OPSI private endpoint
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param opsi_private_endpoint_id: The opsi_private_endpoint_id of this PeComanagedManagedExternalDatabaseConfigurationSummary.
+ :type: str
+ """
+ self._opsi_private_endpoint_id = opsi_private_endpoint_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/opsi/models/update_autonomous_database_insight_details.py b/src/oci/opsi/models/update_autonomous_database_insight_details.py
index 7fd91aef51..5c35b676a0 100644
--- a/src/oci/opsi/models/update_autonomous_database_insight_details.py
+++ b/src/oci/opsi/models/update_autonomous_database_insight_details.py
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this UpdateAutonomousDatabaseInsightDetails.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param freeform_tags:
diff --git a/src/oci/opsi/models/update_database_insight_details.py b/src/oci/opsi/models/update_database_insight_details.py
index 879c888139..52422ff622 100644
--- a/src/oci/opsi/models/update_database_insight_details.py
+++ b/src/oci/opsi/models/update_database_insight_details.py
@@ -25,6 +25,10 @@ class UpdateDatabaseInsightDetails(object):
#: This constant has a value of "MACS_MANAGED_EXTERNAL_DATABASE"
ENTITY_SOURCE_MACS_MANAGED_EXTERNAL_DATABASE = "MACS_MANAGED_EXTERNAL_DATABASE"
+ #: A constant which can be used with the entity_source property of a UpdateDatabaseInsightDetails.
+ #: This constant has a value of "PE_COMANAGED_DATABASE"
+ ENTITY_SOURCE_PE_COMANAGED_DATABASE = "PE_COMANAGED_DATABASE"
+
def __init__(self, **kwargs):
"""
Initializes a new UpdateDatabaseInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
@@ -32,13 +36,14 @@ def __init__(self, **kwargs):
* :class:`~oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails`
* :class:`~oci.opsi.models.UpdateEmManagedExternalDatabaseInsightDetails`
+ * :class:`~oci.opsi.models.UpdatePeComanagedDatabaseInsightDetails`
* :class:`~oci.opsi.models.UpdateAutonomousDatabaseInsightDetails`
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param entity_source:
The value to assign to the entity_source property of this UpdateDatabaseInsightDetails.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param freeform_tags:
@@ -80,6 +85,9 @@ def get_subtype(object_dictionary):
if type == 'EM_MANAGED_EXTERNAL_DATABASE':
return 'UpdateEmManagedExternalDatabaseInsightDetails'
+ if type == 'PE_COMANAGED_DATABASE':
+ return 'UpdatePeComanagedDatabaseInsightDetails'
+
if type == 'AUTONOMOUS_DATABASE':
return 'UpdateAutonomousDatabaseInsightDetails'
else:
@@ -91,7 +99,7 @@ def entity_source(self):
**[Required]** Gets the entity_source of this UpdateDatabaseInsightDetails.
Source of the database entity.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:return: The entity_source of this UpdateDatabaseInsightDetails.
@@ -109,7 +117,7 @@ def entity_source(self, entity_source):
:param entity_source: The entity_source of this UpdateDatabaseInsightDetails.
:type: str
"""
- allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"]
+ allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"]
if not value_allowed_none_or_none_sentinel(entity_source, allowed_values):
raise ValueError(
"Invalid value for `entity_source`, must be None or one of {0}"
diff --git a/src/oci/opsi/models/update_em_managed_external_database_insight_details.py b/src/oci/opsi/models/update_em_managed_external_database_insight_details.py
index 61ac213286..72b14eec32 100644
--- a/src/oci/opsi/models/update_em_managed_external_database_insight_details.py
+++ b/src/oci/opsi/models/update_em_managed_external_database_insight_details.py
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this UpdateEmManagedExternalDatabaseInsightDetails.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param freeform_tags:
diff --git a/src/oci/opsi/models/update_macs_managed_external_database_insight_details.py b/src/oci/opsi/models/update_macs_managed_external_database_insight_details.py
index fa91553ce4..c3cc77472f 100644
--- a/src/oci/opsi/models/update_macs_managed_external_database_insight_details.py
+++ b/src/oci/opsi/models/update_macs_managed_external_database_insight_details.py
@@ -21,7 +21,7 @@ def __init__(self, **kwargs):
:param entity_source:
The value to assign to the entity_source property of this UpdateMacsManagedExternalDatabaseInsightDetails.
- Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE"
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
:type entity_source: str
:param freeform_tags:
diff --git a/src/oci/opsi/models/update_operations_insights_private_endpoint_details.py b/src/oci/opsi/models/update_operations_insights_private_endpoint_details.py
new file mode 100644
index 0000000000..311f050b85
--- /dev/null
+++ b/src/oci/opsi/models/update_operations_insights_private_endpoint_details.py
@@ -0,0 +1,202 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+
+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 UpdateOperationsInsightsPrivateEndpointDetails(object):
+ """
+ The details used to update a Operation Insights private endpoint.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdateOperationsInsightsPrivateEndpointDetails object with values from keyword arguments.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param display_name:
+ The value to assign to the display_name property of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type display_name: str
+
+ :param description:
+ The value to assign to the description property of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type description: str
+
+ :param nsg_ids:
+ The value to assign to the nsg_ids property of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type nsg_ids: list[str]
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'display_name': 'str',
+ 'description': 'str',
+ 'nsg_ids': 'list[str]',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'display_name': 'displayName',
+ 'description': 'description',
+ 'nsg_ids': 'nsgIds',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._display_name = None
+ self._description = None
+ self._nsg_ids = None
+ self._freeform_tags = None
+ self._defined_tags = None
+
+ @property
+ def display_name(self):
+ """
+ Gets the display_name of this UpdateOperationsInsightsPrivateEndpointDetails.
+ The display name of the private endpoint.
+
+
+ :return: The display_name of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._display_name
+
+ @display_name.setter
+ def display_name(self, display_name):
+ """
+ Sets the display_name of this UpdateOperationsInsightsPrivateEndpointDetails.
+ The display name of the private endpoint.
+
+
+ :param display_name: The display_name of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type: str
+ """
+ self._display_name = display_name
+
+ @property
+ def description(self):
+ """
+ Gets the description of this UpdateOperationsInsightsPrivateEndpointDetails.
+ The description of the private endpoint.
+
+
+ :return: The description of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """
+ Sets the description of this UpdateOperationsInsightsPrivateEndpointDetails.
+ The description of the private endpoint.
+
+
+ :param description: The description of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type: str
+ """
+ self._description = description
+
+ @property
+ def nsg_ids(self):
+ """
+ Gets the nsg_ids of this UpdateOperationsInsightsPrivateEndpointDetails.
+ The `OCID`__ of the network security groups that the Private service accessed the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :return: The nsg_ids of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :rtype: list[str]
+ """
+ return self._nsg_ids
+
+ @nsg_ids.setter
+ def nsg_ids(self, nsg_ids):
+ """
+ Sets the nsg_ids of this UpdateOperationsInsightsPrivateEndpointDetails.
+ The `OCID`__ of the network security groups that the Private service accessed the database.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+
+ :param nsg_ids: The nsg_ids of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type: list[str]
+ """
+ self._nsg_ids = nsg_ids
+
+ @property
+ def freeform_tags(self):
+ """
+ Gets the freeform_tags of this UpdateOperationsInsightsPrivateEndpointDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :return: The freeform_tags of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :rtype: dict(str, str)
+ """
+ return self._freeform_tags
+
+ @freeform_tags.setter
+ def freeform_tags(self, freeform_tags):
+ """
+ Sets the freeform_tags of this UpdateOperationsInsightsPrivateEndpointDetails.
+ Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
+ Example: `{\"bar-key\": \"value\"}`
+
+
+ :param freeform_tags: The freeform_tags of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type: dict(str, str)
+ """
+ self._freeform_tags = freeform_tags
+
+ @property
+ def defined_tags(self):
+ """
+ Gets the defined_tags of this UpdateOperationsInsightsPrivateEndpointDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :return: The defined_tags of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :rtype: dict(str, dict(str, object))
+ """
+ return self._defined_tags
+
+ @defined_tags.setter
+ def defined_tags(self, defined_tags):
+ """
+ Sets the defined_tags of this UpdateOperationsInsightsPrivateEndpointDetails.
+ Defined tags for this resource. Each key is predefined and scoped to a namespace.
+ Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`
+
+
+ :param defined_tags: The defined_tags of this UpdateOperationsInsightsPrivateEndpointDetails.
+ :type: dict(str, dict(str, object))
+ """
+ self._defined_tags = defined_tags
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/update_pe_comanaged_database_insight_details.py b/src/oci/opsi/models/update_pe_comanaged_database_insight_details.py
new file mode 100644
index 0000000000..ff8e367d08
--- /dev/null
+++ b/src/oci/opsi/models/update_pe_comanaged_database_insight_details.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+# Copyright (c) 2016, 2022, 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.
+
+from .update_database_insight_details import UpdateDatabaseInsightDetails
+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 UpdatePeComanagedDatabaseInsightDetails(UpdateDatabaseInsightDetails):
+ """
+ The information to be updated.
+ """
+
+ def __init__(self, **kwargs):
+ """
+ Initializes a new UpdatePeComanagedDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.UpdatePeComanagedDatabaseInsightDetails.entity_source` attribute
+ of this class is ``PE_COMANAGED_DATABASE`` and it should not be changed.
+ The following keyword arguments are supported (corresponding to the getters/setters of this class):
+
+ :param entity_source:
+ The value to assign to the entity_source property of this UpdatePeComanagedDatabaseInsightDetails.
+ Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE"
+ :type entity_source: str
+
+ :param freeform_tags:
+ The value to assign to the freeform_tags property of this UpdatePeComanagedDatabaseInsightDetails.
+ :type freeform_tags: dict(str, str)
+
+ :param defined_tags:
+ The value to assign to the defined_tags property of this UpdatePeComanagedDatabaseInsightDetails.
+ :type defined_tags: dict(str, dict(str, object))
+
+ """
+ self.swagger_types = {
+ 'entity_source': 'str',
+ 'freeform_tags': 'dict(str, str)',
+ 'defined_tags': 'dict(str, dict(str, object))'
+ }
+
+ self.attribute_map = {
+ 'entity_source': 'entitySource',
+ 'freeform_tags': 'freeformTags',
+ 'defined_tags': 'definedTags'
+ }
+
+ self._entity_source = None
+ self._freeform_tags = None
+ self._defined_tags = None
+ self._entity_source = 'PE_COMANAGED_DATABASE'
+
+ def __repr__(self):
+ return formatted_flat_dict(self)
+
+ def __eq__(self, other):
+ if other is None:
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ return not self == other
diff --git a/src/oci/opsi/models/work_request.py b/src/oci/opsi/models/work_request.py
index fc0161bb4a..62aaf7fcba 100644
--- a/src/oci/opsi/models/work_request.py
+++ b/src/oci/opsi/models/work_request.py
@@ -161,6 +161,22 @@ class WorkRequest(object):
#: This constant has a value of "DELETE_AWRHUB"
OPERATION_TYPE_DELETE_AWRHUB = "DELETE_AWRHUB"
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "UPDATE_PRIVATE_ENDPOINT"
+ OPERATION_TYPE_UPDATE_PRIVATE_ENDPOINT = "UPDATE_PRIVATE_ENDPOINT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "CREATE_PRIVATE_ENDPOINT"
+ OPERATION_TYPE_CREATE_PRIVATE_ENDPOINT = "CREATE_PRIVATE_ENDPOINT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "MOVE_PRIVATE_ENDPOINT"
+ OPERATION_TYPE_MOVE_PRIVATE_ENDPOINT = "MOVE_PRIVATE_ENDPOINT"
+
+ #: A constant which can be used with the operation_type property of a WorkRequest.
+ #: This constant has a value of "DELETE_PRIVATE_ENDPOINT"
+ OPERATION_TYPE_DELETE_PRIVATE_ENDPOINT = "DELETE_PRIVATE_ENDPOINT"
+
#: A constant which can be used with the status property of a WorkRequest.
#: This constant has a value of "ACCEPTED"
STATUS_ACCEPTED = "ACCEPTED"
@@ -196,7 +212,7 @@ def __init__(self, **kwargs):
:param operation_type:
The value to assign to the operation_type property of this WorkRequest.
- Allowed values for this property are: "ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT", "CREATE_EXADATA_INSIGHT", "ENABLE_EXADATA_INSIGHT", "DISABLE_EXADATA_INSIGHT", "UPDATE_EXADATA_INSIGHT", "MOVE_EXADATA_INSIGHT", "DELETE_EXADATA_INSIGHT", "ADD_EXADATA_INSIGHT_MEMBERS", "EXADATA_AUTO_SYNC", "UPDATE_OPSI_WAREHOUSE", "CREATE_OPSI_WAREHOUSE", "MOVE_OPSI_WAREHOUSE", "DELETE_OPSI_WAREHOUSE", "ROTATE_OPSI_WAREHOUSE_WALLET", "UPDATE_OPSI_WAREHOUSE_USER", "CREATE_OPSI_WAREHOUSE_USER", "MOVE_OPSI_WAREHOUSE_USER", "DELETE_OPSI_WAREHOUSE_USER", "UPDATE_AWRHUB", "CREATE_AWRHUB", "MOVE_AWRHUB", "DELETE_AWRHUB", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT", "CREATE_EXADATA_INSIGHT", "ENABLE_EXADATA_INSIGHT", "DISABLE_EXADATA_INSIGHT", "UPDATE_EXADATA_INSIGHT", "MOVE_EXADATA_INSIGHT", "DELETE_EXADATA_INSIGHT", "ADD_EXADATA_INSIGHT_MEMBERS", "EXADATA_AUTO_SYNC", "UPDATE_OPSI_WAREHOUSE", "CREATE_OPSI_WAREHOUSE", "MOVE_OPSI_WAREHOUSE", "DELETE_OPSI_WAREHOUSE", "ROTATE_OPSI_WAREHOUSE_WALLET", "UPDATE_OPSI_WAREHOUSE_USER", "CREATE_OPSI_WAREHOUSE_USER", "MOVE_OPSI_WAREHOUSE_USER", "DELETE_OPSI_WAREHOUSE_USER", "UPDATE_AWRHUB", "CREATE_AWRHUB", "MOVE_AWRHUB", "DELETE_AWRHUB", "UPDATE_PRIVATE_ENDPOINT", "CREATE_PRIVATE_ENDPOINT", "MOVE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type operation_type: str
@@ -275,7 +291,7 @@ def operation_type(self):
**[Required]** Gets the operation_type of this WorkRequest.
Type of the work request
- Allowed values for this property are: "ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT", "CREATE_EXADATA_INSIGHT", "ENABLE_EXADATA_INSIGHT", "DISABLE_EXADATA_INSIGHT", "UPDATE_EXADATA_INSIGHT", "MOVE_EXADATA_INSIGHT", "DELETE_EXADATA_INSIGHT", "ADD_EXADATA_INSIGHT_MEMBERS", "EXADATA_AUTO_SYNC", "UPDATE_OPSI_WAREHOUSE", "CREATE_OPSI_WAREHOUSE", "MOVE_OPSI_WAREHOUSE", "DELETE_OPSI_WAREHOUSE", "ROTATE_OPSI_WAREHOUSE_WALLET", "UPDATE_OPSI_WAREHOUSE_USER", "CREATE_OPSI_WAREHOUSE_USER", "MOVE_OPSI_WAREHOUSE_USER", "DELETE_OPSI_WAREHOUSE_USER", "UPDATE_AWRHUB", "CREATE_AWRHUB", "MOVE_AWRHUB", "DELETE_AWRHUB", 'UNKNOWN_ENUM_VALUE'.
+ Allowed values for this property are: "ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT", "CREATE_EXADATA_INSIGHT", "ENABLE_EXADATA_INSIGHT", "DISABLE_EXADATA_INSIGHT", "UPDATE_EXADATA_INSIGHT", "MOVE_EXADATA_INSIGHT", "DELETE_EXADATA_INSIGHT", "ADD_EXADATA_INSIGHT_MEMBERS", "EXADATA_AUTO_SYNC", "UPDATE_OPSI_WAREHOUSE", "CREATE_OPSI_WAREHOUSE", "MOVE_OPSI_WAREHOUSE", "DELETE_OPSI_WAREHOUSE", "ROTATE_OPSI_WAREHOUSE_WALLET", "UPDATE_OPSI_WAREHOUSE_USER", "CREATE_OPSI_WAREHOUSE_USER", "MOVE_OPSI_WAREHOUSE_USER", "DELETE_OPSI_WAREHOUSE_USER", "UPDATE_AWRHUB", "CREATE_AWRHUB", "MOVE_AWRHUB", "DELETE_AWRHUB", "UPDATE_PRIVATE_ENDPOINT", "CREATE_PRIVATE_ENDPOINT", "MOVE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
@@ -294,7 +310,7 @@ def operation_type(self, operation_type):
:param operation_type: The operation_type of this WorkRequest.
:type: str
"""
- allowed_values = ["ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT", "CREATE_EXADATA_INSIGHT", "ENABLE_EXADATA_INSIGHT", "DISABLE_EXADATA_INSIGHT", "UPDATE_EXADATA_INSIGHT", "MOVE_EXADATA_INSIGHT", "DELETE_EXADATA_INSIGHT", "ADD_EXADATA_INSIGHT_MEMBERS", "EXADATA_AUTO_SYNC", "UPDATE_OPSI_WAREHOUSE", "CREATE_OPSI_WAREHOUSE", "MOVE_OPSI_WAREHOUSE", "DELETE_OPSI_WAREHOUSE", "ROTATE_OPSI_WAREHOUSE_WALLET", "UPDATE_OPSI_WAREHOUSE_USER", "CREATE_OPSI_WAREHOUSE_USER", "MOVE_OPSI_WAREHOUSE_USER", "DELETE_OPSI_WAREHOUSE_USER", "UPDATE_AWRHUB", "CREATE_AWRHUB", "MOVE_AWRHUB", "DELETE_AWRHUB"]
+ allowed_values = ["ENABLE_DATABASE_INSIGHT", "DISABLE_DATABASE_INSIGHT", "UPDATE_DATABASE_INSIGHT", "CREATE_DATABASE_INSIGHT", "MOVE_DATABASE_INSIGHT", "DELETE_DATABASE_INSIGHT", "CREATE_ENTERPRISE_MANAGER_BRIDGE", "UDPATE_ENTERPRISE_MANAGER_BRIDGE", "MOVE_ENTERPRISE_MANAGER_BRIDGE", "DELETE_ENTERPRISE_MANAGER_BRIDGE", "ENABLE_HOST_INSIGHT", "DISABLE_HOST_INSIGHT", "UPDATE_HOST_INSIGHT", "CREATE_HOST_INSIGHT", "MOVE_HOST_INSIGHT", "DELETE_HOST_INSIGHT", "CREATE_EXADATA_INSIGHT", "ENABLE_EXADATA_INSIGHT", "DISABLE_EXADATA_INSIGHT", "UPDATE_EXADATA_INSIGHT", "MOVE_EXADATA_INSIGHT", "DELETE_EXADATA_INSIGHT", "ADD_EXADATA_INSIGHT_MEMBERS", "EXADATA_AUTO_SYNC", "UPDATE_OPSI_WAREHOUSE", "CREATE_OPSI_WAREHOUSE", "MOVE_OPSI_WAREHOUSE", "DELETE_OPSI_WAREHOUSE", "ROTATE_OPSI_WAREHOUSE_WALLET", "UPDATE_OPSI_WAREHOUSE_USER", "CREATE_OPSI_WAREHOUSE_USER", "MOVE_OPSI_WAREHOUSE_USER", "DELETE_OPSI_WAREHOUSE_USER", "UPDATE_AWRHUB", "CREATE_AWRHUB", "MOVE_AWRHUB", "DELETE_AWRHUB", "UPDATE_PRIVATE_ENDPOINT", "CREATE_PRIVATE_ENDPOINT", "MOVE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT"]
if not value_allowed_none_or_none_sentinel(operation_type, allowed_values):
operation_type = 'UNKNOWN_ENUM_VALUE'
self._operation_type = operation_type
diff --git a/src/oci/opsi/operations_insights_client.py b/src/oci/opsi/operations_insights_client.py
index 57ef1b4e29..a10f49062f 100644
--- a/src/oci/opsi/operations_insights_client.py
+++ b/src/oci/opsi/operations_insights_client.py
@@ -625,6 +625,220 @@ def change_host_insight_compartment(self, host_insight_id, change_host_insight_c
header_params=header_params,
body=change_host_insight_compartment_details)
+ def change_operations_insights_private_endpoint_compartment(self, operations_insights_private_endpoint_id, change_operations_insights_private_endpoint_compartment_details, **kwargs):
+ """
+ Moves a private endpoint from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
+
+
+ :param str operations_insights_private_endpoint_id: (required)
+ The `OCID`__ of the Operation Insights private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.opsi.models.ChangeOperationsInsightsPrivateEndpointCompartmentDetails change_operations_insights_private_endpoint_compartment_details: (required)
+ The details used to change the compartment of a private endpoint
+
+ :param str if_match: (optional)
+ Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous get, create, or update 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 Oracle-assigned identifier for the request. If you need to contact
+ Oracle about a particular request, please provide the request ID.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request that can be retried in case of a timeout or
+ server error without risk of executing the same action again. Retry tokens expire after 24
+ hours.
+
+ *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting
+ operations, such as a resource being deleted or purged from the system.
+
+ :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_operations_insights_private_endpoint_compartment API.
+ """
+ resource_path = "/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}/actions/changeCompartment"
+ method = "POST"
+
+ # 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(
+ "change_operations_insights_private_endpoint_compartment got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "operationsInsightsPrivateEndpointId": operations_insights_private_endpoint_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('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ 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)
+ }
+ 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_operations_insights_private_endpoint_compartment_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=change_operations_insights_private_endpoint_compartment_details)
+
+ def change_pe_comanaged_database_insight(self, database_insight_id, change_pe_comanaged_database_insight_details, **kwargs):
+ """
+ Change the connection details of a co-managed database insight. When provided, If-Match is checked against ETag values of the resource.
+
+
+ :param str database_insight_id: (required)
+ Unique database insight identifier
+
+ :param oci.opsi.models.ChangePeComanagedDatabaseInsightDetails change_pe_comanaged_database_insight_details: (required)
+ The information to be updated.
+
+ :param str if_match: (optional)
+ Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous get, create, or update 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 Oracle-assigned identifier for the request. If you need to contact
+ Oracle about a particular request, please provide the request ID.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request that can be retried in case of a timeout or
+ server error without risk of executing the same action again. Retry tokens expire after 24
+ hours.
+
+ *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting
+ operations, such as a resource being deleted or purged from the system.
+
+ :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_pe_comanaged_database_insight API.
+ """
+ resource_path = "/databaseInsights/{databaseInsightId}/actions/changePeComanagedDatabaseInsightDetails"
+ method = "POST"
+
+ # 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(
+ "change_pe_comanaged_database_insight got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "databaseInsightId": database_insight_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('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ 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)
+ }
+ 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_pe_comanaged_database_insight_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=change_pe_comanaged_database_insight_details)
+
def create_awr_hub(self, create_awr_hub_details, **kwargs):
"""
Create a AWR hub resource for the tenant in Operations Insights.
@@ -1056,10 +1270,98 @@ def create_host_insight(self, create_host_insight_details, **kwargs):
body=create_host_insight_details,
response_type="HostInsight")
+ def create_operations_insights_private_endpoint(self, create_operations_insights_private_endpoint_details, **kwargs):
+ """
+ Create a private endpoint resource for the tenant in Operations Insights.
+ This resource will be created in customer compartment.
+
+
+ :param oci.opsi.models.CreateOperationsInsightsPrivateEndpointDetails create_operations_insights_private_endpoint_details: (required)
+ Details to create a new private endpoint.
+
+ :param str opc_retry_token: (optional)
+ A token that uniquely identifies a request that can be retried in case of a timeout or
+ server error without risk of executing the same action again. Retry tokens expire after 24
+ hours.
+
+ *Note:* Retry tokens can be invalidated before the 24 hour time limit due to conflicting
+ operations, such as a resource being deleted or purged from the system.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact
+ Oracle about a particular request, please provide the 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.opsi.models.OperationsInsightsPrivateEndpoint`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use create_operations_insights_private_endpoint API.
+ """
+ resource_path = "/operationsInsightsPrivateEndpoints"
+ method = "POST"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "opc_retry_token",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "create_operations_insights_private_endpoint got unknown kwargs: {!r}".format(extra_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)
+ }
+ 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,
+ header_params=header_params,
+ body=create_operations_insights_private_endpoint_details,
+ response_type="OperationsInsightsPrivateEndpoint")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ header_params=header_params,
+ body=create_operations_insights_private_endpoint_details,
+ response_type="OperationsInsightsPrivateEndpoint")
+
def create_operations_insights_warehouse(self, create_operations_insights_warehouse_details, **kwargs):
"""
Create a Operations Insights Warehouse resource for the tenant in Operations Insights. New ADW will be provisioned for this tenant.
- There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment.
+ There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment. If the 'opsi-warehouse-type'
+ header is passed to the API, a warehouse resource without ADW or Schema provisioning is created.
:param oci.opsi.models.CreateOperationsInsightsWarehouseDetails create_operations_insights_warehouse_details: (required)
@@ -1680,6 +1982,98 @@ def delete_host_insight(self, host_insight_id, **kwargs):
path_params=path_params,
header_params=header_params)
+ def delete_operations_insights_private_endpoint(self, operations_insights_private_endpoint_id, **kwargs):
+ """
+ Deletes a private endpoint.
+
+
+ :param str operations_insights_private_endpoint_id: (required)
+ The `OCID`__ of the Operation Insights private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param str if_match: (optional)
+ Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous get, create, or update 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 Oracle-assigned identifier for the request. If you need to contact
+ Oracle about a particular request, please provide the 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 None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use delete_operations_insights_private_endpoint API.
+ """
+ resource_path = "/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}"
+ method = "DELETE"
+
+ # 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(
+ "delete_operations_insights_private_endpoint got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "operationsInsightsPrivateEndpointId": operations_insights_private_endpoint_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('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ 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)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params)
+
def delete_operations_insights_warehouse(self, operations_insights_warehouse_id, **kwargs):
"""
Deletes an Operations Insights Warehouse. There is only expected to be 1 warehouse per tenant.
@@ -3017,10 +3411,95 @@ def get_exadata_insight(self, exadata_insight_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "get_exadata_insight got unknown kwargs: {!r}".format(extra_kwargs))
+ "get_exadata_insight got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "exadataInsightId": exadata_insight_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('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ 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="ExadataInsight")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ response_type="ExadataInsight")
+
+ def get_host_insight(self, host_insight_id, **kwargs):
+ """
+ Gets details of a host insight.
+
+
+ :param str host_insight_id: (required)
+ Unique host insight identifier
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact
+ Oracle about a particular request, please provide the 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.opsi.models.HostInsight`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use get_host_insight API.
+ """
+ resource_path = "/hostInsights/{hostInsightId}"
+ method = "GET"
+
+ # 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(
+ "get_host_insight got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "exadataInsightId": exadata_insight_id
+ "hostInsightId": host_insight_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3051,22 +3530,24 @@ def get_exadata_insight(self, exadata_insight_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- response_type="ExadataInsight")
+ response_type="HostInsight")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- response_type="ExadataInsight")
+ response_type="HostInsight")
- def get_host_insight(self, host_insight_id, **kwargs):
+ def get_operations_insights_private_endpoint(self, operations_insights_private_endpoint_id, **kwargs):
"""
- Gets details of a host insight.
+ Gets the details of the specified private endpoint.
- :param str host_insight_id: (required)
- Unique host insight identifier
+ :param str operations_insights_private_endpoint_id: (required)
+ The `OCID`__ of the Operation Insights private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param str opc_request_id: (optional)
Unique Oracle-assigned identifier for the request. If you need to contact
@@ -3084,13 +3565,13 @@ def get_host_insight(self, host_insight_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.opsi.models.HostInsight`
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.opsi.models.OperationsInsightsPrivateEndpoint`
:rtype: :class:`~oci.response.Response`
:example:
- Click `here `__ to see an example of how to use get_host_insight API.
+ Click `here `__ to see an example of how to use get_operations_insights_private_endpoint API.
"""
- resource_path = "/hostInsights/{hostInsightId}"
+ resource_path = "/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}"
method = "GET"
# Don't accept unknown kwargs
@@ -3102,10 +3583,10 @@ def get_host_insight(self, host_insight_id, **kwargs):
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
if extra_kwargs:
raise ValueError(
- "get_host_insight got unknown kwargs: {!r}".format(extra_kwargs))
+ "get_operations_insights_private_endpoint got unknown kwargs: {!r}".format(extra_kwargs))
path_params = {
- "hostInsightId": host_insight_id
+ "operationsInsightsPrivateEndpointId": operations_insights_private_endpoint_id
}
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
@@ -3136,14 +3617,14 @@ def get_host_insight(self, host_insight_id, **kwargs):
method=method,
path_params=path_params,
header_params=header_params,
- response_type="HostInsight")
+ response_type="OperationsInsightsPrivateEndpoint")
else:
return self.base_client.call_api(
resource_path=resource_path,
method=method,
path_params=path_params,
header_params=header_params,
- response_type="HostInsight")
+ response_type="OperationsInsightsPrivateEndpoint")
def get_operations_insights_warehouse(self, operations_insights_warehouse_id, **kwargs):
"""
@@ -4552,7 +5033,7 @@ def list_database_configurations(self, **kwargs):
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param int limit: (optional)
For list pagination. The maximum number of results per page, or items to
@@ -4665,7 +5146,7 @@ def list_database_configurations(self, **kwargs):
"list_database_configurations got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -4771,7 +5252,7 @@ def list_database_insights(self, **kwargs):
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -4817,6 +5298,9 @@ def list_database_insights(self, **kwargs):
:param bool compartment_id_in_subtree: (optional)
A flag to search all resources within a given compartment and all sub-compartments.
+ :param str opsi_private_endpoint_id: (optional)
+ Unique Operations Insights PrivateEndpoint identifier
+
:param str opc_request_id: (optional)
Unique Oracle-assigned identifier for the request. If you need to contact
Oracle about a particular request, please provide the request ID.
@@ -4860,6 +5344,7 @@ def list_database_insights(self, **kwargs):
"sort_by",
"exadata_insight_id",
"compartment_id_in_subtree",
+ "opsi_private_endpoint_id",
"opc_request_id"
]
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
@@ -4884,7 +5369,7 @@ def list_database_insights(self, **kwargs):
)
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -4927,7 +5412,8 @@ def list_database_insights(self, **kwargs):
"sortOrder": kwargs.get("sort_order", missing),
"sortBy": kwargs.get("sort_by", missing),
"exadataInsightId": kwargs.get("exadata_insight_id", missing),
- "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing)
+ "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing),
+ "opsiPrivateEndpointId": kwargs.get("opsi_private_endpoint_id", missing)
}
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
@@ -6346,6 +6832,179 @@ def list_importable_enterprise_manager_entities(self, enterprise_manager_bridge_
header_params=header_params,
response_type="ImportableEnterpriseManagerEntityCollection")
+ def list_operations_insights_private_endpoints(self, **kwargs):
+ """
+ Gets a list of Operation Insights private endpoints.
+
+
+ :param str compartment_id: (optional)
+ The `OCID`__ of the compartment.
+
+ __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
+
+ :param str display_name: (optional)
+ A filter to return only resources that match the entire display name.
+
+ :param str opsi_private_endpoint_id: (optional)
+ Unique Operations Insights PrivateEndpoint identifier
+
+ :param bool is_used_for_rac_dbs: (optional)
+ The option to filter OPSI private endpoints that can used for RAC. Should be used along with vcnId query parameter.
+
+ :param str vcn_id: (optional)
+ The `OCID`__ of the VCN.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param list[str] lifecycle_state: (optional)
+ Lifecycle states
+
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"
+
+ :param int limit: (optional)
+ For list pagination. The maximum number of results per page, or items to
+ return in a paginated \"List\" call.
+ For important details about how pagination works, see
+ `List Pagination`__.
+ Example: `50`
+
+ __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine
+
+ :param str page: (optional)
+ For list pagination. The value of the `opc-next-page` response header from
+ the previous \"List\" call. For important details about how pagination works,
+ see `List Pagination`__.
+
+ __ https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine
+
+ :param str sort_order: (optional)
+ The sort order to use, either ascending (`ASC`) or descending (`DESC`).
+
+ Allowed values are: "ASC", "DESC"
+
+ :param str sort_by: (optional)
+ The field to sort private endpoints.
+
+ Allowed values are: "timeCreated", "id", "displayName"
+
+ :param bool compartment_id_in_subtree: (optional)
+ A flag to search all resources within a given compartment and all sub-compartments.
+
+ :param str opc_request_id: (optional)
+ Unique Oracle-assigned identifier for the request. If you need to contact
+ Oracle about a particular request, please provide the 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.opsi.models.OperationsInsightsPrivateEndpointCollection`
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use list_operations_insights_private_endpoints API.
+ """
+ resource_path = "/operationsInsightsPrivateEndpoints"
+ method = "GET"
+
+ # Don't accept unknown kwargs
+ expected_kwargs = [
+ "allow_control_chars",
+ "retry_strategy",
+ "compartment_id",
+ "display_name",
+ "opsi_private_endpoint_id",
+ "is_used_for_rac_dbs",
+ "vcn_id",
+ "lifecycle_state",
+ "limit",
+ "page",
+ "sort_order",
+ "sort_by",
+ "compartment_id_in_subtree",
+ "opc_request_id"
+ ]
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
+ if extra_kwargs:
+ raise ValueError(
+ "list_operations_insights_private_endpoints got unknown kwargs: {!r}".format(extra_kwargs))
+
+ if 'lifecycle_state' in kwargs:
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"]
+ for lifecycle_state_item in kwargs['lifecycle_state']:
+ if lifecycle_state_item not in lifecycle_state_allowed_values:
+ raise ValueError(
+ "Invalid value for `lifecycle_state`, must be one of {0}".format(lifecycle_state_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(
+ "Invalid value for `sort_order`, must be one of {0}".format(sort_order_allowed_values)
+ )
+
+ if 'sort_by' in kwargs:
+ sort_by_allowed_values = ["timeCreated", "id", "displayName"]
+ if kwargs['sort_by'] not in sort_by_allowed_values:
+ raise ValueError(
+ "Invalid value for `sort_by`, must be one of {0}".format(sort_by_allowed_values)
+ )
+
+ query_params = {
+ "compartmentId": kwargs.get("compartment_id", missing),
+ "displayName": kwargs.get("display_name", missing),
+ "opsiPrivateEndpointId": kwargs.get("opsi_private_endpoint_id", missing),
+ "isUsedForRacDbs": kwargs.get("is_used_for_rac_dbs", missing),
+ "vcnId": kwargs.get("vcn_id", missing),
+ "lifecycleState": self.base_client.generate_collection_format_param(kwargs.get("lifecycle_state", missing), 'multi'),
+ "limit": kwargs.get("limit", missing),
+ "page": kwargs.get("page", missing),
+ "sortOrder": kwargs.get("sort_order", missing),
+ "sortBy": kwargs.get("sort_by", missing),
+ "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing)
+ }
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
+
+ header_params = {
+ "accept": "application/json",
+ "content-type": "application/json",
+ "opc-request-id": kwargs.get("opc_request_id", missing)
+ }
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
+
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
+ operation_retry_strategy=kwargs.get('retry_strategy'),
+ client_retry_strategy=self.retry_strategy
+ )
+
+ if retry_strategy:
+ 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="OperationsInsightsPrivateEndpointCollection")
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ query_params=query_params,
+ header_params=header_params,
+ response_type="OperationsInsightsPrivateEndpointCollection")
+
def list_operations_insights_warehouse_users(self, operations_insights_warehouse_id, **kwargs):
"""
Gets a list of Operations Insights Warehouse users. Either compartmentId or id must be specified. All these resources are expected to be in root compartment.
@@ -7805,7 +8464,7 @@ def summarize_database_insight_resource_capacity_trend(self, compartment_id, res
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -7947,7 +8606,7 @@ def summarize_database_insight_resource_capacity_trend(self, compartment_id, res
"summarize_database_insight_resource_capacity_trend got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -8070,7 +8729,7 @@ def summarize_database_insight_resource_forecast_trend(self, compartment_id, res
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -8228,7 +8887,7 @@ def summarize_database_insight_resource_forecast_trend(self, compartment_id, res
"summarize_database_insight_resource_forecast_trend got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -8353,7 +9012,7 @@ def summarize_database_insight_resource_statistics(self, compartment_id, resourc
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -8505,7 +9164,7 @@ def summarize_database_insight_resource_statistics(self, compartment_id, resourc
"summarize_database_insight_resource_statistics got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -8625,7 +9284,7 @@ def summarize_database_insight_resource_usage(self, compartment_id, resource_met
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -8741,7 +9400,7 @@ def summarize_database_insight_resource_usage(self, compartment_id, resource_met
"summarize_database_insight_resource_usage got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -8840,7 +9499,7 @@ def summarize_database_insight_resource_usage_trend(self, compartment_id, resour
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -8964,7 +9623,7 @@ def summarize_database_insight_resource_usage_trend(self, compartment_id, resour
"summarize_database_insight_resource_usage_trend got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -9077,7 +9736,7 @@ def summarize_database_insight_resource_utilization_insight(self, compartment_id
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -9193,7 +9852,7 @@ def summarize_database_insight_resource_utilization_insight(self, compartment_id
"summarize_database_insight_resource_utilization_insight got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -12727,7 +13386,7 @@ def summarize_sql_insights(self, compartment_id, **kwargs):
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -12860,7 +13519,7 @@ def summarize_sql_insights(self, compartment_id, **kwargs):
"summarize_sql_insights got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -13206,7 +13865,7 @@ def summarize_sql_statistics(self, compartment_id, **kwargs):
Filter by one or more database type.
Possible values are ADW-S, ATP-S, ADW-D, ATP-D, EXTERNAL-PDB, EXTERNAL-NONCDB.
- Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"
+ Allowed values are: "ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"
:param list[str] database_id: (optional)
Optional list of database `OCIDs`__ of the associated DBaaS entity.
@@ -13373,7 +14032,7 @@ def summarize_sql_statistics(self, compartment_id, **kwargs):
"summarize_sql_statistics got unknown kwargs: {!r}".format(extra_kwargs))
if 'database_type' in kwargs:
- database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB"]
+ database_type_allowed_values = ["ADW-S", "ATP-S", "ADW-D", "ATP-D", "EXTERNAL-PDB", "EXTERNAL-NONCDB", "COMANAGED-VM-CDB", "COMANAGED-VM-PDB", "COMANAGED-VM-NONCDB", "COMANAGED-BM-CDB", "COMANAGED-BM-PDB", "COMANAGED-BM-NONCDB", "COMANAGED-EXACS-CDB", "COMANAGED-EXACS-PDB", "COMANAGED-EXACS-NONCDB"]
for database_type_item in kwargs['database_type']:
if database_type_item not in database_type_allowed_values:
raise ValueError(
@@ -14261,6 +14920,103 @@ def update_host_insight(self, host_insight_id, update_host_insight_details, **kw
header_params=header_params,
body=update_host_insight_details)
+ def update_operations_insights_private_endpoint(self, operations_insights_private_endpoint_id, update_operations_insights_private_endpoint_details, **kwargs):
+ """
+ Updates one or more attributes of the specified private endpoint.
+
+
+ :param str operations_insights_private_endpoint_id: (required)
+ The `OCID`__ of the Operation Insights private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.opsi.models.UpdateOperationsInsightsPrivateEndpointDetails update_operations_insights_private_endpoint_details: (required)
+ The details used to update a private endpoint.
+
+ :param str if_match: (optional)
+ Used for optimistic concurrency control. In the update or delete call for a resource, set the `if-match`
+ parameter to the value of the etag from a previous get, create, or update 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 Oracle-assigned identifier for the request. If you need to contact
+ Oracle about a particular request, please provide the 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 None
+ :rtype: :class:`~oci.response.Response`
+
+ :example:
+ Click `here `__ to see an example of how to use update_operations_insights_private_endpoint API.
+ """
+ resource_path = "/operationsInsightsPrivateEndpoints/{operationsInsightsPrivateEndpointId}"
+ method = "PUT"
+
+ # 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(
+ "update_operations_insights_private_endpoint got unknown kwargs: {!r}".format(extra_kwargs))
+
+ path_params = {
+ "operationsInsightsPrivateEndpointId": operations_insights_private_endpoint_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('Parameter {} cannot be None, whitespace or empty string'.format(k))
+
+ 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,
+ body=update_operations_insights_private_endpoint_details)
+ else:
+ return self.base_client.call_api(
+ resource_path=resource_path,
+ method=method,
+ path_params=path_params,
+ header_params=header_params,
+ body=update_operations_insights_private_endpoint_details)
+
def update_operations_insights_warehouse(self, operations_insights_warehouse_id, update_operations_insights_warehouse_details, **kwargs):
"""
Updates the configuration of an Operations Insights Warehouse.
diff --git a/src/oci/opsi/operations_insights_client_composite_operations.py b/src/oci/opsi/operations_insights_client_composite_operations.py
index 2abdf1ab57..106a1f2c6d 100644
--- a/src/oci/opsi/operations_insights_client_composite_operations.py
+++ b/src/oci/opsi/operations_insights_client_composite_operations.py
@@ -228,6 +228,90 @@ def change_host_insight_compartment_and_wait_for_state(self, host_insight_id, ch
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def change_operations_insights_private_endpoint_compartment_and_wait_for_state(self, operations_insights_private_endpoint_id, change_operations_insights_private_endpoint_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.opsi.OperationsInsightsClient.change_operations_insights_private_endpoint_compartment` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str operations_insights_private_endpoint_id: (required)
+ The `OCID`__ of the Operation Insights private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.opsi.models.ChangeOperationsInsightsPrivateEndpointCompartmentDetails change_operations_insights_private_endpoint_compartment_details: (required)
+ The details used to change the compartment of a private endpoint
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.change_operations_insights_private_endpoint_compartment`
+
+ :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.change_operations_insights_private_endpoint_compartment(operations_insights_private_endpoint_id, change_operations_insights_private_endpoint_compartment_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
+ def change_pe_comanaged_database_insight_and_wait_for_state(self, database_insight_id, change_pe_comanaged_database_insight_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.opsi.OperationsInsightsClient.change_pe_comanaged_database_insight` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str database_insight_id: (required)
+ Unique database insight identifier
+
+ :param oci.opsi.models.ChangePeComanagedDatabaseInsightDetails change_pe_comanaged_database_insight_details: (required)
+ The information to be updated.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.change_pe_comanaged_database_insight`
+
+ :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.change_pe_comanaged_database_insight(database_insight_id, change_pe_comanaged_database_insight_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def create_awr_hub_and_wait_for_state(self, create_awr_hub_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_awr_hub` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
@@ -418,6 +502,44 @@ def create_host_insight_and_wait_for_state(self, create_host_insight_details, wa
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def create_operations_insights_private_endpoint_and_wait_for_state(self, create_operations_insights_private_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_operations_insights_private_endpoint` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
+ to enter the given state(s).
+
+ :param oci.opsi.models.CreateOperationsInsightsPrivateEndpointDetails create_operations_insights_private_endpoint_details: (required)
+ Details to create a new private endpoint.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.create_operations_insights_private_endpoint`
+
+ :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.create_operations_insights_private_endpoint(create_operations_insights_private_endpoint_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def create_operations_insights_warehouse_and_wait_for_state(self, create_operations_insights_warehouse_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.create_operations_insights_warehouse` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
@@ -724,6 +846,54 @@ def delete_host_insight_and_wait_for_state(self, host_insight_id, wait_for_state
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def delete_operations_insights_private_endpoint_and_wait_for_state(self, operations_insights_private_endpoint_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_operations_insights_private_endpoint` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str operations_insights_private_endpoint_id: (required)
+ The `OCID`__ of the Operation Insights private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.delete_operations_insights_private_endpoint`
+
+ :param dict waiter_kwargs:
+ A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
+ """
+ operation_result = None
+ try:
+ operation_result = self.client.delete_operations_insights_private_endpoint(operations_insights_private_endpoint_id, **operation_kwargs)
+ except oci.exceptions.ServiceError as e:
+ if e.status == 404:
+ return WAIT_RESOURCE_NOT_FOUND
+ else:
+ raise e
+
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def delete_operations_insights_warehouse_and_wait_for_state(self, operations_insights_warehouse_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.delete_operations_insights_warehouse` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
@@ -1296,6 +1466,49 @@ def update_host_insight_and_wait_for_state(self, host_insight_id, update_host_in
except Exception as e:
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+ def update_operations_insights_private_endpoint_and_wait_for_state(self, operations_insights_private_endpoint_id, update_operations_insights_private_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
+ """
+ Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_operations_insights_private_endpoint` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
+ to enter the given state(s).
+
+ :param str operations_insights_private_endpoint_id: (required)
+ The `OCID`__ of the Operation Insights private endpoint.
+
+ __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
+
+ :param oci.opsi.models.UpdateOperationsInsightsPrivateEndpointDetails update_operations_insights_private_endpoint_details: (required)
+ The details used to update a private endpoint.
+
+ :param list[str] wait_for_states:
+ An array of states to wait on. These should be valid values for :py:attr:`~oci.opsi.models.WorkRequest.status`
+
+ :param dict operation_kwargs:
+ A dictionary of keyword arguments to pass to :py:func:`~oci.opsi.OperationsInsightsClient.update_operations_insights_private_endpoint`
+
+ :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.update_operations_insights_private_endpoint(operations_insights_private_endpoint_id, update_operations_insights_private_endpoint_details, **operation_kwargs)
+ if not wait_for_states:
+ return operation_result
+
+ lowered_wait_for_states = [w.lower() for w in wait_for_states]
+ wait_for_resource_id = operation_result.headers['opc-work-request-id']
+
+ try:
+ waiter_result = oci.wait_until(
+ self.client,
+ self.client.get_work_request(wait_for_resource_id),
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
+ **waiter_kwargs
+ )
+ result_to_return = waiter_result
+
+ return result_to_return
+ except Exception as e:
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
+
def update_operations_insights_warehouse_and_wait_for_state(self, operations_insights_warehouse_id, update_operations_insights_warehouse_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
"""
Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_operations_insights_warehouse` and waits for the :py:class:`~oci.opsi.models.WorkRequest`
diff --git a/src/oci/version.py b/src/oci/version.py
index 35bde4d5e3..e93dced7b6 100644
--- a/src/oci/version.py
+++ b/src/oci/version.py
@@ -2,4 +2,4 @@
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
-__version__ = "2.60.1"
+__version__ = "2.61.0"