diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7f2e9f1f8..39f819989 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,29 @@ Change Log All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. +==================== +2.135.0 - 2024-09-24 +==================== + +Added +----- +* Support for Generative AI Agent service +* Support for undeleting autonomous databases in the Database service +* Support for assigning key versions for the pluggable databases in the Database service +* Support for lifecycle states on list autonomous database operation in the Database service +* Support for data masking parameter on list refresh activity operation in the Fusion Application as a Service +* Support for configuring custom endpoints on an instance in the Integration Cloud service +* Support for updating channel schedules on instance create operation in the Analytics service +* Support for ExaCC via management agents in the Operations Insights service +* Support for appending and deleting allowed SQLs from SQL firewall policies in the Data Safe service +* Support for alarm suppressions with compartment targets and recurring schedules in the Monitoring service + +Breaking +-------- +* A new value called `UNKNOWN_ENUM_VALUE` has been added to the enums of the parent class when a subclass is in the responses returned from services. If a service returns a value that cannot be recognized by the version of the SDK, then the enum will be set to this value. Previously this would throw an exception. +* Property `dimensions` changed from required to optional in model `AlarmSuppressionSummary` in the Monitoring service +* Value `STANDBY` was removed from the property `lifecycle_state` in models `IntegrationInstance` and `IntegrationInstanceSummary` in the Integration Cloud service + ==================== 2.134.0 - 2024-09-17 ==================== diff --git a/docs/api/data_safe.rst b/docs/api/data_safe.rst index ff9dc608c..523b416d3 100644 --- a/docs/api/data_safe.rst +++ b/docs/api/data_safe.rst @@ -65,6 +65,8 @@ Data Safe oci.data_safe.models.AutonomousDatabaseDetails oci.data_safe.models.AvailableAuditVolumeCollection oci.data_safe.models.AvailableAuditVolumeSummary + oci.data_safe.models.BulkCreateSqlFirewallAllowedSqlsDetails + oci.data_safe.models.BulkDeleteSqlFirewallAllowedSqlsDetails oci.data_safe.models.CalculateAuditVolumeAvailableDetails oci.data_safe.models.CalculateAuditVolumeCollectedDetails oci.data_safe.models.ChangeAlertCompartmentDetails @@ -206,6 +208,7 @@ Data Safe oci.data_safe.models.LibraryMaskingFormatCollection oci.data_safe.models.LibraryMaskingFormatEntry oci.data_safe.models.LibraryMaskingFormatSummary + oci.data_safe.models.ListSelectionMode oci.data_safe.models.MaskDataDetails oci.data_safe.models.MaskedColumnCollection oci.data_safe.models.MaskedColumnSummary @@ -248,6 +251,7 @@ Data Safe oci.data_safe.models.PatchRemoveInstruction oci.data_safe.models.PatchSdmMaskingPolicyDifferenceColumnsDetails oci.data_safe.models.PatchSensitiveColumnDetails + oci.data_safe.models.PatchSqlFirewallAllowedSqlDetails oci.data_safe.models.PatchTargetAlertPolicyAssociationDetails oci.data_safe.models.PatternFormatEntry oci.data_safe.models.PeerTargetDatabase @@ -286,6 +290,7 @@ Data Safe oci.data_safe.models.ScheduleAuditReportDetails oci.data_safe.models.ScheduleReportDetails oci.data_safe.models.SchemaSummary + oci.data_safe.models.ScimQuerySelectionMode oci.data_safe.models.SdmMaskingPolicyDifference oci.data_safe.models.SdmMaskingPolicyDifferenceCollection oci.data_safe.models.SdmMaskingPolicyDifferenceColumnCollection @@ -314,6 +319,7 @@ Data Safe oci.data_safe.models.SecurityPolicyReportCollection oci.data_safe.models.SecurityPolicyReportSummary oci.data_safe.models.SecurityPolicySummary + oci.data_safe.models.SelectionDetails oci.data_safe.models.SensitiveCategory oci.data_safe.models.SensitiveColumn oci.data_safe.models.SensitiveColumnCollection diff --git a/docs/api/data_safe/models/oci.data_safe.models.BulkCreateSqlFirewallAllowedSqlsDetails.rst b/docs/api/data_safe/models/oci.data_safe.models.BulkCreateSqlFirewallAllowedSqlsDetails.rst new file mode 100644 index 000000000..3ed35bbf7 --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.BulkCreateSqlFirewallAllowedSqlsDetails.rst @@ -0,0 +1,11 @@ +BulkCreateSqlFirewallAllowedSqlsDetails +======================================= + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: BulkCreateSqlFirewallAllowedSqlsDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.BulkDeleteSqlFirewallAllowedSqlsDetails.rst b/docs/api/data_safe/models/oci.data_safe.models.BulkDeleteSqlFirewallAllowedSqlsDetails.rst new file mode 100644 index 000000000..892987b21 --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.BulkDeleteSqlFirewallAllowedSqlsDetails.rst @@ -0,0 +1,11 @@ +BulkDeleteSqlFirewallAllowedSqlsDetails +======================================= + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: BulkDeleteSqlFirewallAllowedSqlsDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.ListSelectionMode.rst b/docs/api/data_safe/models/oci.data_safe.models.ListSelectionMode.rst new file mode 100644 index 000000000..6bf4d7c5f --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.ListSelectionMode.rst @@ -0,0 +1,11 @@ +ListSelectionMode +================= + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: ListSelectionMode + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.PatchSqlFirewallAllowedSqlDetails.rst b/docs/api/data_safe/models/oci.data_safe.models.PatchSqlFirewallAllowedSqlDetails.rst new file mode 100644 index 000000000..17204a26f --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.PatchSqlFirewallAllowedSqlDetails.rst @@ -0,0 +1,11 @@ +PatchSqlFirewallAllowedSqlDetails +================================= + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: PatchSqlFirewallAllowedSqlDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.ScimQuerySelectionMode.rst b/docs/api/data_safe/models/oci.data_safe.models.ScimQuerySelectionMode.rst new file mode 100644 index 000000000..8a952c46c --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.ScimQuerySelectionMode.rst @@ -0,0 +1,11 @@ +ScimQuerySelectionMode +====================== + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: ScimQuerySelectionMode + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_safe/models/oci.data_safe.models.SelectionDetails.rst b/docs/api/data_safe/models/oci.data_safe.models.SelectionDetails.rst new file mode 100644 index 000000000..1840e0559 --- /dev/null +++ b/docs/api/data_safe/models/oci.data_safe.models.SelectionDetails.rst @@ -0,0 +1,11 @@ +SelectionDetails +================ + +.. currentmodule:: oci.data_safe.models + +.. autoclass:: SelectionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database.rst b/docs/api/database.rst index 0140fe47c..56f239c6b 100644 --- a/docs/api/database.rst +++ b/docs/api/database.rst @@ -342,6 +342,7 @@ Database oci.database.models.NetworkBondingModeDetails oci.database.models.NodeDetails oci.database.models.OCPUs + oci.database.models.OciProviderSetKeyVersionDetails oci.database.models.OneoffPatch oci.database.models.OneoffPatchSummary oci.database.models.OperationsInsightsConfig @@ -397,11 +398,13 @@ Database oci.database.models.SchedulingWindow oci.database.models.SchedulingWindowSummary oci.database.models.SelfMountDetails + oci.database.models.SetKeyVersionDetails oci.database.models.StackMonitoringConfig oci.database.models.StoragePerformanceDetails oci.database.models.SwitchoverDataGuardAssociationDetails oci.database.models.SystemVersionCollection oci.database.models.SystemVersionSummary + oci.database.models.UndeleteAutonomousDatabaseDetails oci.database.models.Update oci.database.models.UpdateAutonomousContainerDatabaseDataGuardAssociationDetails oci.database.models.UpdateAutonomousContainerDatabaseDetails diff --git a/docs/api/database/models/oci.database.models.OciProviderSetKeyVersionDetails.rst b/docs/api/database/models/oci.database.models.OciProviderSetKeyVersionDetails.rst new file mode 100644 index 000000000..a7c7aeb1b --- /dev/null +++ b/docs/api/database/models/oci.database.models.OciProviderSetKeyVersionDetails.rst @@ -0,0 +1,11 @@ +OciProviderSetKeyVersionDetails +=============================== + +.. currentmodule:: oci.database.models + +.. autoclass:: OciProviderSetKeyVersionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.SetKeyVersionDetails.rst b/docs/api/database/models/oci.database.models.SetKeyVersionDetails.rst new file mode 100644 index 000000000..4c289ee61 --- /dev/null +++ b/docs/api/database/models/oci.database.models.SetKeyVersionDetails.rst @@ -0,0 +1,11 @@ +SetKeyVersionDetails +==================== + +.. currentmodule:: oci.database.models + +.. autoclass:: SetKeyVersionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database/models/oci.database.models.UndeleteAutonomousDatabaseDetails.rst b/docs/api/database/models/oci.database.models.UndeleteAutonomousDatabaseDetails.rst new file mode 100644 index 000000000..ab6e53086 --- /dev/null +++ b/docs/api/database/models/oci.database.models.UndeleteAutonomousDatabaseDetails.rst @@ -0,0 +1,11 @@ +UndeleteAutonomousDatabaseDetails +================================= + +.. currentmodule:: oci.database.models + +.. autoclass:: UndeleteAutonomousDatabaseDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent.rst b/docs/api/generative_ai_agent.rst new file mode 100644 index 000000000..a8abf475b --- /dev/null +++ b/docs/api/generative_ai_agent.rst @@ -0,0 +1,73 @@ +Generative Ai Agent +=================== + +.. autosummary:: + :toctree: generative_ai_agent/client + :nosignatures: + :template: autosummary/service_client.rst + + oci.generative_ai_agent.GenerativeAiAgentClient + oci.generative_ai_agent.GenerativeAiAgentClientCompositeOperations + +-------- + Models +-------- + +.. autosummary:: + :toctree: generative_ai_agent/models + :nosignatures: + :template: autosummary/model_class.rst + + oci.generative_ai_agent.models.Agent + oci.generative_ai_agent.models.AgentCollection + oci.generative_ai_agent.models.AgentEndpoint + oci.generative_ai_agent.models.AgentEndpointCollection + oci.generative_ai_agent.models.AgentEndpointSummary + oci.generative_ai_agent.models.AgentSummary + oci.generative_ai_agent.models.BasicAuthSecret + oci.generative_ai_agent.models.ChangeAgentCompartmentDetails + oci.generative_ai_agent.models.ChangeAgentEndpointCompartmentDetails + oci.generative_ai_agent.models.ChangeKnowledgeBaseCompartmentDetails + oci.generative_ai_agent.models.ContentModerationConfig + oci.generative_ai_agent.models.CreateAgentDetails + oci.generative_ai_agent.models.CreateAgentEndpointDetails + oci.generative_ai_agent.models.CreateDataIngestionJobDetails + oci.generative_ai_agent.models.CreateDataSourceDetails + oci.generative_ai_agent.models.CreateKnowledgeBaseDetails + oci.generative_ai_agent.models.DataIngestionJob + oci.generative_ai_agent.models.DataIngestionJobCollection + oci.generative_ai_agent.models.DataIngestionJobStatistics + oci.generative_ai_agent.models.DataIngestionJobSummary + oci.generative_ai_agent.models.DataSource + oci.generative_ai_agent.models.DataSourceCollection + oci.generative_ai_agent.models.DataSourceConfig + oci.generative_ai_agent.models.DataSourceSummary + oci.generative_ai_agent.models.DatabaseConnection + oci.generative_ai_agent.models.DatabaseFunction + oci.generative_ai_agent.models.DatabaseToolConnection + oci.generative_ai_agent.models.DefaultIndexConfig + oci.generative_ai_agent.models.IdcsSecret + oci.generative_ai_agent.models.Index + oci.generative_ai_agent.models.IndexConfig + oci.generative_ai_agent.models.IndexSchema + oci.generative_ai_agent.models.KnowledgeBase + oci.generative_ai_agent.models.KnowledgeBaseCollection + oci.generative_ai_agent.models.KnowledgeBaseSummary + oci.generative_ai_agent.models.ObjectStoragePrefix + oci.generative_ai_agent.models.OciDatabaseConfig + oci.generative_ai_agent.models.OciObjectStorageDataSourceConfig + oci.generative_ai_agent.models.OciOpenSearchIndexConfig + oci.generative_ai_agent.models.SecretDetail + oci.generative_ai_agent.models.SessionConfig + oci.generative_ai_agent.models.UpdateAgentDetails + oci.generative_ai_agent.models.UpdateAgentEndpointDetails + oci.generative_ai_agent.models.UpdateDataSourceDetails + oci.generative_ai_agent.models.UpdateKnowledgeBaseDetails + oci.generative_ai_agent.models.WorkRequest + oci.generative_ai_agent.models.WorkRequestError + oci.generative_ai_agent.models.WorkRequestErrorCollection + oci.generative_ai_agent.models.WorkRequestLogEntry + oci.generative_ai_agent.models.WorkRequestLogEntryCollection + oci.generative_ai_agent.models.WorkRequestResource + oci.generative_ai_agent.models.WorkRequestSummary + oci.generative_ai_agent.models.WorkRequestSummaryCollection diff --git a/docs/api/generative_ai_agent/client/oci.generative_ai_agent.GenerativeAiAgentClient.rst b/docs/api/generative_ai_agent/client/oci.generative_ai_agent.GenerativeAiAgentClient.rst new file mode 100644 index 000000000..02652f959 --- /dev/null +++ b/docs/api/generative_ai_agent/client/oci.generative_ai_agent.GenerativeAiAgentClient.rst @@ -0,0 +1,8 @@ +GenerativeAiAgentClient +======================= + +.. currentmodule:: oci.generative_ai_agent + +.. autoclass:: GenerativeAiAgentClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/client/oci.generative_ai_agent.GenerativeAiAgentClientCompositeOperations.rst b/docs/api/generative_ai_agent/client/oci.generative_ai_agent.GenerativeAiAgentClientCompositeOperations.rst new file mode 100644 index 000000000..bb050975e --- /dev/null +++ b/docs/api/generative_ai_agent/client/oci.generative_ai_agent.GenerativeAiAgentClientCompositeOperations.rst @@ -0,0 +1,8 @@ +GenerativeAiAgentClientCompositeOperations +========================================== + +.. currentmodule:: oci.generative_ai_agent + +.. autoclass:: GenerativeAiAgentClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.Agent.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.Agent.rst new file mode 100644 index 000000000..a08c67e2d --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.Agent.rst @@ -0,0 +1,11 @@ +Agent +===== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: Agent + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentCollection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentCollection.rst new file mode 100644 index 000000000..23795174c --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentCollection.rst @@ -0,0 +1,11 @@ +AgentCollection +=============== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: AgentCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpoint.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpoint.rst new file mode 100644 index 000000000..e87be1844 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpoint.rst @@ -0,0 +1,11 @@ +AgentEndpoint +============= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: AgentEndpoint + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpointCollection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpointCollection.rst new file mode 100644 index 000000000..7389ee647 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpointCollection.rst @@ -0,0 +1,11 @@ +AgentEndpointCollection +======================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: AgentEndpointCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpointSummary.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpointSummary.rst new file mode 100644 index 000000000..ff1229da2 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentEndpointSummary.rst @@ -0,0 +1,11 @@ +AgentEndpointSummary +==================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: AgentEndpointSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentSummary.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentSummary.rst new file mode 100644 index 000000000..3ade5ae46 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.AgentSummary.rst @@ -0,0 +1,11 @@ +AgentSummary +============ + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: AgentSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.BasicAuthSecret.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.BasicAuthSecret.rst new file mode 100644 index 000000000..995a8f5fb --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.BasicAuthSecret.rst @@ -0,0 +1,11 @@ +BasicAuthSecret +=============== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: BasicAuthSecret + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeAgentCompartmentDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeAgentCompartmentDetails.rst new file mode 100644 index 000000000..00100b287 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeAgentCompartmentDetails.rst @@ -0,0 +1,11 @@ +ChangeAgentCompartmentDetails +============================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: ChangeAgentCompartmentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeAgentEndpointCompartmentDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeAgentEndpointCompartmentDetails.rst new file mode 100644 index 000000000..eede2f88b --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeAgentEndpointCompartmentDetails.rst @@ -0,0 +1,11 @@ +ChangeAgentEndpointCompartmentDetails +===================================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: ChangeAgentEndpointCompartmentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeKnowledgeBaseCompartmentDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeKnowledgeBaseCompartmentDetails.rst new file mode 100644 index 000000000..34d1e7468 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ChangeKnowledgeBaseCompartmentDetails.rst @@ -0,0 +1,11 @@ +ChangeKnowledgeBaseCompartmentDetails +===================================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: ChangeKnowledgeBaseCompartmentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ContentModerationConfig.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ContentModerationConfig.rst new file mode 100644 index 000000000..194986e1b --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ContentModerationConfig.rst @@ -0,0 +1,11 @@ +ContentModerationConfig +======================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: ContentModerationConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateAgentDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateAgentDetails.rst new file mode 100644 index 000000000..8589421b6 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateAgentDetails.rst @@ -0,0 +1,11 @@ +CreateAgentDetails +================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: CreateAgentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateAgentEndpointDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateAgentEndpointDetails.rst new file mode 100644 index 000000000..6753734b7 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateAgentEndpointDetails.rst @@ -0,0 +1,11 @@ +CreateAgentEndpointDetails +========================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: CreateAgentEndpointDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateDataIngestionJobDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateDataIngestionJobDetails.rst new file mode 100644 index 000000000..83cad15a4 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateDataIngestionJobDetails.rst @@ -0,0 +1,11 @@ +CreateDataIngestionJobDetails +============================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: CreateDataIngestionJobDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateDataSourceDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateDataSourceDetails.rst new file mode 100644 index 000000000..1b5099ea6 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateDataSourceDetails.rst @@ -0,0 +1,11 @@ +CreateDataSourceDetails +======================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: CreateDataSourceDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateKnowledgeBaseDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateKnowledgeBaseDetails.rst new file mode 100644 index 000000000..f2a2c79a1 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.CreateKnowledgeBaseDetails.rst @@ -0,0 +1,11 @@ +CreateKnowledgeBaseDetails +========================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: CreateKnowledgeBaseDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJob.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJob.rst new file mode 100644 index 000000000..e360a3123 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJob.rst @@ -0,0 +1,11 @@ +DataIngestionJob +================ + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DataIngestionJob + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobCollection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobCollection.rst new file mode 100644 index 000000000..1283c66ad --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobCollection.rst @@ -0,0 +1,11 @@ +DataIngestionJobCollection +========================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DataIngestionJobCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobStatistics.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobStatistics.rst new file mode 100644 index 000000000..e4dede731 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobStatistics.rst @@ -0,0 +1,11 @@ +DataIngestionJobStatistics +========================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DataIngestionJobStatistics + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobSummary.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobSummary.rst new file mode 100644 index 000000000..34b7793ca --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataIngestionJobSummary.rst @@ -0,0 +1,11 @@ +DataIngestionJobSummary +======================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DataIngestionJobSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSource.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSource.rst new file mode 100644 index 000000000..92bcff64e --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSource.rst @@ -0,0 +1,11 @@ +DataSource +========== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DataSource + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceCollection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceCollection.rst new file mode 100644 index 000000000..64ff4e29b --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceCollection.rst @@ -0,0 +1,11 @@ +DataSourceCollection +==================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DataSourceCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceConfig.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceConfig.rst new file mode 100644 index 000000000..694c9de4d --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceConfig.rst @@ -0,0 +1,11 @@ +DataSourceConfig +================ + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DataSourceConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceSummary.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceSummary.rst new file mode 100644 index 000000000..10d4c90b9 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DataSourceSummary.rst @@ -0,0 +1,11 @@ +DataSourceSummary +================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DataSourceSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseConnection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseConnection.rst new file mode 100644 index 000000000..cfc96794b --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseConnection.rst @@ -0,0 +1,11 @@ +DatabaseConnection +================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DatabaseConnection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseFunction.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseFunction.rst new file mode 100644 index 000000000..f5ec907d7 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseFunction.rst @@ -0,0 +1,11 @@ +DatabaseFunction +================ + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DatabaseFunction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseToolConnection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseToolConnection.rst new file mode 100644 index 000000000..06809e770 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DatabaseToolConnection.rst @@ -0,0 +1,11 @@ +DatabaseToolConnection +====================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DatabaseToolConnection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DefaultIndexConfig.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DefaultIndexConfig.rst new file mode 100644 index 000000000..cd821530c --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.DefaultIndexConfig.rst @@ -0,0 +1,11 @@ +DefaultIndexConfig +================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: DefaultIndexConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IdcsSecret.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IdcsSecret.rst new file mode 100644 index 000000000..d51fe6433 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IdcsSecret.rst @@ -0,0 +1,11 @@ +IdcsSecret +========== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: IdcsSecret + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.Index.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.Index.rst new file mode 100644 index 000000000..87d6eed43 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.Index.rst @@ -0,0 +1,11 @@ +Index +===== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: Index + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IndexConfig.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IndexConfig.rst new file mode 100644 index 000000000..c02edbb2d --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IndexConfig.rst @@ -0,0 +1,11 @@ +IndexConfig +=========== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: IndexConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IndexSchema.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IndexSchema.rst new file mode 100644 index 000000000..f036136b2 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.IndexSchema.rst @@ -0,0 +1,11 @@ +IndexSchema +=========== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: IndexSchema + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBase.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBase.rst new file mode 100644 index 000000000..f2f57858d --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBase.rst @@ -0,0 +1,11 @@ +KnowledgeBase +============= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: KnowledgeBase + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBaseCollection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBaseCollection.rst new file mode 100644 index 000000000..2cf265c1f --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBaseCollection.rst @@ -0,0 +1,11 @@ +KnowledgeBaseCollection +======================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: KnowledgeBaseCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBaseSummary.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBaseSummary.rst new file mode 100644 index 000000000..b7769e263 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.KnowledgeBaseSummary.rst @@ -0,0 +1,11 @@ +KnowledgeBaseSummary +==================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: KnowledgeBaseSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ObjectStoragePrefix.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ObjectStoragePrefix.rst new file mode 100644 index 000000000..417c0757a --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.ObjectStoragePrefix.rst @@ -0,0 +1,11 @@ +ObjectStoragePrefix +=================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: ObjectStoragePrefix + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciDatabaseConfig.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciDatabaseConfig.rst new file mode 100644 index 000000000..60cf9f9d3 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciDatabaseConfig.rst @@ -0,0 +1,11 @@ +OciDatabaseConfig +================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: OciDatabaseConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciObjectStorageDataSourceConfig.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciObjectStorageDataSourceConfig.rst new file mode 100644 index 000000000..dbd342c9d --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciObjectStorageDataSourceConfig.rst @@ -0,0 +1,11 @@ +OciObjectStorageDataSourceConfig +================================ + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: OciObjectStorageDataSourceConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciOpenSearchIndexConfig.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciOpenSearchIndexConfig.rst new file mode 100644 index 000000000..82c25ddc7 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.OciOpenSearchIndexConfig.rst @@ -0,0 +1,11 @@ +OciOpenSearchIndexConfig +======================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: OciOpenSearchIndexConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.SecretDetail.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.SecretDetail.rst new file mode 100644 index 000000000..fb36ca703 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.SecretDetail.rst @@ -0,0 +1,11 @@ +SecretDetail +============ + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: SecretDetail + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.SessionConfig.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.SessionConfig.rst new file mode 100644 index 000000000..7cccd65c4 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.SessionConfig.rst @@ -0,0 +1,11 @@ +SessionConfig +============= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: SessionConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateAgentDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateAgentDetails.rst new file mode 100644 index 000000000..48c2464b4 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateAgentDetails.rst @@ -0,0 +1,11 @@ +UpdateAgentDetails +================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: UpdateAgentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateAgentEndpointDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateAgentEndpointDetails.rst new file mode 100644 index 000000000..d46b858ec --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateAgentEndpointDetails.rst @@ -0,0 +1,11 @@ +UpdateAgentEndpointDetails +========================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: UpdateAgentEndpointDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateDataSourceDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateDataSourceDetails.rst new file mode 100644 index 000000000..5fc428d5f --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateDataSourceDetails.rst @@ -0,0 +1,11 @@ +UpdateDataSourceDetails +======================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: UpdateDataSourceDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateKnowledgeBaseDetails.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateKnowledgeBaseDetails.rst new file mode 100644 index 000000000..b60fdaa88 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.UpdateKnowledgeBaseDetails.rst @@ -0,0 +1,11 @@ +UpdateKnowledgeBaseDetails +========================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: UpdateKnowledgeBaseDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequest.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequest.rst new file mode 100644 index 000000000..2b592cc06 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequest.rst @@ -0,0 +1,11 @@ +WorkRequest +=========== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: WorkRequest + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestError.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestError.rst new file mode 100644 index 000000000..017815266 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestError.rst @@ -0,0 +1,11 @@ +WorkRequestError +================ + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: WorkRequestError + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestErrorCollection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestErrorCollection.rst new file mode 100644 index 000000000..231174923 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestErrorCollection.rst @@ -0,0 +1,11 @@ +WorkRequestErrorCollection +========================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: WorkRequestErrorCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestLogEntry.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestLogEntry.rst new file mode 100644 index 000000000..d6054ecb8 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestLogEntry.rst @@ -0,0 +1,11 @@ +WorkRequestLogEntry +=================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: WorkRequestLogEntry + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestLogEntryCollection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestLogEntryCollection.rst new file mode 100644 index 000000000..90fd63603 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestLogEntryCollection.rst @@ -0,0 +1,11 @@ +WorkRequestLogEntryCollection +============================= + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: WorkRequestLogEntryCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestResource.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestResource.rst new file mode 100644 index 000000000..88f794430 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestResource.rst @@ -0,0 +1,11 @@ +WorkRequestResource +=================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: WorkRequestResource + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestSummary.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestSummary.rst new file mode 100644 index 000000000..8bf58ffe9 --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestSummary.rst @@ -0,0 +1,11 @@ +WorkRequestSummary +================== + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: WorkRequestSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestSummaryCollection.rst b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestSummaryCollection.rst new file mode 100644 index 000000000..4ece2032c --- /dev/null +++ b/docs/api/generative_ai_agent/models/oci.generative_ai_agent.models.WorkRequestSummaryCollection.rst @@ -0,0 +1,11 @@ +WorkRequestSummaryCollection +============================ + +.. currentmodule:: oci.generative_ai_agent.models + +.. autoclass:: WorkRequestSummaryCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime.rst b/docs/api/generative_ai_agent_runtime.rst new file mode 100644 index 000000000..5a7c4aeee --- /dev/null +++ b/docs/api/generative_ai_agent_runtime.rst @@ -0,0 +1,36 @@ +Generative Ai Agent Runtime +=========================== + +.. autosummary:: + :toctree: generative_ai_agent_runtime/client + :nosignatures: + :template: autosummary/service_client.rst + + oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClient + oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClientCompositeOperations + +-------- + Models +-------- + +.. autosummary:: + :toctree: generative_ai_agent_runtime/models + :nosignatures: + :template: autosummary/model_class.rst + + oci.generative_ai_agent_runtime.models.ChatDetails + oci.generative_ai_agent_runtime.models.ChatResult + oci.generative_ai_agent_runtime.models.Citation + oci.generative_ai_agent_runtime.models.CreateSessionDetails + oci.generative_ai_agent_runtime.models.ErrorTrace + oci.generative_ai_agent_runtime.models.GenerationTrace + oci.generative_ai_agent_runtime.models.Message + oci.generative_ai_agent_runtime.models.MessageContent + oci.generative_ai_agent_runtime.models.OciDatabaseSourceLocation + oci.generative_ai_agent_runtime.models.OciObjectStorageSourceLocation + oci.generative_ai_agent_runtime.models.OciOpenSearchSourceLocation + oci.generative_ai_agent_runtime.models.RetrievalTrace + oci.generative_ai_agent_runtime.models.Session + oci.generative_ai_agent_runtime.models.SourceLocation + oci.generative_ai_agent_runtime.models.Trace + oci.generative_ai_agent_runtime.models.UpdateSessionDetails diff --git a/docs/api/generative_ai_agent_runtime/client/oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClient.rst b/docs/api/generative_ai_agent_runtime/client/oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClient.rst new file mode 100644 index 000000000..b592e3a5c --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/client/oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClient.rst @@ -0,0 +1,8 @@ +GenerativeAiAgentRuntimeClient +============================== + +.. currentmodule:: oci.generative_ai_agent_runtime + +.. autoclass:: GenerativeAiAgentRuntimeClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/client/oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClientCompositeOperations.rst b/docs/api/generative_ai_agent_runtime/client/oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClientCompositeOperations.rst new file mode 100644 index 000000000..e1ed7a999 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/client/oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClientCompositeOperations.rst @@ -0,0 +1,8 @@ +GenerativeAiAgentRuntimeClientCompositeOperations +================================================= + +.. currentmodule:: oci.generative_ai_agent_runtime + +.. autoclass:: GenerativeAiAgentRuntimeClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ChatDetails.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ChatDetails.rst new file mode 100644 index 000000000..1a514b71d --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ChatDetails.rst @@ -0,0 +1,11 @@ +ChatDetails +=========== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: ChatDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ChatResult.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ChatResult.rst new file mode 100644 index 000000000..4e22d5f0c --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ChatResult.rst @@ -0,0 +1,11 @@ +ChatResult +========== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: ChatResult + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Citation.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Citation.rst new file mode 100644 index 000000000..f5632857f --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Citation.rst @@ -0,0 +1,11 @@ +Citation +======== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: Citation + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.CreateSessionDetails.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.CreateSessionDetails.rst new file mode 100644 index 000000000..64c72847f --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.CreateSessionDetails.rst @@ -0,0 +1,11 @@ +CreateSessionDetails +==================== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: CreateSessionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ErrorTrace.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ErrorTrace.rst new file mode 100644 index 000000000..54a0d7f42 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.ErrorTrace.rst @@ -0,0 +1,11 @@ +ErrorTrace +========== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: ErrorTrace + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.GenerationTrace.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.GenerationTrace.rst new file mode 100644 index 000000000..7604ff065 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.GenerationTrace.rst @@ -0,0 +1,11 @@ +GenerationTrace +=============== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: GenerationTrace + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Message.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Message.rst new file mode 100644 index 000000000..4cceae093 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Message.rst @@ -0,0 +1,11 @@ +Message +======= + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: Message + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.MessageContent.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.MessageContent.rst new file mode 100644 index 000000000..12b3e05b1 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.MessageContent.rst @@ -0,0 +1,11 @@ +MessageContent +============== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: MessageContent + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciDatabaseSourceLocation.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciDatabaseSourceLocation.rst new file mode 100644 index 000000000..0dd84742c --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciDatabaseSourceLocation.rst @@ -0,0 +1,11 @@ +OciDatabaseSourceLocation +========================= + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: OciDatabaseSourceLocation + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciObjectStorageSourceLocation.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciObjectStorageSourceLocation.rst new file mode 100644 index 000000000..a7c9f1825 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciObjectStorageSourceLocation.rst @@ -0,0 +1,11 @@ +OciObjectStorageSourceLocation +============================== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: OciObjectStorageSourceLocation + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciOpenSearchSourceLocation.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciOpenSearchSourceLocation.rst new file mode 100644 index 000000000..f44a9f0ae --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.OciOpenSearchSourceLocation.rst @@ -0,0 +1,11 @@ +OciOpenSearchSourceLocation +=========================== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: OciOpenSearchSourceLocation + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.RetrievalTrace.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.RetrievalTrace.rst new file mode 100644 index 000000000..6379e2f42 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.RetrievalTrace.rst @@ -0,0 +1,11 @@ +RetrievalTrace +============== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: RetrievalTrace + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Session.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Session.rst new file mode 100644 index 000000000..583e2d7d3 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Session.rst @@ -0,0 +1,11 @@ +Session +======= + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: Session + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.SourceLocation.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.SourceLocation.rst new file mode 100644 index 000000000..328a094a0 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.SourceLocation.rst @@ -0,0 +1,11 @@ +SourceLocation +============== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: SourceLocation + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Trace.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Trace.rst new file mode 100644 index 000000000..b9003265e --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.Trace.rst @@ -0,0 +1,11 @@ +Trace +===== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: Trace + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.UpdateSessionDetails.rst b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.UpdateSessionDetails.rst new file mode 100644 index 000000000..93d3d39f8 --- /dev/null +++ b/docs/api/generative_ai_agent_runtime/models/oci.generative_ai_agent_runtime.models.UpdateSessionDetails.rst @@ -0,0 +1,11 @@ +UpdateSessionDetails +==================== + +.. currentmodule:: oci.generative_ai_agent_runtime.models + +.. autoclass:: UpdateSessionDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/integration.rst b/docs/api/integration.rst index ae6ab8b69..114e8d2ba 100644 --- a/docs/api/integration.rst +++ b/docs/api/integration.rst @@ -18,6 +18,7 @@ Integration :nosignatures: :template: autosummary/model_class.rst + oci.integration.models.AddOracleManagedCustomEndpointDetails oci.integration.models.AttachmentDetails oci.integration.models.ChangeIntegrationInstanceCompartmentDetails oci.integration.models.ChangeIntegrationInstanceNetworkEndpointDetails diff --git a/docs/api/integration/models/oci.integration.models.AddOracleManagedCustomEndpointDetails.rst b/docs/api/integration/models/oci.integration.models.AddOracleManagedCustomEndpointDetails.rst new file mode 100644 index 000000000..93ce05c84 --- /dev/null +++ b/docs/api/integration/models/oci.integration.models.AddOracleManagedCustomEndpointDetails.rst @@ -0,0 +1,11 @@ +AddOracleManagedCustomEndpointDetails +===================================== + +.. currentmodule:: oci.integration.models + +.. autoclass:: AddOracleManagedCustomEndpointDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/landing.rst b/docs/api/landing.rst index 84fc4c2c4..f37b14e4c 100644 --- a/docs/api/landing.rst +++ b/docs/api/landing.rst @@ -104,6 +104,8 @@ API Reference * :doc:`Fusion Applications ` * :doc:`Gateway ` * :doc:`Generative Ai ` +* :doc:`Generative Ai Agent ` +* :doc:`Generative Ai Agent Runtime ` * :doc:`Generative Ai Inference ` * :doc:`Generic Artifacts Content ` * :doc:`Golden Gate ` @@ -333,6 +335,8 @@ API Reference functions fusion_apps generative_ai + generative_ai_agent + generative_ai_agent_runtime generative_ai_inference generic_artifacts_content globally_distributed_database diff --git a/docs/api/monitoring.rst b/docs/api/monitoring.rst index 46ad9d8b4..a38663081 100644 --- a/docs/api/monitoring.rst +++ b/docs/api/monitoring.rst @@ -30,6 +30,7 @@ Monitoring oci.monitoring.models.AlarmSuppression oci.monitoring.models.AlarmSuppressionAlarmTarget oci.monitoring.models.AlarmSuppressionCollection + oci.monitoring.models.AlarmSuppressionCompartmentTarget oci.monitoring.models.AlarmSuppressionHistoryItem oci.monitoring.models.AlarmSuppressionHistoryItemCollection oci.monitoring.models.AlarmSuppressionSummary @@ -45,8 +46,10 @@ Monitoring oci.monitoring.models.MetricDataDetails oci.monitoring.models.PostMetricDataDetails oci.monitoring.models.PostMetricDataResponseDetails + oci.monitoring.models.Recurrence oci.monitoring.models.RetrieveDimensionStatesDetails oci.monitoring.models.SummarizeAlarmSuppressionHistoryDetails oci.monitoring.models.SummarizeMetricsDataDetails oci.monitoring.models.Suppression + oci.monitoring.models.SuppressionCondition oci.monitoring.models.UpdateAlarmDetails diff --git a/docs/api/monitoring/models/oci.monitoring.models.AlarmSuppressionCompartmentTarget.rst b/docs/api/monitoring/models/oci.monitoring.models.AlarmSuppressionCompartmentTarget.rst new file mode 100644 index 000000000..4733e331f --- /dev/null +++ b/docs/api/monitoring/models/oci.monitoring.models.AlarmSuppressionCompartmentTarget.rst @@ -0,0 +1,11 @@ +AlarmSuppressionCompartmentTarget +================================= + +.. currentmodule:: oci.monitoring.models + +.. autoclass:: AlarmSuppressionCompartmentTarget + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/monitoring/models/oci.monitoring.models.Recurrence.rst b/docs/api/monitoring/models/oci.monitoring.models.Recurrence.rst new file mode 100644 index 000000000..30ea40ee8 --- /dev/null +++ b/docs/api/monitoring/models/oci.monitoring.models.Recurrence.rst @@ -0,0 +1,11 @@ +Recurrence +========== + +.. currentmodule:: oci.monitoring.models + +.. autoclass:: Recurrence + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/monitoring/models/oci.monitoring.models.SuppressionCondition.rst b/docs/api/monitoring/models/oci.monitoring.models.SuppressionCondition.rst new file mode 100644 index 000000000..42d16578d --- /dev/null +++ b/docs/api/monitoring/models/oci.monitoring.models.SuppressionCondition.rst @@ -0,0 +1,11 @@ +SuppressionCondition +==================== + +.. currentmodule:: oci.monitoring.models + +.. autoclass:: SuppressionCondition + :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 7ebd4bfce..86e24debc 100644 --- a/docs/api/opsi.rst +++ b/docs/api/opsi.rst @@ -20,6 +20,7 @@ Opsi oci.opsi.models.AddEmManagedExternalExadataInsightMembersDetails oci.opsi.models.AddExadataInsightMembersDetails + oci.opsi.models.AddMacsManagedCloudExadataInsightMembersDetails oci.opsi.models.AddPeComanagedExadataInsightMembersDetails oci.opsi.models.AddmDbCollection oci.opsi.models.AddmDbFindingAggregation @@ -95,6 +96,7 @@ Opsi oci.opsi.models.ChangeEnterpriseManagerBridgeCompartmentDetails oci.opsi.models.ChangeExadataInsightCompartmentDetails oci.opsi.models.ChangeHostInsightCompartmentDetails + oci.opsi.models.ChangeMacsManagedCloudDatabaseInsightConnectionDetails oci.opsi.models.ChangeNewsReportCompartmentDetails oci.opsi.models.ChangeOperationsInsightsPrivateEndpointCompartmentDetails oci.opsi.models.ChangeOperationsInsightsWarehouseCompartmentDetails @@ -122,6 +124,10 @@ Opsi oci.opsi.models.CreateEnterpriseManagerBridgeDetails oci.opsi.models.CreateExadataInsightDetails oci.opsi.models.CreateHostInsightDetails + oci.opsi.models.CreateMacsManagedCloudDatabaseInsightDetails + oci.opsi.models.CreateMacsManagedCloudExadataClusterDetails + oci.opsi.models.CreateMacsManagedCloudExadataInsightDetails + oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails oci.opsi.models.CreateMacsManagedCloudHostInsightDetails oci.opsi.models.CreateMacsManagedExternalHostInsightDetails oci.opsi.models.CreateMdsMySqlDatabaseInsightDetails @@ -137,6 +143,7 @@ Opsi oci.opsi.models.CredentialByVault oci.opsi.models.CredentialDetails oci.opsi.models.CredentialsBySource + oci.opsi.models.DBConnectionStatus oci.opsi.models.DBExternalInstance oci.opsi.models.DBExternalProperties oci.opsi.models.DBOSConfigInstance @@ -186,6 +193,8 @@ Opsi oci.opsi.models.EnableEmManagedExternalHostInsightDetails oci.opsi.models.EnableExadataInsightDetails oci.opsi.models.EnableHostInsightDetails + oci.opsi.models.EnableMacsManagedCloudDatabaseInsightDetails + oci.opsi.models.EnableMacsManagedCloudExadataInsightDetails oci.opsi.models.EnableMacsManagedCloudHostInsightDetails oci.opsi.models.EnableMacsManagedExternalHostInsightDetails oci.opsi.models.EnableMdsMySqlDatabaseInsightDetails @@ -195,12 +204,15 @@ Opsi oci.opsi.models.EnterpriseManagerBridgeCollection oci.opsi.models.EnterpriseManagerBridgeSummary oci.opsi.models.EnterpriseManagerBridges + oci.opsi.models.ExadataAsmEntity + oci.opsi.models.ExadataCellConfig oci.opsi.models.ExadataConfigurationCollection oci.opsi.models.ExadataConfigurationSummary oci.opsi.models.ExadataDatabaseMachineConfigurationSummary oci.opsi.models.ExadataDatabaseStatisticsSummary oci.opsi.models.ExadataDetails oci.opsi.models.ExadataDiskgroupStatisticsSummary + oci.opsi.models.ExadataExaccConfigurationSummary oci.opsi.models.ExadataExacsConfigurationSummary oci.opsi.models.ExadataHostStatisticsSummary oci.opsi.models.ExadataInsight @@ -219,6 +231,7 @@ Opsi oci.opsi.models.ExadataMemberSummary oci.opsi.models.ExadataStorageServerStatisticsSummary oci.opsi.models.HistoricalDataItem + oci.opsi.models.HostAllocation oci.opsi.models.HostConfigurationCollection oci.opsi.models.HostConfigurationMetricGroup oci.opsi.models.HostConfigurationSummary @@ -293,6 +306,14 @@ Opsi oci.opsi.models.IngestSqlTextResponseDetails oci.opsi.models.InstanceMetrics oci.opsi.models.ListObjects + oci.opsi.models.MacsManagedCloudDatabaseConfigurationSummary + oci.opsi.models.MacsManagedCloudDatabaseHostInsight + oci.opsi.models.MacsManagedCloudDatabaseHostInsightSummary + oci.opsi.models.MacsManagedCloudDatabaseInsight + oci.opsi.models.MacsManagedCloudDatabaseInsightSummary + oci.opsi.models.MacsManagedCloudDbHostConfigurationSummary + oci.opsi.models.MacsManagedCloudExadataInsight + oci.opsi.models.MacsManagedCloudExadataInsightSummary oci.opsi.models.MacsManagedCloudHostConfigurationSummary oci.opsi.models.MacsManagedCloudHostInsight oci.opsi.models.MacsManagedCloudHostInsightSummary @@ -433,6 +454,7 @@ Opsi oci.opsi.models.SummaryStatistics oci.opsi.models.TablespaceUsageTrend oci.opsi.models.TablespaceUsageTrendAggregation + oci.opsi.models.TestMacsManagedCloudDatabaseInsightConnectionDetails oci.opsi.models.TopProcessesUsage oci.opsi.models.TopProcessesUsageTrend oci.opsi.models.TopProcessesUsageTrendAggregation @@ -448,6 +470,9 @@ Opsi oci.opsi.models.UpdateEnterpriseManagerBridgeDetails oci.opsi.models.UpdateExadataInsightDetails oci.opsi.models.UpdateHostInsightDetails + oci.opsi.models.UpdateMacsManagedCloudDatabaseHostInsightDetails + oci.opsi.models.UpdateMacsManagedCloudDatabaseInsightDetails + oci.opsi.models.UpdateMacsManagedCloudExadataInsightDetails oci.opsi.models.UpdateMacsManagedCloudHostInsightDetails oci.opsi.models.UpdateMacsManagedExternalDatabaseInsightDetails oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails diff --git a/docs/api/opsi/models/oci.opsi.models.AddMacsManagedCloudExadataInsightMembersDetails.rst b/docs/api/opsi/models/oci.opsi.models.AddMacsManagedCloudExadataInsightMembersDetails.rst new file mode 100644 index 000000000..579530ada --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.AddMacsManagedCloudExadataInsightMembersDetails.rst @@ -0,0 +1,11 @@ +AddMacsManagedCloudExadataInsightMembersDetails +=============================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: AddMacsManagedCloudExadataInsightMembersDetails + :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.ChangeMacsManagedCloudDatabaseInsightConnectionDetails.rst b/docs/api/opsi/models/oci.opsi.models.ChangeMacsManagedCloudDatabaseInsightConnectionDetails.rst new file mode 100644 index 000000000..03eb24ade --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.ChangeMacsManagedCloudDatabaseInsightConnectionDetails.rst @@ -0,0 +1,11 @@ +ChangeMacsManagedCloudDatabaseInsightConnectionDetails +====================================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: ChangeMacsManagedCloudDatabaseInsightConnectionDetails + :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.CreateMacsManagedCloudDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedCloudDatabaseInsightDetails.rst new file mode 100644 index 000000000..f59428820 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedCloudDatabaseInsightDetails.rst @@ -0,0 +1,11 @@ +CreateMacsManagedCloudDatabaseInsightDetails +============================================ + +.. currentmodule:: oci.opsi.models + +.. autoclass:: CreateMacsManagedCloudDatabaseInsightDetails + :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.CreateMacsManagedCloudExadataClusterDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedCloudExadataClusterDetails.rst new file mode 100644 index 000000000..e22c24e33 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedCloudExadataClusterDetails.rst @@ -0,0 +1,11 @@ +CreateMacsManagedCloudExadataClusterDetails +=========================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: CreateMacsManagedCloudExadataClusterDetails + :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.CreateMacsManagedCloudExadataInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedCloudExadataInsightDetails.rst new file mode 100644 index 000000000..b5bbcee85 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedCloudExadataInsightDetails.rst @@ -0,0 +1,11 @@ +CreateMacsManagedCloudExadataInsightDetails +=========================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: CreateMacsManagedCloudExadataInsightDetails + :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.CreateMacsManagedCloudExadataVmclusterDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails.rst new file mode 100644 index 000000000..a2767c045 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails.rst @@ -0,0 +1,11 @@ +CreateMacsManagedCloudExadataVmclusterDetails +============================================= + +.. currentmodule:: oci.opsi.models + +.. autoclass:: CreateMacsManagedCloudExadataVmclusterDetails + :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.DBConnectionStatus.rst b/docs/api/opsi/models/oci.opsi.models.DBConnectionStatus.rst new file mode 100644 index 000000000..1a9470a2d --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.DBConnectionStatus.rst @@ -0,0 +1,11 @@ +DBConnectionStatus +================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: DBConnectionStatus + :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.EnableMacsManagedCloudDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.EnableMacsManagedCloudDatabaseInsightDetails.rst new file mode 100644 index 000000000..92e39a00b --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.EnableMacsManagedCloudDatabaseInsightDetails.rst @@ -0,0 +1,11 @@ +EnableMacsManagedCloudDatabaseInsightDetails +============================================ + +.. currentmodule:: oci.opsi.models + +.. autoclass:: EnableMacsManagedCloudDatabaseInsightDetails + :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.EnableMacsManagedCloudExadataInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.EnableMacsManagedCloudExadataInsightDetails.rst new file mode 100644 index 000000000..4d77d3c72 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.EnableMacsManagedCloudExadataInsightDetails.rst @@ -0,0 +1,11 @@ +EnableMacsManagedCloudExadataInsightDetails +=========================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: EnableMacsManagedCloudExadataInsightDetails + :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.ExadataAsmEntity.rst b/docs/api/opsi/models/oci.opsi.models.ExadataAsmEntity.rst new file mode 100644 index 000000000..c0e1cb735 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.ExadataAsmEntity.rst @@ -0,0 +1,11 @@ +ExadataAsmEntity +================ + +.. currentmodule:: oci.opsi.models + +.. autoclass:: ExadataAsmEntity + :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.ExadataCellConfig.rst b/docs/api/opsi/models/oci.opsi.models.ExadataCellConfig.rst new file mode 100644 index 000000000..e926f9163 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.ExadataCellConfig.rst @@ -0,0 +1,11 @@ +ExadataCellConfig +================= + +.. currentmodule:: oci.opsi.models + +.. autoclass:: ExadataCellConfig + :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.ExadataExaccConfigurationSummary.rst b/docs/api/opsi/models/oci.opsi.models.ExadataExaccConfigurationSummary.rst new file mode 100644 index 000000000..58c5ef302 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.ExadataExaccConfigurationSummary.rst @@ -0,0 +1,11 @@ +ExadataExaccConfigurationSummary +================================ + +.. currentmodule:: oci.opsi.models + +.. autoclass:: ExadataExaccConfigurationSummary + :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.HostAllocation.rst b/docs/api/opsi/models/oci.opsi.models.HostAllocation.rst new file mode 100644 index 000000000..97303d1de --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.HostAllocation.rst @@ -0,0 +1,11 @@ +HostAllocation +============== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: HostAllocation + :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.MacsManagedCloudDatabaseConfigurationSummary.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseConfigurationSummary.rst new file mode 100644 index 000000000..d4ac4d983 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseConfigurationSummary.rst @@ -0,0 +1,11 @@ +MacsManagedCloudDatabaseConfigurationSummary +============================================ + +.. currentmodule:: oci.opsi.models + +.. autoclass:: MacsManagedCloudDatabaseConfigurationSummary + :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.MacsManagedCloudDatabaseHostInsight.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseHostInsight.rst new file mode 100644 index 000000000..763613fc3 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseHostInsight.rst @@ -0,0 +1,11 @@ +MacsManagedCloudDatabaseHostInsight +=================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: MacsManagedCloudDatabaseHostInsight + :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.MacsManagedCloudDatabaseHostInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseHostInsightSummary.rst new file mode 100644 index 000000000..135a699aa --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseHostInsightSummary.rst @@ -0,0 +1,11 @@ +MacsManagedCloudDatabaseHostInsightSummary +========================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: MacsManagedCloudDatabaseHostInsightSummary + :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.MacsManagedCloudDatabaseInsight.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseInsight.rst new file mode 100644 index 000000000..fb28ed219 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseInsight.rst @@ -0,0 +1,11 @@ +MacsManagedCloudDatabaseInsight +=============================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: MacsManagedCloudDatabaseInsight + :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.MacsManagedCloudDatabaseInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseInsightSummary.rst new file mode 100644 index 000000000..f396e1627 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDatabaseInsightSummary.rst @@ -0,0 +1,11 @@ +MacsManagedCloudDatabaseInsightSummary +====================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: MacsManagedCloudDatabaseInsightSummary + :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.MacsManagedCloudDbHostConfigurationSummary.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDbHostConfigurationSummary.rst new file mode 100644 index 000000000..06fbbc16d --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudDbHostConfigurationSummary.rst @@ -0,0 +1,11 @@ +MacsManagedCloudDbHostConfigurationSummary +========================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: MacsManagedCloudDbHostConfigurationSummary + :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.MacsManagedCloudExadataInsight.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudExadataInsight.rst new file mode 100644 index 000000000..4d0050e45 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudExadataInsight.rst @@ -0,0 +1,11 @@ +MacsManagedCloudExadataInsight +============================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: MacsManagedCloudExadataInsight + :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.MacsManagedCloudExadataInsightSummary.rst b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudExadataInsightSummary.rst new file mode 100644 index 000000000..12ee05090 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.MacsManagedCloudExadataInsightSummary.rst @@ -0,0 +1,11 @@ +MacsManagedCloudExadataInsightSummary +===================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: MacsManagedCloudExadataInsightSummary + :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.TestMacsManagedCloudDatabaseInsightConnectionDetails.rst b/docs/api/opsi/models/oci.opsi.models.TestMacsManagedCloudDatabaseInsightConnectionDetails.rst new file mode 100644 index 000000000..adaef4c21 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.TestMacsManagedCloudDatabaseInsightConnectionDetails.rst @@ -0,0 +1,11 @@ +TestMacsManagedCloudDatabaseInsightConnectionDetails +==================================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: TestMacsManagedCloudDatabaseInsightConnectionDetails + :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.UpdateMacsManagedCloudDatabaseHostInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedCloudDatabaseHostInsightDetails.rst new file mode 100644 index 000000000..7196137db --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedCloudDatabaseHostInsightDetails.rst @@ -0,0 +1,11 @@ +UpdateMacsManagedCloudDatabaseHostInsightDetails +================================================ + +.. currentmodule:: oci.opsi.models + +.. autoclass:: UpdateMacsManagedCloudDatabaseHostInsightDetails + :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.UpdateMacsManagedCloudDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedCloudDatabaseInsightDetails.rst new file mode 100644 index 000000000..03c8971ef --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedCloudDatabaseInsightDetails.rst @@ -0,0 +1,11 @@ +UpdateMacsManagedCloudDatabaseInsightDetails +============================================ + +.. currentmodule:: oci.opsi.models + +.. autoclass:: UpdateMacsManagedCloudDatabaseInsightDetails + :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.UpdateMacsManagedCloudExadataInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedCloudExadataInsightDetails.rst new file mode 100644 index 000000000..94c477c35 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.UpdateMacsManagedCloudExadataInsightDetails.rst @@ -0,0 +1,11 @@ +UpdateMacsManagedCloudExadataInsightDetails +=========================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: UpdateMacsManagedCloudExadataInsightDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/examples/oke_workload_signer_example.py b/examples/oke_workload_signer_example.py index 6d639e658..2c6c42431 100644 --- a/examples/oke_workload_signer_example.py +++ b/examples/oke_workload_signer_example.py @@ -1,33 +1,33 @@ -# coding: utf-8 -# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. -# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -import oci - -oke_workload_signer = oci.auth.signers.get_oke_workload_identity_resource_principal_signer() - -# If you have a kubernetes service account token path different from the default path then: -# token_path = "path_to_your_token_file" -# oke_workload_signer = oci.auth.signers.get_oke_workload_identity_resource_principal_signer(service_account_token_path=token_path) - -# If you want to directly pass in the kubernetes service account token then: -# token_string = "your_token_string" -# oke_workload_signer = oci.auth.signers.get_oke_workload_identity_resource_principal_signer(service_account_token=token_string) - -# A populated config is not needed when using the OKE Workload Auth signer -container_engine_client = oci.container_engine.ContainerEngineClient({}, signer=oke_workload_signer) - -create_cluster_response = container_engine_client.create_cluster( - create_cluster_details=oci.container_engine.models.CreateClusterDetails( - name="name_of_your_cluster", - compartment_id="ocid_of_your_compartment", - vcn_id="ocid_of_your_vcn", - kubernetes_version="choice_of_kubernetes_version" - ) -) -print(create_cluster_response.data) - -get_cluster_response = container_engine_client.get_cluster( - cluster_id="ocid_of_your_cluster_id" -) -print(get_cluster_response.data.lifecycle_state) +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +import oci + +oke_workload_signer = oci.auth.signers.get_oke_workload_identity_resource_principal_signer() + +# If you have a kubernetes service account token path different from the default path then: +# token_path = "path_to_your_token_file" +# oke_workload_signer = oci.auth.signers.get_oke_workload_identity_resource_principal_signer(service_account_token_path=token_path) + +# If you want to directly pass in the kubernetes service account token then: +# token_string = "your_token_string" +# oke_workload_signer = oci.auth.signers.get_oke_workload_identity_resource_principal_signer(service_account_token=token_string) + +# A populated config is not needed when using the OKE Workload Auth signer +container_engine_client = oci.container_engine.ContainerEngineClient({}, signer=oke_workload_signer) + +create_cluster_response = container_engine_client.create_cluster( + create_cluster_details=oci.container_engine.models.CreateClusterDetails( + name="name_of_your_cluster", + compartment_id="ocid_of_your_compartment", + vcn_id="ocid_of_your_vcn", + kubernetes_version="choice_of_kubernetes_version" + ) +) +print(create_cluster_response.data) + +get_cluster_response = container_engine_client.get_cluster( + cluster_id="ocid_of_your_cluster_id" +) +print(get_cluster_response.data.lifecycle_state) diff --git a/src/oci/__init__.py b/src/oci/__init__.py index f7a70759c..f69fed018 100644 --- a/src/oci/__init__.py +++ b/src/oci/__init__.py @@ -19,7 +19,7 @@ else: __all__ = [ "BaseClient", "Error", "Request", "Response", "Signer", "config", "constants", "decorators", "exceptions", "regions", "wait_until", "pagination", "auth", "retry", "fips", "circuit_breaker", "alloy", - "access_governance_cp", "adm", "ai_anomaly_detection", "ai_document", "ai_language", "ai_speech", "ai_vision", "analytics", "announcements_service", "apigateway", "apm_config", "apm_control_plane", "apm_synthetics", "apm_traces", "appmgmt_control", "artifacts", "audit", "autoscaling", "bastion", "bds", "blockchain", "budget", "capacity_management", "certificates", "certificates_management", "cims", "cloud_bridge", "cloud_guard", "cloud_migrations", "cluster_placement_groups", "compute_cloud_at_customer", "compute_instance_agent", "container_engine", "container_instances", "core", "dashboard_service", "data_catalog", "data_flow", "data_integration", "data_labeling_service", "data_labeling_service_dataplane", "data_safe", "data_science", "database", "database_management", "database_migration", "database_tools", "delegate_access_control", "demand_signal", "desktops", "devops", "disaster_recovery", "dns", "dts", "em_warehouse", "email", "email_data_plane", "events", "file_storage", "fleet_apps_management", "fleet_software_update", "functions", "fusion_apps", "generative_ai", "generative_ai_inference", "generic_artifacts_content", "globally_distributed_database", "golden_gate", "governance_rules_control_plane", "healthchecks", "identity", "identity_data_plane", "identity_domains", "integration", "jms", "jms_java_downloads", "key_management", "license_manager", "limits", "load_balancer", "lockbox", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "marketplace_private_offer", "marketplace_publisher", "media_services", "monitoring", "mysql", "network_firewall", "network_load_balancer", "nosql", "object_storage", "oce", "oci_control_center", "ocvp", "oda", "onesubscription", "ons", "opa", "opensearch", "operator_access_control", "opsi", "optimizer", "os_management", "os_management_hub", "osp_gateway", "osub_billing_schedule", "osub_organization_subscription", "osub_subscription", "osub_usage", "psql", "queue", "recovery", "redis", "resource_manager", "resource_scheduler", "resource_search", "rover", "sch", "secrets", "service_catalog", "service_manager_proxy", "service_mesh", "stack_monitoring", "streaming", "tenant_manager_control_plane", "threat_intelligence", "usage", "usage_api", "vault", "vbs_inst", "visual_builder", "vn_monitoring", "vulnerability_scanning", "waa", "waas", "waf", "work_requests" + "access_governance_cp", "adm", "ai_anomaly_detection", "ai_document", "ai_language", "ai_speech", "ai_vision", "analytics", "announcements_service", "apigateway", "apm_config", "apm_control_plane", "apm_synthetics", "apm_traces", "appmgmt_control", "artifacts", "audit", "autoscaling", "bastion", "bds", "blockchain", "budget", "capacity_management", "certificates", "certificates_management", "cims", "cloud_bridge", "cloud_guard", "cloud_migrations", "cluster_placement_groups", "compute_cloud_at_customer", "compute_instance_agent", "container_engine", "container_instances", "core", "dashboard_service", "data_catalog", "data_flow", "data_integration", "data_labeling_service", "data_labeling_service_dataplane", "data_safe", "data_science", "database", "database_management", "database_migration", "database_tools", "delegate_access_control", "demand_signal", "desktops", "devops", "disaster_recovery", "dns", "dts", "em_warehouse", "email", "email_data_plane", "events", "file_storage", "fleet_apps_management", "fleet_software_update", "functions", "fusion_apps", "generative_ai", "generative_ai_agent", "generative_ai_agent_runtime", "generative_ai_inference", "generic_artifacts_content", "globally_distributed_database", "golden_gate", "governance_rules_control_plane", "healthchecks", "identity", "identity_data_plane", "identity_domains", "integration", "jms", "jms_java_downloads", "key_management", "license_manager", "limits", "load_balancer", "lockbox", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "marketplace_private_offer", "marketplace_publisher", "media_services", "monitoring", "mysql", "network_firewall", "network_load_balancer", "nosql", "object_storage", "oce", "oci_control_center", "ocvp", "oda", "onesubscription", "ons", "opa", "opensearch", "operator_access_control", "opsi", "optimizer", "os_management", "os_management_hub", "osp_gateway", "osub_billing_schedule", "osub_organization_subscription", "osub_subscription", "osub_usage", "psql", "queue", "recovery", "redis", "resource_manager", "resource_scheduler", "resource_search", "rover", "sch", "secrets", "service_catalog", "service_manager_proxy", "service_mesh", "stack_monitoring", "streaming", "tenant_manager_control_plane", "threat_intelligence", "usage", "usage_api", "vault", "vbs_inst", "visual_builder", "vn_monitoring", "vulnerability_scanning", "waa", "waas", "waf", "work_requests" ] if sys.version_info >= (3, 7) and os.getenv("OCI_PYTHON_SDK_LAZY_IMPORTS_DISABLED", "False").lower() != "true": def __getattr__(x): @@ -30,4 +30,4 @@ def __getattr__(x): return importlib.import_module(__name__ + "." + x) raise AttributeError("module " + __name__ + " has no attribute" + x) else: - from . import access_governance_cp, adm, ai_anomaly_detection, ai_document, ai_language, ai_speech, ai_vision, analytics, announcements_service, apigateway, apm_config, apm_control_plane, apm_synthetics, apm_traces, appmgmt_control, artifacts, audit, autoscaling, bastion, bds, blockchain, budget, capacity_management, certificates, certificates_management, cims, cloud_bridge, cloud_guard, cloud_migrations, cluster_placement_groups, compute_cloud_at_customer, compute_instance_agent, container_engine, container_instances, core, dashboard_service, data_catalog, data_flow, data_integration, data_labeling_service, data_labeling_service_dataplane, data_safe, data_science, database, database_management, database_migration, database_tools, delegate_access_control, demand_signal, desktops, devops, disaster_recovery, dns, dts, em_warehouse, email, email_data_plane, events, file_storage, fleet_apps_management, fleet_software_update, functions, fusion_apps, generative_ai, generative_ai_inference, generic_artifacts_content, globally_distributed_database, golden_gate, governance_rules_control_plane, healthchecks, identity, identity_data_plane, identity_domains, integration, jms, jms_java_downloads, key_management, license_manager, limits, load_balancer, lockbox, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, marketplace_private_offer, marketplace_publisher, media_services, monitoring, mysql, network_firewall, network_load_balancer, nosql, object_storage, oce, oci_control_center, ocvp, oda, onesubscription, ons, opa, opensearch, operator_access_control, opsi, optimizer, os_management, os_management_hub, osp_gateway, osub_billing_schedule, osub_organization_subscription, osub_subscription, osub_usage, psql, queue, recovery, redis, resource_manager, resource_scheduler, resource_search, rover, sch, secrets, service_catalog, service_manager_proxy, service_mesh, stack_monitoring, streaming, tenant_manager_control_plane, threat_intelligence, usage, usage_api, vault, vbs_inst, visual_builder, vn_monitoring, vulnerability_scanning, waa, waas, waf, work_requests + from . import access_governance_cp, adm, ai_anomaly_detection, ai_document, ai_language, ai_speech, ai_vision, analytics, announcements_service, apigateway, apm_config, apm_control_plane, apm_synthetics, apm_traces, appmgmt_control, artifacts, audit, autoscaling, bastion, bds, blockchain, budget, capacity_management, certificates, certificates_management, cims, cloud_bridge, cloud_guard, cloud_migrations, cluster_placement_groups, compute_cloud_at_customer, compute_instance_agent, container_engine, container_instances, core, dashboard_service, data_catalog, data_flow, data_integration, data_labeling_service, data_labeling_service_dataplane, data_safe, data_science, database, database_management, database_migration, database_tools, delegate_access_control, demand_signal, desktops, devops, disaster_recovery, dns, dts, em_warehouse, email, email_data_plane, events, file_storage, fleet_apps_management, fleet_software_update, functions, fusion_apps, generative_ai, generative_ai_agent, generative_ai_agent_runtime, generative_ai_inference, generic_artifacts_content, globally_distributed_database, golden_gate, governance_rules_control_plane, healthchecks, identity, identity_data_plane, identity_domains, integration, jms, jms_java_downloads, key_management, license_manager, limits, load_balancer, lockbox, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, marketplace_private_offer, marketplace_publisher, media_services, monitoring, mysql, network_firewall, network_load_balancer, nosql, object_storage, oce, oci_control_center, ocvp, oda, onesubscription, ons, opa, opensearch, operator_access_control, opsi, optimizer, os_management, os_management_hub, osp_gateway, osub_billing_schedule, osub_organization_subscription, osub_subscription, osub_usage, psql, queue, recovery, redis, resource_manager, resource_scheduler, resource_search, rover, sch, secrets, service_catalog, service_manager_proxy, service_mesh, stack_monitoring, streaming, tenant_manager_control_plane, threat_intelligence, usage, usage_api, vault, vbs_inst, visual_builder, vn_monitoring, vulnerability_scanning, waa, waas, waf, work_requests diff --git a/src/oci/analytics/models/analytics_instance.py b/src/oci/analytics/models/analytics_instance.py index 42d106b35..813ab64e4 100644 --- a/src/oci/analytics/models/analytics_instance.py +++ b/src/oci/analytics/models/analytics_instance.py @@ -59,6 +59,22 @@ class AnalyticsInstance(object): #: This constant has a value of "BRING_YOUR_OWN_LICENSE" LICENSE_TYPE_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + #: A constant which can be used with the update_channel property of a AnalyticsInstance. + #: This constant has a value of "REGULAR" + UPDATE_CHANNEL_REGULAR = "REGULAR" + + #: A constant which can be used with the update_channel property of a AnalyticsInstance. + #: This constant has a value of "EARLY" + UPDATE_CHANNEL_EARLY = "EARLY" + + #: A constant which can be used with the update_channel property of a AnalyticsInstance. + #: This constant has a value of "PHASE_2" + UPDATE_CHANNEL_PHASE_2 = "PHASE_2" + + #: A constant which can be used with the update_channel property of a AnalyticsInstance. + #: This constant has a value of "PHASE_1" + UPDATE_CHANNEL_PHASE_1 = "PHASE_1" + #: A constant which can be used with the feature_bundle property of a AnalyticsInstance. #: This constant has a value of "FAW_PAID" FEATURE_BUNDLE_FAW_PAID = "FAW_PAID" @@ -122,6 +138,12 @@ def __init__(self, **kwargs): The value to assign to the email_notification property of this AnalyticsInstance. :type email_notification: str + :param update_channel: + The value to assign to the update_channel property of this AnalyticsInstance. + Allowed values for this property are: "REGULAR", "EARLY", "PHASE_2", "PHASE_1", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type update_channel: str + :param network_endpoint_details: The value to assign to the network_endpoint_details property of this AnalyticsInstance. :type network_endpoint_details: oci.analytics.models.NetworkEndpointDetails @@ -183,6 +205,7 @@ def __init__(self, **kwargs): 'capacity': 'Capacity', 'license_type': 'str', 'email_notification': 'str', + 'update_channel': 'str', 'network_endpoint_details': 'NetworkEndpointDetails', 'private_access_channels': 'dict(str, PrivateAccessChannel)', 'vanity_url_details': 'dict(str, VanityUrlDetails)', @@ -207,6 +230,7 @@ def __init__(self, **kwargs): 'capacity': 'capacity', 'license_type': 'licenseType', 'email_notification': 'emailNotification', + 'update_channel': 'updateChannel', 'network_endpoint_details': 'networkEndpointDetails', 'private_access_channels': 'privateAccessChannels', 'vanity_url_details': 'vanityUrlDetails', @@ -230,6 +254,7 @@ def __init__(self, **kwargs): self._capacity = None self._license_type = None self._email_notification = None + self._update_channel = None self._network_endpoint_details = None self._private_access_channels = None self._vanity_url_details = None @@ -473,6 +498,36 @@ def email_notification(self, email_notification): """ self._email_notification = email_notification + @property + def update_channel(self): + """ + Gets the update_channel of this AnalyticsInstance. + Analytics instance update channel. + + Allowed values for this property are: "REGULAR", "EARLY", "PHASE_2", "PHASE_1", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The update_channel of this AnalyticsInstance. + :rtype: str + """ + return self._update_channel + + @update_channel.setter + def update_channel(self, update_channel): + """ + Sets the update_channel of this AnalyticsInstance. + Analytics instance update channel. + + + :param update_channel: The update_channel of this AnalyticsInstance. + :type: str + """ + allowed_values = ["REGULAR", "EARLY", "PHASE_2", "PHASE_1"] + if not value_allowed_none_or_none_sentinel(update_channel, allowed_values): + update_channel = 'UNKNOWN_ENUM_VALUE' + self._update_channel = update_channel + @property def network_endpoint_details(self): """ diff --git a/src/oci/analytics/models/create_analytics_instance_details.py b/src/oci/analytics/models/create_analytics_instance_details.py index eddf7f26d..a395c16c8 100644 --- a/src/oci/analytics/models/create_analytics_instance_details.py +++ b/src/oci/analytics/models/create_analytics_instance_details.py @@ -31,6 +31,22 @@ class CreateAnalyticsInstanceDetails(object): #: This constant has a value of "BRING_YOUR_OWN_LICENSE" LICENSE_TYPE_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + #: A constant which can be used with the update_channel property of a CreateAnalyticsInstanceDetails. + #: This constant has a value of "REGULAR" + UPDATE_CHANNEL_REGULAR = "REGULAR" + + #: A constant which can be used with the update_channel property of a CreateAnalyticsInstanceDetails. + #: This constant has a value of "EARLY" + UPDATE_CHANNEL_EARLY = "EARLY" + + #: A constant which can be used with the update_channel property of a CreateAnalyticsInstanceDetails. + #: This constant has a value of "PHASE_2" + UPDATE_CHANNEL_PHASE_2 = "PHASE_2" + + #: A constant which can be used with the update_channel property of a CreateAnalyticsInstanceDetails. + #: This constant has a value of "PHASE_1" + UPDATE_CHANNEL_PHASE_1 = "PHASE_1" + #: A constant which can be used with the feature_bundle property of a CreateAnalyticsInstanceDetails. #: This constant has a value of "FAW_PAID" FEATURE_BUNDLE_FAW_PAID = "FAW_PAID" @@ -98,6 +114,11 @@ def __init__(self, **kwargs): The value to assign to the freeform_tags property of this CreateAnalyticsInstanceDetails. :type freeform_tags: dict(str, str) + :param update_channel: + The value to assign to the update_channel property of this CreateAnalyticsInstanceDetails. + Allowed values for this property are: "REGULAR", "EARLY", "PHASE_2", "PHASE_1" + :type update_channel: str + :param kms_key_id: The value to assign to the kms_key_id property of this CreateAnalyticsInstanceDetails. :type kms_key_id: str @@ -128,6 +149,7 @@ def __init__(self, **kwargs): 'idcs_access_token': 'str', 'defined_tags': 'dict(str, dict(str, object))', 'freeform_tags': 'dict(str, str)', + 'update_channel': 'str', 'kms_key_id': 'str', 'domain_id': 'str', 'admin_user': 'str', @@ -146,6 +168,7 @@ def __init__(self, **kwargs): 'idcs_access_token': 'idcsAccessToken', 'defined_tags': 'definedTags', 'freeform_tags': 'freeformTags', + 'update_channel': 'updateChannel', 'kms_key_id': 'kmsKeyId', 'domain_id': 'domainId', 'admin_user': 'adminUser', @@ -163,6 +186,7 @@ def __init__(self, **kwargs): self._idcs_access_token = None self._defined_tags = None self._freeform_tags = None + self._update_channel = None self._kms_key_id = None self._domain_id = None self._admin_user = None @@ -458,6 +482,37 @@ def freeform_tags(self, freeform_tags): """ self._freeform_tags = freeform_tags + @property + def update_channel(self): + """ + Gets the update_channel of this CreateAnalyticsInstanceDetails. + Analytics instance update channel. + + Allowed values for this property are: "REGULAR", "EARLY", "PHASE_2", "PHASE_1" + + + :return: The update_channel of this CreateAnalyticsInstanceDetails. + :rtype: str + """ + return self._update_channel + + @update_channel.setter + def update_channel(self, update_channel): + """ + Sets the update_channel of this CreateAnalyticsInstanceDetails. + Analytics instance update channel. + + + :param update_channel: The update_channel of this CreateAnalyticsInstanceDetails. + :type: str + """ + allowed_values = ["REGULAR", "EARLY", "PHASE_2", "PHASE_1"] + if not value_allowed_none_or_none_sentinel(update_channel, allowed_values): + raise ValueError( + f"Invalid value for `update_channel`, must be None or one of {allowed_values}" + ) + self._update_channel = update_channel + @property def kms_key_id(self): """ diff --git a/src/oci/analytics/models/update_analytics_instance_details.py b/src/oci/analytics/models/update_analytics_instance_details.py index 642c4a422..718649878 100644 --- a/src/oci/analytics/models/update_analytics_instance_details.py +++ b/src/oci/analytics/models/update_analytics_instance_details.py @@ -24,6 +24,22 @@ class UpdateAnalyticsInstanceDetails(object): #: This constant has a value of "BRING_YOUR_OWN_LICENSE" LICENSE_TYPE_BRING_YOUR_OWN_LICENSE = "BRING_YOUR_OWN_LICENSE" + #: A constant which can be used with the update_channel property of a UpdateAnalyticsInstanceDetails. + #: This constant has a value of "REGULAR" + UPDATE_CHANNEL_REGULAR = "REGULAR" + + #: A constant which can be used with the update_channel property of a UpdateAnalyticsInstanceDetails. + #: This constant has a value of "EARLY" + UPDATE_CHANNEL_EARLY = "EARLY" + + #: A constant which can be used with the update_channel property of a UpdateAnalyticsInstanceDetails. + #: This constant has a value of "PHASE_2" + UPDATE_CHANNEL_PHASE_2 = "PHASE_2" + + #: A constant which can be used with the update_channel property of a UpdateAnalyticsInstanceDetails. + #: This constant has a value of "PHASE_1" + UPDATE_CHANNEL_PHASE_1 = "PHASE_1" + def __init__(self, **kwargs): """ Initializes a new UpdateAnalyticsInstanceDetails object with values from keyword arguments. @@ -50,13 +66,19 @@ def __init__(self, **kwargs): The value to assign to the freeform_tags property of this UpdateAnalyticsInstanceDetails. :type freeform_tags: dict(str, str) + :param update_channel: + The value to assign to the update_channel property of this UpdateAnalyticsInstanceDetails. + Allowed values for this property are: "REGULAR", "EARLY", "PHASE_2", "PHASE_1" + :type update_channel: str + """ self.swagger_types = { 'description': 'str', 'email_notification': 'str', 'license_type': 'str', 'defined_tags': 'dict(str, dict(str, object))', - 'freeform_tags': 'dict(str, str)' + 'freeform_tags': 'dict(str, str)', + 'update_channel': 'str' } self.attribute_map = { @@ -64,7 +86,8 @@ def __init__(self, **kwargs): 'email_notification': 'emailNotification', 'license_type': 'licenseType', 'defined_tags': 'definedTags', - 'freeform_tags': 'freeformTags' + 'freeform_tags': 'freeformTags', + 'update_channel': 'updateChannel' } self._description = None @@ -72,6 +95,7 @@ def __init__(self, **kwargs): self._license_type = None self._defined_tags = None self._freeform_tags = None + self._update_channel = None @property def description(self): @@ -220,6 +244,37 @@ def freeform_tags(self, freeform_tags): """ self._freeform_tags = freeform_tags + @property + def update_channel(self): + """ + Gets the update_channel of this UpdateAnalyticsInstanceDetails. + Analytics instance update channel. + + Allowed values for this property are: "REGULAR", "EARLY", "PHASE_2", "PHASE_1" + + + :return: The update_channel of this UpdateAnalyticsInstanceDetails. + :rtype: str + """ + return self._update_channel + + @update_channel.setter + def update_channel(self, update_channel): + """ + Sets the update_channel of this UpdateAnalyticsInstanceDetails. + Analytics instance update channel. + + + :param update_channel: The update_channel of this UpdateAnalyticsInstanceDetails. + :type: str + """ + allowed_values = ["REGULAR", "EARLY", "PHASE_2", "PHASE_1"] + if not value_allowed_none_or_none_sentinel(update_channel, allowed_values): + raise ValueError( + f"Invalid value for `update_channel`, must be None or one of {allowed_values}" + ) + self._update_channel = update_channel + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/announcements_service/models/base_announcement.py b/src/oci/announcements_service/models/base_announcement.py index 556716197..ad7aa852a 100644 --- a/src/oci/announcements_service/models/base_announcement.py +++ b/src/oci/announcements_service/models/base_announcement.py @@ -159,7 +159,8 @@ def __init__(self, **kwargs): :param time_one_type: The value to assign to the time_one_type property of this BaseAnnouncement. - Allowed values for this property are: "ACTION_REQUIRED_BY", "NEW_START_TIME", "ORIGINAL_END_TIME", "REPORT_DATE", "START_TIME", "TIME_DETECTED" + Allowed values for this property are: "ACTION_REQUIRED_BY", "NEW_START_TIME", "ORIGINAL_END_TIME", "REPORT_DATE", "START_TIME", "TIME_DETECTED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type time_one_type: str :param time_one_value: @@ -172,7 +173,8 @@ def __init__(self, **kwargs): :param time_two_type: The value to assign to the time_two_type property of this BaseAnnouncement. - Allowed values for this property are: "END_TIME", "NEW_END_TIME", "ESTIMATED_END_TIME" + Allowed values for this property are: "END_TIME", "NEW_END_TIME", "ESTIMATED_END_TIME", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type time_two_type: str :param time_two_value: @@ -189,12 +191,14 @@ def __init__(self, **kwargs): :param announcement_type: The value to assign to the announcement_type property of this BaseAnnouncement. - Allowed values for this property are: "ACTION_RECOMMENDED", "ACTION_REQUIRED", "EMERGENCY_CHANGE", "EMERGENCY_MAINTENANCE", "EMERGENCY_MAINTENANCE_COMPLETE", "EMERGENCY_MAINTENANCE_EXTENDED", "EMERGENCY_MAINTENANCE_RESCHEDULED", "INFORMATION", "PLANNED_CHANGE", "PLANNED_CHANGE_COMPLETE", "PLANNED_CHANGE_EXTENDED", "PLANNED_CHANGE_RESCHEDULED", "PRODUCTION_EVENT_NOTIFICATION", "SCHEDULED_MAINTENANCE" + Allowed values for this property are: "ACTION_RECOMMENDED", "ACTION_REQUIRED", "EMERGENCY_CHANGE", "EMERGENCY_MAINTENANCE", "EMERGENCY_MAINTENANCE_COMPLETE", "EMERGENCY_MAINTENANCE_EXTENDED", "EMERGENCY_MAINTENANCE_RESCHEDULED", "INFORMATION", "PLANNED_CHANGE", "PLANNED_CHANGE_COMPLETE", "PLANNED_CHANGE_EXTENDED", "PLANNED_CHANGE_RESCHEDULED", "PRODUCTION_EVENT_NOTIFICATION", "SCHEDULED_MAINTENANCE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type announcement_type: str :param lifecycle_state: The value to assign to the lifecycle_state property of this BaseAnnouncement. - Allowed values for this property are: "ACTIVE", "INACTIVE" + Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param is_banner: @@ -215,7 +219,8 @@ def __init__(self, **kwargs): :param platform_type: The value to assign to the platform_type property of this BaseAnnouncement. - Allowed values for this property are: "IAAS", "SAAS", "PAAS" + Allowed values for this property are: "IAAS", "SAAS", "PAAS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type platform_type: str :param chain_id: @@ -437,7 +442,8 @@ def time_one_type(self): The type of a time associated with an initial time value. If the `timeOneTitle` attribute is present, then the `timeOneTitle` attribute contains a label of `timeOneType` in English. Example: `START_TIME` - Allowed values for this property are: "ACTION_REQUIRED_BY", "NEW_START_TIME", "ORIGINAL_END_TIME", "REPORT_DATE", "START_TIME", "TIME_DETECTED" + Allowed values for this property are: "ACTION_REQUIRED_BY", "NEW_START_TIME", "ORIGINAL_END_TIME", "REPORT_DATE", "START_TIME", "TIME_DETECTED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The time_one_type of this BaseAnnouncement. @@ -458,9 +464,7 @@ def time_one_type(self, time_one_type): """ allowed_values = ["ACTION_REQUIRED_BY", "NEW_START_TIME", "ORIGINAL_END_TIME", "REPORT_DATE", "START_TIME", "TIME_DETECTED"] if not value_allowed_none_or_none_sentinel(time_one_type, allowed_values): - raise ValueError( - f"Invalid value for `time_one_type`, must be None or one of {allowed_values}" - ) + time_one_type = 'UNKNOWN_ENUM_VALUE' self._time_one_type = time_one_type @property @@ -522,7 +526,8 @@ def time_two_type(self): The type of a time associated with second time value. If the `timeTwoTitle` attribute is present, then the `timeTwoTitle` attribute contains a label of `timeTwoType` in English. Example: `END_TIME` - Allowed values for this property are: "END_TIME", "NEW_END_TIME", "ESTIMATED_END_TIME" + Allowed values for this property are: "END_TIME", "NEW_END_TIME", "ESTIMATED_END_TIME", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The time_two_type of this BaseAnnouncement. @@ -543,9 +548,7 @@ def time_two_type(self, time_two_type): """ allowed_values = ["END_TIME", "NEW_END_TIME", "ESTIMATED_END_TIME"] if not value_allowed_none_or_none_sentinel(time_two_type, allowed_values): - raise ValueError( - f"Invalid value for `time_two_type`, must be None or one of {allowed_values}" - ) + time_two_type = 'UNKNOWN_ENUM_VALUE' self._time_two_type = time_two_type @property @@ -628,7 +631,8 @@ def announcement_type(self): **[Required]** Gets the announcement_type of this BaseAnnouncement. The type of announcement. An announcement's type signals its severity. - Allowed values for this property are: "ACTION_RECOMMENDED", "ACTION_REQUIRED", "EMERGENCY_CHANGE", "EMERGENCY_MAINTENANCE", "EMERGENCY_MAINTENANCE_COMPLETE", "EMERGENCY_MAINTENANCE_EXTENDED", "EMERGENCY_MAINTENANCE_RESCHEDULED", "INFORMATION", "PLANNED_CHANGE", "PLANNED_CHANGE_COMPLETE", "PLANNED_CHANGE_EXTENDED", "PLANNED_CHANGE_RESCHEDULED", "PRODUCTION_EVENT_NOTIFICATION", "SCHEDULED_MAINTENANCE" + Allowed values for this property are: "ACTION_RECOMMENDED", "ACTION_REQUIRED", "EMERGENCY_CHANGE", "EMERGENCY_MAINTENANCE", "EMERGENCY_MAINTENANCE_COMPLETE", "EMERGENCY_MAINTENANCE_EXTENDED", "EMERGENCY_MAINTENANCE_RESCHEDULED", "INFORMATION", "PLANNED_CHANGE", "PLANNED_CHANGE_COMPLETE", "PLANNED_CHANGE_EXTENDED", "PLANNED_CHANGE_RESCHEDULED", "PRODUCTION_EVENT_NOTIFICATION", "SCHEDULED_MAINTENANCE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The announcement_type of this BaseAnnouncement. @@ -648,9 +652,7 @@ def announcement_type(self, announcement_type): """ allowed_values = ["ACTION_RECOMMENDED", "ACTION_REQUIRED", "EMERGENCY_CHANGE", "EMERGENCY_MAINTENANCE", "EMERGENCY_MAINTENANCE_COMPLETE", "EMERGENCY_MAINTENANCE_EXTENDED", "EMERGENCY_MAINTENANCE_RESCHEDULED", "INFORMATION", "PLANNED_CHANGE", "PLANNED_CHANGE_COMPLETE", "PLANNED_CHANGE_EXTENDED", "PLANNED_CHANGE_RESCHEDULED", "PRODUCTION_EVENT_NOTIFICATION", "SCHEDULED_MAINTENANCE"] if not value_allowed_none_or_none_sentinel(announcement_type, allowed_values): - raise ValueError( - f"Invalid value for `announcement_type`, must be None or one of {allowed_values}" - ) + announcement_type = 'UNKNOWN_ENUM_VALUE' self._announcement_type = announcement_type @property @@ -659,7 +661,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this BaseAnnouncement. The current lifecycle state of the announcement. - Allowed values for this property are: "ACTIVE", "INACTIVE" + Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this BaseAnnouncement. @@ -679,9 +682,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["ACTIVE", "INACTIVE"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property @@ -798,7 +799,8 @@ def platform_type(self): Gets the platform_type of this BaseAnnouncement. The platform type that this announcement pertains to. - Allowed values for this property are: "IAAS", "SAAS", "PAAS" + Allowed values for this property are: "IAAS", "SAAS", "PAAS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The platform_type of this BaseAnnouncement. @@ -818,9 +820,7 @@ def platform_type(self, platform_type): """ allowed_values = ["IAAS", "SAAS", "PAAS"] if not value_allowed_none_or_none_sentinel(platform_type, allowed_values): - raise ValueError( - f"Invalid value for `platform_type`, must be None or one of {allowed_values}" - ) + platform_type = 'UNKNOWN_ENUM_VALUE' self._platform_type = platform_type @property diff --git a/src/oci/announcements_service/models/base_create_announcements_preferences_details.py b/src/oci/announcements_service/models/base_create_announcements_preferences_details.py index f7c16a101..81e0ed3c9 100644 --- a/src/oci/announcements_service/models/base_create_announcements_preferences_details.py +++ b/src/oci/announcements_service/models/base_create_announcements_preferences_details.py @@ -51,7 +51,8 @@ def __init__(self, **kwargs): :param preference_type: The value to assign to the preference_type property of this BaseCreateAnnouncementsPreferencesDetails. - Allowed values for this property are: "OPT_IN_TENANT_ANNOUNCEMENTS", "OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS", "OPT_OUT_ALL_ANNOUNCEMENTS" + Allowed values for this property are: "OPT_IN_TENANT_ANNOUNCEMENTS", "OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS", "OPT_OUT_ALL_ANNOUNCEMENTS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type preference_type: str :param preferred_time_zone: @@ -179,7 +180,8 @@ def preference_type(self): **[Required]** Gets the preference_type of this BaseCreateAnnouncementsPreferencesDetails. The string representing the user's preference, whether to opt in to only required announcements, to opt in to all announcements, including informational announcements, or to opt out of all announcements. - Allowed values for this property are: "OPT_IN_TENANT_ANNOUNCEMENTS", "OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS", "OPT_OUT_ALL_ANNOUNCEMENTS" + Allowed values for this property are: "OPT_IN_TENANT_ANNOUNCEMENTS", "OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS", "OPT_OUT_ALL_ANNOUNCEMENTS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The preference_type of this BaseCreateAnnouncementsPreferencesDetails. @@ -199,9 +201,7 @@ def preference_type(self, preference_type): """ allowed_values = ["OPT_IN_TENANT_ANNOUNCEMENTS", "OPT_IN_TENANT_AND_INFORMATIONAL_ANNOUNCEMENTS", "OPT_OUT_ALL_ANNOUNCEMENTS"] if not value_allowed_none_or_none_sentinel(preference_type, allowed_values): - raise ValueError( - f"Invalid value for `preference_type`, must be None or one of {allowed_values}" - ) + preference_type = 'UNKNOWN_ENUM_VALUE' self._preference_type = preference_type @property diff --git a/src/oci/announcements_service/models/base_service.py b/src/oci/announcements_service/models/base_service.py index 0b222e963..3584fd1eb 100644 --- a/src/oci/announcements_service/models/base_service.py +++ b/src/oci/announcements_service/models/base_service.py @@ -84,12 +84,14 @@ def __init__(self, **kwargs): :param platform_type: The value to assign to the platform_type property of this BaseService. - Allowed values for this property are: "IAAS", "SAAS", "PAAS" + Allowed values for this property are: "IAAS", "SAAS", "PAAS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type platform_type: str :param comms_manager_name: The value to assign to the comms_manager_name property of this BaseService. - Allowed values for this property are: "CN", "FUSION", "AS", "ERF" + Allowed values for this property are: "CN", "FUSION", "AS", "ERF", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type comms_manager_name: str :param excluded_realms: @@ -110,7 +112,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this BaseService. - Allowed values for this property are: "ACTIVE", "DELETED" + Allowed values for this property are: "ACTIVE", "DELETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str """ @@ -302,7 +305,8 @@ def platform_type(self): **[Required]** Gets the platform_type of this BaseService. The platform type this service object is related to. - Allowed values for this property are: "IAAS", "SAAS", "PAAS" + Allowed values for this property are: "IAAS", "SAAS", "PAAS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The platform_type of this BaseService. @@ -322,9 +326,7 @@ def platform_type(self, platform_type): """ allowed_values = ["IAAS", "SAAS", "PAAS"] if not value_allowed_none_or_none_sentinel(platform_type, allowed_values): - raise ValueError( - f"Invalid value for `platform_type`, must be None or one of {allowed_values}" - ) + platform_type = 'UNKNOWN_ENUM_VALUE' self._platform_type = platform_type @property @@ -333,7 +335,8 @@ def comms_manager_name(self): **[Required]** Gets the comms_manager_name of this BaseService. Name of the comms manager team that manages Notifications to this service. - Allowed values for this property are: "CN", "FUSION", "AS", "ERF" + Allowed values for this property are: "CN", "FUSION", "AS", "ERF", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The comms_manager_name of this BaseService. @@ -353,9 +356,7 @@ def comms_manager_name(self, comms_manager_name): """ allowed_values = ["CN", "FUSION", "AS", "ERF"] if not value_allowed_none_or_none_sentinel(comms_manager_name, allowed_values): - raise ValueError( - f"Invalid value for `comms_manager_name`, must be None or one of {allowed_values}" - ) + comms_manager_name = 'UNKNOWN_ENUM_VALUE' self._comms_manager_name = comms_manager_name @property @@ -460,7 +461,8 @@ def lifecycle_state(self): Gets the lifecycle_state of this BaseService. Current state of the service object. - Allowed values for this property are: "ACTIVE", "DELETED" + Allowed values for this property are: "ACTIVE", "DELETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this BaseService. @@ -480,9 +482,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["ACTIVE", "DELETED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state def __repr__(self): diff --git a/src/oci/apigateway/models/body_validation_request_policy.py b/src/oci/apigateway/models/body_validation_request_policy.py index bbb37d9e1..4c57401c9 100644 --- a/src/oci/apigateway/models/body_validation_request_policy.py +++ b/src/oci/apigateway/models/body_validation_request_policy.py @@ -42,7 +42,8 @@ def __init__(self, **kwargs): :param validation_mode: The value to assign to the validation_mode property of this BodyValidationRequestPolicy. - Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" + Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type validation_mode: str """ @@ -148,7 +149,8 @@ def validation_mode(self): `DISABLED` type turns the validation off. - Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" + Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The validation_mode of this BodyValidationRequestPolicy. @@ -176,9 +178,7 @@ def validation_mode(self, validation_mode): """ allowed_values = ["ENFORCING", "PERMISSIVE", "DISABLED"] if not value_allowed_none_or_none_sentinel(validation_mode, allowed_values): - raise ValueError( - f"Invalid value for `validation_mode`, must be None or one of {allowed_values}" - ) + validation_mode = 'UNKNOWN_ENUM_VALUE' self._validation_mode = validation_mode def __repr__(self): diff --git a/src/oci/apigateway/models/header_validation_request_policy.py b/src/oci/apigateway/models/header_validation_request_policy.py index fe3f45aa2..8059ffb9b 100644 --- a/src/oci/apigateway/models/header_validation_request_policy.py +++ b/src/oci/apigateway/models/header_validation_request_policy.py @@ -38,7 +38,8 @@ def __init__(self, **kwargs): :param validation_mode: The value to assign to the validation_mode property of this HeaderValidationRequestPolicy. - Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" + Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type validation_mode: str """ @@ -89,7 +90,8 @@ def validation_mode(self): `DISABLED` type turns the validation off. - Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" + Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The validation_mode of this HeaderValidationRequestPolicy. @@ -117,9 +119,7 @@ def validation_mode(self, validation_mode): """ allowed_values = ["ENFORCING", "PERMISSIVE", "DISABLED"] if not value_allowed_none_or_none_sentinel(validation_mode, allowed_values): - raise ValueError( - f"Invalid value for `validation_mode`, must be None or one of {allowed_values}" - ) + validation_mode = 'UNKNOWN_ENUM_VALUE' self._validation_mode = validation_mode def __repr__(self): diff --git a/src/oci/apigateway/models/validation_request_policy.py b/src/oci/apigateway/models/validation_request_policy.py index c5e179aef..26a1ff682 100644 --- a/src/oci/apigateway/models/validation_request_policy.py +++ b/src/oci/apigateway/models/validation_request_policy.py @@ -34,7 +34,8 @@ def __init__(self, **kwargs): :param validation_mode: The value to assign to the validation_mode property of this ValidationRequestPolicy. - Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" + Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type validation_mode: str """ @@ -62,7 +63,8 @@ def validation_mode(self): `DISABLED` type turns the validation off. - Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED" + Allowed values for this property are: "ENFORCING", "PERMISSIVE", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The validation_mode of this ValidationRequestPolicy. @@ -90,9 +92,7 @@ def validation_mode(self, validation_mode): """ allowed_values = ["ENFORCING", "PERMISSIVE", "DISABLED"] if not value_allowed_none_or_none_sentinel(validation_mode, allowed_values): - raise ValueError( - f"Invalid value for `validation_mode`, must be None or one of {allowed_values}" - ) + validation_mode = 'UNKNOWN_ENUM_VALUE' self._validation_mode = validation_mode def __repr__(self): diff --git a/src/oci/apm_control_plane/models/base_domain_details.py b/src/oci/apm_control_plane/models/base_domain_details.py index 3205f4139..a8a128e53 100644 --- a/src/oci/apm_control_plane/models/base_domain_details.py +++ b/src/oci/apm_control_plane/models/base_domain_details.py @@ -62,7 +62,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this BaseDomainDetails. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param is_free_tier: @@ -225,7 +226,8 @@ def lifecycle_state(self): Gets the lifecycle_state of this BaseDomainDetails. The current lifecycle state of the APM domain. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this BaseDomainDetails. @@ -245,9 +247,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property diff --git a/src/oci/apm_control_plane/models/base_key_details.py b/src/oci/apm_control_plane/models/base_key_details.py index 8f88a3aac..7b9322d96 100644 --- a/src/oci/apm_control_plane/models/base_key_details.py +++ b/src/oci/apm_control_plane/models/base_key_details.py @@ -34,7 +34,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this BaseKeyDetails. - Allowed values for this property are: "PRIVATE", "PUBLIC" + Allowed values for this property are: "PRIVATE", "PUBLIC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str """ @@ -81,7 +82,8 @@ def type(self): **[Required]** Gets the type of this BaseKeyDetails. Type of the Data Key. - Allowed values for this property are: "PRIVATE", "PUBLIC" + Allowed values for this property are: "PRIVATE", "PUBLIC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this BaseKeyDetails. @@ -101,9 +103,7 @@ def type(self, type): """ allowed_values = ["PRIVATE", "PUBLIC"] if not value_allowed_none_or_none_sentinel(type, allowed_values): - raise ValueError( - f"Invalid value for `type`, must be None or one of {allowed_values}" - ) + type = 'UNKNOWN_ENUM_VALUE' self._type = type def __repr__(self): diff --git a/src/oci/blockchain/models/availability_domain.py b/src/oci/blockchain/models/availability_domain.py index 7fc559b74..0d34ccc5f 100644 --- a/src/oci/blockchain/models/availability_domain.py +++ b/src/oci/blockchain/models/availability_domain.py @@ -34,7 +34,8 @@ def __init__(self, **kwargs): :param ads: The value to assign to the ads property of this AvailabilityDomain. - Allowed values for this property are: "AD1", "AD2", "AD3" + Allowed values for this property are: "AD1", "AD2", "AD3", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type ads: str """ @@ -54,7 +55,8 @@ def ads(self): Gets the ads of this AvailabilityDomain. Availability Domain Identifiers - Allowed values for this property are: "AD1", "AD2", "AD3" + Allowed values for this property are: "AD1", "AD2", "AD3", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The ads of this AvailabilityDomain. @@ -74,9 +76,7 @@ def ads(self, ads): """ allowed_values = ["AD1", "AD2", "AD3"] if not value_allowed_none_or_none_sentinel(ads, allowed_values): - raise ValueError( - f"Invalid value for `ads`, must be None or one of {allowed_values}" - ) + ads = 'UNKNOWN_ENUM_VALUE' self._ads = ads def __repr__(self): diff --git a/src/oci/blockchain/models/peer_role.py b/src/oci/blockchain/models/peer_role.py index 16e19c4d2..946e816db 100644 --- a/src/oci/blockchain/models/peer_role.py +++ b/src/oci/blockchain/models/peer_role.py @@ -30,7 +30,8 @@ def __init__(self, **kwargs): :param role: The value to assign to the role property of this PeerRole. - Allowed values for this property are: "MEMBER", "ADMIN" + Allowed values for this property are: "MEMBER", "ADMIN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type role: str """ @@ -50,7 +51,8 @@ def role(self): Gets the role of this PeerRole. Peer role names - Allowed values for this property are: "MEMBER", "ADMIN" + Allowed values for this property are: "MEMBER", "ADMIN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The role of this PeerRole. @@ -70,9 +72,7 @@ def role(self, role): """ allowed_values = ["MEMBER", "ADMIN"] if not value_allowed_none_or_none_sentinel(role, allowed_values): - raise ValueError( - f"Invalid value for `role`, must be None or one of {allowed_values}" - ) + role = 'UNKNOWN_ENUM_VALUE' self._role = role def __repr__(self): diff --git a/src/oci/core/models/compute_bare_metal_host.py b/src/oci/core/models/compute_bare_metal_host.py index 8ff210fa2..8bc71eb22 100644 --- a/src/oci/core/models/compute_bare_metal_host.py +++ b/src/oci/core/models/compute_bare_metal_host.py @@ -70,12 +70,14 @@ def __init__(self, **kwargs): :param lifecycle_details: The value to assign to the lifecycle_details property of this ComputeBareMetalHost. - Allowed values for this property are: "AVAILABLE", "DEGRADED", "UNAVAILABLE" + Allowed values for this property are: "AVAILABLE", "DEGRADED", "UNAVAILABLE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_details: str :param lifecycle_state: The value to assign to the lifecycle_state property of this ComputeBareMetalHost. - Allowed values for this property are: "ACTIVE", "INACTIVE" + Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: @@ -325,7 +327,8 @@ def lifecycle_details(self): Gets the lifecycle_details of this ComputeBareMetalHost. The lifecycle state details of the compute bare metal host. - Allowed values for this property are: "AVAILABLE", "DEGRADED", "UNAVAILABLE" + Allowed values for this property are: "AVAILABLE", "DEGRADED", "UNAVAILABLE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_details of this ComputeBareMetalHost. @@ -345,9 +348,7 @@ def lifecycle_details(self, lifecycle_details): """ allowed_values = ["AVAILABLE", "DEGRADED", "UNAVAILABLE"] if not value_allowed_none_or_none_sentinel(lifecycle_details, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_details`, must be None or one of {allowed_values}" - ) + lifecycle_details = 'UNKNOWN_ENUM_VALUE' self._lifecycle_details = lifecycle_details @property @@ -356,7 +357,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this ComputeBareMetalHost. The current state of the compute bare metal host. - Allowed values for this property are: "ACTIVE", "INACTIVE" + Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this ComputeBareMetalHost. @@ -376,9 +378,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["ACTIVE", "INACTIVE"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property diff --git a/src/oci/core/models/compute_hpc_island.py b/src/oci/core/models/compute_hpc_island.py index 3e984b938..78e349896 100644 --- a/src/oci/core/models/compute_hpc_island.py +++ b/src/oci/core/models/compute_hpc_island.py @@ -38,7 +38,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this ComputeHpcIsland. - Allowed values for this property are: "ACTIVE", "INACTIVE" + Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: @@ -141,7 +142,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this ComputeHpcIsland. The current state of the compute HPC island. - Allowed values for this property are: "ACTIVE", "INACTIVE" + Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this ComputeHpcIsland. @@ -161,9 +163,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["ACTIVE", "INACTIVE"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property diff --git a/src/oci/core/models/compute_network_block.py b/src/oci/core/models/compute_network_block.py index 986e7f138..8f0f34b8a 100644 --- a/src/oci/core/models/compute_network_block.py +++ b/src/oci/core/models/compute_network_block.py @@ -42,7 +42,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this ComputeNetworkBlock. - Allowed values for this property are: "ACTIVE", "INACTIVE" + Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: @@ -176,7 +177,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this ComputeNetworkBlock. The current state of the compute network block. - Allowed values for this property are: "ACTIVE", "INACTIVE" + Allowed values for this property are: "ACTIVE", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this ComputeNetworkBlock. @@ -196,9 +198,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["ACTIVE", "INACTIVE"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property diff --git a/src/oci/core/models/topology.py b/src/oci/core/models/topology.py index 613c82550..3748a8d3e 100644 --- a/src/oci/core/models/topology.py +++ b/src/oci/core/models/topology.py @@ -44,7 +44,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this Topology. - Allowed values for this property are: "NETWORKING", "VCN", "SUBNET", "PATH" + Allowed values for this property are: "NETWORKING", "VCN", "SUBNET", "PATH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param entities: @@ -111,7 +112,8 @@ def type(self): **[Required]** Gets the type of this Topology. Type of the topology object. - Allowed values for this property are: "NETWORKING", "VCN", "SUBNET", "PATH" + Allowed values for this property are: "NETWORKING", "VCN", "SUBNET", "PATH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this Topology. @@ -131,9 +133,7 @@ def type(self, type): """ allowed_values = ["NETWORKING", "VCN", "SUBNET", "PATH"] if not value_allowed_none_or_none_sentinel(type, allowed_values): - raise ValueError( - f"Invalid value for `type`, must be None or one of {allowed_values}" - ) + type = 'UNKNOWN_ENUM_VALUE' self._type = type @property diff --git a/src/oci/core/virtual_network_client.py b/src/oci/core/virtual_network_client.py index 6d5ded5fd..e1f4f75a5 100644 --- a/src/oci/core/virtual_network_client.py +++ b/src/oci/core/virtual_network_client.py @@ -10794,7 +10794,7 @@ def get_cpe_device_config_content(self, cpe_id, **kwargs): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { - "accept": "text/plain; charset=utf-8", + "accept": "text/plain; charset=utf-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } @@ -12772,7 +12772,7 @@ def get_ipsec_cpe_device_config_content(self, ipsc_id, **kwargs): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { - "accept": "text/plain; charset=utf-8", + "accept": "text/plain; charset=utf-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } @@ -14960,7 +14960,7 @@ def get_tunnel_cpe_device_config_content(self, ipsc_id, tunnel_id, **kwargs): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') header_params = { - "accept": "text/plain; charset=utf-8", + "accept": "text/plain; charset=utf-8", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing) } diff --git a/src/oci/data_catalog/models/base_tag.py b/src/oci/data_catalog/models/base_tag.py index d3ee43b86..ecc3346e0 100644 --- a/src/oci/data_catalog/models/base_tag.py +++ b/src/oci/data_catalog/models/base_tag.py @@ -74,7 +74,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this BaseTag. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING" + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: @@ -250,7 +251,8 @@ def lifecycle_state(self): Gets the lifecycle_state of this BaseTag. The current state of the tag. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING" + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this BaseTag. @@ -270,9 +272,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property diff --git a/src/oci/data_catalog/models/base_tag_summary.py b/src/oci/data_catalog/models/base_tag_summary.py index df6224405..5eb906680 100644 --- a/src/oci/data_catalog/models/base_tag_summary.py +++ b/src/oci/data_catalog/models/base_tag_summary.py @@ -86,7 +86,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this BaseTagSummary. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING" + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str """ @@ -328,7 +329,8 @@ def lifecycle_state(self): Gets the lifecycle_state of this BaseTagSummary. State of the Tag. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING" + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this BaseTagSummary. @@ -348,9 +350,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "MOVING"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state def __repr__(self): diff --git a/src/oci/data_catalog/models/object_lineage.py b/src/oci/data_catalog/models/object_lineage.py index 206e987d7..e4ecbaf5f 100644 --- a/src/oci/data_catalog/models/object_lineage.py +++ b/src/oci/data_catalog/models/object_lineage.py @@ -38,7 +38,8 @@ def __init__(self, **kwargs): :param direction: The value to assign to the direction property of this ObjectLineage. - Allowed values for this property are: "UPSTREAM", "BOTH", "DOWNSTREAM" + Allowed values for this property are: "UPSTREAM", "BOTH", "DOWNSTREAM", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type direction: str :param objects: @@ -106,7 +107,8 @@ def direction(self): **[Required]** Gets the direction of this ObjectLineage. Direction of the lineage returned. - Allowed values for this property are: "UPSTREAM", "BOTH", "DOWNSTREAM" + Allowed values for this property are: "UPSTREAM", "BOTH", "DOWNSTREAM", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The direction of this ObjectLineage. @@ -126,9 +128,7 @@ def direction(self, direction): """ allowed_values = ["UPSTREAM", "BOTH", "DOWNSTREAM"] if not value_allowed_none_or_none_sentinel(direction, allowed_values): - raise ValueError( - f"Invalid value for `direction`, must be None or one of {allowed_values}" - ) + direction = 'UNKNOWN_ENUM_VALUE' self._direction = direction @property diff --git a/src/oci/data_integration/models/abstract_call_attribute.py b/src/oci/data_integration/models/abstract_call_attribute.py index cf6a484d4..828769446 100644 --- a/src/oci/data_integration/models/abstract_call_attribute.py +++ b/src/oci/data_integration/models/abstract_call_attribute.py @@ -35,7 +35,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this AbstractCallAttribute. - Allowed values for this property are: "BIP_CALL_ATTRIBUTE", "GENERIC_REST_CALL_ATTRIBUTE" + Allowed values for this property are: "BIP_CALL_ATTRIBUTE", "GENERIC_REST_CALL_ATTRIBUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param fetch_size: @@ -78,7 +79,8 @@ def model_type(self): **[Required]** Gets the model_type of this AbstractCallAttribute. The type of the abstract call attribute. - Allowed values for this property are: "BIP_CALL_ATTRIBUTE", "GENERIC_REST_CALL_ATTRIBUTE" + Allowed values for this property are: "BIP_CALL_ATTRIBUTE", "GENERIC_REST_CALL_ATTRIBUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this AbstractCallAttribute. @@ -98,9 +100,7 @@ def model_type(self, model_type): """ allowed_values = ["BIP_CALL_ATTRIBUTE", "GENERIC_REST_CALL_ATTRIBUTE"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): - raise ValueError( - f"Invalid value for `model_type`, must be None or one of {allowed_values}" - ) + model_type = 'UNKNOWN_ENUM_VALUE' self._model_type = model_type @property diff --git a/src/oci/data_integration/models/abstract_data_operation_config.py b/src/oci/data_integration/models/abstract_data_operation_config.py index 7ac00a781..08934b4f1 100644 --- a/src/oci/data_integration/models/abstract_data_operation_config.py +++ b/src/oci/data_integration/models/abstract_data_operation_config.py @@ -35,7 +35,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this AbstractDataOperationConfig. - Allowed values for this property are: "READ_OPERATION_CONFIG", "WRITE_OPERATION_CONFIG" + Allowed values for this property are: "READ_OPERATION_CONFIG", "WRITE_OPERATION_CONFIG", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param metadata_config_properties: @@ -92,7 +93,8 @@ def model_type(self): **[Required]** Gets the model_type of this AbstractDataOperationConfig. The type of data operation. - Allowed values for this property are: "READ_OPERATION_CONFIG", "WRITE_OPERATION_CONFIG" + Allowed values for this property are: "READ_OPERATION_CONFIG", "WRITE_OPERATION_CONFIG", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this AbstractDataOperationConfig. @@ -112,9 +114,7 @@ def model_type(self, model_type): """ allowed_values = ["READ_OPERATION_CONFIG", "WRITE_OPERATION_CONFIG"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): - raise ValueError( - f"Invalid value for `model_type`, must be None or one of {allowed_values}" - ) + model_type = 'UNKNOWN_ENUM_VALUE' self._model_type = model_type @property diff --git a/src/oci/data_integration/models/cancel_rest_call_config.py b/src/oci/data_integration/models/cancel_rest_call_config.py index c8920c606..9e989ccf9 100644 --- a/src/oci/data_integration/models/cancel_rest_call_config.py +++ b/src/oci/data_integration/models/cancel_rest_call_config.py @@ -42,7 +42,8 @@ def __init__(self, **kwargs): :param method_type: The value to assign to the method_type property of this CancelRestCallConfig. - Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT" + Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type method_type: str :param request_headers: @@ -76,7 +77,8 @@ def method_type(self): Gets the method_type of this CancelRestCallConfig. The REST method to use. - Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT" + Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The method_type of this CancelRestCallConfig. @@ -96,9 +98,7 @@ def method_type(self, method_type): """ allowed_values = ["GET", "POST", "PATCH", "DELETE", "PUT"] if not value_allowed_none_or_none_sentinel(method_type, allowed_values): - raise ValueError( - f"Invalid value for `method_type`, must be None or one of {allowed_values}" - ) + method_type = 'UNKNOWN_ENUM_VALUE' self._method_type = method_type @property diff --git a/src/oci/data_integration/models/composite_type.py b/src/oci/data_integration/models/composite_type.py index 6f0cf15ab..e8c7d8643 100644 --- a/src/oci/data_integration/models/composite_type.py +++ b/src/oci/data_integration/models/composite_type.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CompositeType. - Allowed values for this property are: "DYNAMIC_TYPE", "STRUCTURED_TYPE", "DATA_TYPE", "JAVA_TYPE", "CONFIGURED_TYPE", "COMPOSITE_TYPE", "DERIVED_TYPE", "ARRAY_TYPE", "MAP_TYPE", "MATERIALIZED_COMPOSITE_TYPE" + Allowed values for this property are: "DYNAMIC_TYPE", "STRUCTURED_TYPE", "DATA_TYPE", "JAVA_TYPE", "CONFIGURED_TYPE", "COMPOSITE_TYPE", "DERIVED_TYPE", "ARRAY_TYPE", "MAP_TYPE", "MATERIALIZED_COMPOSITE_TYPE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/conditional_composite_field_map.py b/src/oci/data_integration/models/conditional_composite_field_map.py index 602995ed8..07ec80f2b 100644 --- a/src/oci/data_integration/models/conditional_composite_field_map.py +++ b/src/oci/data_integration/models/conditional_composite_field_map.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConditionalCompositeFieldMap. - Allowed values for this property are: "DIRECT_NAMED_FIELD_MAP", "COMPOSITE_FIELD_MAP", "DIRECT_FIELD_MAP", "RULE_BASED_FIELD_MAP", "CONDITIONAL_COMPOSITE_FIELD_MAP", "NAMED_ENTITY_MAP", "RULE_BASED_ENTITY_MAP" + Allowed values for this property are: "DIRECT_NAMED_FIELD_MAP", "COMPOSITE_FIELD_MAP", "DIRECT_FIELD_MAP", "RULE_BASED_FIELD_MAP", "CONDITIONAL_COMPOSITE_FIELD_MAP", "NAMED_ENTITY_MAP", "RULE_BASED_ENTITY_MAP", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param description: diff --git a/src/oci/data_integration/models/connection_details.py b/src/oci/data_integration/models/connection_details.py index 88021d22c..232888864 100644 --- a/src/oci/data_integration/models/connection_details.py +++ b/src/oci/data_integration/models/connection_details.py @@ -115,7 +115,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: @@ -283,7 +284,8 @@ def model_type(self): **[Required]** Gets the model_type of this ConnectionDetails. The type of the connection. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this ConnectionDetails. @@ -303,9 +305,7 @@ def model_type(self, model_type): """ allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): - raise ValueError( - f"Invalid value for `model_type`, must be None or one of {allowed_values}" - ) + model_type = 'UNKNOWN_ENUM_VALUE' self._model_type = model_type @property diff --git a/src/oci/data_integration/models/connection_from_adwc_details.py b/src/oci/data_integration/models/connection_from_adwc_details.py index 5624cf470..a77c8a423 100644 --- a/src/oci/data_integration/models/connection_from_adwc_details.py +++ b/src/oci/data_integration/models/connection_from_adwc_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromAdwcDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_atp_details.py b/src/oci/data_integration/models/connection_from_atp_details.py index 9129072d2..e7b845ed7 100644 --- a/src/oci/data_integration/models/connection_from_atp_details.py +++ b/src/oci/data_integration/models/connection_from_atp_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromAtpDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_hdfs_details.py b/src/oci/data_integration/models/connection_from_hdfs_details.py index 96aa7836e..e3526572d 100644 --- a/src/oci/data_integration/models/connection_from_hdfs_details.py +++ b/src/oci/data_integration/models/connection_from_hdfs_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromHdfsDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_jdbc_details.py b/src/oci/data_integration/models/connection_from_jdbc_details.py index 00f2f8764..6304d6842 100644 --- a/src/oci/data_integration/models/connection_from_jdbc_details.py +++ b/src/oci/data_integration/models/connection_from_jdbc_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromJdbcDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_lake_details.py b/src/oci/data_integration/models/connection_from_lake_details.py index af2ccbc06..8b012e11c 100644 --- a/src/oci/data_integration/models/connection_from_lake_details.py +++ b/src/oci/data_integration/models/connection_from_lake_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromLakeDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_my_sql_details.py b/src/oci/data_integration/models/connection_from_my_sql_details.py index ee1f9b29a..d0959178a 100644 --- a/src/oci/data_integration/models/connection_from_my_sql_details.py +++ b/src/oci/data_integration/models/connection_from_my_sql_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromMySQLDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_my_sql_heat_wave_details.py b/src/oci/data_integration/models/connection_from_my_sql_heat_wave_details.py index cb5178210..be7e080fb 100644 --- a/src/oci/data_integration/models/connection_from_my_sql_heat_wave_details.py +++ b/src/oci/data_integration/models/connection_from_my_sql_heat_wave_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromMySqlHeatWaveDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_o_auth2_details.py b/src/oci/data_integration/models/connection_from_o_auth2_details.py index f033cbb05..e063b80c6 100644 --- a/src/oci/data_integration/models/connection_from_o_auth2_details.py +++ b/src/oci/data_integration/models/connection_from_o_auth2_details.py @@ -27,7 +27,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOAuth2Details. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: @@ -96,7 +97,8 @@ def __init__(self, **kwargs): :param grant_type: The value to assign to the grant_type property of this ConnectionFromOAuth2Details. - Allowed values for this property are: "CLIENT_CREDENTIALS" + Allowed values for this property are: "CLIENT_CREDENTIALS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type grant_type: str """ @@ -260,7 +262,8 @@ def grant_type(self): Gets the grant_type of this ConnectionFromOAuth2Details. Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. - Allowed values for this property are: "CLIENT_CREDENTIALS" + Allowed values for this property are: "CLIENT_CREDENTIALS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The grant_type of this ConnectionFromOAuth2Details. @@ -280,9 +283,7 @@ def grant_type(self, grant_type): """ allowed_values = ["CLIENT_CREDENTIALS"] if not value_allowed_none_or_none_sentinel(grant_type, allowed_values): - raise ValueError( - f"Invalid value for `grant_type`, must be None or one of {allowed_values}" - ) + grant_type = 'UNKNOWN_ENUM_VALUE' self._grant_type = grant_type def __repr__(self): diff --git a/src/oci/data_integration/models/connection_from_object_storage_details.py b/src/oci/data_integration/models/connection_from_object_storage_details.py index 515480ed8..4b77a536a 100644 --- a/src/oci/data_integration/models/connection_from_object_storage_details.py +++ b/src/oci/data_integration/models/connection_from_object_storage_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromObjectStorageDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_ebs_details.py b/src/oci/data_integration/models/connection_from_oracle_ebs_details.py index 755bb1da9..cd964a00f 100644 --- a/src/oci/data_integration/models/connection_from_oracle_ebs_details.py +++ b/src/oci/data_integration/models/connection_from_oracle_ebs_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOracleEbsDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_people_soft_details.py b/src/oci/data_integration/models/connection_from_oracle_people_soft_details.py index 07681535a..e8c6324eb 100644 --- a/src/oci/data_integration/models/connection_from_oracle_people_soft_details.py +++ b/src/oci/data_integration/models/connection_from_oracle_people_soft_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOraclePeopleSoftDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_siebel_details.py b/src/oci/data_integration/models/connection_from_oracle_siebel_details.py index 536fb7028..19a2fec47 100644 --- a/src/oci/data_integration/models/connection_from_oracle_siebel_details.py +++ b/src/oci/data_integration/models/connection_from_oracle_siebel_details.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOracleSiebelDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_adwc.py b/src/oci/data_integration/models/connection_summary_from_adwc.py index 6715f21c6..824843495 100644 --- a/src/oci/data_integration/models/connection_summary_from_adwc.py +++ b/src/oci/data_integration/models/connection_summary_from_adwc.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromAdwc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_atp.py b/src/oci/data_integration/models/connection_summary_from_atp.py index a2cb653db..0aa21db7f 100644 --- a/src/oci/data_integration/models/connection_summary_from_atp.py +++ b/src/oci/data_integration/models/connection_summary_from_atp.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromAtp. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_hdfs.py b/src/oci/data_integration/models/connection_summary_from_hdfs.py index 9025b2b0a..fad5158a6 100644 --- a/src/oci/data_integration/models/connection_summary_from_hdfs.py +++ b/src/oci/data_integration/models/connection_summary_from_hdfs.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromHdfs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_jdbc.py b/src/oci/data_integration/models/connection_summary_from_jdbc.py index 7f3ca5d46..f65953901 100644 --- a/src/oci/data_integration/models/connection_summary_from_jdbc.py +++ b/src/oci/data_integration/models/connection_summary_from_jdbc.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromJdbc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_lake.py b/src/oci/data_integration/models/connection_summary_from_lake.py index f68304305..9a3859a7e 100644 --- a/src/oci/data_integration/models/connection_summary_from_lake.py +++ b/src/oci/data_integration/models/connection_summary_from_lake.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromLake. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_my_sql.py b/src/oci/data_integration/models/connection_summary_from_my_sql.py index 030c9c5c5..3683dbac0 100644 --- a/src/oci/data_integration/models/connection_summary_from_my_sql.py +++ b/src/oci/data_integration/models/connection_summary_from_my_sql.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromMySQL. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py b/src/oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py index 72bdd86a0..af0301f96 100644 --- a/src/oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py +++ b/src/oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromMySqlHeatWave. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_oracle_ebs.py b/src/oci/data_integration/models/connection_summary_from_oracle_ebs.py index d113c58d8..10026fb8c 100644 --- a/src/oci/data_integration/models/connection_summary_from_oracle_ebs.py +++ b/src/oci/data_integration/models/connection_summary_from_oracle_ebs.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromOracleEbs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_oracle_people_soft.py b/src/oci/data_integration/models/connection_summary_from_oracle_people_soft.py index 30e1cddfd..33d58f459 100644 --- a/src/oci/data_integration/models/connection_summary_from_oracle_people_soft.py +++ b/src/oci/data_integration/models/connection_summary_from_oracle_people_soft.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromOraclePeopleSoft. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_oracle_siebel.py b/src/oci/data_integration/models/connection_summary_from_oracle_siebel.py index 2be8e86fe..c26f4fc77 100644 --- a/src/oci/data_integration/models/connection_summary_from_oracle_siebel.py +++ b/src/oci/data_integration/models/connection_summary_from_oracle_siebel.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromOracleSiebel. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connector_attribute.py b/src/oci/data_integration/models/connector_attribute.py index 9e46afb42..dd25720ba 100644 --- a/src/oci/data_integration/models/connector_attribute.py +++ b/src/oci/data_integration/models/connector_attribute.py @@ -30,7 +30,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectorAttribute. - Allowed values for this property are: "EXTERNAL_STORAGE" + Allowed values for this property are: "EXTERNAL_STORAGE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str """ @@ -63,7 +64,8 @@ def model_type(self): **[Required]** Gets the model_type of this ConnectorAttribute. The type of the abstract read attribute. - Allowed values for this property are: "EXTERNAL_STORAGE" + Allowed values for this property are: "EXTERNAL_STORAGE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this ConnectorAttribute. @@ -83,9 +85,7 @@ def model_type(self, model_type): """ allowed_values = ["EXTERNAL_STORAGE"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): - raise ValueError( - f"Invalid value for `model_type`, must be None or one of {allowed_values}" - ) + model_type = 'UNKNOWN_ENUM_VALUE' self._model_type = model_type def __repr__(self): diff --git a/src/oci/data_integration/models/derived_type.py b/src/oci/data_integration/models/derived_type.py index ea1e6f842..e4048d645 100644 --- a/src/oci/data_integration/models/derived_type.py +++ b/src/oci/data_integration/models/derived_type.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this DerivedType. - Allowed values for this property are: "DYNAMIC_TYPE", "STRUCTURED_TYPE", "DATA_TYPE", "JAVA_TYPE", "CONFIGURED_TYPE", "COMPOSITE_TYPE", "DERIVED_TYPE", "ARRAY_TYPE", "MAP_TYPE", "MATERIALIZED_COMPOSITE_TYPE" + Allowed values for this property are: "DYNAMIC_TYPE", "STRUCTURED_TYPE", "DATA_TYPE", "JAVA_TYPE", "CONFIGURED_TYPE", "COMPOSITE_TYPE", "DERIVED_TYPE", "ARRAY_TYPE", "MAP_TYPE", "MATERIALIZED_COMPOSITE_TYPE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/dynamic_proxy_field.py b/src/oci/data_integration/models/dynamic_proxy_field.py index 10accd9dd..9d4174fb3 100644 --- a/src/oci/data_integration/models/dynamic_proxy_field.py +++ b/src/oci/data_integration/models/dynamic_proxy_field.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this DynamicProxyField. - Allowed values for this property are: "SHAPE", "INPUT_PORT", "SHAPE_FIELD", "INPUT_FIELD", "DERIVED_FIELD", "MACRO_FIELD", "OUTPUT_FIELD", "DYNAMIC_PROXY_FIELD", "OUTPUT_PORT", "DYNAMIC_INPUT_FIELD", "PROXY_FIELD", "PARAMETER", "PIVOT_FIELD", "MACRO_PIVOT_FIELD", "CONDITIONAL_OUTPUT_PORT", "INPUT_PROXY_FIELD", "MATERIALIZED_DYNAMIC_FIELD", "DECISION_OUTPUT_PORT" + Allowed values for this property are: "SHAPE", "INPUT_PORT", "SHAPE_FIELD", "INPUT_FIELD", "DERIVED_FIELD", "MACRO_FIELD", "OUTPUT_FIELD", "DYNAMIC_PROXY_FIELD", "OUTPUT_PORT", "DYNAMIC_INPUT_FIELD", "PROXY_FIELD", "PARAMETER", "PIVOT_FIELD", "MACRO_PIVOT_FIELD", "CONDITIONAL_OUTPUT_PORT", "INPUT_PROXY_FIELD", "MATERIALIZED_DYNAMIC_FIELD", "DECISION_OUTPUT_PORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/flow_port_link.py b/src/oci/data_integration/models/flow_port_link.py index 71463a497..69a120af3 100644 --- a/src/oci/data_integration/models/flow_port_link.py +++ b/src/oci/data_integration/models/flow_port_link.py @@ -40,7 +40,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this FlowPortLink. - Allowed values for this property are: "CONDITIONAL_INPUT_LINK", "OUTPUT_LINK", "INPUT_LINK" + Allowed values for this property are: "CONDITIONAL_INPUT_LINK", "OUTPUT_LINK", "INPUT_LINK", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: @@ -121,7 +122,8 @@ def model_type(self): **[Required]** Gets the model_type of this FlowPortLink. The model type of the object. - Allowed values for this property are: "CONDITIONAL_INPUT_LINK", "OUTPUT_LINK", "INPUT_LINK" + Allowed values for this property are: "CONDITIONAL_INPUT_LINK", "OUTPUT_LINK", "INPUT_LINK", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this FlowPortLink. @@ -141,9 +143,7 @@ def model_type(self, model_type): """ allowed_values = ["CONDITIONAL_INPUT_LINK", "OUTPUT_LINK", "INPUT_LINK"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): - raise ValueError( - f"Invalid value for `model_type`, must be None or one of {allowed_values}" - ) + model_type = 'UNKNOWN_ENUM_VALUE' self._model_type = model_type @property diff --git a/src/oci/data_integration/models/key.py b/src/oci/data_integration/models/key.py index ab6a22870..4eda8e29d 100644 --- a/src/oci/data_integration/models/key.py +++ b/src/oci/data_integration/models/key.py @@ -30,7 +30,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this Key. - Allowed values for this property are: "FOREIGN_KEY" + Allowed values for this property are: "FOREIGN_KEY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str """ @@ -63,7 +64,8 @@ def model_type(self): **[Required]** Gets the model_type of this Key. The key type. - Allowed values for this property are: "FOREIGN_KEY" + Allowed values for this property are: "FOREIGN_KEY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The model_type of this Key. @@ -83,9 +85,7 @@ def model_type(self, model_type): """ allowed_values = ["FOREIGN_KEY"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): - raise ValueError( - f"Invalid value for `model_type`, must be None or one of {allowed_values}" - ) + model_type = 'UNKNOWN_ENUM_VALUE' self._model_type = model_type def __repr__(self): diff --git a/src/oci/data_integration/models/materialized_composite_type.py b/src/oci/data_integration/models/materialized_composite_type.py index ce2ef731a..8075f2075 100644 --- a/src/oci/data_integration/models/materialized_composite_type.py +++ b/src/oci/data_integration/models/materialized_composite_type.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this MaterializedCompositeType. - Allowed values for this property are: "DYNAMIC_TYPE", "STRUCTURED_TYPE", "DATA_TYPE", "JAVA_TYPE", "CONFIGURED_TYPE", "COMPOSITE_TYPE", "DERIVED_TYPE", "ARRAY_TYPE", "MAP_TYPE", "MATERIALIZED_COMPOSITE_TYPE" + Allowed values for this property are: "DYNAMIC_TYPE", "STRUCTURED_TYPE", "DATA_TYPE", "JAVA_TYPE", "CONFIGURED_TYPE", "COMPOSITE_TYPE", "DERIVED_TYPE", "ARRAY_TYPE", "MAP_TYPE", "MATERIALIZED_COMPOSITE_TYPE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/materialized_dynamic_field.py b/src/oci/data_integration/models/materialized_dynamic_field.py index aedbfd50f..06245e829 100644 --- a/src/oci/data_integration/models/materialized_dynamic_field.py +++ b/src/oci/data_integration/models/materialized_dynamic_field.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this MaterializedDynamicField. - Allowed values for this property are: "SHAPE", "INPUT_PORT", "SHAPE_FIELD", "INPUT_FIELD", "DERIVED_FIELD", "MACRO_FIELD", "OUTPUT_FIELD", "DYNAMIC_PROXY_FIELD", "OUTPUT_PORT", "DYNAMIC_INPUT_FIELD", "PROXY_FIELD", "PARAMETER", "PIVOT_FIELD", "MACRO_PIVOT_FIELD", "CONDITIONAL_OUTPUT_PORT", "INPUT_PROXY_FIELD", "MATERIALIZED_DYNAMIC_FIELD", "DECISION_OUTPUT_PORT" + Allowed values for this property are: "SHAPE", "INPUT_PORT", "SHAPE_FIELD", "INPUT_FIELD", "DERIVED_FIELD", "MACRO_FIELD", "OUTPUT_FIELD", "DYNAMIC_PROXY_FIELD", "OUTPUT_PORT", "DYNAMIC_INPUT_FIELD", "PROXY_FIELD", "PARAMETER", "PIVOT_FIELD", "MACRO_PIVOT_FIELD", "CONDITIONAL_OUTPUT_PORT", "INPUT_PROXY_FIELD", "MATERIALIZED_DYNAMIC_FIELD", "DECISION_OUTPUT_PORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/output_link.py b/src/oci/data_integration/models/output_link.py index 032d5e05f..1a75c0a50 100644 --- a/src/oci/data_integration/models/output_link.py +++ b/src/oci/data_integration/models/output_link.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this OutputLink. - Allowed values for this property are: "CONDITIONAL_INPUT_LINK", "OUTPUT_LINK", "INPUT_LINK" + Allowed values for this property are: "CONDITIONAL_INPUT_LINK", "OUTPUT_LINK", "INPUT_LINK", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/poll_rest_call_config.py b/src/oci/data_integration/models/poll_rest_call_config.py index 64eb4b3b4..a013500a1 100644 --- a/src/oci/data_integration/models/poll_rest_call_config.py +++ b/src/oci/data_integration/models/poll_rest_call_config.py @@ -42,7 +42,8 @@ def __init__(self, **kwargs): :param method_type: The value to assign to the method_type property of this PollRestCallConfig. - Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT" + Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type method_type: str :param request_headers: @@ -76,7 +77,8 @@ def method_type(self): Gets the method_type of this PollRestCallConfig. The REST method to use. - Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT" + Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The method_type of this PollRestCallConfig. @@ -96,9 +98,7 @@ def method_type(self, method_type): """ allowed_values = ["GET", "POST", "PATCH", "DELETE", "PUT"] if not value_allowed_none_or_none_sentinel(method_type, allowed_values): - raise ValueError( - f"Invalid value for `method_type`, must be None or one of {allowed_values}" - ) + method_type = 'UNKNOWN_ENUM_VALUE' self._method_type = method_type @property diff --git a/src/oci/data_integration/models/rest_call_config.py b/src/oci/data_integration/models/rest_call_config.py index c4cba3d41..aff35a61c 100644 --- a/src/oci/data_integration/models/rest_call_config.py +++ b/src/oci/data_integration/models/rest_call_config.py @@ -42,7 +42,8 @@ def __init__(self, **kwargs): :param method_type: The value to assign to the method_type property of this RestCallConfig. - Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT" + Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type method_type: str :param request_headers: @@ -76,7 +77,8 @@ def method_type(self): Gets the method_type of this RestCallConfig. The REST method to use. - Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT" + Allowed values for this property are: "GET", "POST", "PATCH", "DELETE", "PUT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The method_type of this RestCallConfig. @@ -96,9 +98,7 @@ def method_type(self, method_type): """ allowed_values = ["GET", "POST", "PATCH", "DELETE", "PUT"] if not value_allowed_none_or_none_sentinel(method_type, allowed_values): - raise ValueError( - f"Invalid value for `method_type`, must be None or one of {allowed_values}" - ) + method_type = 'UNKNOWN_ENUM_VALUE' self._method_type = method_type @property diff --git a/src/oci/data_integration/models/shape_field.py b/src/oci/data_integration/models/shape_field.py index 1cc6408b8..eda02f85b 100644 --- a/src/oci/data_integration/models/shape_field.py +++ b/src/oci/data_integration/models/shape_field.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ShapeField. - Allowed values for this property are: "SHAPE", "INPUT_PORT", "SHAPE_FIELD", "INPUT_FIELD", "DERIVED_FIELD", "MACRO_FIELD", "OUTPUT_FIELD", "DYNAMIC_PROXY_FIELD", "OUTPUT_PORT", "DYNAMIC_INPUT_FIELD", "PROXY_FIELD", "PARAMETER", "PIVOT_FIELD", "MACRO_PIVOT_FIELD", "CONDITIONAL_OUTPUT_PORT", "INPUT_PROXY_FIELD", "MATERIALIZED_DYNAMIC_FIELD", "DECISION_OUTPUT_PORT" + Allowed values for this property are: "SHAPE", "INPUT_PORT", "SHAPE_FIELD", "INPUT_FIELD", "DERIVED_FIELD", "MACRO_FIELD", "OUTPUT_FIELD", "DYNAMIC_PROXY_FIELD", "OUTPUT_PORT", "DYNAMIC_INPUT_FIELD", "PROXY_FIELD", "PARAMETER", "PIVOT_FIELD", "MACRO_PIVOT_FIELD", "CONDITIONAL_OUTPUT_PORT", "INPUT_PROXY_FIELD", "MATERIALIZED_DYNAMIC_FIELD", "DECISION_OUTPUT_PORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_integration/models/task_run_lineage_details.py b/src/oci/data_integration/models/task_run_lineage_details.py index 6cf2dcb2b..e31352723 100644 --- a/src/oci/data_integration/models/task_run_lineage_details.py +++ b/src/oci/data_integration/models/task_run_lineage_details.py @@ -78,7 +78,8 @@ def __init__(self, **kwargs): :param task_execution_status: The value to assign to the task_execution_status property of this TaskRunLineageDetails. - Allowed values for this property are: "SUCCESS", "ERROR", "TERMINATED" + Allowed values for this property are: "SUCCESS", "ERROR", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type task_execution_status: str :param flow: @@ -405,7 +406,8 @@ def task_execution_status(self): Gets the task_execution_status of this TaskRunLineageDetails. The status of the task run. - Allowed values for this property are: "SUCCESS", "ERROR", "TERMINATED" + Allowed values for this property are: "SUCCESS", "ERROR", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The task_execution_status of this TaskRunLineageDetails. @@ -425,9 +427,7 @@ def task_execution_status(self, task_execution_status): """ allowed_values = ["SUCCESS", "ERROR", "TERMINATED"] if not value_allowed_none_or_none_sentinel(task_execution_status, allowed_values): - raise ValueError( - f"Invalid value for `task_execution_status`, must be None or one of {allowed_values}" - ) + task_execution_status = 'UNKNOWN_ENUM_VALUE' self._task_execution_status = task_execution_status @property diff --git a/src/oci/data_integration/models/typed_expression.py b/src/oci/data_integration/models/typed_expression.py index 4b1df5cc4..e52fe9cda 100644 --- a/src/oci/data_integration/models/typed_expression.py +++ b/src/oci/data_integration/models/typed_expression.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this TypedExpression. - Allowed values for this property are: "SHAPE", "INPUT_PORT", "SHAPE_FIELD", "INPUT_FIELD", "DERIVED_FIELD", "MACRO_FIELD", "OUTPUT_FIELD", "DYNAMIC_PROXY_FIELD", "OUTPUT_PORT", "DYNAMIC_INPUT_FIELD", "PROXY_FIELD", "PARAMETER", "PIVOT_FIELD", "MACRO_PIVOT_FIELD", "CONDITIONAL_OUTPUT_PORT", "INPUT_PROXY_FIELD", "MATERIALIZED_DYNAMIC_FIELD", "DECISION_OUTPUT_PORT" + Allowed values for this property are: "SHAPE", "INPUT_PORT", "SHAPE_FIELD", "INPUT_FIELD", "DERIVED_FIELD", "MACRO_FIELD", "OUTPUT_FIELD", "DYNAMIC_PROXY_FIELD", "OUTPUT_PORT", "DYNAMIC_INPUT_FIELD", "PROXY_FIELD", "PARAMETER", "PIVOT_FIELD", "MACRO_PIVOT_FIELD", "CONDITIONAL_OUTPUT_PORT", "INPUT_PROXY_FIELD", "MATERIALIZED_DYNAMIC_FIELD", "DECISION_OUTPUT_PORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str :param key: diff --git a/src/oci/data_safe/data_safe_client.py b/src/oci/data_safe/data_safe_client.py index 619edfd4c..880b08ae9 100644 --- a/src/oci/data_safe/data_safe_client.py +++ b/src/oci/data_safe/data_safe_client.py @@ -714,6 +714,187 @@ def apply_sdm_masking_policy_difference(self, masking_policy_id, apply_sdm_maski api_reference_link=api_reference_link, required_arguments=required_arguments) + def bulk_create_sql_firewall_allowed_sqls(self, bulk_create_sql_firewall_allowed_sqls_details, **kwargs): + """ + Appends the allowedSqls with entries from the logs. + + + :param oci.data_safe.models.BulkCreateSqlFirewallAllowedSqlsDetails bulk_create_sql_firewall_allowed_sqls_details: (required) + Details of the allowed sql. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use bulk_create_sql_firewall_allowed_sqls API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/sqlFirewallAllowedSqls/actions/bulkCreate" + method = "POST" + operation_name = "bulk_create_sql_firewall_allowed_sqls" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSql/BulkCreateSqlFirewallAllowedSqls" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"bulk_create_sql_firewall_allowed_sqls got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=bulk_create_sql_firewall_allowed_sqls_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=bulk_create_sql_firewall_allowed_sqls_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def bulk_delete_sql_firewall_allowed_sqls(self, bulk_delete_sql_firewall_allowed_sqls_details, **kwargs): + """ + Delete multiple allowed sqls from the SQL firewall policy. + + + :param oci.data_safe.models.BulkDeleteSqlFirewallAllowedSqlsDetails bulk_delete_sql_firewall_allowed_sqls_details: (required) + Details of the allowed sql to be deleted from the SQL firewall policy. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use bulk_delete_sql_firewall_allowed_sqls API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/sqlFirewallAllowedSqls/actions/bulkDelete" + method = "POST" + operation_name = "bulk_delete_sql_firewall_allowed_sqls" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSql/BulkDeleteSqlFirewallAllowedSqls" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"bulk_delete_sql_firewall_allowed_sqls got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=bulk_delete_sql_firewall_allowed_sqls_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=bulk_delete_sql_firewall_allowed_sqls_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def calculate_audit_volume_available(self, audit_profile_id, calculate_audit_volume_available_details, **kwargs): """ Calculates the volume of audit events available on the target database to be collected. Measurable up to the defined retention period of the audit target resource. @@ -8703,6 +8884,111 @@ def delete_sql_collection(self, sql_collection_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def delete_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs): + """ + Deletes the specified allowed sql. + + + :param str sql_firewall_allowed_sql_id: (required) + The OCID of the sqlFirewallAllowedSql resource. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the if-match parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_sql_firewall_allowed_sql API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['sqlFirewallAllowedSqlId'] + resource_path = "/sqlFirewallAllowedSqls/{sqlFirewallAllowedSqlId}" + method = "DELETE" + operation_name = "delete_sql_firewall_allowed_sql" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSql/DeleteSqlFirewallAllowedSql" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_sql_firewall_allowed_sql got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "sqlFirewallAllowedSqlId": sql_firewall_allowed_sql_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def delete_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): """ Deletes the SQL Firewall policy resource. @@ -15283,6 +15569,104 @@ def get_sql_collection(self, sql_collection_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def get_sql_firewall_allowed_sql(self, sql_firewall_allowed_sql_id, **kwargs): + """ + Gets a SQL firewall allowed SQL by identifier. + + + :param str sql_firewall_allowed_sql_id: (required) + The OCID of the sqlFirewallAllowedSql resource. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.data_safe.models.SqlFirewallAllowedSql` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_sql_firewall_allowed_sql API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['sqlFirewallAllowedSqlId'] + resource_path = "/sqlFirewallAllowedSqls/{sqlFirewallAllowedSqlId}" + method = "GET" + operation_name = "get_sql_firewall_allowed_sql" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSql/GetSqlFirewallAllowedSql" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_sql_firewall_allowed_sql got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "sqlFirewallAllowedSqlId": sql_firewall_allowed_sql_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="SqlFirewallAllowedSql", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="SqlFirewallAllowedSql", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def get_sql_firewall_policy(self, sql_firewall_policy_id, **kwargs): """ Gets a SQL Firewall policy by identifier. @@ -24190,6 +24574,11 @@ def list_reports(self, compartment_id, **kwargs): Allowed values are: "timeGenerated", "displayName" + :param str mime_type: (optional) + An optional filter to return only resources that match the specified mime type. + + Allowed values are: "PDF", "XLS", "JSON" + :param str report_definition_id: (optional) The ID of the report definition to filter the list of reports @@ -24259,6 +24648,7 @@ def list_reports(self, compartment_id, **kwargs): "page", "sort_order", "sort_by", + "mime_type", "report_definition_id", "time_generated_greater_than_or_equal_to", "time_generated_less_than", @@ -24292,6 +24682,13 @@ def list_reports(self, compartment_id, **kwargs): f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" ) + if 'mime_type' in kwargs: + mime_type_allowed_values = ["PDF", "XLS", "JSON"] + if kwargs['mime_type'] not in mime_type_allowed_values: + raise ValueError( + f"Invalid value for `mime_type`, must be one of { mime_type_allowed_values }" + ) + if 'lifecycle_state' in kwargs: lifecycle_state_allowed_values = ["UPDATING", "ACTIVE", "CREATING", "FAILED"] if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: @@ -24315,6 +24712,7 @@ def list_reports(self, compartment_id, **kwargs): "page": kwargs.get("page", missing), "sortOrder": kwargs.get("sort_order", missing), "sortBy": kwargs.get("sort_by", missing), + "mimeType": kwargs.get("mime_type", missing), "reportDefinitionId": kwargs.get("report_definition_id", missing), "timeGeneratedGreaterThanOrEqualTo": kwargs.get("time_generated_greater_than_or_equal_to", missing), "timeGeneratedLessThan": kwargs.get("time_generated_less_than", missing), @@ -32154,6 +32552,102 @@ def patch_sensitive_columns(self, sensitive_data_model_id, patch_sensitive_colum api_reference_link=api_reference_link, required_arguments=required_arguments) + def patch_sql_firewall_allowed_sql(self, patch_sql_firewall_allowed_sql_details, **kwargs): + """ + Delete multiple allowed sqls. You can use this operation to delete one or more allowed sqls. + Create and update of multiple allowed sqls is not supported. + + + :param oci.data_safe.models.PatchSqlFirewallAllowedSqlDetails patch_sql_firewall_allowed_sql_details: (required) + The details used to patch the allowed sqls. + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the if-match parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use patch_sql_firewall_allowed_sql API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/sqlFirewallAllowedSqls" + method = "PATCH" + operation_name = "patch_sql_firewall_allowed_sql" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SqlFirewallAllowedSql/PatchSqlFirewallAllowedSql" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"patch_sql_firewall_allowed_sql got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=patch_sql_firewall_allowed_sql_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=patch_sql_firewall_allowed_sql_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def patch_target_alert_policy_association(self, patch_target_alert_policy_association_details, **kwargs): """ Creates new target-alert policy associations that will be applied on the target database. diff --git a/src/oci/data_safe/data_safe_client_composite_operations.py b/src/oci/data_safe/data_safe_client_composite_operations.py index a1cd221aa..aaaab775d 100644 --- a/src/oci/data_safe/data_safe_client_composite_operations.py +++ b/src/oci/data_safe/data_safe_client_composite_operations.py @@ -229,6 +229,84 @@ def apply_sdm_masking_policy_difference_and_wait_for_state(self, masking_policy_ except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def bulk_create_sql_firewall_allowed_sqls_and_wait_for_state(self, bulk_create_sql_firewall_allowed_sqls_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.data_safe.DataSafeClient.bulk_create_sql_firewall_allowed_sqls` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` + to enter the given state(s). + + :param oci.data_safe.models.BulkCreateSqlFirewallAllowedSqlsDetails bulk_create_sql_firewall_allowed_sqls_details: (required) + Details of the allowed sql. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.bulk_create_sql_firewall_allowed_sqls` + + :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.bulk_create_sql_firewall_allowed_sqls(bulk_create_sql_firewall_allowed_sqls_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def bulk_delete_sql_firewall_allowed_sqls_and_wait_for_state(self, bulk_delete_sql_firewall_allowed_sqls_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.data_safe.DataSafeClient.bulk_delete_sql_firewall_allowed_sqls` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` + to enter the given state(s). + + :param oci.data_safe.models.BulkDeleteSqlFirewallAllowedSqlsDetails bulk_delete_sql_firewall_allowed_sqls_details: (required) + Details of the allowed sql to be deleted from the SQL firewall policy. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.bulk_delete_sql_firewall_allowed_sqls` + + :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.bulk_delete_sql_firewall_allowed_sqls(bulk_delete_sql_firewall_allowed_sqls_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def calculate_audit_volume_available_and_wait_for_state(self, audit_profile_id, calculate_audit_volume_available_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.data_safe.DataSafeClient.calculate_audit_volume_available` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` @@ -2603,6 +2681,53 @@ def delete_sql_collection_and_wait_for_state(self, sql_collection_id, wait_for_s except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def delete_sql_firewall_allowed_sql_and_wait_for_state(self, sql_firewall_allowed_sql_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.data_safe.DataSafeClient.delete_sql_firewall_allowed_sql` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` + to enter the given state(s). + + :param str sql_firewall_allowed_sql_id: (required) + The OCID of the sqlFirewallAllowedSql resource. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.delete_sql_firewall_allowed_sql` + + :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_sql_firewall_allowed_sql(sql_firewall_allowed_sql_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def delete_sql_firewall_policy_and_wait_for_state(self, sql_firewall_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.data_safe.DataSafeClient.delete_sql_firewall_policy` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` @@ -3535,6 +3660,45 @@ def patch_sensitive_columns_and_wait_for_state(self, sensitive_data_model_id, pa except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def patch_sql_firewall_allowed_sql_and_wait_for_state(self, patch_sql_firewall_allowed_sql_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.data_safe.DataSafeClient.patch_sql_firewall_allowed_sql` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` + to enter the given state(s). + + :param oci.data_safe.models.PatchSqlFirewallAllowedSqlDetails patch_sql_firewall_allowed_sql_details: (required) + The details used to patch the allowed sqls. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.patch_sql_firewall_allowed_sql` + + :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.patch_sql_firewall_allowed_sql(patch_sql_firewall_allowed_sql_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def patch_target_alert_policy_association_and_wait_for_state(self, patch_target_alert_policy_association_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.data_safe.DataSafeClient.patch_target_alert_policy_association` and waits for the :py:class:`~oci.data_safe.models.WorkRequest` diff --git a/src/oci/data_safe/models/__init__.py b/src/oci/data_safe/models/__init__.py index 93f58b66a..7d1e4829c 100644 --- a/src/oci/data_safe/models/__init__.py +++ b/src/oci/data_safe/models/__init__.py @@ -53,6 +53,8 @@ from .autonomous_database_details import AutonomousDatabaseDetails from .available_audit_volume_collection import AvailableAuditVolumeCollection from .available_audit_volume_summary import AvailableAuditVolumeSummary +from .bulk_create_sql_firewall_allowed_sqls_details import BulkCreateSqlFirewallAllowedSqlsDetails +from .bulk_delete_sql_firewall_allowed_sqls_details import BulkDeleteSqlFirewallAllowedSqlsDetails from .calculate_audit_volume_available_details import CalculateAuditVolumeAvailableDetails from .calculate_audit_volume_collected_details import CalculateAuditVolumeCollectedDetails from .change_alert_compartment_details import ChangeAlertCompartmentDetails @@ -194,6 +196,7 @@ from .library_masking_format_collection import LibraryMaskingFormatCollection from .library_masking_format_entry import LibraryMaskingFormatEntry from .library_masking_format_summary import LibraryMaskingFormatSummary +from .list_selection_mode import ListSelectionMode from .mask_data_details import MaskDataDetails from .masked_column_collection import MaskedColumnCollection from .masked_column_summary import MaskedColumnSummary @@ -236,6 +239,7 @@ from .patch_remove_instruction import PatchRemoveInstruction from .patch_sdm_masking_policy_difference_columns_details import PatchSdmMaskingPolicyDifferenceColumnsDetails from .patch_sensitive_column_details import PatchSensitiveColumnDetails +from .patch_sql_firewall_allowed_sql_details import PatchSqlFirewallAllowedSqlDetails from .patch_target_alert_policy_association_details import PatchTargetAlertPolicyAssociationDetails from .pattern_format_entry import PatternFormatEntry from .peer_target_database import PeerTargetDatabase @@ -274,6 +278,7 @@ from .schedule_audit_report_details import ScheduleAuditReportDetails from .schedule_report_details import ScheduleReportDetails from .schema_summary import SchemaSummary +from .scim_query_selection_mode import ScimQuerySelectionMode from .sdm_masking_policy_difference import SdmMaskingPolicyDifference from .sdm_masking_policy_difference_collection import SdmMaskingPolicyDifferenceCollection from .sdm_masking_policy_difference_column_collection import SdmMaskingPolicyDifferenceColumnCollection @@ -302,6 +307,7 @@ from .security_policy_report_collection import SecurityPolicyReportCollection from .security_policy_report_summary import SecurityPolicyReportSummary from .security_policy_summary import SecurityPolicySummary +from .selection_details import SelectionDetails from .sensitive_category import SensitiveCategory from .sensitive_column import SensitiveColumn from .sensitive_column_collection import SensitiveColumnCollection @@ -462,6 +468,8 @@ "AutonomousDatabaseDetails": AutonomousDatabaseDetails, "AvailableAuditVolumeCollection": AvailableAuditVolumeCollection, "AvailableAuditVolumeSummary": AvailableAuditVolumeSummary, + "BulkCreateSqlFirewallAllowedSqlsDetails": BulkCreateSqlFirewallAllowedSqlsDetails, + "BulkDeleteSqlFirewallAllowedSqlsDetails": BulkDeleteSqlFirewallAllowedSqlsDetails, "CalculateAuditVolumeAvailableDetails": CalculateAuditVolumeAvailableDetails, "CalculateAuditVolumeCollectedDetails": CalculateAuditVolumeCollectedDetails, "ChangeAlertCompartmentDetails": ChangeAlertCompartmentDetails, @@ -603,6 +611,7 @@ "LibraryMaskingFormatCollection": LibraryMaskingFormatCollection, "LibraryMaskingFormatEntry": LibraryMaskingFormatEntry, "LibraryMaskingFormatSummary": LibraryMaskingFormatSummary, + "ListSelectionMode": ListSelectionMode, "MaskDataDetails": MaskDataDetails, "MaskedColumnCollection": MaskedColumnCollection, "MaskedColumnSummary": MaskedColumnSummary, @@ -645,6 +654,7 @@ "PatchRemoveInstruction": PatchRemoveInstruction, "PatchSdmMaskingPolicyDifferenceColumnsDetails": PatchSdmMaskingPolicyDifferenceColumnsDetails, "PatchSensitiveColumnDetails": PatchSensitiveColumnDetails, + "PatchSqlFirewallAllowedSqlDetails": PatchSqlFirewallAllowedSqlDetails, "PatchTargetAlertPolicyAssociationDetails": PatchTargetAlertPolicyAssociationDetails, "PatternFormatEntry": PatternFormatEntry, "PeerTargetDatabase": PeerTargetDatabase, @@ -683,6 +693,7 @@ "ScheduleAuditReportDetails": ScheduleAuditReportDetails, "ScheduleReportDetails": ScheduleReportDetails, "SchemaSummary": SchemaSummary, + "ScimQuerySelectionMode": ScimQuerySelectionMode, "SdmMaskingPolicyDifference": SdmMaskingPolicyDifference, "SdmMaskingPolicyDifferenceCollection": SdmMaskingPolicyDifferenceCollection, "SdmMaskingPolicyDifferenceColumnCollection": SdmMaskingPolicyDifferenceColumnCollection, @@ -711,6 +722,7 @@ "SecurityPolicyReportCollection": SecurityPolicyReportCollection, "SecurityPolicyReportSummary": SecurityPolicyReportSummary, "SecurityPolicySummary": SecurityPolicySummary, + "SelectionDetails": SelectionDetails, "SensitiveCategory": SensitiveCategory, "SensitiveColumn": SensitiveColumn, "SensitiveColumnCollection": SensitiveColumnCollection, diff --git a/src/oci/data_safe/models/bulk_create_sql_firewall_allowed_sqls_details.py b/src/oci/data_safe/models/bulk_create_sql_firewall_allowed_sqls_details.py new file mode 100644 index 000000000..4b08a3783 --- /dev/null +++ b/src/oci/data_safe/models/bulk_create_sql_firewall_allowed_sqls_details.py @@ -0,0 +1,142 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class BulkCreateSqlFirewallAllowedSqlsDetails(object): + """ + The details used to append the violation logs as allowed SQLs + """ + + #: A constant which can be used with the log_type property of a BulkCreateSqlFirewallAllowedSqlsDetails. + #: This constant has a value of "VIOLATION_LOG" + LOG_TYPE_VIOLATION_LOG = "VIOLATION_LOG" + + def __init__(self, **kwargs): + """ + Initializes a new BulkCreateSqlFirewallAllowedSqlsDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param sql_firewall_policy_id: + The value to assign to the sql_firewall_policy_id property of this BulkCreateSqlFirewallAllowedSqlsDetails. + :type sql_firewall_policy_id: str + + :param log_type: + The value to assign to the log_type property of this BulkCreateSqlFirewallAllowedSqlsDetails. + Allowed values for this property are: "VIOLATION_LOG" + :type log_type: str + + :param selection: + The value to assign to the selection property of this BulkCreateSqlFirewallAllowedSqlsDetails. + :type selection: oci.data_safe.models.SelectionDetails + + """ + self.swagger_types = { + 'sql_firewall_policy_id': 'str', + 'log_type': 'str', + 'selection': 'SelectionDetails' + } + + self.attribute_map = { + 'sql_firewall_policy_id': 'sqlFirewallPolicyId', + 'log_type': 'logType', + 'selection': 'selection' + } + + self._sql_firewall_policy_id = None + self._log_type = None + self._selection = None + + @property + def sql_firewall_policy_id(self): + """ + **[Required]** Gets the sql_firewall_policy_id of this BulkCreateSqlFirewallAllowedSqlsDetails. + The OCID of the SQL firewall policy where new allowed SQLs needs to be added. + + + :return: The sql_firewall_policy_id of this BulkCreateSqlFirewallAllowedSqlsDetails. + :rtype: str + """ + return self._sql_firewall_policy_id + + @sql_firewall_policy_id.setter + def sql_firewall_policy_id(self, sql_firewall_policy_id): + """ + Sets the sql_firewall_policy_id of this BulkCreateSqlFirewallAllowedSqlsDetails. + The OCID of the SQL firewall policy where new allowed SQLs needs to be added. + + + :param sql_firewall_policy_id: The sql_firewall_policy_id of this BulkCreateSqlFirewallAllowedSqlsDetails. + :type: str + """ + self._sql_firewall_policy_id = sql_firewall_policy_id + + @property + def log_type(self): + """ + **[Required]** Gets the log_type of this BulkCreateSqlFirewallAllowedSqlsDetails. + The type of log to be added as an allowed sql. + + Allowed values for this property are: "VIOLATION_LOG" + + + :return: The log_type of this BulkCreateSqlFirewallAllowedSqlsDetails. + :rtype: str + """ + return self._log_type + + @log_type.setter + def log_type(self, log_type): + """ + Sets the log_type of this BulkCreateSqlFirewallAllowedSqlsDetails. + The type of log to be added as an allowed sql. + + + :param log_type: The log_type of this BulkCreateSqlFirewallAllowedSqlsDetails. + :type: str + """ + allowed_values = ["VIOLATION_LOG"] + if not value_allowed_none_or_none_sentinel(log_type, allowed_values): + raise ValueError( + f"Invalid value for `log_type`, must be None or one of {allowed_values}" + ) + self._log_type = log_type + + @property + def selection(self): + """ + **[Required]** Gets the selection of this BulkCreateSqlFirewallAllowedSqlsDetails. + + :return: The selection of this BulkCreateSqlFirewallAllowedSqlsDetails. + :rtype: oci.data_safe.models.SelectionDetails + """ + return self._selection + + @selection.setter + def selection(self, selection): + """ + Sets the selection of this BulkCreateSqlFirewallAllowedSqlsDetails. + + :param selection: The selection of this BulkCreateSqlFirewallAllowedSqlsDetails. + :type: oci.data_safe.models.SelectionDetails + """ + self._selection = selection + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/bulk_delete_sql_firewall_allowed_sqls_details.py b/src/oci/data_safe/models/bulk_delete_sql_firewall_allowed_sqls_details.py new file mode 100644 index 000000000..ecd67959b --- /dev/null +++ b/src/oci/data_safe/models/bulk_delete_sql_firewall_allowed_sqls_details.py @@ -0,0 +1,99 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class BulkDeleteSqlFirewallAllowedSqlsDetails(object): + """ + Details of the allowed SQLs to be deleted from the SQL firewall policy. + """ + + def __init__(self, **kwargs): + """ + Initializes a new BulkDeleteSqlFirewallAllowedSqlsDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param sql_firewall_policy_id: + The value to assign to the sql_firewall_policy_id property of this BulkDeleteSqlFirewallAllowedSqlsDetails. + :type sql_firewall_policy_id: str + + :param selection: + The value to assign to the selection property of this BulkDeleteSqlFirewallAllowedSqlsDetails. + :type selection: oci.data_safe.models.SelectionDetails + + """ + self.swagger_types = { + 'sql_firewall_policy_id': 'str', + 'selection': 'SelectionDetails' + } + + self.attribute_map = { + 'sql_firewall_policy_id': 'sqlFirewallPolicyId', + 'selection': 'selection' + } + + self._sql_firewall_policy_id = None + self._selection = None + + @property + def sql_firewall_policy_id(self): + """ + **[Required]** Gets the sql_firewall_policy_id of this BulkDeleteSqlFirewallAllowedSqlsDetails. + The OCID of the SQL firewall policy whose allowed SQLs needs to be deleted. + + + :return: The sql_firewall_policy_id of this BulkDeleteSqlFirewallAllowedSqlsDetails. + :rtype: str + """ + return self._sql_firewall_policy_id + + @sql_firewall_policy_id.setter + def sql_firewall_policy_id(self, sql_firewall_policy_id): + """ + Sets the sql_firewall_policy_id of this BulkDeleteSqlFirewallAllowedSqlsDetails. + The OCID of the SQL firewall policy whose allowed SQLs needs to be deleted. + + + :param sql_firewall_policy_id: The sql_firewall_policy_id of this BulkDeleteSqlFirewallAllowedSqlsDetails. + :type: str + """ + self._sql_firewall_policy_id = sql_firewall_policy_id + + @property + def selection(self): + """ + **[Required]** Gets the selection of this BulkDeleteSqlFirewallAllowedSqlsDetails. + + :return: The selection of this BulkDeleteSqlFirewallAllowedSqlsDetails. + :rtype: oci.data_safe.models.SelectionDetails + """ + return self._selection + + @selection.setter + def selection(self, selection): + """ + Sets the selection of this BulkDeleteSqlFirewallAllowedSqlsDetails. + + :param selection: The selection of this BulkDeleteSqlFirewallAllowedSqlsDetails. + :type: oci.data_safe.models.SelectionDetails + """ + self._selection = selection + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/generate_report_details.py b/src/oci/data_safe/models/generate_report_details.py index 12e59481e..9f39df533 100644 --- a/src/oci/data_safe/models/generate_report_details.py +++ b/src/oci/data_safe/models/generate_report_details.py @@ -23,6 +23,10 @@ class GenerateReportDetails(object): #: This constant has a value of "XLS" MIME_TYPE_XLS = "XLS" + #: A constant which can be used with the mime_type property of a GenerateReportDetails. + #: This constant has a value of "JSON" + MIME_TYPE_JSON = "JSON" + def __init__(self, **kwargs): """ Initializes a new GenerateReportDetails object with values from keyword arguments. @@ -46,7 +50,7 @@ def __init__(self, **kwargs): :param mime_type: The value to assign to the mime_type property of this GenerateReportDetails. - Allowed values for this property are: "PDF", "XLS" + Allowed values for this property are: "PDF", "XLS", "JSON" :type mime_type: str :param time_less_than: @@ -201,7 +205,7 @@ def mime_type(self): **[Required]** Gets the mime_type of this GenerateReportDetails. Specifies the format of report to be .xls or .pdf or .json - Allowed values for this property are: "PDF", "XLS" + Allowed values for this property are: "PDF", "XLS", "JSON" :return: The mime_type of this GenerateReportDetails. @@ -219,7 +223,7 @@ def mime_type(self, mime_type): :param mime_type: The mime_type of this GenerateReportDetails. :type: str """ - allowed_values = ["PDF", "XLS"] + allowed_values = ["PDF", "XLS", "JSON"] if not value_allowed_none_or_none_sentinel(mime_type, allowed_values): raise ValueError( f"Invalid value for `mime_type`, must be None or one of {allowed_values}" diff --git a/src/oci/data_safe/models/list_selection_mode.py b/src/oci/data_safe/models/list_selection_mode.py new file mode 100644 index 000000000..3ad9052e2 --- /dev/null +++ b/src/oci/data_safe/models/list_selection_mode.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + +from .selection_details import SelectionDetails +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 ListSelectionMode(SelectionDetails): + """ + Indicates that the selection is a list of resource ocids. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ListSelectionMode object with values from keyword arguments. The default value of the :py:attr:`~oci.data_safe.models.ListSelectionMode.selection_mode` attribute + of this class is ``LIST`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param selection_mode: + The value to assign to the selection_mode property of this ListSelectionMode. + Allowed values for this property are: "LIST", "SCIM_QUERY" + :type selection_mode: str + + :param items: + The value to assign to the items property of this ListSelectionMode. + :type items: list[str] + + """ + self.swagger_types = { + 'selection_mode': 'str', + 'items': 'list[str]' + } + + self.attribute_map = { + 'selection_mode': 'selectionMode', + 'items': 'items' + } + + self._selection_mode = None + self._items = None + self._selection_mode = 'LIST' + + @property + def items(self): + """ + **[Required]** Gets the items of this ListSelectionMode. + * Array of the violation log ocids to be selected in case of allowed SQLs bulk create. + * Array of the allowed SQL ocids to be selected in case of allowed SQLs bulk delete. + + + :return: The items of this ListSelectionMode. + :rtype: list[str] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this ListSelectionMode. + * Array of the violation log ocids to be selected in case of allowed SQLs bulk create. + * Array of the allowed SQL ocids to be selected in case of allowed SQLs bulk delete. + + + :param items: The items of this ListSelectionMode. + :type: list[str] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/patch_sql_firewall_allowed_sql_details.py b/src/oci/data_safe/models/patch_sql_firewall_allowed_sql_details.py new file mode 100644 index 000000000..8280612f1 --- /dev/null +++ b/src/oci/data_safe/models/patch_sql_firewall_allowed_sql_details.py @@ -0,0 +1,103 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchSqlFirewallAllowedSqlDetails(object): + """ + The details used to delete multiple allowed sqls. + """ + + def __init__(self, **kwargs): + """ + Initializes a new PatchSqlFirewallAllowedSqlDetails 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 PatchSqlFirewallAllowedSqlDetails. + :type items: list[oci.data_safe.models.PatchInstruction] + + :param sql_firewall_policy_id: + The value to assign to the sql_firewall_policy_id property of this PatchSqlFirewallAllowedSqlDetails. + :type sql_firewall_policy_id: str + + """ + self.swagger_types = { + 'items': 'list[PatchInstruction]', + 'sql_firewall_policy_id': 'str' + } + + self.attribute_map = { + 'items': 'items', + 'sql_firewall_policy_id': 'sqlFirewallPolicyId' + } + + self._items = None + self._sql_firewall_policy_id = None + + @property + def items(self): + """ + **[Required]** Gets the items of this PatchSqlFirewallAllowedSqlDetails. + An array of patch instructions. + + + :return: The items of this PatchSqlFirewallAllowedSqlDetails. + :rtype: list[oci.data_safe.models.PatchInstruction] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this PatchSqlFirewallAllowedSqlDetails. + An array of patch instructions. + + + :param items: The items of this PatchSqlFirewallAllowedSqlDetails. + :type: list[oci.data_safe.models.PatchInstruction] + """ + self._items = items + + @property + def sql_firewall_policy_id(self): + """ + **[Required]** Gets the sql_firewall_policy_id of this PatchSqlFirewallAllowedSqlDetails. + The OCID of the SQL firewall policy whose allowed SQL needs to be deleted. + + + :return: The sql_firewall_policy_id of this PatchSqlFirewallAllowedSqlDetails. + :rtype: str + """ + return self._sql_firewall_policy_id + + @sql_firewall_policy_id.setter + def sql_firewall_policy_id(self, sql_firewall_policy_id): + """ + Sets the sql_firewall_policy_id of this PatchSqlFirewallAllowedSqlDetails. + The OCID of the SQL firewall policy whose allowed SQL needs to be deleted. + + + :param sql_firewall_policy_id: The sql_firewall_policy_id of this PatchSqlFirewallAllowedSqlDetails. + :type: str + """ + self._sql_firewall_policy_id = sql_firewall_policy_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/report.py b/src/oci/data_safe/models/report.py index bb55c9673..e96d5cbcd 100644 --- a/src/oci/data_safe/models/report.py +++ b/src/oci/data_safe/models/report.py @@ -23,6 +23,10 @@ class Report(object): #: This constant has a value of "XLS" MIME_TYPE_XLS = "XLS" + #: A constant which can be used with the mime_type property of a Report. + #: This constant has a value of "JSON" + MIME_TYPE_JSON = "JSON" + #: A constant which can be used with the lifecycle_state property of a Report. #: This constant has a value of "UPDATING" LIFECYCLE_STATE_UPDATING = "UPDATING" @@ -74,7 +78,7 @@ def __init__(self, **kwargs): :param mime_type: The value to assign to the mime_type property of this Report. - Allowed values for this property are: "PDF", "XLS", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "PDF", "XLS", "JSON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type mime_type: str @@ -283,7 +287,7 @@ def mime_type(self): Gets the mime_type of this Report. Specifies the format of report to be .xls or .pdf or .json - Allowed values for this property are: "PDF", "XLS", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "PDF", "XLS", "JSON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -302,7 +306,7 @@ def mime_type(self, mime_type): :param mime_type: The mime_type of this Report. :type: str """ - allowed_values = ["PDF", "XLS"] + allowed_values = ["PDF", "XLS", "JSON"] if not value_allowed_none_or_none_sentinel(mime_type, allowed_values): mime_type = 'UNKNOWN_ENUM_VALUE' self._mime_type = mime_type diff --git a/src/oci/data_safe/models/report_definition.py b/src/oci/data_safe/models/report_definition.py index e34f8aa35..5af34b83e 100644 --- a/src/oci/data_safe/models/report_definition.py +++ b/src/oci/data_safe/models/report_definition.py @@ -83,6 +83,10 @@ class ReportDefinition(object): #: This constant has a value of "XLS" SCHEDULED_REPORT_MIME_TYPE_XLS = "XLS" + #: A constant which can be used with the scheduled_report_mime_type property of a ReportDefinition. + #: This constant has a value of "JSON" + SCHEDULED_REPORT_MIME_TYPE_JSON = "JSON" + def __init__(self, **kwargs): """ Initializes a new ReportDefinition object with values from keyword arguments. @@ -168,7 +172,7 @@ def __init__(self, **kwargs): :param scheduled_report_mime_type: The value to assign to the scheduled_report_mime_type property of this ReportDefinition. - Allowed values for this property are: "PDF", "XLS", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "PDF", "XLS", "JSON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type scheduled_report_mime_type: str @@ -782,7 +786,7 @@ def scheduled_report_mime_type(self): Gets the scheduled_report_mime_type of this ReportDefinition. Specifies the format of the report ( either .xls or .pdf or .json) - Allowed values for this property are: "PDF", "XLS", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "PDF", "XLS", "JSON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -801,7 +805,7 @@ def scheduled_report_mime_type(self, scheduled_report_mime_type): :param scheduled_report_mime_type: The scheduled_report_mime_type of this ReportDefinition. :type: str """ - allowed_values = ["PDF", "XLS"] + allowed_values = ["PDF", "XLS", "JSON"] if not value_allowed_none_or_none_sentinel(scheduled_report_mime_type, allowed_values): scheduled_report_mime_type = 'UNKNOWN_ENUM_VALUE' self._scheduled_report_mime_type = scheduled_report_mime_type diff --git a/src/oci/data_safe/models/report_summary.py b/src/oci/data_safe/models/report_summary.py index dbc11c9af..88fe344e8 100644 --- a/src/oci/data_safe/models/report_summary.py +++ b/src/oci/data_safe/models/report_summary.py @@ -23,6 +23,10 @@ class ReportSummary(object): #: This constant has a value of "XLS" MIME_TYPE_XLS = "XLS" + #: A constant which can be used with the mime_type property of a ReportSummary. + #: This constant has a value of "JSON" + MIME_TYPE_JSON = "JSON" + #: A constant which can be used with the lifecycle_state property of a ReportSummary. #: This constant has a value of "UPDATING" LIFECYCLE_STATE_UPDATING = "UPDATING" @@ -70,7 +74,7 @@ def __init__(self, **kwargs): :param mime_type: The value to assign to the mime_type property of this ReportSummary. - Allowed values for this property are: "PDF", "XLS", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "PDF", "XLS", "JSON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type mime_type: str @@ -245,7 +249,7 @@ def mime_type(self): Gets the mime_type of this ReportSummary. Specifies the format of report to be .xls or .pdf or .json. - Allowed values for this property are: "PDF", "XLS", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "PDF", "XLS", "JSON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -264,7 +268,7 @@ def mime_type(self, mime_type): :param mime_type: The mime_type of this ReportSummary. :type: str """ - allowed_values = ["PDF", "XLS"] + allowed_values = ["PDF", "XLS", "JSON"] if not value_allowed_none_or_none_sentinel(mime_type, allowed_values): mime_type = 'UNKNOWN_ENUM_VALUE' self._mime_type = mime_type diff --git a/src/oci/data_safe/models/schedule_report_details.py b/src/oci/data_safe/models/schedule_report_details.py index 2cb014bb3..549e617ac 100644 --- a/src/oci/data_safe/models/schedule_report_details.py +++ b/src/oci/data_safe/models/schedule_report_details.py @@ -23,6 +23,10 @@ class ScheduleReportDetails(object): #: This constant has a value of "XLS" MIME_TYPE_XLS = "XLS" + #: A constant which can be used with the mime_type property of a ScheduleReportDetails. + #: This constant has a value of "JSON" + MIME_TYPE_JSON = "JSON" + def __init__(self, **kwargs): """ Initializes a new ScheduleReportDetails object with values from keyword arguments. @@ -38,7 +42,7 @@ def __init__(self, **kwargs): :param mime_type: The value to assign to the mime_type property of this ScheduleReportDetails. - Allowed values for this property are: "PDF", "XLS" + Allowed values for this property are: "PDF", "XLS", "JSON" :type mime_type: str :param compartment_id: @@ -152,7 +156,7 @@ def mime_type(self): **[Required]** Gets the mime_type of this ScheduleReportDetails. Specifies if the report will be in .xls or .pdf or .json format - Allowed values for this property are: "PDF", "XLS" + Allowed values for this property are: "PDF", "XLS", "JSON" :return: The mime_type of this ScheduleReportDetails. @@ -170,7 +174,7 @@ def mime_type(self, mime_type): :param mime_type: The mime_type of this ScheduleReportDetails. :type: str """ - allowed_values = ["PDF", "XLS"] + allowed_values = ["PDF", "XLS", "JSON"] if not value_allowed_none_or_none_sentinel(mime_type, allowed_values): raise ValueError( f"Invalid value for `mime_type`, must be None or one of {allowed_values}" diff --git a/src/oci/data_safe/models/scim_query_selection_mode.py b/src/oci/data_safe/models/scim_query_selection_mode.py new file mode 100644 index 000000000..fac36f640 --- /dev/null +++ b/src/oci/data_safe/models/scim_query_selection_mode.py @@ -0,0 +1,98 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + +from .selection_details import SelectionDetails +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 ScimQuerySelectionMode(SelectionDetails): + """ + Indicates that the selection is a scimQuery. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ScimQuerySelectionMode object with values from keyword arguments. The default value of the :py:attr:`~oci.data_safe.models.ScimQuerySelectionMode.selection_mode` attribute + of this class is ``SCIM_QUERY`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param selection_mode: + The value to assign to the selection_mode property of this ScimQuerySelectionMode. + Allowed values for this property are: "LIST", "SCIM_QUERY" + :type selection_mode: str + + :param scim_query: + The value to assign to the scim_query property of this ScimQuerySelectionMode. + :type scim_query: str + + """ + self.swagger_types = { + 'selection_mode': 'str', + 'scim_query': 'str' + } + + self.attribute_map = { + 'selection_mode': 'selectionMode', + 'scim_query': 'scimQuery' + } + + self._selection_mode = None + self._scim_query = None + self._selection_mode = 'SCIM_QUERY' + + @property + def scim_query(self): + """ + **[Required]** Gets the scim_query of this ScimQuerySelectionMode. + The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 + of the System for Cross-Domain Identity Management (SCIM) specification, which is available + at `RFC3339`__. In SCIM filtering expressions, + text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. + (Numeric and boolean values should not be quoted.) + + **Example:** query=(dbUserName eq \"PAY_APP\") + + __ https://tools.ietf.org/html/draft-ietf-scim-api-12 + + + :return: The scim_query of this ScimQuerySelectionMode. + :rtype: str + """ + return self._scim_query + + @scim_query.setter + def scim_query(self, scim_query): + """ + Sets the scim_query of this ScimQuerySelectionMode. + The scimQuery query parameter accepts filter expressions that use the syntax described in Section 3.2.2.2 + of the System for Cross-Domain Identity Management (SCIM) specification, which is available + at `RFC3339`__. In SCIM filtering expressions, + text, date, and time values must be enclosed in quotation marks, with date and time values using ISO-8601 format. + (Numeric and boolean values should not be quoted.) + + **Example:** query=(dbUserName eq \"PAY_APP\") + + __ https://tools.ietf.org/html/draft-ietf-scim-api-12 + + + :param scim_query: The scim_query of this ScimQuerySelectionMode. + :type: str + """ + self._scim_query = scim_query + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/selection_details.py b/src/oci/data_safe/models/selection_details.py new file mode 100644 index 000000000..b5b4afbd9 --- /dev/null +++ b/src/oci/data_safe/models/selection_details.py @@ -0,0 +1,113 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20181201 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class SelectionDetails(object): + """ + Details of the items to be selected and the mode of selection. + """ + + #: A constant which can be used with the selection_mode property of a SelectionDetails. + #: This constant has a value of "LIST" + SELECTION_MODE_LIST = "LIST" + + #: A constant which can be used with the selection_mode property of a SelectionDetails. + #: This constant has a value of "SCIM_QUERY" + SELECTION_MODE_SCIM_QUERY = "SCIM_QUERY" + + def __init__(self, **kwargs): + """ + Initializes a new SelectionDetails 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.data_safe.models.ListSelectionMode` + * :class:`~oci.data_safe.models.ScimQuerySelectionMode` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param selection_mode: + The value to assign to the selection_mode property of this SelectionDetails. + Allowed values for this property are: "LIST", "SCIM_QUERY" + :type selection_mode: str + + """ + self.swagger_types = { + 'selection_mode': 'str' + } + + self.attribute_map = { + 'selection_mode': 'selectionMode' + } + + self._selection_mode = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['selectionMode'] + + if type == 'LIST': + return 'ListSelectionMode' + + if type == 'SCIM_QUERY': + return 'ScimQuerySelectionMode' + else: + return 'SelectionDetails' + + @property + def selection_mode(self): + """ + **[Required]** Gets the selection_mode of this SelectionDetails. + The mode of selection of items, whether it is a list of ocids or a scimQuery. Allowed values: + - LIST + - SCIM_QUERY + + Allowed values for this property are: "LIST", "SCIM_QUERY" + + + :return: The selection_mode of this SelectionDetails. + :rtype: str + """ + return self._selection_mode + + @selection_mode.setter + def selection_mode(self, selection_mode): + """ + Sets the selection_mode of this SelectionDetails. + The mode of selection of items, whether it is a list of ocids or a scimQuery. Allowed values: + - LIST + - SCIM_QUERY + + + :param selection_mode: The selection_mode of this SelectionDetails. + :type: str + """ + allowed_values = ["LIST", "SCIM_QUERY"] + if not value_allowed_none_or_none_sentinel(selection_mode, allowed_values): + raise ValueError( + f"Invalid value for `selection_mode`, must be None or one of {allowed_values}" + ) + self._selection_mode = selection_mode + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_safe/models/sql_firewall_allowed_sql.py b/src/oci/data_safe/models/sql_firewall_allowed_sql.py index 51c58c63d..992e7803a 100644 --- a/src/oci/data_safe/models/sql_firewall_allowed_sql.py +++ b/src/oci/data_safe/models/sql_firewall_allowed_sql.py @@ -74,7 +74,8 @@ def __init__(self, **kwargs): :param sql_level: The value to assign to the sql_level property of this SqlFirewallAllowedSql. - Allowed values for this property are: "USER_ISSUED_SQL", "ALL_SQL" + Allowed values for this property are: "USER_ISSUED_SQL", "ALL_SQL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type sql_level: str :param sql_accessed_objects: @@ -95,7 +96,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this SqlFirewallAllowedSql. - Allowed values for this property are: "ACTIVE", "DELETED", "FAILED" + Allowed values for this property are: "ACTIVE", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param freeform_tags: @@ -369,7 +371,8 @@ def sql_level(self): USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units. - Allowed values for this property are: "USER_ISSUED_SQL", "ALL_SQL" + Allowed values for this property are: "USER_ISSUED_SQL", "ALL_SQL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The sql_level of this SqlFirewallAllowedSql. @@ -391,9 +394,7 @@ def sql_level(self, sql_level): """ allowed_values = ["USER_ISSUED_SQL", "ALL_SQL"] if not value_allowed_none_or_none_sentinel(sql_level, allowed_values): - raise ValueError( - f"Invalid value for `sql_level`, must be None or one of {allowed_values}" - ) + sql_level = 'UNKNOWN_ENUM_VALUE' self._sql_level = sql_level @property @@ -498,7 +499,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this SqlFirewallAllowedSql. The current state of the SQL Firewall allowed SQL. - Allowed values for this property are: "ACTIVE", "DELETED", "FAILED" + Allowed values for this property are: "ACTIVE", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this SqlFirewallAllowedSql. @@ -518,9 +520,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["ACTIVE", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property diff --git a/src/oci/data_safe/models/work_request.py b/src/oci/data_safe/models/work_request.py index 7b3592e95..cff2886da 100644 --- a/src/oci/data_safe/models/work_request.py +++ b/src/oci/data_safe/models/work_request.py @@ -207,6 +207,18 @@ class WorkRequest(object): #: This constant has a value of "GENERATE_SECURITY_ASSESSMENT_REPORT" OPERATION_TYPE_GENERATE_SECURITY_ASSESSMENT_REPORT = "GENERATE_SECURITY_ASSESSMENT_REPORT" + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DELETE_SQL_FIREWALL_ALLOWED_SQL" + OPERATION_TYPE_DELETE_SQL_FIREWALL_ALLOWED_SQL = "DELETE_SQL_FIREWALL_ALLOWED_SQL" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL" + OPERATION_TYPE_BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL = "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL" + OPERATION_TYPE_BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL = "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL" + #: A constant which can be used with the operation_type property of a WorkRequest. #: This constant has a value of "CREATE_AUDIT_PROFILE" OPERATION_TYPE_CREATE_AUDIT_PROFILE = "CREATE_AUDIT_PROFILE" @@ -618,7 +630,7 @@ def __init__(self, **kwargs): :param operation_type: The value to assign to the operation_type property of this WorkRequest. - Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "DELETE_SQL_FIREWALL_ALLOWED_SQL", "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL", "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -697,7 +709,7 @@ def operation_type(self): **[Required]** Gets the operation_type of this WorkRequest. The resources that are affected by the work request. - Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "DELETE_SQL_FIREWALL_ALLOWED_SQL", "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL", "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -716,7 +728,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequest. :type: str """ - allowed_values = ["ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT"] + allowed_values = ["ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "DELETE_SQL_FIREWALL_ALLOWED_SQL", "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL", "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL", "CREATE_AUDIT_PROFILE", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT"] if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): operation_type = 'UNKNOWN_ENUM_VALUE' self._operation_type = operation_type diff --git a/src/oci/data_safe/models/work_request_summary.py b/src/oci/data_safe/models/work_request_summary.py index 3e00cf01f..46179a00f 100644 --- a/src/oci/data_safe/models/work_request_summary.py +++ b/src/oci/data_safe/models/work_request_summary.py @@ -207,6 +207,18 @@ class WorkRequestSummary(object): #: This constant has a value of "GENERATE_SECURITY_ASSESSMENT_REPORT" OPERATION_TYPE_GENERATE_SECURITY_ASSESSMENT_REPORT = "GENERATE_SECURITY_ASSESSMENT_REPORT" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DELETE_SQL_FIREWALL_ALLOWED_SQL" + OPERATION_TYPE_DELETE_SQL_FIREWALL_ALLOWED_SQL = "DELETE_SQL_FIREWALL_ALLOWED_SQL" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL" + OPERATION_TYPE_BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL = "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL" + OPERATION_TYPE_BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL = "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. #: This constant has a value of "CALCULATE_VOLUME" OPERATION_TYPE_CALCULATE_VOLUME = "CALCULATE_VOLUME" @@ -614,7 +626,7 @@ def __init__(self, **kwargs): :param operation_type: The value to assign to the operation_type property of this WorkRequestSummary. - Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "DELETE_SQL_FIREWALL_ALLOWED_SQL", "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL", "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -693,7 +705,7 @@ def operation_type(self): **[Required]** Gets the operation_type of this WorkRequestSummary. The asynchronous operation tracked by this work request. - Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "DELETE_SQL_FIREWALL_ALLOWED_SQL", "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL", "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -712,7 +724,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequestSummary. :type: str """ - allowed_values = ["ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT"] + allowed_values = ["ENABLE_DATA_SAFE_CONFIGURATION", "CREATE_PRIVATE_ENDPOINT", "UPDATE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PRIVATE_ENDPOINT_COMPARTMENT", "CREATE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR", "DELETE_ONPREM_CONNECTOR", "UPDATE_ONPREM_CONNECTOR_WALLET", "CHANGE_ONPREM_CONNECTOR_COMPARTMENT", "PROVISION_POLICY", "RETRIEVE_POLICY", "UPDATE_POLICY", "CHANGE_POLICY_COMPARTMENT", "CREATE_TARGET_DATABASE", "UPDATE_TARGET_DATABASE", "ACTIVATE_TARGET_DATABASE", "DEACTIVATE_TARGET_DATABASE", "DELETE_TARGET_DATABASE", "CHANGE_TARGET_DATABASE_COMPARTMENT", "CREATE_PEER_TARGET_DATABASE", "UPDATE_PEER_TARGET_DATABASE", "DELETE_PEER_TARGET_DATABASE", "REFRESH_TARGET_DATABASE", "CREATE_USER_ASSESSMENT", "ASSESS_USER_ASSESSMENT", "CREATE_SNAPSHOT_USER_ASSESSMENT", "CREATE_SCHEDULE_USER_ASSESSMENT", "COMPARE_WITH_BASELINE_USER_ASSESSMENT", "DELETE_USER_ASSESSMENT", "UPDATE_USER_ASSESSMENT", "CHANGE_USER_ASSESSMENT_COMPARTMENT", "SET_USER_ASSESSMENT_BASELINE", "UNSET_USER_ASSESSMENT_BASELINE", "GENERATE_USER_ASSESSMENT_REPORT", "CREATE_SECURITY_ASSESSMENT", "CREATE_SECURITY_ASSESSMENT_NOW", "ASSESS_SECURITY_ASSESSMENT", "CREATE_SNAPSHOT_SECURITY_ASSESSMENT", "CREATE_SCHEDULE_SECURITY_ASSESSMENT", "COMPARE_WITH_BASELINE_SECURITY_ASSESSMENT", "DELETE_SECURITY_ASSESSMENT", "UPDATE_SECURITY_ASSESSMENT", "UPDATE_FINDING_RISK", "CHANGE_SECURITY_ASSESSMENT_COMPARTMENT", "SET_SECURITY_ASSESSMENT_BASELINE", "UNSET_SECURITY_ASSESSMENT_BASELINE", "GENERATE_SECURITY_ASSESSMENT_REPORT", "DELETE_SQL_FIREWALL_ALLOWED_SQL", "BULK_CREATE_SQL_FIREWALL_ALLOWED_SQL", "BULK_DELETE_SQL_FIREWALL_ALLOWED_SQL", "CALCULATE_VOLUME", "CALCULATE_COLLECTED_VOLUME", "CREATE_DB_SECURITY_CONFIG", "REFRESH_DB_SECURITY_CONFIG", "UPDATE_DB_SECURITY_CONFIG", "CHANGE_DB_SECURITY_CONFIG_COMPARTMENT", "GENERATE_FIREWALL_POLICY", "UPDATE_FIREWALL_POLICY", "CHANGE_FIREWALL_POLICY_COMPARTMENT", "DELETE_FIREWALL_POLICY", "CREATE_SQL_COLLECTION", "UPDATE_SQL_COLLECTION", "START_SQL_COLLECTION", "STOP_SQL_COLLECTION", "DELETE_SQL_COLLECTION", "CHANGE_SQL_COLLECTION_COMPARTMENT", "REFRESH_SQL_COLLECTION_LOG_INSIGHTS", "PURGE_SQL_COLLECTION_LOGS", "REFRESH_VIOLATIONS", "CREATE_ARCHIVAL", "UPDATE_SECURITY_POLICY", "CHANGE_SECURITY_POLICY_COMPARTMENT", "UPDATE_SECURITY_POLICY_DEPLOYMENT", "CHANGE_SECURITY_POLICY_DEPLOYMENT_COMPARTMENT", "AUDIT_TRAIL", "DELETE_AUDIT_TRAIL", "DISCOVER_AUDIT_TRAILS", "UPDATE_AUDIT_TRAIL", "UPDATE_AUDIT_PROFILE", "AUDIT_CHANGE_COMPARTMENT", "CREATE_REPORT_DEFINITION", "UPDATE_REPORT_DEFINITION", "CHANGE_REPORT_DEFINITION_COMPARTMENT", "DELETE_REPORT_DEFINITION", "GENERATE_REPORT", "CHANGE_REPORT_COMPARTMENT", "DELETE_ARCHIVE_RETRIEVAL", "CREATE_ARCHIVE_RETRIEVAL", "UPDATE_ARCHIVE_RETRIEVAL", "CHANGE_ARCHIVE_RETRIEVAL_COMPARTMENT", "UPDATE_ALERT", "TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_SENSITIVE_DATA_MODEL", "UPDATE_SENSITIVE_DATA_MODEL", "DELETE_SENSITIVE_DATA_MODEL", "UPLOAD_SENSITIVE_DATA_MODEL", "GENERATE_SENSITIVE_DATA_MODEL_FOR_DOWNLOAD", "CREATE_SENSITIVE_COLUMN", "UPDATE_SENSITIVE_COLUMN", "PATCH_SENSITIVE_COLUMNS", "CREATE_DISCOVERY_JOB", "DELETE_DISCOVERY_JOB", "PATCH_DISCOVERY_JOB_RESULT", "APPLY_DISCOVERY_JOB_RESULT", "GENERATE_DISCOVERY_REPORT", "CREATE_SENSITIVE_TYPE", "UPDATE_SENSITIVE_TYPE", "CREATE_MASKING_POLICY", "UPDATE_MASKING_POLICY", "DELETE_MASKING_POLICY", "UPLOAD_MASKING_POLICY", "GENERATE_MASKING_POLICY_FOR_DOWNLOAD", "CREATE_MASKING_COLUMN", "UPDATE_MASKING_COLUMN", "PATCH_MASKING_COLUMNS", "GENERATE_MASKING_REPORT", "CREATE_LIBRARY_MASKING_FORMAT", "UPDATE_LIBRARY_MASKING_FORMAT", "ADD_COLUMNS_FROM_SDM", "MASKING_JOB", "CREATE_DIFFERENCE", "DELETE_DIFFERENCE", "UPDATE_DIFFERENCE", "PATCH_DIFFERENCE", "APPLY_DIFFERENCE", "MASK_POLICY_GENERATE_HEALTH_REPORT", "MASK_POLICY_DELETE_HEALTH_REPORT", "ABORT_MASKING", "CREATE_SECURITY_POLICY_REPORT", "REFRESH_SECURITY_POLICY_CACHE", "DELETE_SECURITY_POLICY_CACHE", "CREATE_SCHEDULE", "REMOVE_SCHEDULE_REPORT", "UPDATE_ALL_ALERT", "PATCH_TARGET_ALERT_POLICY_ASSOCIATION", "CREATE_ALERT_POLICY", "UPDATE_ALERT_POLICY", "DELETE_ALERT_POLICY", "CREATE_ALERT_POLICY_RULE", "UPDATE_ALERT_POLICY_RULE", "DELETE_ALERT_POLICY_RULE", "CHANGE_ALERT_POLICY_COMPARTMENT"] if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): operation_type = 'UNKNOWN_ENUM_VALUE' self._operation_type = operation_type diff --git a/src/oci/data_science/models/custom_expression_query_scaling_configuration.py b/src/oci/data_science/models/custom_expression_query_scaling_configuration.py index ec8477d4c..ad7a393b3 100644 --- a/src/oci/data_science/models/custom_expression_query_scaling_configuration.py +++ b/src/oci/data_science/models/custom_expression_query_scaling_configuration.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param scaling_configuration_type: The value to assign to the scaling_configuration_type property of this CustomExpressionQueryScalingConfiguration. - Allowed values for this property are: "THRESHOLD", "QUERY" + Allowed values for this property are: "THRESHOLD", "QUERY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type scaling_configuration_type: str :param pending_duration: diff --git a/src/oci/data_science/models/scaling_configuration.py b/src/oci/data_science/models/scaling_configuration.py index 05f00227b..9c03bd110 100644 --- a/src/oci/data_science/models/scaling_configuration.py +++ b/src/oci/data_science/models/scaling_configuration.py @@ -35,7 +35,8 @@ def __init__(self, **kwargs): :param scaling_configuration_type: The value to assign to the scaling_configuration_type property of this ScalingConfiguration. - Allowed values for this property are: "THRESHOLD", "QUERY" + Allowed values for this property are: "THRESHOLD", "QUERY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type scaling_configuration_type: str :param pending_duration: @@ -85,7 +86,8 @@ def scaling_configuration_type(self): **[Required]** Gets the scaling_configuration_type of this ScalingConfiguration. The type of scaling configuration. - Allowed values for this property are: "THRESHOLD", "QUERY" + Allowed values for this property are: "THRESHOLD", "QUERY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The scaling_configuration_type of this ScalingConfiguration. @@ -105,9 +107,7 @@ def scaling_configuration_type(self, scaling_configuration_type): """ allowed_values = ["THRESHOLD", "QUERY"] if not value_allowed_none_or_none_sentinel(scaling_configuration_type, allowed_values): - raise ValueError( - f"Invalid value for `scaling_configuration_type`, must be None or one of {allowed_values}" - ) + scaling_configuration_type = 'UNKNOWN_ENUM_VALUE' self._scaling_configuration_type = scaling_configuration_type @property diff --git a/src/oci/database/database_client.py b/src/oci/database/database_client.py index fe6d2f494..7bb439a10 100644 --- a/src/oci/database/database_client.py +++ b/src/oci/database/database_client.py @@ -25460,6 +25460,11 @@ def list_autonomous_databases(self, compartment_id, **kwargs): Allowed values are: "PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING", "INACCESSIBLE", "STANDBY" + :param str lifecycle_state_not_equal_to: (optional) + A filter to return only resources that not match the given lifecycle state. + + Allowed values are: "PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING", "INACCESSIBLE", "STANDBY" + :param str db_workload: (optional) A filter to return only autonomous database resources that match the specified workload type. @@ -25529,6 +25534,7 @@ def list_autonomous_databases(self, compartment_id, **kwargs): "sort_order", "infrastructure_type", "lifecycle_state", + "lifecycle_state_not_equal_to", "db_workload", "db_version", "is_free_tier", @@ -25572,6 +25578,13 @@ def list_autonomous_databases(self, compartment_id, **kwargs): f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" ) + if 'lifecycle_state_not_equal_to' in kwargs: + lifecycle_state_not_equal_to_allowed_values = ["PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING", "INACCESSIBLE", "STANDBY"] + if kwargs['lifecycle_state_not_equal_to'] not in lifecycle_state_not_equal_to_allowed_values: + raise ValueError( + f"Invalid value for `lifecycle_state_not_equal_to`, must be one of { lifecycle_state_not_equal_to_allowed_values }" + ) + if 'db_workload' in kwargs: db_workload_allowed_values = ["OLTP", "DW", "AJD", "APEX"] if kwargs['db_workload'] not in db_workload_allowed_values: @@ -25588,6 +25601,7 @@ def list_autonomous_databases(self, compartment_id, **kwargs): "sortOrder": kwargs.get("sort_order", missing), "infrastructureType": kwargs.get("infrastructure_type", missing), "lifecycleState": kwargs.get("lifecycle_state", missing), + "lifecycleStateNotEqualTo": kwargs.get("lifecycle_state_not_equal_to", missing), "dbWorkload": kwargs.get("db_workload", missing), "dbVersion": kwargs.get("db_version", missing), "isFreeTier": kwargs.get("is_free_tier", missing), @@ -39127,6 +39141,250 @@ def scan_external_container_database_pluggable_databases(self, external_containe api_reference_link=api_reference_link, required_arguments=required_arguments) + def set_db_key_version(self, database_id, set_key_version_details, **kwargs): + """ + Sets a new version of an existing `Vault service`__ key. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + + + :param str database_id: (required) + The database `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database.models.SetKeyVersionDetails set_key_version_details: (required) + Requests Key Version Update. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + parameter to the value of the etag from a previous GET or POST response for that resource. The resource + will be updated or deleted only if the etag you provide matches the resource's current etag value. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations (for example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + may be rejected). + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.Database` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use set_db_key_version API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['databaseId'] + resource_path = "/databases/{databaseId}/actions/setKeyVersion" + method = "POST" + operation_name = "set_db_key_version" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/SetDbKeyVersion" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"set_db_key_version got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "databaseId": database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=set_key_version_details, + response_type="Database", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=set_key_version_details, + response_type="Database", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def set_pdb_key_version(self, pluggable_database_id, set_key_version_details, **kwargs): + """ + Sets a new version of an existing `Vault service`__ key. + + __ https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm + + + :param str pluggable_database_id: (required) + The database `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database.models.SetKeyVersionDetails set_key_version_details: (required) + Requests Key Version Update. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + parameter to the value of the etag from a previous GET or POST response for that resource. The resource + will be updated or deleted only if the etag you provide matches the resource's current etag value. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations (for example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + may be rejected). + + :param str opc_request_id: (optional) + Unique identifier for the request. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database.models.PluggableDatabase` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use set_pdb_key_version API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['pluggableDatabaseId'] + resource_path = "/pluggableDatabases/{pluggableDatabaseId}/actions/setKeyVersion" + method = "POST" + operation_name = "set_pdb_key_version" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/SetPdbKeyVersion" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"set_pdb_key_version got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "pluggableDatabaseId": pluggable_database_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=set_key_version_details, + response_type="PluggableDatabase", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=set_key_version_details, + response_type="PluggableDatabase", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def shrink_autonomous_database(self, autonomous_database_id, **kwargs): """ This operation shrinks the current allocated storage down to the current actual used data storage (actualUsedDataStorageSizeInTBs). The if the base storage value for the database (dataStorageSizeInTBs) is larger than the actualUsedDataStorageSizeInTBs value, you are billed for the base storage value. diff --git a/src/oci/database/database_client_composite_operations.py b/src/oci/database/database_client_composite_operations.py index 2dacac155..90ef801a9 100644 --- a/src/oci/database/database_client_composite_operations.py +++ b/src/oci/database/database_client_composite_operations.py @@ -10605,6 +10605,182 @@ def scan_external_container_database_pluggable_databases_and_wait_for_work_reque except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def set_db_key_version_and_wait_for_work_request(self, database_id, set_key_version_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.set_db_key_version` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str database_id: (required) + The database `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database.models.SetKeyVersionDetails set_key_version_details: (required) + Requests Key Version Update. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.set_db_key_version` + + :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.set_db_key_version(database_id, set_key_version_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def set_db_key_version_and_wait_for_state(self, database_id, set_key_version_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.set_db_key_version` and waits for the :py:class:`~oci.database.models.Database` acted upon + to enter the given state(s). + + :param str database_id: (required) + The database `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database.models.SetKeyVersionDetails set_key_version_details: (required) + Requests Key Version Update. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.Database.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.set_db_key_version` + + :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.set_db_key_version(database_id, set_key_version_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + database_id = operation_result.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_database(database_id), # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def set_pdb_key_version_and_wait_for_work_request(self, pluggable_database_id, set_key_version_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.set_pdb_key_version` and waits for the oci.work_requests.models.WorkRequest + to enter the given state(s). + + :param str pluggable_database_id: (required) + The database `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database.models.SetKeyVersionDetails set_key_version_details: (required) + Requests Key Version Update. + + :param list[str] work_request_states: (optional) + An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status` + Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED] + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.set_pdb_key_version` + + :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.set_pdb_key_version(pluggable_database_id, set_key_version_details, **operation_kwargs) + work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES + lowered_work_request_states = [w.lower() for w in work_request_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + work_request_id = operation_result.headers['opc-work-request-id'] + try: + waiter_result = oci.wait_until( + self._work_request_client, + self._work_request_client.get_work_request(work_request_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states, + **waiter_kwargs + ) + return waiter_result + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def set_pdb_key_version_and_wait_for_state(self, pluggable_database_id, set_key_version_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database.DatabaseClient.set_pdb_key_version` and waits for the :py:class:`~oci.database.models.PluggableDatabase` acted upon + to enter the given state(s). + + :param str pluggable_database_id: (required) + The database `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database.models.SetKeyVersionDetails set_key_version_details: (required) + Requests Key Version Update. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database.models.PluggableDatabase.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database.DatabaseClient.set_pdb_key_version` + + :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.set_pdb_key_version(pluggable_database_id, set_key_version_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + pluggable_database_id = operation_result.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_pluggable_database(pluggable_database_id), # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def shrink_autonomous_database_and_wait_for_work_request(self, autonomous_database_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.database.DatabaseClient.shrink_autonomous_database` and waits for the oci.work_requests.models.WorkRequest diff --git a/src/oci/database/models/__init__.py b/src/oci/database/models/__init__.py index 3ec4b3f62..5d6739714 100644 --- a/src/oci/database/models/__init__.py +++ b/src/oci/database/models/__init__.py @@ -330,6 +330,7 @@ from .network_bonding_mode_details import NetworkBondingModeDetails from .node_details import NodeDetails from .ocp_us import OCPUs +from .oci_provider_set_key_version_details import OciProviderSetKeyVersionDetails from .oneoff_patch import OneoffPatch from .oneoff_patch_summary import OneoffPatchSummary from .operations_insights_config import OperationsInsightsConfig @@ -385,11 +386,13 @@ from .scheduling_window import SchedulingWindow from .scheduling_window_summary import SchedulingWindowSummary from .self_mount_details import SelfMountDetails +from .set_key_version_details import SetKeyVersionDetails from .stack_monitoring_config import StackMonitoringConfig from .storage_performance_details import StoragePerformanceDetails from .switchover_data_guard_association_details import SwitchoverDataGuardAssociationDetails from .system_version_collection import SystemVersionCollection from .system_version_summary import SystemVersionSummary +from .undelete_autonomous_database_details import UndeleteAutonomousDatabaseDetails from .update import Update from .update_autonomous_container_database_data_guard_association_details import UpdateAutonomousContainerDatabaseDataGuardAssociationDetails from .update_autonomous_container_database_details import UpdateAutonomousContainerDatabaseDetails @@ -777,6 +780,7 @@ "NetworkBondingModeDetails": NetworkBondingModeDetails, "NodeDetails": NodeDetails, "OCPUs": OCPUs, + "OciProviderSetKeyVersionDetails": OciProviderSetKeyVersionDetails, "OneoffPatch": OneoffPatch, "OneoffPatchSummary": OneoffPatchSummary, "OperationsInsightsConfig": OperationsInsightsConfig, @@ -832,11 +836,13 @@ "SchedulingWindow": SchedulingWindow, "SchedulingWindowSummary": SchedulingWindowSummary, "SelfMountDetails": SelfMountDetails, + "SetKeyVersionDetails": SetKeyVersionDetails, "StackMonitoringConfig": StackMonitoringConfig, "StoragePerformanceDetails": StoragePerformanceDetails, "SwitchoverDataGuardAssociationDetails": SwitchoverDataGuardAssociationDetails, "SystemVersionCollection": SystemVersionCollection, "SystemVersionSummary": SystemVersionSummary, + "UndeleteAutonomousDatabaseDetails": UndeleteAutonomousDatabaseDetails, "Update": Update, "UpdateAutonomousContainerDatabaseDataGuardAssociationDetails": UpdateAutonomousContainerDatabaseDataGuardAssociationDetails, "UpdateAutonomousContainerDatabaseDetails": UpdateAutonomousContainerDatabaseDetails, diff --git a/src/oci/database/models/autonomous_database.py b/src/oci/database/models/autonomous_database.py index ab590cb61..498a9b84b 100644 --- a/src/oci/database/models/autonomous_database.py +++ b/src/oci/database/models/autonomous_database.py @@ -458,6 +458,10 @@ def __init__(self, **kwargs): The value to assign to the autonomous_container_database_id property of this AutonomousDatabase. :type autonomous_container_database_id: str + :param time_undeleted: + The value to assign to the time_undeleted property of this AutonomousDatabase. + :type time_undeleted: datetime + :param time_created: The value to assign to the time_created property of this AutonomousDatabase. :type time_created: datetime @@ -855,6 +859,7 @@ def __init__(self, **kwargs): 'infrastructure_type': 'str', 'is_dedicated': 'bool', 'autonomous_container_database_id': 'str', + 'time_undeleted': 'datetime', 'time_created': 'datetime', 'display_name': 'str', 'service_console_url': 'str', @@ -977,6 +982,7 @@ def __init__(self, **kwargs): 'infrastructure_type': 'infrastructureType', 'is_dedicated': 'isDedicated', 'autonomous_container_database_id': 'autonomousContainerDatabaseId', + 'time_undeleted': 'timeUndeleted', 'time_created': 'timeCreated', 'display_name': 'displayName', 'service_console_url': 'serviceConsoleUrl', @@ -1098,6 +1104,7 @@ def __init__(self, **kwargs): self._infrastructure_type = None self._is_dedicated = None self._autonomous_container_database_id = None + self._time_undeleted = None self._time_created = None self._display_name = None self._service_console_url = None @@ -2165,6 +2172,30 @@ def autonomous_container_database_id(self, autonomous_container_database_id): """ self._autonomous_container_database_id = autonomous_container_database_id + @property + def time_undeleted(self): + """ + Gets the time_undeleted of this AutonomousDatabase. + The date and time the Autonomous Database was most recently undeleted. + + + :return: The time_undeleted of this AutonomousDatabase. + :rtype: datetime + """ + return self._time_undeleted + + @time_undeleted.setter + def time_undeleted(self, time_undeleted): + """ + Sets the time_undeleted of this AutonomousDatabase. + The date and time the Autonomous Database was most recently undeleted. + + + :param time_undeleted: The time_undeleted of this AutonomousDatabase. + :type: datetime + """ + self._time_undeleted = time_undeleted + @property def time_created(self): """ diff --git a/src/oci/database/models/autonomous_database_summary.py b/src/oci/database/models/autonomous_database_summary.py index 1cc4a8986..ee961e257 100644 --- a/src/oci/database/models/autonomous_database_summary.py +++ b/src/oci/database/models/autonomous_database_summary.py @@ -460,6 +460,10 @@ def __init__(self, **kwargs): The value to assign to the autonomous_container_database_id property of this AutonomousDatabaseSummary. :type autonomous_container_database_id: str + :param time_undeleted: + The value to assign to the time_undeleted property of this AutonomousDatabaseSummary. + :type time_undeleted: datetime + :param time_created: The value to assign to the time_created property of this AutonomousDatabaseSummary. :type time_created: datetime @@ -857,6 +861,7 @@ def __init__(self, **kwargs): 'infrastructure_type': 'str', 'is_dedicated': 'bool', 'autonomous_container_database_id': 'str', + 'time_undeleted': 'datetime', 'time_created': 'datetime', 'display_name': 'str', 'service_console_url': 'str', @@ -979,6 +984,7 @@ def __init__(self, **kwargs): 'infrastructure_type': 'infrastructureType', 'is_dedicated': 'isDedicated', 'autonomous_container_database_id': 'autonomousContainerDatabaseId', + 'time_undeleted': 'timeUndeleted', 'time_created': 'timeCreated', 'display_name': 'displayName', 'service_console_url': 'serviceConsoleUrl', @@ -1100,6 +1106,7 @@ def __init__(self, **kwargs): self._infrastructure_type = None self._is_dedicated = None self._autonomous_container_database_id = None + self._time_undeleted = None self._time_created = None self._display_name = None self._service_console_url = None @@ -2167,6 +2174,30 @@ def autonomous_container_database_id(self, autonomous_container_database_id): """ self._autonomous_container_database_id = autonomous_container_database_id + @property + def time_undeleted(self): + """ + Gets the time_undeleted of this AutonomousDatabaseSummary. + The date and time the Autonomous Database was most recently undeleted. + + + :return: The time_undeleted of this AutonomousDatabaseSummary. + :rtype: datetime + """ + return self._time_undeleted + + @time_undeleted.setter + def time_undeleted(self, time_undeleted): + """ + Sets the time_undeleted of this AutonomousDatabaseSummary. + The date and time the Autonomous Database was most recently undeleted. + + + :param time_undeleted: The time_undeleted of this AutonomousDatabaseSummary. + :type: datetime + """ + self._time_undeleted = time_undeleted + @property def time_created(self): """ diff --git a/src/oci/database/models/create_autonomous_database_base.py b/src/oci/database/models/create_autonomous_database_base.py index 01bb020d2..5f09f9b91 100644 --- a/src/oci/database/models/create_autonomous_database_base.py +++ b/src/oci/database/models/create_autonomous_database_base.py @@ -70,6 +70,10 @@ class CreateAutonomousDatabaseBase(object): #: This constant has a value of "BACKUP_FROM_TIMESTAMP" SOURCE_BACKUP_FROM_TIMESTAMP = "BACKUP_FROM_TIMESTAMP" + #: A constant which can be used with the source property of a CreateAutonomousDatabaseBase. + #: This constant has a value of "UNDELETE_ADB" + SOURCE_UNDELETE_ADB = "UNDELETE_ADB" + #: A constant which can be used with the source property of a CreateAutonomousDatabaseBase. #: This constant has a value of "CLONE_TO_REFRESHABLE" SOURCE_CLONE_TO_REFRESHABLE = "CLONE_TO_REFRESHABLE" @@ -95,6 +99,7 @@ def __init__(self, **kwargs): Initializes a new CreateAutonomousDatabaseBase object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: + * :class:`~oci.database.models.UndeleteAutonomousDatabaseDetails` * :class:`~oci.database.models.CreateAutonomousDatabaseCloneDetails` * :class:`~oci.database.models.CreateRefreshableAutonomousDatabaseCloneDetails` * :class:`~oci.database.models.CreateAutonomousDatabaseFromBackupDetails` @@ -267,7 +272,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateAutonomousDatabaseBase. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: @@ -484,6 +489,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['source'] + if type == 'UNDELETE_ADB': + return 'UndeleteAutonomousDatabaseDetails' + if type == 'DATABASE': return 'CreateAutonomousDatabaseCloneDetails' @@ -1742,7 +1750,7 @@ def source(self): __ https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/ __ https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/clone-autonomous-database.html#GUID-D771796F-5081-4CFB-A7FF-0F893EABD7BC - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :return: The source of this CreateAutonomousDatabaseBase. @@ -1765,7 +1773,7 @@ def source(self, source): :param source: The source of this CreateAutonomousDatabaseBase. :type: str """ - allowed_values = ["NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY"] + allowed_values = ["NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY"] if not value_allowed_none_or_none_sentinel(source, allowed_values): raise ValueError( f"Invalid value for `source`, must be None or one of {allowed_values}" diff --git a/src/oci/database/models/create_autonomous_database_clone_details.py b/src/oci/database/models/create_autonomous_database_clone_details.py index b84982130..1c291a122 100644 --- a/src/oci/database/models/create_autonomous_database_clone_details.py +++ b/src/oci/database/models/create_autonomous_database_clone_details.py @@ -190,7 +190,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateAutonomousDatabaseCloneDetails. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: diff --git a/src/oci/database/models/create_autonomous_database_details.py b/src/oci/database/models/create_autonomous_database_details.py index a64b57cc8..ff26276bc 100644 --- a/src/oci/database/models/create_autonomous_database_details.py +++ b/src/oci/database/models/create_autonomous_database_details.py @@ -182,7 +182,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateAutonomousDatabaseDetails. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: diff --git a/src/oci/database/models/create_autonomous_database_from_backup_details.py b/src/oci/database/models/create_autonomous_database_from_backup_details.py index e54655f09..b9ba2ef4e 100644 --- a/src/oci/database/models/create_autonomous_database_from_backup_details.py +++ b/src/oci/database/models/create_autonomous_database_from_backup_details.py @@ -190,7 +190,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateAutonomousDatabaseFromBackupDetails. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: diff --git a/src/oci/database/models/create_autonomous_database_from_backup_timestamp_details.py b/src/oci/database/models/create_autonomous_database_from_backup_timestamp_details.py index 67f0ad15a..bd4f4bc66 100644 --- a/src/oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +++ b/src/oci/database/models/create_autonomous_database_from_backup_timestamp_details.py @@ -190,7 +190,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateAutonomousDatabaseFromBackupTimestampDetails. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: diff --git a/src/oci/database/models/create_cross_region_autonomous_database_data_guard_details.py b/src/oci/database/models/create_cross_region_autonomous_database_data_guard_details.py index 78a43efaf..ec7f39c53 100644 --- a/src/oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +++ b/src/oci/database/models/create_cross_region_autonomous_database_data_guard_details.py @@ -202,7 +202,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateCrossRegionAutonomousDatabaseDataGuardDetails. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: diff --git a/src/oci/database/models/create_cross_region_disaster_recovery_details.py b/src/oci/database/models/create_cross_region_disaster_recovery_details.py index b0d060ac6..cac2e80f9 100644 --- a/src/oci/database/models/create_cross_region_disaster_recovery_details.py +++ b/src/oci/database/models/create_cross_region_disaster_recovery_details.py @@ -201,7 +201,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateCrossRegionDisasterRecoveryDetails. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: diff --git a/src/oci/database/models/create_cross_tenancy_disaster_recovery_details.py b/src/oci/database/models/create_cross_tenancy_disaster_recovery_details.py index 892fb94a4..31b64bcf8 100644 --- a/src/oci/database/models/create_cross_tenancy_disaster_recovery_details.py +++ b/src/oci/database/models/create_cross_tenancy_disaster_recovery_details.py @@ -202,7 +202,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateCrossTenancyDisasterRecoveryDetails. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: diff --git a/src/oci/database/models/create_refreshable_autonomous_database_clone_details.py b/src/oci/database/models/create_refreshable_autonomous_database_clone_details.py index 5a239f34e..534af4fd9 100644 --- a/src/oci/database/models/create_refreshable_autonomous_database_clone_details.py +++ b/src/oci/database/models/create_refreshable_autonomous_database_clone_details.py @@ -198,7 +198,7 @@ def __init__(self, **kwargs): :param source: The value to assign to the source property of this CreateRefreshableAutonomousDatabaseCloneDetails. - Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" :type source: str :param customer_contacts: diff --git a/src/oci/database/models/external_database_base.py b/src/oci/database/models/external_database_base.py index c593ca443..c7445790c 100644 --- a/src/oci/database/models/external_database_base.py +++ b/src/oci/database/models/external_database_base.py @@ -98,7 +98,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this ExternalDatabaseBase. - Allowed values for this property are: "PROVISIONING", "NOT_CONNECTED", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED" + Allowed values for this property are: "PROVISIONING", "NOT_CONNECTED", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: @@ -119,7 +120,8 @@ def __init__(self, **kwargs): :param database_edition: The value to assign to the database_edition property of this ExternalDatabaseBase. - Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" + Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_edition: str :param time_zone: @@ -140,7 +142,8 @@ def __init__(self, **kwargs): :param database_configuration: The value to assign to the database_configuration property of this ExternalDatabaseBase. - Allowed values for this property are: "RAC", "SINGLE_INSTANCE" + Allowed values for this property are: "RAC", "SINGLE_INSTANCE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_configuration: str :param database_management_config: @@ -390,7 +393,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this ExternalDatabaseBase. The current state of the Oracle Cloud Infrastructure external database resource. - Allowed values for this property are: "PROVISIONING", "NOT_CONNECTED", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED" + Allowed values for this property are: "PROVISIONING", "NOT_CONNECTED", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this ExternalDatabaseBase. @@ -410,9 +414,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["PROVISIONING", "NOT_CONNECTED", "AVAILABLE", "UPDATING", "TERMINATING", "TERMINATED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property @@ -517,7 +519,8 @@ def database_edition(self): Gets the database_edition of this ExternalDatabaseBase. The Oracle Database edition. - Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE" + Allowed values for this property are: "STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_edition of this ExternalDatabaseBase. @@ -537,9 +540,7 @@ def database_edition(self, database_edition): """ allowed_values = ["STANDARD_EDITION", "ENTERPRISE_EDITION", "ENTERPRISE_EDITION_HIGH_PERFORMANCE", "ENTERPRISE_EDITION_EXTREME_PERFORMANCE"] if not value_allowed_none_or_none_sentinel(database_edition, allowed_values): - raise ValueError( - f"Invalid value for `database_edition`, must be None or one of {allowed_values}" - ) + database_edition = 'UNKNOWN_ENUM_VALUE' self._database_edition = database_edition @property @@ -648,7 +649,8 @@ def database_configuration(self): Gets the database_configuration of this ExternalDatabaseBase. The Oracle Database configuration - Allowed values for this property are: "RAC", "SINGLE_INSTANCE" + Allowed values for this property are: "RAC", "SINGLE_INSTANCE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_configuration of this ExternalDatabaseBase. @@ -668,9 +670,7 @@ def database_configuration(self, database_configuration): """ allowed_values = ["RAC", "SINGLE_INSTANCE"] if not value_allowed_none_or_none_sentinel(database_configuration, allowed_values): - raise ValueError( - f"Invalid value for `database_configuration`, must be None or one of {allowed_values}" - ) + database_configuration = 'UNKNOWN_ENUM_VALUE' self._database_configuration = database_configuration @property diff --git a/src/oci/database/models/infrastructure_target_version_summary.py b/src/oci/database/models/infrastructure_target_version_summary.py index ebf5136db..e5267564d 100644 --- a/src/oci/database/models/infrastructure_target_version_summary.py +++ b/src/oci/database/models/infrastructure_target_version_summary.py @@ -48,7 +48,8 @@ def __init__(self, **kwargs): :param target_resource_type: The value to assign to the target_resource_type property of this InfrastructureTargetVersionSummary. - Allowed values for this property are: "EXADATA_DB_SYSTEM", "CLOUD_EXADATA_INFRASTRUCTURE", "EXACC_INFRASTRUCTURE" + Allowed values for this property are: "EXADATA_DB_SYSTEM", "CLOUD_EXADATA_INFRASTRUCTURE", "EXACC_INFRASTRUCTURE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type target_resource_type: str :param target_resource_id: @@ -129,7 +130,8 @@ def target_resource_type(self): Gets the target_resource_type of this InfrastructureTargetVersionSummary. The resource type of the target Exadata infrastructure resource that will receive the system software update. - Allowed values for this property are: "EXADATA_DB_SYSTEM", "CLOUD_EXADATA_INFRASTRUCTURE", "EXACC_INFRASTRUCTURE" + Allowed values for this property are: "EXADATA_DB_SYSTEM", "CLOUD_EXADATA_INFRASTRUCTURE", "EXACC_INFRASTRUCTURE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The target_resource_type of this InfrastructureTargetVersionSummary. @@ -149,9 +151,7 @@ def target_resource_type(self, target_resource_type): """ allowed_values = ["EXADATA_DB_SYSTEM", "CLOUD_EXADATA_INFRASTRUCTURE", "EXACC_INFRASTRUCTURE"] if not value_allowed_none_or_none_sentinel(target_resource_type, allowed_values): - raise ValueError( - f"Invalid value for `target_resource_type`, must be None or one of {allowed_values}" - ) + target_resource_type = 'UNKNOWN_ENUM_VALUE' self._target_resource_type = target_resource_type @property diff --git a/src/oci/database/models/oci_provider_set_key_version_details.py b/src/oci/database/models/oci_provider_set_key_version_details.py new file mode 100644 index 000000000..7a1186260 --- /dev/null +++ b/src/oci/database/models/oci_provider_set_key_version_details.py @@ -0,0 +1,82 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918 + +from .set_key_version_details import SetKeyVersionDetails +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 OciProviderSetKeyVersionDetails(SetKeyVersionDetails): + """ + Used for setting KMS key versions + """ + + def __init__(self, **kwargs): + """ + Initializes a new OciProviderSetKeyVersionDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database.models.OciProviderSetKeyVersionDetails.provider` attribute + of this class is ``OCI`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param provider: + The value to assign to the provider property of this OciProviderSetKeyVersionDetails. + Allowed values for this property are: "OCI" + :type provider: str + + :param kms_key_version_id: + The value to assign to the kms_key_version_id property of this OciProviderSetKeyVersionDetails. + :type kms_key_version_id: str + + """ + self.swagger_types = { + 'provider': 'str', + 'kms_key_version_id': 'str' + } + + self.attribute_map = { + 'provider': 'provider', + 'kms_key_version_id': 'kmsKeyVersionId' + } + + self._provider = None + self._kms_key_version_id = None + self._provider = 'OCI' + + @property + def kms_key_version_id(self): + """ + **[Required]** Gets the kms_key_version_id of this OciProviderSetKeyVersionDetails. + The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. + + + :return: The kms_key_version_id of this OciProviderSetKeyVersionDetails. + :rtype: str + """ + return self._kms_key_version_id + + @kms_key_version_id.setter + def kms_key_version_id(self, kms_key_version_id): + """ + Sets the kms_key_version_id of this OciProviderSetKeyVersionDetails. + The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. + + + :param kms_key_version_id: The kms_key_version_id of this OciProviderSetKeyVersionDetails. + :type: str + """ + self._kms_key_version_id = kms_key_version_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database/models/pluggable_database.py b/src/oci/database/models/pluggable_database.py index bd146bc39..efa5c8a8a 100644 --- a/src/oci/database/models/pluggable_database.py +++ b/src/oci/database/models/pluggable_database.py @@ -149,6 +149,14 @@ def __init__(self, **kwargs): The value to assign to the pluggable_database_management_config property of this PluggableDatabase. :type pluggable_database_management_config: oci.database.models.PluggableDatabaseManagementConfig + :param kms_key_id: + The value to assign to the kms_key_id property of this PluggableDatabase. + :type kms_key_id: str + + :param kms_key_version_id: + The value to assign to the kms_key_version_id property of this PluggableDatabase. + :type kms_key_version_id: str + :param refreshable_clone_config: The value to assign to the refreshable_clone_config property of this PluggableDatabase. :type refreshable_clone_config: oci.database.models.PluggableDatabaseRefreshableCloneConfig @@ -172,6 +180,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', 'pluggable_database_management_config': 'PluggableDatabaseManagementConfig', + 'kms_key_id': 'str', + 'kms_key_version_id': 'str', 'refreshable_clone_config': 'PluggableDatabaseRefreshableCloneConfig', 'pdb_node_level_details': 'list[PluggableDatabaseNodeLevelDetails]' } @@ -190,6 +200,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', 'pluggable_database_management_config': 'pluggableDatabaseManagementConfig', + 'kms_key_id': 'kmsKeyId', + 'kms_key_version_id': 'kmsKeyVersionId', 'refreshable_clone_config': 'refreshableCloneConfig', 'pdb_node_level_details': 'pdbNodeLevelDetails' } @@ -207,6 +219,8 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._pluggable_database_management_config = None + self._kms_key_id = None + self._kms_key_version_id = None self._refreshable_clone_config = None self._pdb_node_level_details = None @@ -558,6 +572,54 @@ def pluggable_database_management_config(self, pluggable_database_management_con """ self._pluggable_database_management_config = pluggable_database_management_config + @property + def kms_key_id(self): + """ + Gets the kms_key_id of this PluggableDatabase. + The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. + + + :return: The kms_key_id of this PluggableDatabase. + :rtype: str + """ + return self._kms_key_id + + @kms_key_id.setter + def kms_key_id(self, kms_key_id): + """ + Sets the kms_key_id of this PluggableDatabase. + The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. + + + :param kms_key_id: The kms_key_id of this PluggableDatabase. + :type: str + """ + self._kms_key_id = kms_key_id + + @property + def kms_key_version_id(self): + """ + Gets the kms_key_version_id of this PluggableDatabase. + The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. + + + :return: The kms_key_version_id of this PluggableDatabase. + :rtype: str + """ + return self._kms_key_version_id + + @kms_key_version_id.setter + def kms_key_version_id(self, kms_key_version_id): + """ + Sets the kms_key_version_id of this PluggableDatabase. + The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. + + + :param kms_key_version_id: The kms_key_version_id of this PluggableDatabase. + :type: str + """ + self._kms_key_version_id = kms_key_version_id + @property def refreshable_clone_config(self): """ diff --git a/src/oci/database/models/pluggable_database_summary.py b/src/oci/database/models/pluggable_database_summary.py index c5b6cf30d..8e412d6fd 100644 --- a/src/oci/database/models/pluggable_database_summary.py +++ b/src/oci/database/models/pluggable_database_summary.py @@ -149,6 +149,14 @@ def __init__(self, **kwargs): The value to assign to the pluggable_database_management_config property of this PluggableDatabaseSummary. :type pluggable_database_management_config: oci.database.models.PluggableDatabaseManagementConfig + :param kms_key_id: + The value to assign to the kms_key_id property of this PluggableDatabaseSummary. + :type kms_key_id: str + + :param kms_key_version_id: + The value to assign to the kms_key_version_id property of this PluggableDatabaseSummary. + :type kms_key_version_id: str + :param refreshable_clone_config: The value to assign to the refreshable_clone_config property of this PluggableDatabaseSummary. :type refreshable_clone_config: oci.database.models.PluggableDatabaseRefreshableCloneConfig @@ -172,6 +180,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', 'pluggable_database_management_config': 'PluggableDatabaseManagementConfig', + 'kms_key_id': 'str', + 'kms_key_version_id': 'str', 'refreshable_clone_config': 'PluggableDatabaseRefreshableCloneConfig', 'pdb_node_level_details': 'list[PluggableDatabaseNodeLevelDetails]' } @@ -190,6 +200,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', 'pluggable_database_management_config': 'pluggableDatabaseManagementConfig', + 'kms_key_id': 'kmsKeyId', + 'kms_key_version_id': 'kmsKeyVersionId', 'refreshable_clone_config': 'refreshableCloneConfig', 'pdb_node_level_details': 'pdbNodeLevelDetails' } @@ -207,6 +219,8 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._pluggable_database_management_config = None + self._kms_key_id = None + self._kms_key_version_id = None self._refreshable_clone_config = None self._pdb_node_level_details = None @@ -558,6 +572,54 @@ def pluggable_database_management_config(self, pluggable_database_management_con """ self._pluggable_database_management_config = pluggable_database_management_config + @property + def kms_key_id(self): + """ + Gets the kms_key_id of this PluggableDatabaseSummary. + The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. + + + :return: The kms_key_id of this PluggableDatabaseSummary. + :rtype: str + """ + return self._kms_key_id + + @kms_key_id.setter + def kms_key_id(self, kms_key_id): + """ + Sets the kms_key_id of this PluggableDatabaseSummary. + The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations. + + + :param kms_key_id: The kms_key_id of this PluggableDatabaseSummary. + :type: str + """ + self._kms_key_id = kms_key_id + + @property + def kms_key_version_id(self): + """ + Gets the kms_key_version_id of this PluggableDatabaseSummary. + The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. + + + :return: The kms_key_version_id of this PluggableDatabaseSummary. + :rtype: str + """ + return self._kms_key_version_id + + @kms_key_version_id.setter + def kms_key_version_id(self, kms_key_version_id): + """ + Sets the kms_key_version_id of this PluggableDatabaseSummary. + The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions. If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances. + + + :param kms_key_version_id: The kms_key_version_id of this PluggableDatabaseSummary. + :type: str + """ + self._kms_key_version_id = kms_key_version_id + @property def refreshable_clone_config(self): """ diff --git a/src/oci/database/models/set_key_version_details.py b/src/oci/database/models/set_key_version_details.py new file mode 100644 index 000000000..8ebfbd6bd --- /dev/null +++ b/src/oci/database/models/set_key_version_details.py @@ -0,0 +1,101 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918 + + +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 SetKeyVersionDetails(object): + """ + Updating the database key version + """ + + #: A constant which can be used with the provider property of a SetKeyVersionDetails. + #: This constant has a value of "OCI" + PROVIDER_OCI = "OCI" + + def __init__(self, **kwargs): + """ + Initializes a new SetKeyVersionDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database.models.OciProviderSetKeyVersionDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param provider: + The value to assign to the provider property of this SetKeyVersionDetails. + Allowed values for this property are: "OCI" + :type provider: str + + """ + self.swagger_types = { + 'provider': 'str' + } + + self.attribute_map = { + 'provider': 'provider' + } + + self._provider = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['provider'] + + if type == 'OCI': + return 'OciProviderSetKeyVersionDetails' + else: + return 'SetKeyVersionDetails' + + @property + def provider(self): + """ + **[Required]** Gets the provider of this SetKeyVersionDetails. + Source of key version. + + Allowed values for this property are: "OCI" + + + :return: The provider of this SetKeyVersionDetails. + :rtype: str + """ + return self._provider + + @provider.setter + def provider(self, provider): + """ + Sets the provider of this SetKeyVersionDetails. + Source of key version. + + + :param provider: The provider of this SetKeyVersionDetails. + :type: str + """ + allowed_values = ["OCI"] + if not value_allowed_none_or_none_sentinel(provider, allowed_values): + raise ValueError( + f"Invalid value for `provider`, must be None or one of {allowed_values}" + ) + self._provider = provider + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database/models/undelete_autonomous_database_details.py b/src/oci/database/models/undelete_autonomous_database_details.py new file mode 100644 index 000000000..7291ef67d --- /dev/null +++ b/src/oci/database/models/undelete_autonomous_database_details.py @@ -0,0 +1,440 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918 + +from .create_autonomous_database_base import CreateAutonomousDatabaseBase +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 UndeleteAutonomousDatabaseDetails(CreateAutonomousDatabaseBase): + """ + Details to undelete an Oracle Autonomous Database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UndeleteAutonomousDatabaseDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database.models.UndeleteAutonomousDatabaseDetails.source` attribute + of this class is ``UNDELETE_ADB`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param subscription_id: + The value to assign to the subscription_id property of this UndeleteAutonomousDatabaseDetails. + :type subscription_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this UndeleteAutonomousDatabaseDetails. + :type compartment_id: str + + :param character_set: + The value to assign to the character_set property of this UndeleteAutonomousDatabaseDetails. + :type character_set: str + + :param ncharacter_set: + The value to assign to the ncharacter_set property of this UndeleteAutonomousDatabaseDetails. + :type ncharacter_set: str + + :param db_name: + The value to assign to the db_name property of this UndeleteAutonomousDatabaseDetails. + :type db_name: str + + :param cpu_core_count: + The value to assign to the cpu_core_count property of this UndeleteAutonomousDatabaseDetails. + :type cpu_core_count: int + + :param backup_retention_period_in_days: + The value to assign to the backup_retention_period_in_days property of this UndeleteAutonomousDatabaseDetails. + :type backup_retention_period_in_days: int + + :param compute_model: + The value to assign to the compute_model property of this UndeleteAutonomousDatabaseDetails. + Allowed values for this property are: "ECPU", "OCPU" + :type compute_model: str + + :param compute_count: + The value to assign to the compute_count property of this UndeleteAutonomousDatabaseDetails. + :type compute_count: float + + :param ocpu_count: + The value to assign to the ocpu_count property of this UndeleteAutonomousDatabaseDetails. + :type ocpu_count: float + + :param db_workload: + The value to assign to the db_workload property of this UndeleteAutonomousDatabaseDetails. + Allowed values for this property are: "OLTP", "DW", "AJD", "APEX" + :type db_workload: str + + :param data_storage_size_in_tbs: + The value to assign to the data_storage_size_in_tbs property of this UndeleteAutonomousDatabaseDetails. + :type data_storage_size_in_tbs: int + + :param data_storage_size_in_gbs: + The value to assign to the data_storage_size_in_gbs property of this UndeleteAutonomousDatabaseDetails. + :type data_storage_size_in_gbs: int + + :param is_free_tier: + The value to assign to the is_free_tier property of this UndeleteAutonomousDatabaseDetails. + :type is_free_tier: bool + + :param kms_key_id: + The value to assign to the kms_key_id property of this UndeleteAutonomousDatabaseDetails. + :type kms_key_id: str + + :param vault_id: + The value to assign to the vault_id property of this UndeleteAutonomousDatabaseDetails. + :type vault_id: str + + :param admin_password: + The value to assign to the admin_password property of this UndeleteAutonomousDatabaseDetails. + :type admin_password: str + + :param display_name: + The value to assign to the display_name property of this UndeleteAutonomousDatabaseDetails. + :type display_name: str + + :param license_model: + The value to assign to the license_model property of this UndeleteAutonomousDatabaseDetails. + Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE" + :type license_model: str + + :param byol_compute_count_limit: + The value to assign to the byol_compute_count_limit property of this UndeleteAutonomousDatabaseDetails. + :type byol_compute_count_limit: float + + :param is_preview_version_with_service_terms_accepted: + The value to assign to the is_preview_version_with_service_terms_accepted property of this UndeleteAutonomousDatabaseDetails. + :type is_preview_version_with_service_terms_accepted: bool + + :param is_auto_scaling_enabled: + The value to assign to the is_auto_scaling_enabled property of this UndeleteAutonomousDatabaseDetails. + :type is_auto_scaling_enabled: bool + + :param is_dev_tier: + The value to assign to the is_dev_tier property of this UndeleteAutonomousDatabaseDetails. + :type is_dev_tier: bool + + :param is_dedicated: + The value to assign to the is_dedicated property of this UndeleteAutonomousDatabaseDetails. + :type is_dedicated: bool + + :param autonomous_container_database_id: + The value to assign to the autonomous_container_database_id property of this UndeleteAutonomousDatabaseDetails. + :type autonomous_container_database_id: str + + :param in_memory_percentage: + The value to assign to the in_memory_percentage property of this UndeleteAutonomousDatabaseDetails. + :type in_memory_percentage: int + + :param is_access_control_enabled: + The value to assign to the is_access_control_enabled property of this UndeleteAutonomousDatabaseDetails. + :type is_access_control_enabled: bool + + :param whitelisted_ips: + The value to assign to the whitelisted_ips property of this UndeleteAutonomousDatabaseDetails. + :type whitelisted_ips: list[str] + + :param are_primary_whitelisted_ips_used: + The value to assign to the are_primary_whitelisted_ips_used property of this UndeleteAutonomousDatabaseDetails. + :type are_primary_whitelisted_ips_used: bool + + :param standby_whitelisted_ips: + The value to assign to the standby_whitelisted_ips property of this UndeleteAutonomousDatabaseDetails. + :type standby_whitelisted_ips: list[str] + + :param is_data_guard_enabled: + The value to assign to the is_data_guard_enabled property of this UndeleteAutonomousDatabaseDetails. + :type is_data_guard_enabled: bool + + :param is_local_data_guard_enabled: + The value to assign to the is_local_data_guard_enabled property of this UndeleteAutonomousDatabaseDetails. + :type is_local_data_guard_enabled: bool + + :param subnet_id: + The value to assign to the subnet_id property of this UndeleteAutonomousDatabaseDetails. + :type subnet_id: str + + :param nsg_ids: + The value to assign to the nsg_ids property of this UndeleteAutonomousDatabaseDetails. + :type nsg_ids: list[str] + + :param private_endpoint_label: + The value to assign to the private_endpoint_label property of this UndeleteAutonomousDatabaseDetails. + :type private_endpoint_label: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this UndeleteAutonomousDatabaseDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UndeleteAutonomousDatabaseDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param private_endpoint_ip: + The value to assign to the private_endpoint_ip property of this UndeleteAutonomousDatabaseDetails. + :type private_endpoint_ip: str + + :param db_version: + The value to assign to the db_version property of this UndeleteAutonomousDatabaseDetails. + :type db_version: str + + :param source: + The value to assign to the source property of this UndeleteAutonomousDatabaseDetails. + Allowed values for this property are: "NONE", "DATABASE", "BACKUP_FROM_ID", "BACKUP_FROM_TIMESTAMP", "UNDELETE_ADB", "CLONE_TO_REFRESHABLE", "CROSS_REGION_DATAGUARD", "CROSS_REGION_DISASTER_RECOVERY" + :type source: str + + :param customer_contacts: + The value to assign to the customer_contacts property of this UndeleteAutonomousDatabaseDetails. + :type customer_contacts: list[oci.database.models.CustomerContact] + + :param is_mtls_connection_required: + The value to assign to the is_mtls_connection_required property of this UndeleteAutonomousDatabaseDetails. + :type is_mtls_connection_required: bool + + :param resource_pool_leader_id: + The value to assign to the resource_pool_leader_id property of this UndeleteAutonomousDatabaseDetails. + :type resource_pool_leader_id: str + + :param resource_pool_summary: + The value to assign to the resource_pool_summary property of this UndeleteAutonomousDatabaseDetails. + :type resource_pool_summary: oci.database.models.ResourcePoolSummary + + :param autonomous_maintenance_schedule_type: + The value to assign to the autonomous_maintenance_schedule_type property of this UndeleteAutonomousDatabaseDetails. + Allowed values for this property are: "EARLY", "REGULAR" + :type autonomous_maintenance_schedule_type: str + + :param scheduled_operations: + The value to assign to the scheduled_operations property of this UndeleteAutonomousDatabaseDetails. + :type scheduled_operations: list[oci.database.models.ScheduledOperationDetails] + + :param is_auto_scaling_for_storage_enabled: + The value to assign to the is_auto_scaling_for_storage_enabled property of this UndeleteAutonomousDatabaseDetails. + :type is_auto_scaling_for_storage_enabled: bool + + :param database_edition: + The value to assign to the database_edition property of this UndeleteAutonomousDatabaseDetails. + :type database_edition: str + + :param db_tools_details: + The value to assign to the db_tools_details property of this UndeleteAutonomousDatabaseDetails. + :type db_tools_details: list[oci.database.models.DatabaseTool] + + :param secret_id: + The value to assign to the secret_id property of this UndeleteAutonomousDatabaseDetails. + :type secret_id: str + + :param secret_version_number: + The value to assign to the secret_version_number property of this UndeleteAutonomousDatabaseDetails. + :type secret_version_number: int + + :param source_id: + The value to assign to the source_id property of this UndeleteAutonomousDatabaseDetails. + :type source_id: str + + """ + self.swagger_types = { + 'subscription_id': 'str', + 'compartment_id': 'str', + 'character_set': 'str', + 'ncharacter_set': 'str', + 'db_name': 'str', + 'cpu_core_count': 'int', + 'backup_retention_period_in_days': 'int', + 'compute_model': 'str', + 'compute_count': 'float', + 'ocpu_count': 'float', + 'db_workload': 'str', + 'data_storage_size_in_tbs': 'int', + 'data_storage_size_in_gbs': 'int', + 'is_free_tier': 'bool', + 'kms_key_id': 'str', + 'vault_id': 'str', + 'admin_password': 'str', + 'display_name': 'str', + 'license_model': 'str', + 'byol_compute_count_limit': 'float', + 'is_preview_version_with_service_terms_accepted': 'bool', + 'is_auto_scaling_enabled': 'bool', + 'is_dev_tier': 'bool', + 'is_dedicated': 'bool', + 'autonomous_container_database_id': 'str', + 'in_memory_percentage': 'int', + 'is_access_control_enabled': 'bool', + 'whitelisted_ips': 'list[str]', + 'are_primary_whitelisted_ips_used': 'bool', + 'standby_whitelisted_ips': 'list[str]', + 'is_data_guard_enabled': 'bool', + 'is_local_data_guard_enabled': 'bool', + 'subnet_id': 'str', + 'nsg_ids': 'list[str]', + 'private_endpoint_label': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'private_endpoint_ip': 'str', + 'db_version': 'str', + 'source': 'str', + 'customer_contacts': 'list[CustomerContact]', + 'is_mtls_connection_required': 'bool', + 'resource_pool_leader_id': 'str', + 'resource_pool_summary': 'ResourcePoolSummary', + 'autonomous_maintenance_schedule_type': 'str', + 'scheduled_operations': 'list[ScheduledOperationDetails]', + 'is_auto_scaling_for_storage_enabled': 'bool', + 'database_edition': 'str', + 'db_tools_details': 'list[DatabaseTool]', + 'secret_id': 'str', + 'secret_version_number': 'int', + 'source_id': 'str' + } + + self.attribute_map = { + 'subscription_id': 'subscriptionId', + 'compartment_id': 'compartmentId', + 'character_set': 'characterSet', + 'ncharacter_set': 'ncharacterSet', + 'db_name': 'dbName', + 'cpu_core_count': 'cpuCoreCount', + 'backup_retention_period_in_days': 'backupRetentionPeriodInDays', + 'compute_model': 'computeModel', + 'compute_count': 'computeCount', + 'ocpu_count': 'ocpuCount', + 'db_workload': 'dbWorkload', + 'data_storage_size_in_tbs': 'dataStorageSizeInTBs', + 'data_storage_size_in_gbs': 'dataStorageSizeInGBs', + 'is_free_tier': 'isFreeTier', + 'kms_key_id': 'kmsKeyId', + 'vault_id': 'vaultId', + 'admin_password': 'adminPassword', + 'display_name': 'displayName', + 'license_model': 'licenseModel', + 'byol_compute_count_limit': 'byolComputeCountLimit', + 'is_preview_version_with_service_terms_accepted': 'isPreviewVersionWithServiceTermsAccepted', + 'is_auto_scaling_enabled': 'isAutoScalingEnabled', + 'is_dev_tier': 'isDevTier', + 'is_dedicated': 'isDedicated', + 'autonomous_container_database_id': 'autonomousContainerDatabaseId', + 'in_memory_percentage': 'inMemoryPercentage', + 'is_access_control_enabled': 'isAccessControlEnabled', + 'whitelisted_ips': 'whitelistedIps', + 'are_primary_whitelisted_ips_used': 'arePrimaryWhitelistedIpsUsed', + 'standby_whitelisted_ips': 'standbyWhitelistedIps', + 'is_data_guard_enabled': 'isDataGuardEnabled', + 'is_local_data_guard_enabled': 'isLocalDataGuardEnabled', + 'subnet_id': 'subnetId', + 'nsg_ids': 'nsgIds', + 'private_endpoint_label': 'privateEndpointLabel', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'private_endpoint_ip': 'privateEndpointIp', + 'db_version': 'dbVersion', + 'source': 'source', + 'customer_contacts': 'customerContacts', + 'is_mtls_connection_required': 'isMtlsConnectionRequired', + 'resource_pool_leader_id': 'resourcePoolLeaderId', + 'resource_pool_summary': 'resourcePoolSummary', + 'autonomous_maintenance_schedule_type': 'autonomousMaintenanceScheduleType', + 'scheduled_operations': 'scheduledOperations', + 'is_auto_scaling_for_storage_enabled': 'isAutoScalingForStorageEnabled', + 'database_edition': 'databaseEdition', + 'db_tools_details': 'dbToolsDetails', + 'secret_id': 'secretId', + 'secret_version_number': 'secretVersionNumber', + 'source_id': 'sourceId' + } + + self._subscription_id = None + self._compartment_id = None + self._character_set = None + self._ncharacter_set = None + self._db_name = None + self._cpu_core_count = None + self._backup_retention_period_in_days = None + self._compute_model = None + self._compute_count = None + self._ocpu_count = None + self._db_workload = None + self._data_storage_size_in_tbs = None + self._data_storage_size_in_gbs = None + self._is_free_tier = None + self._kms_key_id = None + self._vault_id = None + self._admin_password = None + self._display_name = None + self._license_model = None + self._byol_compute_count_limit = None + self._is_preview_version_with_service_terms_accepted = None + self._is_auto_scaling_enabled = None + self._is_dev_tier = None + self._is_dedicated = None + self._autonomous_container_database_id = None + self._in_memory_percentage = None + self._is_access_control_enabled = None + self._whitelisted_ips = None + self._are_primary_whitelisted_ips_used = None + self._standby_whitelisted_ips = None + self._is_data_guard_enabled = None + self._is_local_data_guard_enabled = None + self._subnet_id = None + self._nsg_ids = None + self._private_endpoint_label = None + self._freeform_tags = None + self._defined_tags = None + self._private_endpoint_ip = None + self._db_version = None + self._source = None + self._customer_contacts = None + self._is_mtls_connection_required = None + self._resource_pool_leader_id = None + self._resource_pool_summary = None + self._autonomous_maintenance_schedule_type = None + self._scheduled_operations = None + self._is_auto_scaling_for_storage_enabled = None + self._database_edition = None + self._db_tools_details = None + self._secret_id = None + self._secret_version_number = None + self._source_id = None + self._source = 'UNDELETE_ADB' + + @property + def source_id(self): + """ + **[Required]** Gets the source_id of this UndeleteAutonomousDatabaseDetails. + The `OCID`__ of the Autonomous Database that you want to undelete. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The source_id of this UndeleteAutonomousDatabaseDetails. + :rtype: str + """ + return self._source_id + + @source_id.setter + def source_id(self, source_id): + """ + Sets the source_id of this UndeleteAutonomousDatabaseDetails. + The `OCID`__ of the Autonomous Database that you want to undelete. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param source_id: The source_id of this UndeleteAutonomousDatabaseDetails. + :type: str + """ + self._source_id = source_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/awr_query_result.py b/src/oci/database_management/models/awr_query_result.py index f0f45f2c5..1adfdab75 100644 --- a/src/oci/database_management/models/awr_query_result.py +++ b/src/oci/database_management/models/awr_query_result.py @@ -106,7 +106,8 @@ def __init__(self, **kwargs): :param awr_result_type: The value to assign to the awr_result_type property of this AwrQueryResult. - Allowed values for this property are: "AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT" + Allowed values for this property are: "AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type awr_result_type: str """ @@ -283,7 +284,8 @@ def awr_result_type(self): **[Required]** Gets the awr_result_type of this AwrQueryResult. The result type of AWR query. - Allowed values for this property are: "AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT" + Allowed values for this property are: "AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The awr_result_type of this AwrQueryResult. @@ -303,9 +305,7 @@ def awr_result_type(self, awr_result_type): """ allowed_values = ["AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT"] if not value_allowed_none_or_none_sentinel(awr_result_type, allowed_values): - raise ValueError( - f"Invalid value for `awr_result_type`, must be None or one of {allowed_values}" - ) + awr_result_type = 'UNKNOWN_ENUM_VALUE' self._awr_result_type = awr_result_type def __repr__(self): diff --git a/src/oci/database_management/models/dbm_resource.py b/src/oci/database_management/models/dbm_resource.py index 22b6dd5e9..d88759f78 100644 --- a/src/oci/database_management/models/dbm_resource.py +++ b/src/oci/database_management/models/dbm_resource.py @@ -122,7 +122,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this DbmResource. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: @@ -143,7 +144,8 @@ def __init__(self, **kwargs): :param resource_type: The value to assign to the resource_type property of this DbmResource. - Allowed values for this property are: "INFRASTRUCTURE_SUMMARY", "INFRASTRUCTURE", "STORAGE_SERVER_SUMMARY", "STORAGE_SERVER", "STORAGE_GRID_SUMMARY", "STORAGE_GRID", "STORAGE_CONNECTOR_SUMMARY", "STORAGE_CONNECTOR", "DATABASE_SYSTEM_SUMMARY", "DATABASE_SUMMARY" + Allowed values for this property are: "INFRASTRUCTURE_SUMMARY", "INFRASTRUCTURE", "STORAGE_SERVER_SUMMARY", "STORAGE_SERVER", "STORAGE_GRID_SUMMARY", "STORAGE_GRID", "STORAGE_CONNECTOR_SUMMARY", "STORAGE_CONNECTOR", "DATABASE_SYSTEM_SUMMARY", "DATABASE_SUMMARY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type resource_type: str """ @@ -354,7 +356,8 @@ def lifecycle_state(self): Gets the lifecycle_state of this DbmResource. The current lifecycle state of the database resource. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this DbmResource. @@ -374,9 +377,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property @@ -483,7 +484,8 @@ def resource_type(self): **[Required]** Gets the resource_type of this DbmResource. The type of Exadata resource. - Allowed values for this property are: "INFRASTRUCTURE_SUMMARY", "INFRASTRUCTURE", "STORAGE_SERVER_SUMMARY", "STORAGE_SERVER", "STORAGE_GRID_SUMMARY", "STORAGE_GRID", "STORAGE_CONNECTOR_SUMMARY", "STORAGE_CONNECTOR", "DATABASE_SYSTEM_SUMMARY", "DATABASE_SUMMARY" + Allowed values for this property are: "INFRASTRUCTURE_SUMMARY", "INFRASTRUCTURE", "STORAGE_SERVER_SUMMARY", "STORAGE_SERVER", "STORAGE_GRID_SUMMARY", "STORAGE_GRID", "STORAGE_CONNECTOR_SUMMARY", "STORAGE_CONNECTOR", "DATABASE_SYSTEM_SUMMARY", "DATABASE_SUMMARY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The resource_type of this DbmResource. @@ -503,9 +505,7 @@ def resource_type(self, resource_type): """ allowed_values = ["INFRASTRUCTURE_SUMMARY", "INFRASTRUCTURE", "STORAGE_SERVER_SUMMARY", "STORAGE_SERVER", "STORAGE_GRID_SUMMARY", "STORAGE_GRID", "STORAGE_CONNECTOR_SUMMARY", "STORAGE_CONNECTOR", "DATABASE_SYSTEM_SUMMARY", "DATABASE_SUMMARY"] if not value_allowed_none_or_none_sentinel(resource_type, allowed_values): - raise ValueError( - f"Invalid value for `resource_type`, must be None or one of {allowed_values}" - ) + resource_type = 'UNKNOWN_ENUM_VALUE' self._resource_type = resource_type def __repr__(self): diff --git a/src/oci/database_management/models/discovered_external_asm_instance.py b/src/oci/database_management/models/discovered_external_asm_instance.py index 2cbcfd089..61f18a0c0 100644 --- a/src/oci/database_management/models/discovered_external_asm_instance.py +++ b/src/oci/database_management/models/discovered_external_asm_instance.py @@ -35,7 +35,8 @@ def __init__(self, **kwargs): :param component_type: The value to assign to the component_type property of this DiscoveredExternalAsmInstance. - Allowed values for this property are: "ASM", "ASM_INSTANCE", "CLUSTER", "CLUSTER_INSTANCE", "DATABASE", "DATABASE_INSTANCE", "DATABASE_HOME", "DATABASE_NODE", "DBSYSTEM", "LISTENER", "PLUGGABLE_DATABASE" + Allowed values for this property are: "ASM", "ASM_INSTANCE", "CLUSTER", "CLUSTER_INSTANCE", "DATABASE", "DATABASE_INSTANCE", "DATABASE_HOME", "DATABASE_NODE", "DBSYSTEM", "LISTENER", "PLUGGABLE_DATABASE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type component_type: str :param resource_id: @@ -48,7 +49,8 @@ def __init__(self, **kwargs): :param status: The value to assign to the status property of this DiscoveredExternalAsmInstance. - Allowed values for this property are: "NEW", "EXISTING", "MARKED_FOR_DELETION", "UNKNOWN" + Allowed values for this property are: "NEW", "EXISTING", "MARKED_FOR_DELETION", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param associated_components: diff --git a/src/oci/database_management/models/discovered_external_pluggable_database.py b/src/oci/database_management/models/discovered_external_pluggable_database.py index af7b91959..6b2a3bcca 100644 --- a/src/oci/database_management/models/discovered_external_pluggable_database.py +++ b/src/oci/database_management/models/discovered_external_pluggable_database.py @@ -35,7 +35,8 @@ def __init__(self, **kwargs): :param component_type: The value to assign to the component_type property of this DiscoveredExternalPluggableDatabase. - Allowed values for this property are: "ASM", "ASM_INSTANCE", "CLUSTER", "CLUSTER_INSTANCE", "DATABASE", "DATABASE_INSTANCE", "DATABASE_HOME", "DATABASE_NODE", "DBSYSTEM", "LISTENER", "PLUGGABLE_DATABASE" + Allowed values for this property are: "ASM", "ASM_INSTANCE", "CLUSTER", "CLUSTER_INSTANCE", "DATABASE", "DATABASE_INSTANCE", "DATABASE_HOME", "DATABASE_NODE", "DBSYSTEM", "LISTENER", "PLUGGABLE_DATABASE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type component_type: str :param resource_id: @@ -48,7 +49,8 @@ def __init__(self, **kwargs): :param status: The value to assign to the status property of this DiscoveredExternalPluggableDatabase. - Allowed values for this property are: "NEW", "EXISTING", "MARKED_FOR_DELETION", "UNKNOWN" + Allowed values for this property are: "NEW", "EXISTING", "MARKED_FOR_DELETION", "UNKNOWN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param associated_components: diff --git a/src/oci/database_management/models/entity_discovered.py b/src/oci/database_management/models/entity_discovered.py index a834f12cc..946f8f82e 100644 --- a/src/oci/database_management/models/entity_discovered.py +++ b/src/oci/database_management/models/entity_discovered.py @@ -94,7 +94,8 @@ def __init__(self, **kwargs): :param discover_status: The value to assign to the discover_status property of this EntityDiscovered. - Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING" + Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type discover_status: str :param discover_error_code: @@ -107,7 +108,8 @@ def __init__(self, **kwargs): :param entity_type: The value to assign to the entity_type property of this EntityDiscovered. - Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER" + Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_type: str """ @@ -362,7 +364,8 @@ def discover_status(self): Gets the discover_status of this EntityDiscovered. The status of the entity discovery. - Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING" + Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The discover_status of this EntityDiscovered. @@ -382,9 +385,7 @@ def discover_status(self, discover_status): """ allowed_values = ["PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING"] if not value_allowed_none_or_none_sentinel(discover_status, allowed_values): - raise ValueError( - f"Invalid value for `discover_status`, must be None or one of {allowed_values}" - ) + discover_status = 'UNKNOWN_ENUM_VALUE' self._discover_status = discover_status @property @@ -441,7 +442,8 @@ def entity_type(self): **[Required]** Gets the entity_type of this EntityDiscovered. The type of discovered entities. - Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER" + Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The entity_type of this EntityDiscovered. @@ -461,9 +463,7 @@ def entity_type(self, entity_type): """ allowed_values = ["STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER"] if not value_allowed_none_or_none_sentinel(entity_type, allowed_values): - raise ValueError( - f"Invalid value for `entity_type`, must be None or one of {allowed_values}" - ) + entity_type = 'UNKNOWN_ENUM_VALUE' self._entity_type = entity_type def __repr__(self): diff --git a/src/oci/database_management/models/external_exadata_infrastructure_discovery_summary.py b/src/oci/database_management/models/external_exadata_infrastructure_discovery_summary.py index 7578b0b7c..986f0ffe5 100644 --- a/src/oci/database_management/models/external_exadata_infrastructure_discovery_summary.py +++ b/src/oci/database_management/models/external_exadata_infrastructure_discovery_summary.py @@ -67,7 +67,8 @@ def __init__(self, **kwargs): :param discover_status: The value to assign to the discover_status property of this ExternalExadataInfrastructureDiscoverySummary. - Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING" + Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type discover_status: str :param discover_error_code: @@ -80,12 +81,14 @@ def __init__(self, **kwargs): :param entity_type: The value to assign to the entity_type property of this ExternalExadataInfrastructureDiscoverySummary. - Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER" + Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_type: str :param rack_size: The value to assign to the rack_size property of this ExternalExadataInfrastructureDiscoverySummary. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH" + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type rack_size: str """ @@ -139,7 +142,8 @@ def rack_size(self): Gets the rack_size of this ExternalExadataInfrastructureDiscoverySummary. The size of the Exadata infrastructure. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH" + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The rack_size of this ExternalExadataInfrastructureDiscoverySummary. @@ -159,9 +163,7 @@ def rack_size(self, rack_size): """ allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH"] if not value_allowed_none_or_none_sentinel(rack_size, allowed_values): - raise ValueError( - f"Invalid value for `rack_size`, must be None or one of {allowed_values}" - ) + rack_size = 'UNKNOWN_ENUM_VALUE' self._rack_size = rack_size def __repr__(self): diff --git a/src/oci/database_management/models/external_exadata_storage_grid_summary.py b/src/oci/database_management/models/external_exadata_storage_grid_summary.py index c6e2d6fc8..5a6496107 100644 --- a/src/oci/database_management/models/external_exadata_storage_grid_summary.py +++ b/src/oci/database_management/models/external_exadata_storage_grid_summary.py @@ -43,7 +43,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this ExternalExadataStorageGridSummary. - Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_created: @@ -64,7 +65,8 @@ def __init__(self, **kwargs): :param resource_type: The value to assign to the resource_type property of this ExternalExadataStorageGridSummary. - Allowed values for this property are: "INFRASTRUCTURE_SUMMARY", "INFRASTRUCTURE", "STORAGE_SERVER_SUMMARY", "STORAGE_SERVER", "STORAGE_GRID_SUMMARY", "STORAGE_GRID", "STORAGE_CONNECTOR_SUMMARY", "STORAGE_CONNECTOR", "DATABASE_SYSTEM_SUMMARY", "DATABASE_SUMMARY" + Allowed values for this property are: "INFRASTRUCTURE_SUMMARY", "INFRASTRUCTURE", "STORAGE_SERVER_SUMMARY", "STORAGE_SERVER", "STORAGE_GRID_SUMMARY", "STORAGE_GRID", "STORAGE_CONNECTOR_SUMMARY", "STORAGE_CONNECTOR", "DATABASE_SYSTEM_SUMMARY", "DATABASE_SUMMARY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type resource_type: str :param server_count: diff --git a/src/oci/database_management/models/external_serviced_database.py b/src/oci/database_management/models/external_serviced_database.py index fa3b4c445..464e8f8b1 100644 --- a/src/oci/database_management/models/external_serviced_database.py +++ b/src/oci/database_management/models/external_serviced_database.py @@ -82,12 +82,14 @@ def __init__(self, **kwargs): :param database_type: The value to assign to the database_type property of this ExternalServicedDatabase. - Allowed values for this property are: "EXTERNAL_SIDB", "EXTERNAL_RAC", "CLOUD_SIDB", "CLOUD_RAC", "SHARED", "DEDICATED" + Allowed values for this property are: "EXTERNAL_SIDB", "EXTERNAL_RAC", "CLOUD_SIDB", "CLOUD_RAC", "SHARED", "DEDICATED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_type: str :param database_sub_type: The value to assign to the database_sub_type property of this ExternalServicedDatabase. - Allowed values for this property are: "CDB", "PDB", "NON_CDB", "ACD", "ADB" + Allowed values for this property are: "CDB", "PDB", "NON_CDB", "ACD", "ADB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type database_sub_type: str :param is_managed: @@ -233,7 +235,8 @@ def database_type(self): Gets the database_type of this ExternalServicedDatabase. The type of Oracle Database installation. - Allowed values for this property are: "EXTERNAL_SIDB", "EXTERNAL_RAC", "CLOUD_SIDB", "CLOUD_RAC", "SHARED", "DEDICATED" + Allowed values for this property are: "EXTERNAL_SIDB", "EXTERNAL_RAC", "CLOUD_SIDB", "CLOUD_RAC", "SHARED", "DEDICATED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_type of this ExternalServicedDatabase. @@ -253,9 +256,7 @@ def database_type(self, database_type): """ allowed_values = ["EXTERNAL_SIDB", "EXTERNAL_RAC", "CLOUD_SIDB", "CLOUD_RAC", "SHARED", "DEDICATED"] if not value_allowed_none_or_none_sentinel(database_type, allowed_values): - raise ValueError( - f"Invalid value for `database_type`, must be None or one of {allowed_values}" - ) + database_type = 'UNKNOWN_ENUM_VALUE' self._database_type = database_type @property @@ -265,7 +266,8 @@ def database_sub_type(self): The subtype of Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database. - Allowed values for this property are: "CDB", "PDB", "NON_CDB", "ACD", "ADB" + Allowed values for this property are: "CDB", "PDB", "NON_CDB", "ACD", "ADB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The database_sub_type of this ExternalServicedDatabase. @@ -286,9 +288,7 @@ def database_sub_type(self, database_sub_type): """ allowed_values = ["CDB", "PDB", "NON_CDB", "ACD", "ADB"] if not value_allowed_none_or_none_sentinel(database_sub_type, allowed_values): - raise ValueError( - f"Invalid value for `database_sub_type`, must be None or one of {allowed_values}" - ) + database_sub_type = 'UNKNOWN_ENUM_VALUE' self._database_sub_type = database_sub_type @property diff --git a/src/oci/database_management/models/external_storage_grid_discovery_summary.py b/src/oci/database_management/models/external_storage_grid_discovery_summary.py index 41966a2fd..71aeff7bd 100644 --- a/src/oci/database_management/models/external_storage_grid_discovery_summary.py +++ b/src/oci/database_management/models/external_storage_grid_discovery_summary.py @@ -51,7 +51,8 @@ def __init__(self, **kwargs): :param discover_status: The value to assign to the discover_status property of this ExternalStorageGridDiscoverySummary. - Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING" + Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type discover_status: str :param discover_error_code: @@ -64,7 +65,8 @@ def __init__(self, **kwargs): :param entity_type: The value to assign to the entity_type property of this ExternalStorageGridDiscoverySummary. - Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER" + Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_type: str :param count_of_storage_servers_discovered: diff --git a/src/oci/database_management/models/external_storage_server_discovery_summary.py b/src/oci/database_management/models/external_storage_server_discovery_summary.py index 699c4aed0..6890ead71 100644 --- a/src/oci/database_management/models/external_storage_server_discovery_summary.py +++ b/src/oci/database_management/models/external_storage_server_discovery_summary.py @@ -51,7 +51,8 @@ def __init__(self, **kwargs): :param discover_status: The value to assign to the discover_status property of this ExternalStorageServerDiscoverySummary. - Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING" + Allowed values for this property are: "PREV_DISCOVERED", "NEW_DISCOVERED", "NOT_FOUND", "DISCOVERING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type discover_status: str :param discover_error_code: @@ -64,7 +65,8 @@ def __init__(self, **kwargs): :param entity_type: The value to assign to the entity_type property of this ExternalStorageServerDiscoverySummary. - Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER" + Allowed values for this property are: "STORAGE_SERVER_DISCOVER_SUMMARY", "STORAGE_GRID_DISCOVER_SUMMARY", "DATABASE_SYSTEM_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER_SUMMARY", "INFRASTRUCTURE_DISCOVER", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_type: str :param ip_address: diff --git a/src/oci/database_migration/models/migration_parameter_base.py b/src/oci/database_migration/models/migration_parameter_base.py index 2618adff0..1e46c187e 100644 --- a/src/oci/database_migration/models/migration_parameter_base.py +++ b/src/oci/database_migration/models/migration_parameter_base.py @@ -42,7 +42,8 @@ def __init__(self, **kwargs): :param data_type: The value to assign to the data_type property of this MigrationParameterBase. - Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN" + Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type data_type: str """ @@ -89,7 +90,8 @@ def data_type(self): **[Required]** Gets the data_type of this MigrationParameterBase. Parameter data type. - Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN" + Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The data_type of this MigrationParameterBase. @@ -109,9 +111,7 @@ def data_type(self, data_type): """ allowed_values = ["STRING", "INTEGER", "FLOAT", "BOOLEAN"] if not value_allowed_none_or_none_sentinel(data_type, allowed_values): - raise ValueError( - f"Invalid value for `data_type`, must be None or one of {allowed_values}" - ) + data_type = 'UNKNOWN_ENUM_VALUE' self._data_type = data_type def __repr__(self): diff --git a/src/oci/devops/models/build_run_snapshot.py b/src/oci/devops/models/build_run_snapshot.py index 27df8e373..ecfdd83c8 100644 --- a/src/oci/devops/models/build_run_snapshot.py +++ b/src/oci/devops/models/build_run_snapshot.py @@ -62,7 +62,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this BuildRunSnapshot. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: @@ -211,7 +212,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this BuildRunSnapshot. The current status of the build run. - Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this BuildRunSnapshot. @@ -231,9 +233,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property diff --git a/src/oci/fleet_apps_management/models/fleet_target.py b/src/oci/fleet_apps_management/models/fleet_target.py index 9cf2e5825..49f56f331 100644 --- a/src/oci/fleet_apps_management/models/fleet_target.py +++ b/src/oci/fleet_apps_management/models/fleet_target.py @@ -78,12 +78,14 @@ def __init__(self, **kwargs): :param compliance_state: The value to assign to the compliance_state property of this FleetTarget. - Allowed values for this property are: "UNKNOWN", "COMPLIANT", "NON_COMPLIANT", "WARNING" + Allowed values for this property are: "UNKNOWN", "COMPLIANT", "NON_COMPLIANT", "WARNING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type compliance_state: str :param lifecycle_state: The value to assign to the lifecycle_state property of this FleetTarget. - Allowed values for this property are: "ACTIVE", "DELETED", "FAILED" + Allowed values for this property are: "ACTIVE", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param system_tags: @@ -304,7 +306,8 @@ def compliance_state(self): Gets the compliance_state of this FleetTarget. Last known compliance state of Target. - Allowed values for this property are: "UNKNOWN", "COMPLIANT", "NON_COMPLIANT", "WARNING" + Allowed values for this property are: "UNKNOWN", "COMPLIANT", "NON_COMPLIANT", "WARNING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The compliance_state of this FleetTarget. @@ -324,9 +327,7 @@ def compliance_state(self, compliance_state): """ allowed_values = ["UNKNOWN", "COMPLIANT", "NON_COMPLIANT", "WARNING"] if not value_allowed_none_or_none_sentinel(compliance_state, allowed_values): - raise ValueError( - f"Invalid value for `compliance_state`, must be None or one of {allowed_values}" - ) + compliance_state = 'UNKNOWN_ENUM_VALUE' self._compliance_state = compliance_state @property @@ -335,7 +336,8 @@ def lifecycle_state(self): Gets the lifecycle_state of this FleetTarget. The current state of the FleetTarget. - Allowed values for this property are: "ACTIVE", "DELETED", "FAILED" + Allowed values for this property are: "ACTIVE", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this FleetTarget. @@ -355,9 +357,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["ACTIVE", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property diff --git a/src/oci/fusion_apps/models/allow_rule.py b/src/oci/fusion_apps/models/allow_rule.py index 165f970f7..0623affa1 100644 --- a/src/oci/fusion_apps/models/allow_rule.py +++ b/src/oci/fusion_apps/models/allow_rule.py @@ -21,7 +21,7 @@ class AllowRule(Rule): * You can specify this rule only with the following `RuleCondition` combinations: * `SOURCE_IP_ADDRESS` * `SOURCE_VCN_ID` - * `SOURCE_VCN_ID\", \"SOURCE_VCN_IP_ADDRESS` + * `SOURCE_VCN_ID`, `SOURCE_VCN_IP_ADDRESS` """ def __init__(self, **kwargs): diff --git a/src/oci/fusion_apps/models/create_refresh_activity_details.py b/src/oci/fusion_apps/models/create_refresh_activity_details.py index 6b0552458..2b7c82b5f 100644 --- a/src/oci/fusion_apps/models/create_refresh_activity_details.py +++ b/src/oci/fusion_apps/models/create_refresh_activity_details.py @@ -24,6 +24,10 @@ def __init__(self, **kwargs): The value to assign to the source_fusion_environment_id property of this CreateRefreshActivityDetails. :type source_fusion_environment_id: str + :param is_data_masking_opted: + The value to assign to the is_data_masking_opted property of this CreateRefreshActivityDetails. + :type is_data_masking_opted: bool + :param time_scheduled_start: The value to assign to the time_scheduled_start property of this CreateRefreshActivityDetails. :type time_scheduled_start: datetime @@ -31,15 +35,18 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'source_fusion_environment_id': 'str', + 'is_data_masking_opted': 'bool', 'time_scheduled_start': 'datetime' } self.attribute_map = { 'source_fusion_environment_id': 'sourceFusionEnvironmentId', + 'is_data_masking_opted': 'isDataMaskingOpted', 'time_scheduled_start': 'timeScheduledStart' } self._source_fusion_environment_id = None + self._is_data_masking_opted = None self._time_scheduled_start = None @property @@ -70,6 +77,30 @@ def source_fusion_environment_id(self, source_fusion_environment_id): """ self._source_fusion_environment_id = source_fusion_environment_id + @property + def is_data_masking_opted(self): + """ + Gets the is_data_masking_opted of this CreateRefreshActivityDetails. + Represents if the customer opted for Data Masking or not during refreshActivity. + + + :return: The is_data_masking_opted of this CreateRefreshActivityDetails. + :rtype: bool + """ + return self._is_data_masking_opted + + @is_data_masking_opted.setter + def is_data_masking_opted(self, is_data_masking_opted): + """ + Sets the is_data_masking_opted of this CreateRefreshActivityDetails. + Represents if the customer opted for Data Masking or not during refreshActivity. + + + :param is_data_masking_opted: The is_data_masking_opted of this CreateRefreshActivityDetails. + :type: bool + """ + self._is_data_masking_opted = is_data_masking_opted + @property def time_scheduled_start(self): """ diff --git a/src/oci/fusion_apps/models/maintenance_policy.py b/src/oci/fusion_apps/models/maintenance_policy.py index d23a18de3..2434e2fe6 100644 --- a/src/oci/fusion_apps/models/maintenance_policy.py +++ b/src/oci/fusion_apps/models/maintenance_policy.py @@ -48,12 +48,14 @@ def __init__(self, **kwargs): :param monthly_patching_override: The value to assign to the monthly_patching_override property of this MaintenancePolicy. - Allowed values for this property are: "ENABLED", "DISABLED", "NONE" + Allowed values for this property are: "ENABLED", "DISABLED", "NONE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type monthly_patching_override: str :param environment_maintenance_override: The value to assign to the environment_maintenance_override property of this MaintenancePolicy. - Allowed values for this property are: "PROD", "NON_PROD", "NONE" + Allowed values for this property are: "PROD", "NON_PROD", "NONE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type environment_maintenance_override: str """ @@ -76,7 +78,8 @@ def monthly_patching_override(self): Gets the monthly_patching_override of this MaintenancePolicy. When \"ENABLED\", the Fusion environment is patched monthly. When \"DISABLED\", the Fusion environment is not patched monthly. This setting overrides the environment family setting. When not set, the environment follows the environment family policy. - Allowed values for this property are: "ENABLED", "DISABLED", "NONE" + Allowed values for this property are: "ENABLED", "DISABLED", "NONE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The monthly_patching_override of this MaintenancePolicy. @@ -96,9 +99,7 @@ def monthly_patching_override(self, monthly_patching_override): """ allowed_values = ["ENABLED", "DISABLED", "NONE"] if not value_allowed_none_or_none_sentinel(monthly_patching_override, allowed_values): - raise ValueError( - f"Invalid value for `monthly_patching_override`, must be None or one of {allowed_values}" - ) + monthly_patching_override = 'UNKNOWN_ENUM_VALUE' self._monthly_patching_override = monthly_patching_override @property @@ -107,7 +108,8 @@ def environment_maintenance_override(self): Gets the environment_maintenance_override of this MaintenancePolicy. User choice to upgrade both test and prod pods at the same time. Overrides fusion environment families'. - Allowed values for this property are: "PROD", "NON_PROD", "NONE" + Allowed values for this property are: "PROD", "NON_PROD", "NONE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The environment_maintenance_override of this MaintenancePolicy. @@ -127,9 +129,7 @@ def environment_maintenance_override(self, environment_maintenance_override): """ allowed_values = ["PROD", "NON_PROD", "NONE"] if not value_allowed_none_or_none_sentinel(environment_maintenance_override, allowed_values): - raise ValueError( - f"Invalid value for `environment_maintenance_override`, must be None or one of {allowed_values}" - ) + environment_maintenance_override = 'UNKNOWN_ENUM_VALUE' self._environment_maintenance_override = environment_maintenance_override def __repr__(self): diff --git a/src/oci/fusion_apps/models/refresh_activity.py b/src/oci/fusion_apps/models/refresh_activity.py index 834122600..1b38b0f7d 100644 --- a/src/oci/fusion_apps/models/refresh_activity.py +++ b/src/oci/fusion_apps/models/refresh_activity.py @@ -122,6 +122,10 @@ def __init__(self, **kwargs): The value to assign to the time_updated property of this RefreshActivity. :type time_updated: datetime + :param is_data_masking_opted: + The value to assign to the is_data_masking_opted property of this RefreshActivity. + :type is_data_masking_opted: bool + :param refresh_issue_details_list: The value to assign to the refresh_issue_details_list property of this RefreshActivity. :type refresh_issue_details_list: list[oci.fusion_apps.models.RefreshIssueDetails] @@ -145,6 +149,7 @@ def __init__(self, **kwargs): 'time_finished': 'datetime', 'time_accepted': 'datetime', 'time_updated': 'datetime', + 'is_data_masking_opted': 'bool', 'refresh_issue_details_list': 'list[RefreshIssueDetails]', 'lifecycle_details': 'str' } @@ -161,6 +166,7 @@ def __init__(self, **kwargs): 'time_finished': 'timeFinished', 'time_accepted': 'timeAccepted', 'time_updated': 'timeUpdated', + 'is_data_masking_opted': 'isDataMaskingOpted', 'refresh_issue_details_list': 'refreshIssueDetailsList', 'lifecycle_details': 'lifecycleDetails' } @@ -176,6 +182,7 @@ def __init__(self, **kwargs): self._time_finished = None self._time_accepted = None self._time_updated = None + self._is_data_masking_opted = None self._refresh_issue_details_list = None self._lifecycle_details = None @@ -455,6 +462,30 @@ def time_updated(self, time_updated): """ self._time_updated = time_updated + @property + def is_data_masking_opted(self): + """ + Gets the is_data_masking_opted of this RefreshActivity. + Represents if the customer opted for Data Masking or not during refreshActivity. + + + :return: The is_data_masking_opted of this RefreshActivity. + :rtype: bool + """ + return self._is_data_masking_opted + + @is_data_masking_opted.setter + def is_data_masking_opted(self, is_data_masking_opted): + """ + Sets the is_data_masking_opted of this RefreshActivity. + Represents if the customer opted for Data Masking or not during refreshActivity. + + + :param is_data_masking_opted: The is_data_masking_opted of this RefreshActivity. + :type: bool + """ + self._is_data_masking_opted = is_data_masking_opted + @property def refresh_issue_details_list(self): """ diff --git a/src/oci/fusion_apps/models/refresh_activity_summary.py b/src/oci/fusion_apps/models/refresh_activity_summary.py index e2676af57..8703ebbc1 100644 --- a/src/oci/fusion_apps/models/refresh_activity_summary.py +++ b/src/oci/fusion_apps/models/refresh_activity_summary.py @@ -64,6 +64,10 @@ def __init__(self, **kwargs): The value to assign to the time_updated property of this RefreshActivitySummary. :type time_updated: datetime + :param is_data_masking_opted: + The value to assign to the is_data_masking_opted property of this RefreshActivitySummary. + :type is_data_masking_opted: bool + :param lifecycle_details: The value to assign to the lifecycle_details property of this RefreshActivitySummary. :type lifecycle_details: str @@ -85,6 +89,7 @@ def __init__(self, **kwargs): 'service_availability': 'str', 'time_accepted': 'datetime', 'time_updated': 'datetime', + 'is_data_masking_opted': 'bool', 'lifecycle_details': 'str', 'refresh_issue_details_list': 'list[RefreshIssueDetails]' } @@ -101,6 +106,7 @@ def __init__(self, **kwargs): 'service_availability': 'serviceAvailability', 'time_accepted': 'timeAccepted', 'time_updated': 'timeUpdated', + 'is_data_masking_opted': 'isDataMaskingOpted', 'lifecycle_details': 'lifecycleDetails', 'refresh_issue_details_list': 'refreshIssueDetailsList' } @@ -116,6 +122,7 @@ def __init__(self, **kwargs): self._service_availability = None self._time_accepted = None self._time_updated = None + self._is_data_masking_opted = None self._lifecycle_details = None self._refresh_issue_details_list = None @@ -383,6 +390,30 @@ def time_updated(self, time_updated): """ self._time_updated = time_updated + @property + def is_data_masking_opted(self): + """ + Gets the is_data_masking_opted of this RefreshActivitySummary. + Represents if the customer opted for Data Masking or not during refreshActivity. + + + :return: The is_data_masking_opted of this RefreshActivitySummary. + :rtype: bool + """ + return self._is_data_masking_opted + + @is_data_masking_opted.setter + def is_data_masking_opted(self, is_data_masking_opted): + """ + Sets the is_data_masking_opted of this RefreshActivitySummary. + Represents if the customer opted for Data Masking or not during refreshActivity. + + + :param is_data_masking_opted: The is_data_masking_opted of this RefreshActivitySummary. + :type: bool + """ + self._is_data_masking_opted = is_data_masking_opted + @property def lifecycle_details(self): """ diff --git a/src/oci/generative_ai_agent/__init__.py b/src/oci/generative_ai_agent/__init__.py new file mode 100644 index 000000000..57bba7abf --- /dev/null +++ b/src/oci/generative_ai_agent/__init__.py @@ -0,0 +1,14 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from __future__ import absolute_import + + +from .generative_ai_agent_client import GenerativeAiAgentClient +from .generative_ai_agent_client_composite_operations import GenerativeAiAgentClientCompositeOperations +from . import models + +__all__ = ["GenerativeAiAgentClient", "GenerativeAiAgentClientCompositeOperations", "models"] diff --git a/src/oci/generative_ai_agent/generative_ai_agent_client.py b/src/oci/generative_ai_agent/generative_ai_agent_client.py new file mode 100644 index 000000000..6c2e1f174 --- /dev/null +++ b/src/oci/generative_ai_agent/generative_ai_agent_client.py @@ -0,0 +1,4245 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from __future__ import absolute_import + +from oci._vendor import requests # noqa: F401 +from oci._vendor import six + +from oci import retry, circuit_breaker # noqa: F401 +from oci.base_client import BaseClient +from oci.config import get_config_value_or_default, validate_config +from oci.signer import Signer +from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME +from oci.exceptions import InvalidAlloyConfig +from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET +from .models import generative_ai_agent_type_mapping +missing = Sentinel("Missing") + + +class GenerativeAiAgentClient(object): + """ + **Generative AI Agents API** + + + OCI Generative AI Agents is a fully managed service that combines the power of large language models (LLMs) with an intelligent retrieval system to create contextually relevant answers by searching your knowledge base, making your AI applications smart and efficient. + + OCI Generative AI Agents supports several ways to onboard your data and then allows you and your customers to interact with your data using a chat interface or API. + + Use the Generative AI Agents API to create and manage agents, knowledge bases, data sources, endpoints, data ingestion jobs, and work requests. + + For creating and managing client chat sessions see the [Generative AI Agents Client API](#/EN/generative-ai-agents-client/latest/). + + To learn more about the service, see the [Generative AI Agents documentation](/iaas/Content/generative-ai-agents/home.htm). + """ + + def __init__(self, config, **kwargs): + """ + Creates a new service client + + :param dict config: + Configuration keys and values as per `SDK and Tool Configuration `__. + The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config + the dict using :py:meth:`~oci.config.validate_config` + + :param str service_endpoint: (optional) + The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is + not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit + need to specify a service endpoint. + + :param timeout: (optional) + The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided + as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If + a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. + :type timeout: float or tuple(float, float) + + :param signer: (optional) + The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values + provided in the config parameter. + + One use case for this parameter is for `Instance Principals authentication `__ + by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument + :type signer: :py:class:`~oci.signer.AbstractBaseSigner` + + :param obj retry_strategy: (optional) + A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. + Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. + Any value provided at the operation level will override whatever is specified at the client level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` + is also available. The specifics of the default retry strategy are described `here `__. + + :param obj circuit_breaker_strategy: (optional) + A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). + This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. + The specifics of circuit breaker strategy are described `here `__. + + :param function circuit_breaker_callback: (optional) + Callback function to receive any exceptions triggerred by the circuit breaker. + + :param bool client_level_realm_specific_endpoint_template_enabled: (optional) + A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None. + + :param allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not + allow control characters to be in the response object. + """ + if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("generative_ai_agent"): + raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service") + + validate_config(config, signer=kwargs.get('signer')) + if 'signer' in kwargs: + signer = kwargs['signer'] + + elif AUTHENTICATION_TYPE_FIELD_NAME in config: + signer = get_signer_from_authentication_type(config) + + else: + signer = Signer( + tenancy=config["tenancy"], + user=config["user"], + fingerprint=config["fingerprint"], + private_key_file_location=config.get("key_file"), + pass_phrase=get_config_value_or_default(config, "pass_phrase"), + private_key_content=config.get("key_content") + ) + + base_client_init_kwargs = { + 'regional_client': True, + 'service_endpoint': kwargs.get('service_endpoint'), + 'base_path': '/20240531', + 'service_endpoint_template': 'https://agent.generativeai.{region}.oci.{secondLevelDomain}', + 'service_endpoint_template_per_realm': { }, # noqa: E201 E202 + 'skip_deserialization': kwargs.get('skip_deserialization', False), + 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY), + 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled') + } + if 'timeout' in kwargs: + base_client_init_kwargs['timeout'] = kwargs.get('timeout') + if base_client_init_kwargs.get('circuit_breaker_strategy') is None: + base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY + if 'allow_control_chars' in kwargs: + base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') + self.base_client = BaseClient("generative_ai_agent", config, signer, generative_ai_agent_type_mapping, **base_client_init_kwargs) + self.retry_strategy = kwargs.get('retry_strategy') + self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') + + def cancel_work_request(self, work_request_id, **kwargs): + """ + **CancelWorkRequest** + + Cancels a work request. + + + :param str work_request_id: (required) + The `OCID`__ of the asynchronous work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use cancel_work_request API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['workRequestId'] + resource_path = "/workRequests/{workRequestId}" + method = "DELETE" + operation_name = "cancel_work_request" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/WorkRequest/CancelWorkRequest" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"cancel_work_request got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "workRequestId": work_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def change_agent_compartment(self, agent_id, change_agent_compartment_details, **kwargs): + """ + **ChangeAgentCompartment** + + Moves an agent into a different compartment within the same tenancy. For information about moving resources between + compartments, see `Moving Resources to a Different Compartment`__. + + __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes + + + :param str agent_id: (required) + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.ChangeAgentCompartmentDetails change_agent_compartment_details: (required) + The information to be updated. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of running that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and removed from the system, then a retry of the original creation request + might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use change_agent_compartment API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentId'] + resource_path = "/agents/{agentId}/actions/changeCompartment" + method = "POST" + operation_name = "change_agent_compartment" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/Agent/ChangeAgentCompartment" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"change_agent_compartment got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentId": agent_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing), + "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 is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_agent_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_agent_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def change_agent_endpoint_compartment(self, agent_endpoint_id, change_agent_endpoint_compartment_details, **kwargs): + """ + **ChangeAgentEndpointCompartment** + + Moves an endpoint into a different compartment within the same tenancy. For information about moving resources between + compartments, see `Moving Resources to a Different Compartment`__. + + __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes + + + :param str agent_endpoint_id: (required) + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.ChangeAgentEndpointCompartmentDetails change_agent_endpoint_compartment_details: (required) + The information to be updated. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of running that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and removed from the system, then a retry of the original creation request + might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use change_agent_endpoint_compartment API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId'] + resource_path = "/agentEndpoints/{agentEndpointId}/actions/changeCompartment" + method = "POST" + operation_name = "change_agent_endpoint_compartment" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/AgentEndpoint/ChangeAgentEndpointCompartment" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"change_agent_endpoint_compartment got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_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(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing), + "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 is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_agent_endpoint_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_agent_endpoint_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def change_knowledge_base_compartment(self, knowledge_base_id, change_knowledge_base_compartment_details, **kwargs): + """ + **ChangeKnowledgeBaseCompartment** + + Moves a knowledge base into a different compartment within the same tenancy. For information about moving resources between + compartments, see `Moving Resources to a Different Compartment`__. + + __ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes + + + :param str knowledge_base_id: (required) + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.ChangeKnowledgeBaseCompartmentDetails change_knowledge_base_compartment_details: (required) + The information to be updated. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of running that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and removed from the system, then a retry of the original creation request + might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use change_knowledge_base_compartment API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['knowledgeBaseId'] + resource_path = "/knowledgeBases/{knowledgeBaseId}/actions/changeCompartment" + method = "POST" + operation_name = "change_knowledge_base_compartment" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/KnowledgeBase/ChangeKnowledgeBaseCompartment" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"change_knowledge_base_compartment got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "knowledgeBaseId": knowledge_base_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing), + "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 is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_knowledge_base_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_knowledge_base_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def create_agent(self, create_agent_details, **kwargs): + """ + **CreateAgent** + + Creates an agent. + + + :param oci.generative_ai_agent.models.CreateAgentDetails create_agent_details: (required) + Details for the new agent. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of running that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and removed from the system, then a retry of the original creation request + might be rejected. + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.Agent` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_agent API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/agents" + method = "POST" + operation_name = "create_agent" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/Agent/CreateAgent" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_agent got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_agent_details, + response_type="Agent", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_agent_details, + response_type="Agent", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def create_agent_endpoint(self, create_agent_endpoint_details, **kwargs): + """ + **CreateAgentEndpoint** + + Creates an endpoint. + + + :param oci.generative_ai_agent.models.CreateAgentEndpointDetails create_agent_endpoint_details: (required) + Details for the new endpoint. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of running that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and removed from the system, then a retry of the original creation request + might be rejected. + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.AgentEndpoint` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_agent_endpoint API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/agentEndpoints" + method = "POST" + operation_name = "create_agent_endpoint" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/AgentEndpoint/CreateAgentEndpoint" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_agent_endpoint got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_agent_endpoint_details, + response_type="AgentEndpoint", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_agent_endpoint_details, + response_type="AgentEndpoint", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def create_data_ingestion_job(self, create_data_ingestion_job_details, **kwargs): + """ + **CreateDataIngestionJob** + + Creates a data ingestion job. + + + :param oci.generative_ai_agent.models.CreateDataIngestionJobDetails create_data_ingestion_job_details: (required) + Details for the new data ingestion job. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of running that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and removed from the system, then a retry of the original creation request + might be rejected. + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.DataIngestionJob` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_data_ingestion_job API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/dataIngestionJobs" + method = "POST" + operation_name = "create_data_ingestion_job" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataIngestionJob/CreateDataIngestionJob" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_data_ingestion_job got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_data_ingestion_job_details, + response_type="DataIngestionJob", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_data_ingestion_job_details, + response_type="DataIngestionJob", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def create_data_source(self, create_data_source_details, **kwargs): + """ + **CreateDataSource** + + Creates a data source. + + + :param oci.generative_ai_agent.models.CreateDataSourceDetails create_data_source_details: (required) + Details for the new data source. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of running that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and removed from the system, then a retry of the original creation request + might be rejected. + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.DataSource` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_data_source API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/dataSources" + method = "POST" + operation_name = "create_data_source" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataSource/CreateDataSource" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_data_source got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_data_source_details, + response_type="DataSource", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_data_source_details, + response_type="DataSource", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def create_knowledge_base(self, create_knowledge_base_details, **kwargs): + """ + **CreateKnowledgeBase** + + Creates a knowledge base. + + + :param oci.generative_ai_agent.models.CreateKnowledgeBaseDetails create_knowledge_base_details: (required) + Details for the new knowledge base. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of running that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and removed from the system, then a retry of the original creation request + might be rejected. + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.KnowledgeBase` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_knowledge_base API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/knowledgeBases" + method = "POST" + operation_name = "create_knowledge_base" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/KnowledgeBase/CreateKnowledgeBase" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_knowledge_base got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_knowledge_base_details, + response_type="KnowledgeBase", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_knowledge_base_details, + response_type="KnowledgeBase", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def delete_agent(self, agent_id, **kwargs): + """ + **DeleteAgent** + + Deletes an agent. + + + :param str agent_id: (required) + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_agent API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentId'] + resource_path = "/agents/{agentId}" + method = "DELETE" + operation_name = "delete_agent" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/Agent/DeleteAgent" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_agent got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentId": agent_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def delete_agent_endpoint(self, agent_endpoint_id, **kwargs): + """ + **DeleteAgentEndpoint** + + Deletes an endpoint. + + + :param str agent_endpoint_id: (required) + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_agent_endpoint API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId'] + resource_path = "/agentEndpoints/{agentEndpointId}" + method = "DELETE" + operation_name = "delete_agent_endpoint" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/AgentEndpoint/DeleteAgentEndpoint" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_agent_endpoint got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_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(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def delete_data_ingestion_job(self, data_ingestion_job_id, **kwargs): + """ + **DeleteDataIngestionJob** + + Deletes a data ingestion job. + + + :param str data_ingestion_job_id: (required) + The `OCID`__ of the data ingestion job. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_data_ingestion_job API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['dataIngestionJobId'] + resource_path = "/dataIngestionJobs/{dataIngestionJobId}" + method = "DELETE" + operation_name = "delete_data_ingestion_job" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataIngestionJob/DeleteDataIngestionJob" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_data_ingestion_job got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "dataIngestionJobId": data_ingestion_job_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def delete_data_source(self, data_source_id, **kwargs): + """ + **DeleteDataSource** + + Deletes a data source. + + + :param str data_source_id: (required) + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_data_source API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['dataSourceId'] + resource_path = "/dataSources/{dataSourceId}" + method = "DELETE" + operation_name = "delete_data_source" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataSource/DeleteDataSource" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_data_source got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "dataSourceId": data_source_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def delete_knowledge_base(self, knowledge_base_id, **kwargs): + """ + **DeleteKnowledgeBase** + + Deletes a knowledge base. + + + :param str knowledge_base_id: (required) + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_knowledge_base API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['knowledgeBaseId'] + resource_path = "/knowledgeBases/{knowledgeBaseId}" + method = "DELETE" + operation_name = "delete_knowledge_base" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/KnowledgeBase/DeleteKnowledgeBase" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_knowledge_base got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "knowledgeBaseId": knowledge_base_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_agent(self, agent_id, **kwargs): + """ + **GetAgent** + + Gets information about an agent. + + + :param str agent_id: (required) + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.Agent` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_agent API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentId'] + resource_path = "/agents/{agentId}" + method = "GET" + operation_name = "get_agent" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/Agent/GetAgent" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_agent got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentId": agent_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="Agent", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="Agent", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_agent_endpoint(self, agent_endpoint_id, **kwargs): + """ + **GetAgentEndpoint** + + Gets information about an endpoint. + + + :param str agent_endpoint_id: (required) + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.AgentEndpoint` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_agent_endpoint API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId'] + resource_path = "/agentEndpoints/{agentEndpointId}" + method = "GET" + operation_name = "get_agent_endpoint" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/AgentEndpoint/GetAgentEndpoint" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_agent_endpoint got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_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(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="AgentEndpoint", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="AgentEndpoint", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_data_ingestion_job(self, data_ingestion_job_id, **kwargs): + """ + **GetDataIngestionJob** + + Gets information about a data ingestion job. + + + :param str data_ingestion_job_id: (required) + The `OCID`__ of the data ingestion job. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.DataIngestionJob` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_data_ingestion_job API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['dataIngestionJobId'] + resource_path = "/dataIngestionJobs/{dataIngestionJobId}" + method = "GET" + operation_name = "get_data_ingestion_job" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataIngestionJob/GetDataIngestionJob" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_data_ingestion_job got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "dataIngestionJobId": data_ingestion_job_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="DataIngestionJob", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="DataIngestionJob", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_data_ingestion_job_log_content(self, data_ingestion_job_id, **kwargs): + """ + **GetDataIngestionJobLogContent** + + Returns the raw log file for the specified data ingestion job in text format. + + + :param str data_ingestion_job_id: (required) + The `OCID`__ of the data ingestion job. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type stream + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_data_ingestion_job_log_content API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['dataIngestionJobId'] + resource_path = "/dataIngestionJobs/{dataIngestionJobId}/logs/content" + method = "GET" + operation_name = "get_data_ingestion_job_log_content" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataIngestionJob/GetDataIngestionJobLogContent" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_data_ingestion_job_log_content got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "dataIngestionJobId": data_ingestion_job_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "text/plain; charset=utf-8", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="stream", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="stream", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_data_source(self, data_source_id, **kwargs): + """ + **GetDataSource** + + Gets information about a data source. + + + :param str data_source_id: (required) + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.DataSource` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_data_source API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['dataSourceId'] + resource_path = "/dataSources/{dataSourceId}" + method = "GET" + operation_name = "get_data_source" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataSource/GetDataSource" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_data_source got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "dataSourceId": data_source_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="DataSource", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="DataSource", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_knowledge_base(self, knowledge_base_id, **kwargs): + """ + **GetKnowledgeBase** + + Gets information about a knowledge base. + + + :param str knowledge_base_id: (required) + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.KnowledgeBase` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_knowledge_base API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['knowledgeBaseId'] + resource_path = "/knowledgeBases/{knowledgeBaseId}" + method = "GET" + operation_name = "get_knowledge_base" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/KnowledgeBase/GetKnowledgeBase" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_knowledge_base got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "knowledgeBaseId": knowledge_base_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="KnowledgeBase", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="KnowledgeBase", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_work_request(self, work_request_id, **kwargs): + """ + **GetWorkRequest** + + Gets the details of a work request. + + + :param str work_request_id: (required) + The `OCID`__ of the asynchronous work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.WorkRequest` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_work_request API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['workRequestId'] + resource_path = "/workRequests/{workRequestId}" + method = "GET" + operation_name = "get_work_request" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/WorkRequest/GetWorkRequest" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_work_request got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "workRequestId": work_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="WorkRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="WorkRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_agent_endpoints(self, **kwargs): + """ + **ListAgentEndpoints** + + Gets a list of endpoints. + + + :param str compartment_id: (optional) + The `OCID`__ of the compartment in which to list resources. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str agent_id: (optional) + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str lifecycle_state: (optional) + A filter to return only resources that match the given lifecycle state. The + state value is case-insensitive. + + Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" + + :param str display_name: (optional) + A filter to return only resources that match the given display name exactly. + + :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`__. + + __ https://docs.cloud.oracle.com/iaas/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/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. You can provide only one sort order. Default order for `timeCreated` + is descending. Default order for `displayName` is ascending. + + Allowed values are: "timeCreated", "displayName" + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.AgentEndpointCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_agent_endpoints API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/agentEndpoints" + method = "GET" + operation_name = "list_agent_endpoints" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/AgentEndpoint/ListAgentEndpoints" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "compartment_id", + "agent_id", + "lifecycle_state", + "display_name", + "limit", + "page", + "sort_order", + "sort_by", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_agent_endpoints got unknown kwargs: {extra_kwargs!r}") + + if 'lifecycle_state' in kwargs: + lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: + raise ValueError( + f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timeCreated", "displayName"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": kwargs.get("compartment_id", missing), + "agentId": kwargs.get("agent_id", missing), + "lifecycleState": kwargs.get("lifecycle_state", missing), + "displayName": kwargs.get("display_name", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="AgentEndpointCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="AgentEndpointCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_agents(self, **kwargs): + """ + **ListAgents** + + Gets a list of agents. + + + :param str compartment_id: (optional) + The `OCID`__ of the compartment in which to list resources. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str lifecycle_state: (optional) + A filter to return only resources that match the given lifecycle state. The + state value is case-insensitive. + + Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED" + + :param str display_name: (optional) + A filter to return only resources that match the given display name exactly. + + :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`__. + + __ https://docs.cloud.oracle.com/iaas/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/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. You can provide only one sort order. Default order for `timeCreated` + is descending. Default order for `displayName` is ascending. + + Allowed values are: "timeCreated", "displayName" + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.AgentCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_agents API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/agents" + method = "GET" + operation_name = "list_agents" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/Agent/ListAgents" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "compartment_id", + "lifecycle_state", + "display_name", + "limit", + "page", + "sort_order", + "sort_by", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_agents got unknown kwargs: {extra_kwargs!r}") + + if 'lifecycle_state' in kwargs: + lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: + raise ValueError( + f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timeCreated", "displayName"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": kwargs.get("compartment_id", missing), + "lifecycleState": kwargs.get("lifecycle_state", missing), + "displayName": kwargs.get("display_name", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="AgentCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="AgentCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_data_ingestion_jobs(self, **kwargs): + """ + **ListDataIngestionJobs** + + Gets a list of data ingestion jobs. + + + :param str compartment_id: (optional) + The `OCID`__ of the compartment in which to list resources. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str data_source_id: (optional) + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str lifecycle_state: (optional) + A filter to return only resources that match the given lifecycle state. The + state value is case-insensitive. + + Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "DELETING", "DELETED" + + :param str display_name: (optional) + A filter to return only resources that match the given display name exactly. + + :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`__. + + __ https://docs.cloud.oracle.com/iaas/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/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. You can provide only one sort order. Default order for `timeCreated` + is descending. Default order for `displayName` is ascending. + + Allowed values are: "timeCreated", "displayName" + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.DataIngestionJobCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_data_ingestion_jobs API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/dataIngestionJobs" + method = "GET" + operation_name = "list_data_ingestion_jobs" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataIngestionJob/ListDataIngestionJobs" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "compartment_id", + "data_source_id", + "lifecycle_state", + "display_name", + "limit", + "page", + "sort_order", + "sort_by", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_data_ingestion_jobs got unknown kwargs: {extra_kwargs!r}") + + if 'lifecycle_state' in kwargs: + lifecycle_state_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "DELETING", "DELETED"] + if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: + raise ValueError( + f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timeCreated", "displayName"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": kwargs.get("compartment_id", missing), + "dataSourceId": kwargs.get("data_source_id", missing), + "lifecycleState": kwargs.get("lifecycle_state", missing), + "displayName": kwargs.get("display_name", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="DataIngestionJobCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="DataIngestionJobCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_data_sources(self, **kwargs): + """ + **ListDataSources** + + Gets a list of data sources. + + + :param str compartment_id: (optional) + The `OCID`__ of the compartment in which to list resources. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str knowledge_base_id: (optional) + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str lifecycle_state: (optional) + A filter to return only resources that match the given lifecycle state. The + state value is case-insensitive. + + Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED" + + :param str display_name: (optional) + A filter to return only resources that match the given display name exactly. + + :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`__. + + __ https://docs.cloud.oracle.com/iaas/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/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. You can provide only one sort order. Default order for `timeCreated` + is descending. Default order for `displayName` is ascending. + + Allowed values are: "timeCreated", "displayName" + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.DataSourceCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_data_sources API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/dataSources" + method = "GET" + operation_name = "list_data_sources" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataSource/ListDataSources" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "compartment_id", + "knowledge_base_id", + "lifecycle_state", + "display_name", + "limit", + "page", + "sort_order", + "sort_by", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_data_sources got unknown kwargs: {extra_kwargs!r}") + + if 'lifecycle_state' in kwargs: + lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"] + if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: + raise ValueError( + f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timeCreated", "displayName"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": kwargs.get("compartment_id", missing), + "knowledgeBaseId": kwargs.get("knowledge_base_id", missing), + "lifecycleState": kwargs.get("lifecycle_state", missing), + "displayName": kwargs.get("display_name", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="DataSourceCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="DataSourceCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_knowledge_bases(self, **kwargs): + """ + **ListKnowledgeBases** + + Gets a list of knowledge bases. + + + :param str compartment_id: (optional) + The `OCID`__ of the compartment in which to list resources. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str lifecycle_state: (optional) + A filter to return only resources that match the given lifecycle state. The + state value is case-insensitive. + + Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED" + + :param str display_name: (optional) + A filter to return only resources that match the given display name exactly. + + :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`__. + + __ https://docs.cloud.oracle.com/iaas/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/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. You can provide only one sort order. Default order for `timeCreated` + is descending. Default order for `displayName` is ascending. + + Allowed values are: "timeCreated", "displayName" + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.KnowledgeBaseCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_knowledge_bases API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/knowledgeBases" + method = "GET" + operation_name = "list_knowledge_bases" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/KnowledgeBase/ListKnowledgeBases" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "compartment_id", + "lifecycle_state", + "display_name", + "limit", + "page", + "sort_order", + "sort_by", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_knowledge_bases got unknown kwargs: {extra_kwargs!r}") + + if 'lifecycle_state' in kwargs: + lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] + if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: + raise ValueError( + f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timeCreated", "displayName"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": kwargs.get("compartment_id", missing), + "lifecycleState": kwargs.get("lifecycle_state", missing), + "displayName": kwargs.get("display_name", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="KnowledgeBaseCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="KnowledgeBaseCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_work_request_errors(self, work_request_id, **kwargs): + """ + **ListWorkRequestErrors** + + Lists the errors for a work request. + + + :param str work_request_id: (required) + The `OCID`__ of the asynchronous work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :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/iaas/Content/API/Concepts/usingapi.htm#nine + + :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`__. + + __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending. + + Allowed values are: "timestamp" + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.WorkRequestErrorCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_work_request_errors API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['workRequestId'] + resource_path = "/workRequests/{workRequestId}/errors" + method = "GET" + operation_name = "list_work_request_errors" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/WorkRequestError/ListWorkRequestErrors" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "page", + "limit", + "sort_by", + "sort_order" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "workRequestId": work_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timestamp"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + query_params = { + "page": kwargs.get("page", missing), + "limit": kwargs.get("limit", missing), + "sortBy": kwargs.get("sort_by", missing), + "sortOrder": kwargs.get("sort_order", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + response_type="WorkRequestErrorCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + response_type="WorkRequestErrorCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_work_request_logs(self, work_request_id, **kwargs): + """ + **ListWorkRequestLogs** + + Lists the logs for a work request. + + + :param str work_request_id: (required) + The `OCID`__ of the asynchronous work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :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/iaas/Content/API/Concepts/usingapi.htm#nine + + :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`__. + + __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending. + + Allowed values are: "timestamp" + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.WorkRequestLogEntryCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_work_request_logs API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['workRequestId'] + resource_path = "/workRequests/{workRequestId}/logs" + method = "GET" + operation_name = "list_work_request_logs" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/WorkRequestLogEntry/ListWorkRequestLogs" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "page", + "limit", + "sort_by", + "sort_order" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "workRequestId": work_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timestamp"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + query_params = { + "page": kwargs.get("page", missing), + "limit": kwargs.get("limit", missing), + "sortBy": kwargs.get("sort_by", missing), + "sortOrder": kwargs.get("sort_order", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + response_type="WorkRequestLogEntryCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + response_type="WorkRequestLogEntryCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_work_requests(self, **kwargs): + """ + **ListWorkRequests** + + Lists the work requests in a compartment. + + + :param str compartment_id: (optional) + The `OCID`__ of the compartment in which to list resources. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str work_request_id: (optional) + The `OCID`__ of the asynchronous work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str status: (optional) + A filter to return only the resources that match the given lifecycle state. + + Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED" + + :param str resource_id: (optional) + The `OCID`__ of the resource affected by the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :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/iaas/Content/API/Concepts/usingapi.htm#nine + + :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`__. + + __ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending. + + Allowed values are: "timeAccepted" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent.models.WorkRequestSummaryCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_work_requests API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/workRequests" + method = "GET" + operation_name = "list_work_requests" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/WorkRequest/ListWorkRequests" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "compartment_id", + "work_request_id", + "status", + "resource_id", + "opc_request_id", + "page", + "limit", + "sort_order", + "sort_by" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_work_requests got unknown kwargs: {extra_kwargs!r}") + + if 'status' in kwargs: + status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] + if kwargs['status'] not in status_allowed_values: + raise ValueError( + f"Invalid value for `status`, must be one of { status_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["timeAccepted"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": kwargs.get("compartment_id", missing), + "workRequestId": kwargs.get("work_request_id", missing), + "status": kwargs.get("status", missing), + "resourceId": kwargs.get("resource_id", missing), + "page": kwargs.get("page", missing), + "limit": kwargs.get("limit", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="WorkRequestSummaryCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="WorkRequestSummaryCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def update_agent(self, agent_id, update_agent_details, **kwargs): + """ + **UpdateAgent** + + Updates an agent. + + + :param str agent_id: (required) + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.UpdateAgentDetails update_agent_details: (required) + The information to be updated. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_agent API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentId'] + resource_path = "/agents/{agentId}" + method = "PUT" + operation_name = "update_agent" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/Agent/UpdateAgent" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_agent got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentId": agent_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_agent_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_agent_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def update_agent_endpoint(self, agent_endpoint_id, update_agent_endpoint_details, **kwargs): + """ + **UpdateAgentEndpoint** + + Updates an endpoint. + + + :param str agent_endpoint_id: (required) + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.UpdateAgentEndpointDetails update_agent_endpoint_details: (required) + The information to be updated. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_agent_endpoint API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId'] + resource_path = "/agentEndpoints/{agentEndpointId}" + method = "PUT" + operation_name = "update_agent_endpoint" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/AgentEndpoint/UpdateAgentEndpoint" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_agent_endpoint got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_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(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_agent_endpoint_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_agent_endpoint_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def update_data_source(self, data_source_id, update_data_source_details, **kwargs): + """ + **UpdateDataSource** + + Updates a data source. + + + :param str data_source_id: (required) + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.UpdateDataSourceDetails update_data_source_details: (required) + The data source information to be updated. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_data_source API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['dataSourceId'] + resource_path = "/dataSources/{dataSourceId}" + method = "PUT" + operation_name = "update_data_source" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/DataSource/UpdateDataSource" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_data_source got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "dataSourceId": data_source_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_data_source_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_data_source_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def update_knowledge_base(self, knowledge_base_id, update_knowledge_base_details, **kwargs): + """ + **UpdateKnowledgeBase** + + Updates a knowledge base. + + + :param str knowledge_base_id: (required) + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.UpdateKnowledgeBaseDetails update_knowledge_base_details: (required) + The information to be updated. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + `if-match` parameter to the value of the etag from a previous GET or POST response for + that resource. The resource will be updated or deleted only if the etag you provide + matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact + Oracle about a particular request, please provide the request ID. + The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_knowledge_base API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['knowledgeBaseId'] + resource_path = "/knowledgeBases/{knowledgeBaseId}" + method = "PUT" + operation_name = "update_knowledge_base" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents/20240531/KnowledgeBase/UpdateKnowledgeBase" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_knowledge_base got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "knowledgeBaseId": knowledge_base_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_knowledge_base_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_knowledge_base_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) diff --git a/src/oci/generative_ai_agent/generative_ai_agent_client_composite_operations.py b/src/oci/generative_ai_agent/generative_ai_agent_client_composite_operations.py new file mode 100644 index 000000000..b0c1f41c1 --- /dev/null +++ b/src/oci/generative_ai_agent/generative_ai_agent_client_composite_operations.py @@ -0,0 +1,774 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +import oci # noqa: F401 +from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 + + +class GenerativeAiAgentClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.generative_ai_agent.GenerativeAiAgentClient` and offers convenience methods + for operations that would otherwise need to be chained together. For example, instead of performing an action + on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource + to enter a given state, you can call a single method in this class to accomplish the same functionality + """ + + def __init__(self, client, **kwargs): + """ + Creates a new GenerativeAiAgentClientCompositeOperations object + + :param GenerativeAiAgentClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def change_agent_compartment_and_wait_for_state(self, agent_id, change_agent_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_agent_compartment` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str agent_id: (required) + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.ChangeAgentCompartmentDetails change_agent_compartment_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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_agent_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_agent_compartment(agent_id, change_agent_compartment_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def change_agent_endpoint_compartment_and_wait_for_state(self, agent_endpoint_id, change_agent_endpoint_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_agent_endpoint_compartment` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str agent_endpoint_id: (required) + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.ChangeAgentEndpointCompartmentDetails change_agent_endpoint_compartment_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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_agent_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_agent_endpoint_compartment(agent_endpoint_id, change_agent_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] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def change_knowledge_base_compartment_and_wait_for_state(self, knowledge_base_id, change_knowledge_base_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_knowledge_base_compartment` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str knowledge_base_id: (required) + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.ChangeKnowledgeBaseCompartmentDetails change_knowledge_base_compartment_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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.change_knowledge_base_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_knowledge_base_compartment(knowledge_base_id, change_knowledge_base_compartment_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def create_agent_and_wait_for_state(self, create_agent_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_agent` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param oci.generative_ai_agent.models.CreateAgentDetails create_agent_details: (required) + Details for the new agent. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_agent` + + :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_agent(create_agent_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def create_agent_endpoint_and_wait_for_state(self, create_agent_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_agent_endpoint` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param oci.generative_ai_agent.models.CreateAgentEndpointDetails create_agent_endpoint_details: (required) + Details for the new endpoint. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_agent_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_agent_endpoint(create_agent_endpoint_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def create_data_ingestion_job_and_wait_for_state(self, create_data_ingestion_job_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_data_ingestion_job` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param oci.generative_ai_agent.models.CreateDataIngestionJobDetails create_data_ingestion_job_details: (required) + Details for the new data ingestion job. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_data_ingestion_job` + + :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_data_ingestion_job(create_data_ingestion_job_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def create_data_source_and_wait_for_state(self, create_data_source_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_data_source` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param oci.generative_ai_agent.models.CreateDataSourceDetails create_data_source_details: (required) + Details for the new data source. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_data_source` + + :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_data_source(create_data_source_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def create_knowledge_base_and_wait_for_state(self, create_knowledge_base_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_knowledge_base` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param oci.generative_ai_agent.models.CreateKnowledgeBaseDetails create_knowledge_base_details: (required) + Details for the new knowledge base. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.create_knowledge_base` + + :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_knowledge_base(create_knowledge_base_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_agent_and_wait_for_state(self, agent_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_agent` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str agent_id: (required) + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_agent` + + :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_agent(agent_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_agent_endpoint_and_wait_for_state(self, agent_endpoint_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_agent_endpoint` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str agent_endpoint_id: (required) + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_agent_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_agent_endpoint(agent_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] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_data_ingestion_job_and_wait_for_state(self, data_ingestion_job_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_data_ingestion_job` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str data_ingestion_job_id: (required) + The `OCID`__ of the data ingestion job. + + __ https://docs.cloud.oracle.com/iaas/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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_data_ingestion_job` + + :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_data_ingestion_job(data_ingestion_job_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_data_source_and_wait_for_state(self, data_source_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_data_source` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str data_source_id: (required) + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_data_source` + + :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_data_source(data_source_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_knowledge_base_and_wait_for_state(self, knowledge_base_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_knowledge_base` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str knowledge_base_id: (required) + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.delete_knowledge_base` + + :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_knowledge_base(knowledge_base_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def update_agent_and_wait_for_state(self, agent_id, update_agent_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_agent` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str agent_id: (required) + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.UpdateAgentDetails update_agent_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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_agent` + + :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_agent(agent_id, update_agent_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def update_agent_endpoint_and_wait_for_state(self, agent_endpoint_id, update_agent_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_agent_endpoint` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str agent_endpoint_id: (required) + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.UpdateAgentEndpointDetails update_agent_endpoint_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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_agent_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_agent_endpoint(agent_endpoint_id, update_agent_endpoint_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def update_data_source_and_wait_for_state(self, data_source_id, update_data_source_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_data_source` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str data_source_id: (required) + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.UpdateDataSourceDetails update_data_source_details: (required) + The data source 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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_data_source` + + :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_data_source(data_source_id, update_data_source_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def update_knowledge_base_and_wait_for_state(self, knowledge_base_id, update_knowledge_base_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_knowledge_base` and waits for the :py:class:`~oci.generative_ai_agent.models.WorkRequest` + to enter the given state(s). + + :param str knowledge_base_id: (required) + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param oci.generative_ai_agent.models.UpdateKnowledgeBaseDetails update_knowledge_base_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.generative_ai_agent.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.generative_ai_agent.GenerativeAiAgentClient.update_knowledge_base` + + :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_knowledge_base(knowledge_base_id, update_knowledge_base_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) diff --git a/src/oci/generative_ai_agent/models/__init__.py b/src/oci/generative_ai_agent/models/__init__.py new file mode 100644 index 000000000..1982ce0ad --- /dev/null +++ b/src/oci/generative_ai_agent/models/__init__.py @@ -0,0 +1,118 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from __future__ import absolute_import + +from .agent import Agent +from .agent_collection import AgentCollection +from .agent_endpoint import AgentEndpoint +from .agent_endpoint_collection import AgentEndpointCollection +from .agent_endpoint_summary import AgentEndpointSummary +from .agent_summary import AgentSummary +from .basic_auth_secret import BasicAuthSecret +from .change_agent_compartment_details import ChangeAgentCompartmentDetails +from .change_agent_endpoint_compartment_details import ChangeAgentEndpointCompartmentDetails +from .change_knowledge_base_compartment_details import ChangeKnowledgeBaseCompartmentDetails +from .content_moderation_config import ContentModerationConfig +from .create_agent_details import CreateAgentDetails +from .create_agent_endpoint_details import CreateAgentEndpointDetails +from .create_data_ingestion_job_details import CreateDataIngestionJobDetails +from .create_data_source_details import CreateDataSourceDetails +from .create_knowledge_base_details import CreateKnowledgeBaseDetails +from .data_ingestion_job import DataIngestionJob +from .data_ingestion_job_collection import DataIngestionJobCollection +from .data_ingestion_job_statistics import DataIngestionJobStatistics +from .data_ingestion_job_summary import DataIngestionJobSummary +from .data_source import DataSource +from .data_source_collection import DataSourceCollection +from .data_source_config import DataSourceConfig +from .data_source_summary import DataSourceSummary +from .database_connection import DatabaseConnection +from .database_function import DatabaseFunction +from .database_tool_connection import DatabaseToolConnection +from .default_index_config import DefaultIndexConfig +from .idcs_secret import IdcsSecret +from .index import Index +from .index_config import IndexConfig +from .index_schema import IndexSchema +from .knowledge_base import KnowledgeBase +from .knowledge_base_collection import KnowledgeBaseCollection +from .knowledge_base_summary import KnowledgeBaseSummary +from .object_storage_prefix import ObjectStoragePrefix +from .oci_database_config import OciDatabaseConfig +from .oci_object_storage_data_source_config import OciObjectStorageDataSourceConfig +from .oci_open_search_index_config import OciOpenSearchIndexConfig +from .secret_detail import SecretDetail +from .session_config import SessionConfig +from .update_agent_details import UpdateAgentDetails +from .update_agent_endpoint_details import UpdateAgentEndpointDetails +from .update_data_source_details import UpdateDataSourceDetails +from .update_knowledge_base_details import UpdateKnowledgeBaseDetails +from .work_request import WorkRequest +from .work_request_error import WorkRequestError +from .work_request_error_collection import WorkRequestErrorCollection +from .work_request_log_entry import WorkRequestLogEntry +from .work_request_log_entry_collection import WorkRequestLogEntryCollection +from .work_request_resource import WorkRequestResource +from .work_request_summary import WorkRequestSummary +from .work_request_summary_collection import WorkRequestSummaryCollection + +# Maps type names to classes for generative_ai_agent services. +generative_ai_agent_type_mapping = { + "Agent": Agent, + "AgentCollection": AgentCollection, + "AgentEndpoint": AgentEndpoint, + "AgentEndpointCollection": AgentEndpointCollection, + "AgentEndpointSummary": AgentEndpointSummary, + "AgentSummary": AgentSummary, + "BasicAuthSecret": BasicAuthSecret, + "ChangeAgentCompartmentDetails": ChangeAgentCompartmentDetails, + "ChangeAgentEndpointCompartmentDetails": ChangeAgentEndpointCompartmentDetails, + "ChangeKnowledgeBaseCompartmentDetails": ChangeKnowledgeBaseCompartmentDetails, + "ContentModerationConfig": ContentModerationConfig, + "CreateAgentDetails": CreateAgentDetails, + "CreateAgentEndpointDetails": CreateAgentEndpointDetails, + "CreateDataIngestionJobDetails": CreateDataIngestionJobDetails, + "CreateDataSourceDetails": CreateDataSourceDetails, + "CreateKnowledgeBaseDetails": CreateKnowledgeBaseDetails, + "DataIngestionJob": DataIngestionJob, + "DataIngestionJobCollection": DataIngestionJobCollection, + "DataIngestionJobStatistics": DataIngestionJobStatistics, + "DataIngestionJobSummary": DataIngestionJobSummary, + "DataSource": DataSource, + "DataSourceCollection": DataSourceCollection, + "DataSourceConfig": DataSourceConfig, + "DataSourceSummary": DataSourceSummary, + "DatabaseConnection": DatabaseConnection, + "DatabaseFunction": DatabaseFunction, + "DatabaseToolConnection": DatabaseToolConnection, + "DefaultIndexConfig": DefaultIndexConfig, + "IdcsSecret": IdcsSecret, + "Index": Index, + "IndexConfig": IndexConfig, + "IndexSchema": IndexSchema, + "KnowledgeBase": KnowledgeBase, + "KnowledgeBaseCollection": KnowledgeBaseCollection, + "KnowledgeBaseSummary": KnowledgeBaseSummary, + "ObjectStoragePrefix": ObjectStoragePrefix, + "OciDatabaseConfig": OciDatabaseConfig, + "OciObjectStorageDataSourceConfig": OciObjectStorageDataSourceConfig, + "OciOpenSearchIndexConfig": OciOpenSearchIndexConfig, + "SecretDetail": SecretDetail, + "SessionConfig": SessionConfig, + "UpdateAgentDetails": UpdateAgentDetails, + "UpdateAgentEndpointDetails": UpdateAgentEndpointDetails, + "UpdateDataSourceDetails": UpdateDataSourceDetails, + "UpdateKnowledgeBaseDetails": UpdateKnowledgeBaseDetails, + "WorkRequest": WorkRequest, + "WorkRequestError": WorkRequestError, + "WorkRequestErrorCollection": WorkRequestErrorCollection, + "WorkRequestLogEntry": WorkRequestLogEntry, + "WorkRequestLogEntryCollection": WorkRequestLogEntryCollection, + "WorkRequestResource": WorkRequestResource, + "WorkRequestSummary": WorkRequestSummary, + "WorkRequestSummaryCollection": WorkRequestSummaryCollection +} diff --git a/src/oci/generative_ai_agent/models/agent.py b/src/oci/generative_ai_agent/models/agent.py new file mode 100644 index 000000000..8bc66d332 --- /dev/null +++ b/src/oci/generative_ai_agent/models/agent.py @@ -0,0 +1,536 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 Agent(object): + """ + **Agent** + + An agent is an LLM-based autonomous system that understands and generates human-like text, enabling natural-language processing interactions. OCI Generative AI Agents supports retrieval-augmented generation (RAG) agents. A RAG agent connects to a data source, retrieves data, and augments model responses with the information from the data sources to generate more relevant responses. + + To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. + + __ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm + """ + + #: A constant which can be used with the lifecycle_state property of a Agent. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a Agent. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a Agent. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a Agent. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a Agent. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a Agent. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new Agent 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 Agent. + :type id: str + + :param display_name: + The value to assign to the display_name property of this Agent. + :type display_name: str + + :param description: + The value to assign to the description property of this Agent. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this Agent. + :type compartment_id: str + + :param knowledge_base_ids: + The value to assign to the knowledge_base_ids property of this Agent. + :type knowledge_base_ids: list[str] + + :param welcome_message: + The value to assign to the welcome_message property of this Agent. + :type welcome_message: str + + :param time_created: + The value to assign to the time_created property of this Agent. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this Agent. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this Agent. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", '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 Agent. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this Agent. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this Agent. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this Agent. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'knowledge_base_ids': 'list[str]', + 'welcome_message': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'knowledge_base_ids': 'knowledgeBaseIds', + 'welcome_message': 'welcomeMessage', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._compartment_id = None + self._knowledge_base_ids = None + self._welcome_message = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this Agent. + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this Agent. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Agent. + The `OCID`__ of the agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this Agent. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + Gets the display_name of this Agent. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this Agent. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this Agent. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this Agent. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this Agent. + Description about the agent. + + + :return: The description of this Agent. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this Agent. + Description about the agent. + + + :param description: The description of this Agent. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this Agent. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this Agent. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this Agent. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this Agent. + :type: str + """ + self._compartment_id = compartment_id + + @property + def knowledge_base_ids(self): + """ + Gets the knowledge_base_ids of this Agent. + List of `OCID`__ of the knowledgeBases associated with agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The knowledge_base_ids of this Agent. + :rtype: list[str] + """ + return self._knowledge_base_ids + + @knowledge_base_ids.setter + def knowledge_base_ids(self, knowledge_base_ids): + """ + Sets the knowledge_base_ids of this Agent. + List of `OCID`__ of the knowledgeBases associated with agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param knowledge_base_ids: The knowledge_base_ids of this Agent. + :type: list[str] + """ + self._knowledge_base_ids = knowledge_base_ids + + @property + def welcome_message(self): + """ + Gets the welcome_message of this Agent. + Details about purpose and responsibility of the agent + + + :return: The welcome_message of this Agent. + :rtype: str + """ + return self._welcome_message + + @welcome_message.setter + def welcome_message(self, welcome_message): + """ + Sets the welcome_message of this Agent. + Details about purpose and responsibility of the agent + + + :param welcome_message: The welcome_message of this Agent. + :type: str + """ + self._welcome_message = welcome_message + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this Agent. + The date and time the agent was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this Agent. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this Agent. + The date and time the agent was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this Agent. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this Agent. + The date and time the agent was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this Agent. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this Agent. + The date and time the agent was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this Agent. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this Agent. + The current state of the agent. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this Agent. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this Agent. + The current state of the agent. + + + :param lifecycle_state: The lifecycle_state of this Agent. + :type: str + """ + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this Agent. + A message that describes the current state of the agent in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this Agent. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this Agent. + A message that describes the current state of the agent in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this Agent. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this Agent. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this Agent. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this Agent. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this Agent. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this Agent. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this Agent. + :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 Agent. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this Agent. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this Agent. + 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 Agent. + :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 Agent. + 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 Agent. + :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/generative_ai_agent/models/agent_collection.py b/src/oci/generative_ai_agent/models/agent_collection.py new file mode 100644 index 000000000..150f065f5 --- /dev/null +++ b/src/oci/generative_ai_agent/models/agent_collection.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 AgentCollection(object): + """ + **AgentCollection** + + Results of an agent search. Contains both AgentSummary items and other information, such as metadata. + """ + + def __init__(self, **kwargs): + """ + Initializes a new AgentCollection 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 AgentCollection. + :type items: list[oci.generative_ai_agent.models.AgentSummary] + + """ + self.swagger_types = { + 'items': 'list[AgentSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this AgentCollection. + List of agents. + + + :return: The items of this AgentCollection. + :rtype: list[oci.generative_ai_agent.models.AgentSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this AgentCollection. + List of agents. + + + :param items: The items of this AgentCollection. + :type: list[oci.generative_ai_agent.models.AgentSummary] + """ + 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/generative_ai_agent/models/agent_endpoint.py b/src/oci/generative_ai_agent/models/agent_endpoint.py new file mode 100644 index 000000000..cef823c16 --- /dev/null +++ b/src/oci/generative_ai_agent/models/agent_endpoint.py @@ -0,0 +1,648 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 AgentEndpoint(object): + """ + **AgentEndpoint** + + The endpoint to access a deployed agent. + + To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. + + __ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm + """ + + #: A constant which can be used with the lifecycle_state property of a AgentEndpoint. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a AgentEndpoint. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a AgentEndpoint. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a AgentEndpoint. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a AgentEndpoint. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a AgentEndpoint. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new AgentEndpoint 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 AgentEndpoint. + :type id: str + + :param display_name: + The value to assign to the display_name property of this AgentEndpoint. + :type display_name: str + + :param description: + The value to assign to the description property of this AgentEndpoint. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this AgentEndpoint. + :type compartment_id: str + + :param agent_id: + The value to assign to the agent_id property of this AgentEndpoint. + :type agent_id: str + + :param content_moderation_config: + The value to assign to the content_moderation_config property of this AgentEndpoint. + :type content_moderation_config: oci.generative_ai_agent.models.ContentModerationConfig + + :param should_enable_trace: + The value to assign to the should_enable_trace property of this AgentEndpoint. + :type should_enable_trace: bool + + :param should_enable_citation: + The value to assign to the should_enable_citation property of this AgentEndpoint. + :type should_enable_citation: bool + + :param should_enable_session: + The value to assign to the should_enable_session property of this AgentEndpoint. + :type should_enable_session: bool + + :param session_config: + The value to assign to the session_config property of this AgentEndpoint. + :type session_config: oci.generative_ai_agent.models.SessionConfig + + :param time_created: + The value to assign to the time_created property of this AgentEndpoint. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this AgentEndpoint. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this AgentEndpoint. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", '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 AgentEndpoint. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this AgentEndpoint. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this AgentEndpoint. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this AgentEndpoint. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'agent_id': 'str', + 'content_moderation_config': 'ContentModerationConfig', + 'should_enable_trace': 'bool', + 'should_enable_citation': 'bool', + 'should_enable_session': 'bool', + 'session_config': 'SessionConfig', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'agent_id': 'agentId', + 'content_moderation_config': 'contentModerationConfig', + 'should_enable_trace': 'shouldEnableTrace', + 'should_enable_citation': 'shouldEnableCitation', + 'should_enable_session': 'shouldEnableSession', + 'session_config': 'sessionConfig', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._compartment_id = None + self._agent_id = None + self._content_moderation_config = None + self._should_enable_trace = None + self._should_enable_citation = None + self._should_enable_session = None + self._session_config = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this AgentEndpoint. + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this AgentEndpoint. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this AgentEndpoint. + The `OCID`__ of the endpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this AgentEndpoint. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + Gets the display_name of this AgentEndpoint. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this AgentEndpoint. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this AgentEndpoint. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this AgentEndpoint. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this AgentEndpoint. + An optional description of the endpoint. + + + :return: The description of this AgentEndpoint. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this AgentEndpoint. + An optional description of the endpoint. + + + :param description: The description of this AgentEndpoint. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this AgentEndpoint. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this AgentEndpoint. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this AgentEndpoint. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this AgentEndpoint. + :type: str + """ + self._compartment_id = compartment_id + + @property + def agent_id(self): + """ + **[Required]** Gets the agent_id of this AgentEndpoint. + The OCID of the agent that this endpoint is associated with. + + + :return: The agent_id of this AgentEndpoint. + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """ + Sets the agent_id of this AgentEndpoint. + The OCID of the agent that this endpoint is associated with. + + + :param agent_id: The agent_id of this AgentEndpoint. + :type: str + """ + self._agent_id = agent_id + + @property + def content_moderation_config(self): + """ + Gets the content_moderation_config of this AgentEndpoint. + + :return: The content_moderation_config of this AgentEndpoint. + :rtype: oci.generative_ai_agent.models.ContentModerationConfig + """ + return self._content_moderation_config + + @content_moderation_config.setter + def content_moderation_config(self, content_moderation_config): + """ + Sets the content_moderation_config of this AgentEndpoint. + + :param content_moderation_config: The content_moderation_config of this AgentEndpoint. + :type: oci.generative_ai_agent.models.ContentModerationConfig + """ + self._content_moderation_config = content_moderation_config + + @property + def should_enable_trace(self): + """ + Gets the should_enable_trace of this AgentEndpoint. + Whether to show traces in the chat result. + + + :return: The should_enable_trace of this AgentEndpoint. + :rtype: bool + """ + return self._should_enable_trace + + @should_enable_trace.setter + def should_enable_trace(self, should_enable_trace): + """ + Sets the should_enable_trace of this AgentEndpoint. + Whether to show traces in the chat result. + + + :param should_enable_trace: The should_enable_trace of this AgentEndpoint. + :type: bool + """ + self._should_enable_trace = should_enable_trace + + @property + def should_enable_citation(self): + """ + Gets the should_enable_citation of this AgentEndpoint. + Whether to show citations in the chat result. + + + :return: The should_enable_citation of this AgentEndpoint. + :rtype: bool + """ + return self._should_enable_citation + + @should_enable_citation.setter + def should_enable_citation(self, should_enable_citation): + """ + Sets the should_enable_citation of this AgentEndpoint. + Whether to show citations in the chat result. + + + :param should_enable_citation: The should_enable_citation of this AgentEndpoint. + :type: bool + """ + self._should_enable_citation = should_enable_citation + + @property + def should_enable_session(self): + """ + Gets the should_enable_session of this AgentEndpoint. + Whether or not to enable Session-based chat. + + + :return: The should_enable_session of this AgentEndpoint. + :rtype: bool + """ + return self._should_enable_session + + @should_enable_session.setter + def should_enable_session(self, should_enable_session): + """ + Sets the should_enable_session of this AgentEndpoint. + Whether or not to enable Session-based chat. + + + :param should_enable_session: The should_enable_session of this AgentEndpoint. + :type: bool + """ + self._should_enable_session = should_enable_session + + @property + def session_config(self): + """ + Gets the session_config of this AgentEndpoint. + + :return: The session_config of this AgentEndpoint. + :rtype: oci.generative_ai_agent.models.SessionConfig + """ + return self._session_config + + @session_config.setter + def session_config(self, session_config): + """ + Sets the session_config of this AgentEndpoint. + + :param session_config: The session_config of this AgentEndpoint. + :type: oci.generative_ai_agent.models.SessionConfig + """ + self._session_config = session_config + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this AgentEndpoint. + The date and time the AgentEndpoint was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this AgentEndpoint. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this AgentEndpoint. + The date and time the AgentEndpoint was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this AgentEndpoint. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this AgentEndpoint. + The date and time the endpoint was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this AgentEndpoint. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this AgentEndpoint. + The date and time the endpoint was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this AgentEndpoint. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this AgentEndpoint. + The current state of the endpoint. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this AgentEndpoint. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this AgentEndpoint. + The current state of the endpoint. + + + :param lifecycle_state: The lifecycle_state of this AgentEndpoint. + :type: str + """ + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this AgentEndpoint. + A message that describes the current state of the endpoint in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this AgentEndpoint. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this AgentEndpoint. + A message that describes the current state of the endpoint in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this AgentEndpoint. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this AgentEndpoint. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this AgentEndpoint. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this AgentEndpoint. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this AgentEndpoint. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this AgentEndpoint. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this AgentEndpoint. + :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 AgentEndpoint. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this AgentEndpoint. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this AgentEndpoint. + 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 AgentEndpoint. + :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 AgentEndpoint. + 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 AgentEndpoint. + :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/generative_ai_agent/models/agent_endpoint_collection.py b/src/oci/generative_ai_agent/models/agent_endpoint_collection.py new file mode 100644 index 000000000..f68603969 --- /dev/null +++ b/src/oci/generative_ai_agent/models/agent_endpoint_collection.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 AgentEndpointCollection(object): + """ + **AgentEndpointCollection** + + Results of an agentEndpoint search. Contains both AgentEndpointSummary items and other information, such as metadata. + """ + + def __init__(self, **kwargs): + """ + Initializes a new AgentEndpointCollection 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 AgentEndpointCollection. + :type items: list[oci.generative_ai_agent.models.AgentEndpointSummary] + + """ + self.swagger_types = { + 'items': 'list[AgentEndpointSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this AgentEndpointCollection. + List of endpoints. + + + :return: The items of this AgentEndpointCollection. + :rtype: list[oci.generative_ai_agent.models.AgentEndpointSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this AgentEndpointCollection. + List of endpoints. + + + :param items: The items of this AgentEndpointCollection. + :type: list[oci.generative_ai_agent.models.AgentEndpointSummary] + """ + 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/generative_ai_agent/models/agent_endpoint_summary.py b/src/oci/generative_ai_agent/models/agent_endpoint_summary.py new file mode 100644 index 000000000..9ca1b97eb --- /dev/null +++ b/src/oci/generative_ai_agent/models/agent_endpoint_summary.py @@ -0,0 +1,612 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 AgentEndpointSummary(object): + """ + **AgentEndpointSummary** + + Summary information about an endpoint. + """ + + def __init__(self, **kwargs): + """ + Initializes a new AgentEndpointSummary 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 AgentEndpointSummary. + :type id: str + + :param display_name: + The value to assign to the display_name property of this AgentEndpointSummary. + :type display_name: str + + :param description: + The value to assign to the description property of this AgentEndpointSummary. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this AgentEndpointSummary. + :type compartment_id: str + + :param agent_id: + The value to assign to the agent_id property of this AgentEndpointSummary. + :type agent_id: str + + :param content_moderation_config: + The value to assign to the content_moderation_config property of this AgentEndpointSummary. + :type content_moderation_config: oci.generative_ai_agent.models.ContentModerationConfig + + :param should_enable_trace: + The value to assign to the should_enable_trace property of this AgentEndpointSummary. + :type should_enable_trace: bool + + :param should_enable_citation: + The value to assign to the should_enable_citation property of this AgentEndpointSummary. + :type should_enable_citation: bool + + :param should_enable_session: + The value to assign to the should_enable_session property of this AgentEndpointSummary. + :type should_enable_session: bool + + :param session_config: + The value to assign to the session_config property of this AgentEndpointSummary. + :type session_config: oci.generative_ai_agent.models.SessionConfig + + :param time_created: + The value to assign to the time_created property of this AgentEndpointSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this AgentEndpointSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this AgentEndpointSummary. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this AgentEndpointSummary. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this AgentEndpointSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this AgentEndpointSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this AgentEndpointSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'agent_id': 'str', + 'content_moderation_config': 'ContentModerationConfig', + 'should_enable_trace': 'bool', + 'should_enable_citation': 'bool', + 'should_enable_session': 'bool', + 'session_config': 'SessionConfig', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'agent_id': 'agentId', + 'content_moderation_config': 'contentModerationConfig', + 'should_enable_trace': 'shouldEnableTrace', + 'should_enable_citation': 'shouldEnableCitation', + 'should_enable_session': 'shouldEnableSession', + 'session_config': 'sessionConfig', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._compartment_id = None + self._agent_id = None + self._content_moderation_config = None + self._should_enable_trace = None + self._should_enable_citation = None + self._should_enable_session = None + self._session_config = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this AgentEndpointSummary. + The `OCID`__ of the AgentEndpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this AgentEndpointSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this AgentEndpointSummary. + The `OCID`__ of the AgentEndpoint. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this AgentEndpointSummary. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + Gets the display_name of this AgentEndpointSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this AgentEndpointSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this AgentEndpointSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this AgentEndpointSummary. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this AgentEndpointSummary. + An optional description of the endpoint. + + + :return: The description of this AgentEndpointSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this AgentEndpointSummary. + An optional description of the endpoint. + + + :param description: The description of this AgentEndpointSummary. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this AgentEndpointSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this AgentEndpointSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this AgentEndpointSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this AgentEndpointSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def agent_id(self): + """ + **[Required]** Gets the agent_id of this AgentEndpointSummary. + The OCID of the agent that this AgentEndpoint is associated with. + + + :return: The agent_id of this AgentEndpointSummary. + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """ + Sets the agent_id of this AgentEndpointSummary. + The OCID of the agent that this AgentEndpoint is associated with. + + + :param agent_id: The agent_id of this AgentEndpointSummary. + :type: str + """ + self._agent_id = agent_id + + @property + def content_moderation_config(self): + """ + Gets the content_moderation_config of this AgentEndpointSummary. + + :return: The content_moderation_config of this AgentEndpointSummary. + :rtype: oci.generative_ai_agent.models.ContentModerationConfig + """ + return self._content_moderation_config + + @content_moderation_config.setter + def content_moderation_config(self, content_moderation_config): + """ + Sets the content_moderation_config of this AgentEndpointSummary. + + :param content_moderation_config: The content_moderation_config of this AgentEndpointSummary. + :type: oci.generative_ai_agent.models.ContentModerationConfig + """ + self._content_moderation_config = content_moderation_config + + @property + def should_enable_trace(self): + """ + Gets the should_enable_trace of this AgentEndpointSummary. + Whether to show traces in the chat result. + + + :return: The should_enable_trace of this AgentEndpointSummary. + :rtype: bool + """ + return self._should_enable_trace + + @should_enable_trace.setter + def should_enable_trace(self, should_enable_trace): + """ + Sets the should_enable_trace of this AgentEndpointSummary. + Whether to show traces in the chat result. + + + :param should_enable_trace: The should_enable_trace of this AgentEndpointSummary. + :type: bool + """ + self._should_enable_trace = should_enable_trace + + @property + def should_enable_citation(self): + """ + Gets the should_enable_citation of this AgentEndpointSummary. + Whether to show citations in the chat result. + + + :return: The should_enable_citation of this AgentEndpointSummary. + :rtype: bool + """ + return self._should_enable_citation + + @should_enable_citation.setter + def should_enable_citation(self, should_enable_citation): + """ + Sets the should_enable_citation of this AgentEndpointSummary. + Whether to show citations in the chat result. + + + :param should_enable_citation: The should_enable_citation of this AgentEndpointSummary. + :type: bool + """ + self._should_enable_citation = should_enable_citation + + @property + def should_enable_session(self): + """ + Gets the should_enable_session of this AgentEndpointSummary. + Whether or not to enable Session-based chat. + + + :return: The should_enable_session of this AgentEndpointSummary. + :rtype: bool + """ + return self._should_enable_session + + @should_enable_session.setter + def should_enable_session(self, should_enable_session): + """ + Sets the should_enable_session of this AgentEndpointSummary. + Whether or not to enable Session-based chat. + + + :param should_enable_session: The should_enable_session of this AgentEndpointSummary. + :type: bool + """ + self._should_enable_session = should_enable_session + + @property + def session_config(self): + """ + Gets the session_config of this AgentEndpointSummary. + + :return: The session_config of this AgentEndpointSummary. + :rtype: oci.generative_ai_agent.models.SessionConfig + """ + return self._session_config + + @session_config.setter + def session_config(self, session_config): + """ + Sets the session_config of this AgentEndpointSummary. + + :param session_config: The session_config of this AgentEndpointSummary. + :type: oci.generative_ai_agent.models.SessionConfig + """ + self._session_config = session_config + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this AgentEndpointSummary. + The date and time the endpoint was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this AgentEndpointSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this AgentEndpointSummary. + The date and time the endpoint was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this AgentEndpointSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this AgentEndpointSummary. + The date and time the AgentEndpoint was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this AgentEndpointSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this AgentEndpointSummary. + The date and time the AgentEndpoint was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this AgentEndpointSummary. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this AgentEndpointSummary. + The current state of the endpoint. + + + :return: The lifecycle_state of this AgentEndpointSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this AgentEndpointSummary. + The current state of the endpoint. + + + :param lifecycle_state: The lifecycle_state of this AgentEndpointSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this AgentEndpointSummary. + A message that describes the current state of the endpoint in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this AgentEndpointSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this AgentEndpointSummary. + A message that describes the current state of the endpoint in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this AgentEndpointSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this AgentEndpointSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this AgentEndpointSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this AgentEndpointSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this AgentEndpointSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this AgentEndpointSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this AgentEndpointSummary. + :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 AgentEndpointSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this AgentEndpointSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this AgentEndpointSummary. + 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 AgentEndpointSummary. + :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 AgentEndpointSummary. + 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 AgentEndpointSummary. + :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/generative_ai_agent/models/agent_summary.py b/src/oci/generative_ai_agent/models/agent_summary.py new file mode 100644 index 000000000..aa5240949 --- /dev/null +++ b/src/oci/generative_ai_agent/models/agent_summary.py @@ -0,0 +1,500 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 AgentSummary(object): + """ + **AgentSummary** + + Summary information about an agent. + """ + + def __init__(self, **kwargs): + """ + Initializes a new AgentSummary 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 AgentSummary. + :type id: str + + :param display_name: + The value to assign to the display_name property of this AgentSummary. + :type display_name: str + + :param description: + The value to assign to the description property of this AgentSummary. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this AgentSummary. + :type compartment_id: str + + :param knowledge_base_ids: + The value to assign to the knowledge_base_ids property of this AgentSummary. + :type knowledge_base_ids: list[str] + + :param welcome_message: + The value to assign to the welcome_message property of this AgentSummary. + :type welcome_message: str + + :param time_created: + The value to assign to the time_created property of this AgentSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this AgentSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this AgentSummary. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this AgentSummary. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this AgentSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this AgentSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this AgentSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'knowledge_base_ids': 'list[str]', + 'welcome_message': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'knowledge_base_ids': 'knowledgeBaseIds', + 'welcome_message': 'welcomeMessage', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._compartment_id = None + self._knowledge_base_ids = None + self._welcome_message = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this AgentSummary. + The `OCID`__ of the Agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this AgentSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this AgentSummary. + The `OCID`__ of the Agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this AgentSummary. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + Gets the display_name of this AgentSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this AgentSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this AgentSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this AgentSummary. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this AgentSummary. + Description about the agent. + + + :return: The description of this AgentSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this AgentSummary. + Description about the agent. + + + :param description: The description of this AgentSummary. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this AgentSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this AgentSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this AgentSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this AgentSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def knowledge_base_ids(self): + """ + Gets the knowledge_base_ids of this AgentSummary. + List of `OCID`__ of the knowledgeBases associated with agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The knowledge_base_ids of this AgentSummary. + :rtype: list[str] + """ + return self._knowledge_base_ids + + @knowledge_base_ids.setter + def knowledge_base_ids(self, knowledge_base_ids): + """ + Sets the knowledge_base_ids of this AgentSummary. + List of `OCID`__ of the knowledgeBases associated with agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param knowledge_base_ids: The knowledge_base_ids of this AgentSummary. + :type: list[str] + """ + self._knowledge_base_ids = knowledge_base_ids + + @property + def welcome_message(self): + """ + Gets the welcome_message of this AgentSummary. + Details about purpose and responsibility of the agent + + + :return: The welcome_message of this AgentSummary. + :rtype: str + """ + return self._welcome_message + + @welcome_message.setter + def welcome_message(self, welcome_message): + """ + Sets the welcome_message of this AgentSummary. + Details about purpose and responsibility of the agent + + + :param welcome_message: The welcome_message of this AgentSummary. + :type: str + """ + self._welcome_message = welcome_message + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this AgentSummary. + The date and time the agent was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this AgentSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this AgentSummary. + The date and time the agent was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this AgentSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this AgentSummary. + The date and time the agent was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this AgentSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this AgentSummary. + The date and time the agent was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this AgentSummary. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this AgentSummary. + The current state of the agent. + + + :return: The lifecycle_state of this AgentSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this AgentSummary. + The current state of the agent. + + + :param lifecycle_state: The lifecycle_state of this AgentSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this AgentSummary. + A message that describes the current state of the agent in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this AgentSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this AgentSummary. + A message that describes the current state of the agent in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this AgentSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this AgentSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this AgentSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this AgentSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this AgentSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this AgentSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this AgentSummary. + :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 AgentSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this AgentSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this AgentSummary. + 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 AgentSummary. + :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 AgentSummary. + 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 AgentSummary. + :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/generative_ai_agent/models/basic_auth_secret.py b/src/oci/generative_ai_agent/models/basic_auth_secret.py new file mode 100644 index 000000000..1df919e72 --- /dev/null +++ b/src/oci/generative_ai_agent/models/basic_auth_secret.py @@ -0,0 +1,88 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .secret_detail import SecretDetail +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 BasicAuthSecret(SecretDetail): + """ + **BasicAuthSecret** + + The details of Basic authentication configured as in OpenSearch. + """ + + def __init__(self, **kwargs): + """ + Initializes a new BasicAuthSecret object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent.models.BasicAuthSecret.type` attribute + of this class is ``BASIC_AUTH_SECRET`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param type: + The value to assign to the type property of this BasicAuthSecret. + Allowed values for this property are: "IDCS_SECRET", "BASIC_AUTH_SECRET" + :type type: str + + :param vault_secret_id: + The value to assign to the vault_secret_id property of this BasicAuthSecret. + :type vault_secret_id: str + + """ + self.swagger_types = { + 'type': 'str', + 'vault_secret_id': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'vault_secret_id': 'vaultSecretId' + } + + self._type = None + self._vault_secret_id = None + self._type = 'BASIC_AUTH_SECRET' + + @property + def vault_secret_id(self): + """ + **[Required]** Gets the vault_secret_id of this BasicAuthSecret. + The `OCID`__ of the secret for basic authentication. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The vault_secret_id of this BasicAuthSecret. + :rtype: str + """ + return self._vault_secret_id + + @vault_secret_id.setter + def vault_secret_id(self, vault_secret_id): + """ + Sets the vault_secret_id of this BasicAuthSecret. + The `OCID`__ of the secret for basic authentication. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param vault_secret_id: The vault_secret_id of this BasicAuthSecret. + :type: str + """ + self._vault_secret_id = vault_secret_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/generative_ai_agent/models/change_agent_compartment_details.py b/src/oci/generative_ai_agent/models/change_agent_compartment_details.py new file mode 100644 index 000000000..5ad22d4d5 --- /dev/null +++ b/src/oci/generative_ai_agent/models/change_agent_compartment_details.py @@ -0,0 +1,78 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 ChangeAgentCompartmentDetails(object): + """ + **ChangeAgentCompartmentDetails** + + The configuration details for the move operation. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ChangeAgentCompartmentDetails 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 ChangeAgentCompartmentDetails. + :type compartment_id: str + + """ + self.swagger_types = { + 'compartment_id': 'str' + } + + self.attribute_map = { + 'compartment_id': 'compartmentId' + } + + self._compartment_id = None + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this ChangeAgentCompartmentDetails. + The `OCID`__ of the compartment to move the agent to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this ChangeAgentCompartmentDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this ChangeAgentCompartmentDetails. + The `OCID`__ of the compartment to move the agent to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this ChangeAgentCompartmentDetails. + :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/generative_ai_agent/models/change_agent_endpoint_compartment_details.py b/src/oci/generative_ai_agent/models/change_agent_endpoint_compartment_details.py new file mode 100644 index 000000000..642906daf --- /dev/null +++ b/src/oci/generative_ai_agent/models/change_agent_endpoint_compartment_details.py @@ -0,0 +1,78 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 ChangeAgentEndpointCompartmentDetails(object): + """ + **ChangeAgentEndpointCompartmentDetails** + + The configuration details for the move operation. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ChangeAgentEndpointCompartmentDetails 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 ChangeAgentEndpointCompartmentDetails. + :type compartment_id: str + + """ + self.swagger_types = { + 'compartment_id': 'str' + } + + self.attribute_map = { + 'compartment_id': 'compartmentId' + } + + self._compartment_id = None + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this ChangeAgentEndpointCompartmentDetails. + The `OCID`__ of the compartment to move the endpoint to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this ChangeAgentEndpointCompartmentDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this ChangeAgentEndpointCompartmentDetails. + The `OCID`__ of the compartment to move the endpoint to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this ChangeAgentEndpointCompartmentDetails. + :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/generative_ai_agent/models/change_knowledge_base_compartment_details.py b/src/oci/generative_ai_agent/models/change_knowledge_base_compartment_details.py new file mode 100644 index 000000000..1202a84ef --- /dev/null +++ b/src/oci/generative_ai_agent/models/change_knowledge_base_compartment_details.py @@ -0,0 +1,78 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 ChangeKnowledgeBaseCompartmentDetails(object): + """ + **ChangeKnowledgeBaseCompartmentDetails** + + The configuration details for the move operation. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ChangeKnowledgeBaseCompartmentDetails 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 ChangeKnowledgeBaseCompartmentDetails. + :type compartment_id: str + + """ + self.swagger_types = { + 'compartment_id': 'str' + } + + self.attribute_map = { + 'compartment_id': 'compartmentId' + } + + self._compartment_id = None + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this ChangeKnowledgeBaseCompartmentDetails. + The `OCID`__ of the compartment to move the KnowledgeBase to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this ChangeKnowledgeBaseCompartmentDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this ChangeKnowledgeBaseCompartmentDetails. + The `OCID`__ of the compartment to move the KnowledgeBase to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this ChangeKnowledgeBaseCompartmentDetails. + :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/generative_ai_agent/models/content_moderation_config.py b/src/oci/generative_ai_agent/models/content_moderation_config.py new file mode 100644 index 000000000..1cb43ac3f --- /dev/null +++ b/src/oci/generative_ai_agent/models/content_moderation_config.py @@ -0,0 +1,103 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 ContentModerationConfig(object): + """ + The configuration details about whether to apply the content moderation feature to input and output. Content moderation removes toxic and biased content from responses. It is recommended to use content moderation. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ContentModerationConfig object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param should_enable_on_input: + The value to assign to the should_enable_on_input property of this ContentModerationConfig. + :type should_enable_on_input: bool + + :param should_enable_on_output: + The value to assign to the should_enable_on_output property of this ContentModerationConfig. + :type should_enable_on_output: bool + + """ + self.swagger_types = { + 'should_enable_on_input': 'bool', + 'should_enable_on_output': 'bool' + } + + self.attribute_map = { + 'should_enable_on_input': 'shouldEnableOnInput', + 'should_enable_on_output': 'shouldEnableOnOutput' + } + + self._should_enable_on_input = None + self._should_enable_on_output = None + + @property + def should_enable_on_input(self): + """ + Gets the should_enable_on_input of this ContentModerationConfig. + A flag to enable or disable content moderation on input. + + + :return: The should_enable_on_input of this ContentModerationConfig. + :rtype: bool + """ + return self._should_enable_on_input + + @should_enable_on_input.setter + def should_enable_on_input(self, should_enable_on_input): + """ + Sets the should_enable_on_input of this ContentModerationConfig. + A flag to enable or disable content moderation on input. + + + :param should_enable_on_input: The should_enable_on_input of this ContentModerationConfig. + :type: bool + """ + self._should_enable_on_input = should_enable_on_input + + @property + def should_enable_on_output(self): + """ + Gets the should_enable_on_output of this ContentModerationConfig. + A flag to enable or disable content moderation on output. + + + :return: The should_enable_on_output of this ContentModerationConfig. + :rtype: bool + """ + return self._should_enable_on_output + + @should_enable_on_output.setter + def should_enable_on_output(self, should_enable_on_output): + """ + Sets the should_enable_on_output of this ContentModerationConfig. + A flag to enable or disable content moderation on output. + + + :param should_enable_on_output: The should_enable_on_output of this ContentModerationConfig. + :type: bool + """ + self._should_enable_on_output = should_enable_on_output + + 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/generative_ai_agent/models/create_agent_details.py b/src/oci/generative_ai_agent/models/create_agent_details.py new file mode 100644 index 000000000..fd4f731a9 --- /dev/null +++ b/src/oci/generative_ai_agent/models/create_agent_details.py @@ -0,0 +1,288 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 CreateAgentDetails(object): + """ + **CreateAgentDetails** + + The data to create an agent. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateAgentDetails 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 CreateAgentDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this CreateAgentDetails. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this CreateAgentDetails. + :type compartment_id: str + + :param knowledge_base_ids: + The value to assign to the knowledge_base_ids property of this CreateAgentDetails. + :type knowledge_base_ids: list[str] + + :param welcome_message: + The value to assign to the welcome_message property of this CreateAgentDetails. + :type welcome_message: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateAgentDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateAgentDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'knowledge_base_ids': 'list[str]', + 'welcome_message': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'knowledge_base_ids': 'knowledgeBaseIds', + 'welcome_message': 'welcomeMessage', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._compartment_id = None + self._knowledge_base_ids = None + self._welcome_message = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this CreateAgentDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this CreateAgentDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this CreateAgentDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this CreateAgentDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this CreateAgentDetails. + Description about the agent. + + + :return: The description of this CreateAgentDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateAgentDetails. + Description about the agent. + + + :param description: The description of this CreateAgentDetails. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateAgentDetails. + The `OCID`__ of the compartment to create the agent in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this CreateAgentDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateAgentDetails. + The `OCID`__ of the compartment to create the agent in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this CreateAgentDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def knowledge_base_ids(self): + """ + Gets the knowledge_base_ids of this CreateAgentDetails. + List of `OCID`__ of the knowledgeBases associated with agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The knowledge_base_ids of this CreateAgentDetails. + :rtype: list[str] + """ + return self._knowledge_base_ids + + @knowledge_base_ids.setter + def knowledge_base_ids(self, knowledge_base_ids): + """ + Sets the knowledge_base_ids of this CreateAgentDetails. + List of `OCID`__ of the knowledgeBases associated with agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param knowledge_base_ids: The knowledge_base_ids of this CreateAgentDetails. + :type: list[str] + """ + self._knowledge_base_ids = knowledge_base_ids + + @property + def welcome_message(self): + """ + Gets the welcome_message of this CreateAgentDetails. + Details about purpose and responsibility of the agent + + + :return: The welcome_message of this CreateAgentDetails. + :rtype: str + """ + return self._welcome_message + + @welcome_message.setter + def welcome_message(self, welcome_message): + """ + Sets the welcome_message of this CreateAgentDetails. + Details about purpose and responsibility of the agent + + + :param welcome_message: The welcome_message of this CreateAgentDetails. + :type: str + """ + self._welcome_message = welcome_message + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this CreateAgentDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this CreateAgentDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this CreateAgentDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this CreateAgentDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this CreateAgentDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this CreateAgentDetails. + :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 CreateAgentDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this CreateAgentDetails. + :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/generative_ai_agent/models/create_agent_endpoint_details.py b/src/oci/generative_ai_agent/models/create_agent_endpoint_details.py new file mode 100644 index 000000000..81be0c48b --- /dev/null +++ b/src/oci/generative_ai_agent/models/create_agent_endpoint_details.py @@ -0,0 +1,400 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 CreateAgentEndpointDetails(object): + """ + **CreateAgentEndpointDetails** + + The data to create an endpoint. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateAgentEndpointDetails 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 CreateAgentEndpointDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this CreateAgentEndpointDetails. + :type description: str + + :param agent_id: + The value to assign to the agent_id property of this CreateAgentEndpointDetails. + :type agent_id: str + + :param content_moderation_config: + The value to assign to the content_moderation_config property of this CreateAgentEndpointDetails. + :type content_moderation_config: oci.generative_ai_agent.models.ContentModerationConfig + + :param should_enable_trace: + The value to assign to the should_enable_trace property of this CreateAgentEndpointDetails. + :type should_enable_trace: bool + + :param should_enable_citation: + The value to assign to the should_enable_citation property of this CreateAgentEndpointDetails. + :type should_enable_citation: bool + + :param should_enable_session: + The value to assign to the should_enable_session property of this CreateAgentEndpointDetails. + :type should_enable_session: bool + + :param session_config: + The value to assign to the session_config property of this CreateAgentEndpointDetails. + :type session_config: oci.generative_ai_agent.models.SessionConfig + + :param compartment_id: + The value to assign to the compartment_id property of this CreateAgentEndpointDetails. + :type compartment_id: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateAgentEndpointDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateAgentEndpointDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'agent_id': 'str', + 'content_moderation_config': 'ContentModerationConfig', + 'should_enable_trace': 'bool', + 'should_enable_citation': 'bool', + 'should_enable_session': 'bool', + 'session_config': 'SessionConfig', + 'compartment_id': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'agent_id': 'agentId', + 'content_moderation_config': 'contentModerationConfig', + 'should_enable_trace': 'shouldEnableTrace', + 'should_enable_citation': 'shouldEnableCitation', + 'should_enable_session': 'shouldEnableSession', + 'session_config': 'sessionConfig', + 'compartment_id': 'compartmentId', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._agent_id = None + self._content_moderation_config = None + self._should_enable_trace = None + self._should_enable_citation = None + self._should_enable_session = None + self._session_config = None + self._compartment_id = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this CreateAgentEndpointDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this CreateAgentEndpointDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this CreateAgentEndpointDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this CreateAgentEndpointDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this CreateAgentEndpointDetails. + An optional description of the endpoint. + + + :return: The description of this CreateAgentEndpointDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateAgentEndpointDetails. + An optional description of the endpoint. + + + :param description: The description of this CreateAgentEndpointDetails. + :type: str + """ + self._description = description + + @property + def agent_id(self): + """ + **[Required]** Gets the agent_id of this CreateAgentEndpointDetails. + The OCID of the agent that this endpoint is associated with. + + + :return: The agent_id of this CreateAgentEndpointDetails. + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """ + Sets the agent_id of this CreateAgentEndpointDetails. + The OCID of the agent that this endpoint is associated with. + + + :param agent_id: The agent_id of this CreateAgentEndpointDetails. + :type: str + """ + self._agent_id = agent_id + + @property + def content_moderation_config(self): + """ + Gets the content_moderation_config of this CreateAgentEndpointDetails. + + :return: The content_moderation_config of this CreateAgentEndpointDetails. + :rtype: oci.generative_ai_agent.models.ContentModerationConfig + """ + return self._content_moderation_config + + @content_moderation_config.setter + def content_moderation_config(self, content_moderation_config): + """ + Sets the content_moderation_config of this CreateAgentEndpointDetails. + + :param content_moderation_config: The content_moderation_config of this CreateAgentEndpointDetails. + :type: oci.generative_ai_agent.models.ContentModerationConfig + """ + self._content_moderation_config = content_moderation_config + + @property + def should_enable_trace(self): + """ + Gets the should_enable_trace of this CreateAgentEndpointDetails. + Whether to show traces in the chat result. + + + :return: The should_enable_trace of this CreateAgentEndpointDetails. + :rtype: bool + """ + return self._should_enable_trace + + @should_enable_trace.setter + def should_enable_trace(self, should_enable_trace): + """ + Sets the should_enable_trace of this CreateAgentEndpointDetails. + Whether to show traces in the chat result. + + + :param should_enable_trace: The should_enable_trace of this CreateAgentEndpointDetails. + :type: bool + """ + self._should_enable_trace = should_enable_trace + + @property + def should_enable_citation(self): + """ + Gets the should_enable_citation of this CreateAgentEndpointDetails. + Whether to show citations in the chat result. + + + :return: The should_enable_citation of this CreateAgentEndpointDetails. + :rtype: bool + """ + return self._should_enable_citation + + @should_enable_citation.setter + def should_enable_citation(self, should_enable_citation): + """ + Sets the should_enable_citation of this CreateAgentEndpointDetails. + Whether to show citations in the chat result. + + + :param should_enable_citation: The should_enable_citation of this CreateAgentEndpointDetails. + :type: bool + """ + self._should_enable_citation = should_enable_citation + + @property + def should_enable_session(self): + """ + Gets the should_enable_session of this CreateAgentEndpointDetails. + Whether or not to enable Session-based chat. + + + :return: The should_enable_session of this CreateAgentEndpointDetails. + :rtype: bool + """ + return self._should_enable_session + + @should_enable_session.setter + def should_enable_session(self, should_enable_session): + """ + Sets the should_enable_session of this CreateAgentEndpointDetails. + Whether or not to enable Session-based chat. + + + :param should_enable_session: The should_enable_session of this CreateAgentEndpointDetails. + :type: bool + """ + self._should_enable_session = should_enable_session + + @property + def session_config(self): + """ + Gets the session_config of this CreateAgentEndpointDetails. + + :return: The session_config of this CreateAgentEndpointDetails. + :rtype: oci.generative_ai_agent.models.SessionConfig + """ + return self._session_config + + @session_config.setter + def session_config(self, session_config): + """ + Sets the session_config of this CreateAgentEndpointDetails. + + :param session_config: The session_config of this CreateAgentEndpointDetails. + :type: oci.generative_ai_agent.models.SessionConfig + """ + self._session_config = session_config + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateAgentEndpointDetails. + The `OCID`__ of the compartment to create the endpoint in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this CreateAgentEndpointDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateAgentEndpointDetails. + The `OCID`__ of the compartment to create the endpoint in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this CreateAgentEndpointDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this CreateAgentEndpointDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this CreateAgentEndpointDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this CreateAgentEndpointDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this CreateAgentEndpointDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this CreateAgentEndpointDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this CreateAgentEndpointDetails. + :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 CreateAgentEndpointDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this CreateAgentEndpointDetails. + :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/generative_ai_agent/models/create_data_ingestion_job_details.py b/src/oci/generative_ai_agent/models/create_data_ingestion_job_details.py new file mode 100644 index 000000000..cd0578e93 --- /dev/null +++ b/src/oci/generative_ai_agent/models/create_data_ingestion_job_details.py @@ -0,0 +1,257 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 CreateDataIngestionJobDetails(object): + """ + **CreateDataIngestionJobDetails** + + The data to create a data ingestion job. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateDataIngestionJobDetails 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 CreateDataIngestionJobDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this CreateDataIngestionJobDetails. + :type description: str + + :param data_source_id: + The value to assign to the data_source_id property of this CreateDataIngestionJobDetails. + :type data_source_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this CreateDataIngestionJobDetails. + :type compartment_id: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateDataIngestionJobDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateDataIngestionJobDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'data_source_id': 'str', + 'compartment_id': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'data_source_id': 'dataSourceId', + 'compartment_id': 'compartmentId', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._data_source_id = None + self._compartment_id = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this CreateDataIngestionJobDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this CreateDataIngestionJobDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this CreateDataIngestionJobDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this CreateDataIngestionJobDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this CreateDataIngestionJobDetails. + A user-friendly description of the data ingestion job. + + + :return: The description of this CreateDataIngestionJobDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateDataIngestionJobDetails. + A user-friendly description of the data ingestion job. + + + :param description: The description of this CreateDataIngestionJobDetails. + :type: str + """ + self._description = description + + @property + def data_source_id(self): + """ + **[Required]** Gets the data_source_id of this CreateDataIngestionJobDetails. + The `OCID`__ of the parent DataSource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The data_source_id of this CreateDataIngestionJobDetails. + :rtype: str + """ + return self._data_source_id + + @data_source_id.setter + def data_source_id(self, data_source_id): + """ + Sets the data_source_id of this CreateDataIngestionJobDetails. + The `OCID`__ of the parent DataSource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param data_source_id: The data_source_id of this CreateDataIngestionJobDetails. + :type: str + """ + self._data_source_id = data_source_id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateDataIngestionJobDetails. + The `OCID`__ of the compartment to create the data ingestion job in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this CreateDataIngestionJobDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateDataIngestionJobDetails. + The `OCID`__ of the compartment to create the data ingestion job in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this CreateDataIngestionJobDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this CreateDataIngestionJobDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this CreateDataIngestionJobDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this CreateDataIngestionJobDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this CreateDataIngestionJobDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this CreateDataIngestionJobDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this CreateDataIngestionJobDetails. + :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 CreateDataIngestionJobDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this CreateDataIngestionJobDetails. + :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/generative_ai_agent/models/create_data_source_details.py b/src/oci/generative_ai_agent/models/create_data_source_details.py new file mode 100644 index 000000000..5efc20d98 --- /dev/null +++ b/src/oci/generative_ai_agent/models/create_data_source_details.py @@ -0,0 +1,284 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 CreateDataSourceDetails(object): + """ + **CreateDataSourceDetails** + + The data to create a data source. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateDataSourceDetails 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 CreateDataSourceDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this CreateDataSourceDetails. + :type description: str + + :param knowledge_base_id: + The value to assign to the knowledge_base_id property of this CreateDataSourceDetails. + :type knowledge_base_id: str + + :param data_source_config: + The value to assign to the data_source_config property of this CreateDataSourceDetails. + :type data_source_config: oci.generative_ai_agent.models.DataSourceConfig + + :param compartment_id: + The value to assign to the compartment_id property of this CreateDataSourceDetails. + :type compartment_id: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateDataSourceDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateDataSourceDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'knowledge_base_id': 'str', + 'data_source_config': 'DataSourceConfig', + 'compartment_id': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'knowledge_base_id': 'knowledgeBaseId', + 'data_source_config': 'dataSourceConfig', + 'compartment_id': 'compartmentId', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._knowledge_base_id = None + self._data_source_config = None + self._compartment_id = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this CreateDataSourceDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this CreateDataSourceDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this CreateDataSourceDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this CreateDataSourceDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this CreateDataSourceDetails. + A description of the data source. + + + :return: The description of this CreateDataSourceDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateDataSourceDetails. + A description of the data source. + + + :param description: The description of this CreateDataSourceDetails. + :type: str + """ + self._description = description + + @property + def knowledge_base_id(self): + """ + **[Required]** Gets the knowledge_base_id of this CreateDataSourceDetails. + The `OCID`__ of the parent KnowledgeBase. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The knowledge_base_id of this CreateDataSourceDetails. + :rtype: str + """ + return self._knowledge_base_id + + @knowledge_base_id.setter + def knowledge_base_id(self, knowledge_base_id): + """ + Sets the knowledge_base_id of this CreateDataSourceDetails. + The `OCID`__ of the parent KnowledgeBase. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param knowledge_base_id: The knowledge_base_id of this CreateDataSourceDetails. + :type: str + """ + self._knowledge_base_id = knowledge_base_id + + @property + def data_source_config(self): + """ + **[Required]** Gets the data_source_config of this CreateDataSourceDetails. + + :return: The data_source_config of this CreateDataSourceDetails. + :rtype: oci.generative_ai_agent.models.DataSourceConfig + """ + return self._data_source_config + + @data_source_config.setter + def data_source_config(self, data_source_config): + """ + Sets the data_source_config of this CreateDataSourceDetails. + + :param data_source_config: The data_source_config of this CreateDataSourceDetails. + :type: oci.generative_ai_agent.models.DataSourceConfig + """ + self._data_source_config = data_source_config + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateDataSourceDetails. + The `OCID`__ of the compartment to create the data source in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this CreateDataSourceDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateDataSourceDetails. + The `OCID`__ of the compartment to create the data source in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this CreateDataSourceDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this CreateDataSourceDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this CreateDataSourceDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this CreateDataSourceDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this CreateDataSourceDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this CreateDataSourceDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this CreateDataSourceDetails. + :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 CreateDataSourceDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this CreateDataSourceDetails. + :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/generative_ai_agent/models/create_knowledge_base_details.py b/src/oci/generative_ai_agent/models/create_knowledge_base_details.py new file mode 100644 index 000000000..567ab585b --- /dev/null +++ b/src/oci/generative_ai_agent/models/create_knowledge_base_details.py @@ -0,0 +1,249 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 CreateKnowledgeBaseDetails(object): + """ + **CreateKnowledgeBaseDetails** + + The data to create a knowledge base. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateKnowledgeBaseDetails 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 CreateKnowledgeBaseDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this CreateKnowledgeBaseDetails. + :type description: str + + :param index_config: + The value to assign to the index_config property of this CreateKnowledgeBaseDetails. + :type index_config: oci.generative_ai_agent.models.IndexConfig + + :param compartment_id: + The value to assign to the compartment_id property of this CreateKnowledgeBaseDetails. + :type compartment_id: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateKnowledgeBaseDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateKnowledgeBaseDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'index_config': 'IndexConfig', + 'compartment_id': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'index_config': 'indexConfig', + 'compartment_id': 'compartmentId', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._index_config = None + self._compartment_id = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this CreateKnowledgeBaseDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this CreateKnowledgeBaseDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this CreateKnowledgeBaseDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this CreateKnowledgeBaseDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this CreateKnowledgeBaseDetails. + A user-friendly description of the knowledge base. + + + :return: The description of this CreateKnowledgeBaseDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateKnowledgeBaseDetails. + A user-friendly description of the knowledge base. + + + :param description: The description of this CreateKnowledgeBaseDetails. + :type: str + """ + self._description = description + + @property + def index_config(self): + """ + **[Required]** Gets the index_config of this CreateKnowledgeBaseDetails. + + :return: The index_config of this CreateKnowledgeBaseDetails. + :rtype: oci.generative_ai_agent.models.IndexConfig + """ + return self._index_config + + @index_config.setter + def index_config(self, index_config): + """ + Sets the index_config of this CreateKnowledgeBaseDetails. + + :param index_config: The index_config of this CreateKnowledgeBaseDetails. + :type: oci.generative_ai_agent.models.IndexConfig + """ + self._index_config = index_config + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateKnowledgeBaseDetails. + The `OCID`__ of the compartment to create the knowledge base in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this CreateKnowledgeBaseDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateKnowledgeBaseDetails. + The `OCID`__ of the compartment to create the knowledge base in. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this CreateKnowledgeBaseDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this CreateKnowledgeBaseDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this CreateKnowledgeBaseDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this CreateKnowledgeBaseDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this CreateKnowledgeBaseDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this CreateKnowledgeBaseDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this CreateKnowledgeBaseDetails. + :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 CreateKnowledgeBaseDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this CreateKnowledgeBaseDetails. + :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/generative_ai_agent/models/data_ingestion_job.py b/src/oci/generative_ai_agent/models/data_ingestion_job.py new file mode 100644 index 000000000..156bcbe07 --- /dev/null +++ b/src/oci/generative_ai_agent/models/data_ingestion_job.py @@ -0,0 +1,536 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DataIngestionJob(object): + """ + **DataIngestionJob** + + When you create a data source, you specify the location of the data files. To make those files usable by an agent, you must download them into the agent's associated knowledge base, a process known as data ingestion. Data ingestion is a process that extracts data from data source documents, converts it into a structured format suitable for analysis, and then stores it in a knowledge base. + + To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. + + __ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm + """ + + #: A constant which can be used with the lifecycle_state property of a DataIngestionJob. + #: This constant has a value of "ACCEPTED" + LIFECYCLE_STATE_ACCEPTED = "ACCEPTED" + + #: A constant which can be used with the lifecycle_state property of a DataIngestionJob. + #: This constant has a value of "IN_PROGRESS" + LIFECYCLE_STATE_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the lifecycle_state property of a DataIngestionJob. + #: This constant has a value of "WAITING" + LIFECYCLE_STATE_WAITING = "WAITING" + + #: A constant which can be used with the lifecycle_state property of a DataIngestionJob. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + #: A constant which can be used with the lifecycle_state property of a DataIngestionJob. + #: This constant has a value of "SUCCEEDED" + LIFECYCLE_STATE_SUCCEEDED = "SUCCEEDED" + + #: A constant which can be used with the lifecycle_state property of a DataIngestionJob. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a DataIngestionJob. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + def __init__(self, **kwargs): + """ + Initializes a new DataIngestionJob 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 DataIngestionJob. + :type id: str + + :param display_name: + The value to assign to the display_name property of this DataIngestionJob. + :type display_name: str + + :param description: + The value to assign to the description property of this DataIngestionJob. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this DataIngestionJob. + :type compartment_id: str + + :param data_source_id: + The value to assign to the data_source_id property of this DataIngestionJob. + :type data_source_id: str + + :param data_ingestion_job_statistics: + The value to assign to the data_ingestion_job_statistics property of this DataIngestionJob. + :type data_ingestion_job_statistics: oci.generative_ai_agent.models.DataIngestionJobStatistics + + :param time_created: + The value to assign to the time_created property of this DataIngestionJob. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this DataIngestionJob. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this DataIngestionJob. + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "DELETING", "DELETED", '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 DataIngestionJob. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this DataIngestionJob. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this DataIngestionJob. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this DataIngestionJob. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'data_source_id': 'str', + 'data_ingestion_job_statistics': 'DataIngestionJobStatistics', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'data_source_id': 'dataSourceId', + 'data_ingestion_job_statistics': 'dataIngestionJobStatistics', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._compartment_id = None + self._data_source_id = None + self._data_ingestion_job_statistics = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this DataIngestionJob. + The `OCID`__ of the DataIngestionJob. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this DataIngestionJob. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DataIngestionJob. + The `OCID`__ of the DataIngestionJob. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this DataIngestionJob. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this DataIngestionJob. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this DataIngestionJob. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this DataIngestionJob. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this DataIngestionJob. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this DataIngestionJob. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The description of this DataIngestionJob. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this DataIngestionJob. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param description: The description of this DataIngestionJob. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this DataIngestionJob. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this DataIngestionJob. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this DataIngestionJob. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this DataIngestionJob. + :type: str + """ + self._compartment_id = compartment_id + + @property + def data_source_id(self): + """ + **[Required]** Gets the data_source_id of this DataIngestionJob. + The `OCID`__ of the parent DataSource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The data_source_id of this DataIngestionJob. + :rtype: str + """ + return self._data_source_id + + @data_source_id.setter + def data_source_id(self, data_source_id): + """ + Sets the data_source_id of this DataIngestionJob. + The `OCID`__ of the parent DataSource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param data_source_id: The data_source_id of this DataIngestionJob. + :type: str + """ + self._data_source_id = data_source_id + + @property + def data_ingestion_job_statistics(self): + """ + **[Required]** Gets the data_ingestion_job_statistics of this DataIngestionJob. + + :return: The data_ingestion_job_statistics of this DataIngestionJob. + :rtype: oci.generative_ai_agent.models.DataIngestionJobStatistics + """ + return self._data_ingestion_job_statistics + + @data_ingestion_job_statistics.setter + def data_ingestion_job_statistics(self, data_ingestion_job_statistics): + """ + Sets the data_ingestion_job_statistics of this DataIngestionJob. + + :param data_ingestion_job_statistics: The data_ingestion_job_statistics of this DataIngestionJob. + :type: oci.generative_ai_agent.models.DataIngestionJobStatistics + """ + self._data_ingestion_job_statistics = data_ingestion_job_statistics + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this DataIngestionJob. + The date and time the data ingestion job was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this DataIngestionJob. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this DataIngestionJob. + The date and time the data ingestion job was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this DataIngestionJob. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this DataIngestionJob. + The date and time the data ingestion job was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this DataIngestionJob. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this DataIngestionJob. + The date and time the data ingestion job was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this DataIngestionJob. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this DataIngestionJob. + The current state of the data ingestion job. + + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this DataIngestionJob. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this DataIngestionJob. + The current state of the data ingestion job. + + + :param lifecycle_state: The lifecycle_state of this DataIngestionJob. + :type: str + """ + allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "DELETING", "DELETED"] + 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 DataIngestionJob. + A message that describes the current state of the data ingestion job in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this DataIngestionJob. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this DataIngestionJob. + A message that describes the current state of the data ingestion job in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this DataIngestionJob. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + **[Required]** Gets the freeform_tags of this DataIngestionJob. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this DataIngestionJob. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this DataIngestionJob. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this DataIngestionJob. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + **[Required]** Gets the defined_tags of this DataIngestionJob. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this DataIngestionJob. + :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 DataIngestionJob. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this DataIngestionJob. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this DataIngestionJob. + 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 DataIngestionJob. + :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 DataIngestionJob. + 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 DataIngestionJob. + :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/generative_ai_agent/models/data_ingestion_job_collection.py b/src/oci/generative_ai_agent/models/data_ingestion_job_collection.py new file mode 100644 index 000000000..770db92aa --- /dev/null +++ b/src/oci/generative_ai_agent/models/data_ingestion_job_collection.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DataIngestionJobCollection(object): + """ + **DataIngestionJobCollection** + + Results of a data ingestion job search. Contains both DataIngestionJobSummary items and other information, such as metadata. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DataIngestionJobCollection 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 DataIngestionJobCollection. + :type items: list[oci.generative_ai_agent.models.DataIngestionJobSummary] + + """ + self.swagger_types = { + 'items': 'list[DataIngestionJobSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this DataIngestionJobCollection. + List of data ingestion jobs. + + + :return: The items of this DataIngestionJobCollection. + :rtype: list[oci.generative_ai_agent.models.DataIngestionJobSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this DataIngestionJobCollection. + List of data ingestion jobs. + + + :param items: The items of this DataIngestionJobCollection. + :type: list[oci.generative_ai_agent.models.DataIngestionJobSummary] + """ + 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/generative_ai_agent/models/data_ingestion_job_statistics.py b/src/oci/generative_ai_agent/models/data_ingestion_job_statistics.py new file mode 100644 index 000000000..0701dc717 --- /dev/null +++ b/src/oci/generative_ai_agent/models/data_ingestion_job_statistics.py @@ -0,0 +1,136 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DataIngestionJobStatistics(object): + """ + **DataIngestionJobStatistics** + + The statistics of data ingestion job. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DataIngestionJobStatistics object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param number_of_failed_files: + The value to assign to the number_of_failed_files property of this DataIngestionJobStatistics. + :type number_of_failed_files: int + + :param number_of_ingested_files: + The value to assign to the number_of_ingested_files property of this DataIngestionJobStatistics. + :type number_of_ingested_files: int + + :param duration_in_seconds: + The value to assign to the duration_in_seconds property of this DataIngestionJobStatistics. + :type duration_in_seconds: int + + """ + self.swagger_types = { + 'number_of_failed_files': 'int', + 'number_of_ingested_files': 'int', + 'duration_in_seconds': 'int' + } + + self.attribute_map = { + 'number_of_failed_files': 'numberOfFailedFiles', + 'number_of_ingested_files': 'numberOfIngestedFiles', + 'duration_in_seconds': 'durationInSeconds' + } + + self._number_of_failed_files = None + self._number_of_ingested_files = None + self._duration_in_seconds = None + + @property + def number_of_failed_files(self): + """ + Gets the number_of_failed_files of this DataIngestionJobStatistics. + The number of files that have failed during the ingestion. + + + :return: The number_of_failed_files of this DataIngestionJobStatistics. + :rtype: int + """ + return self._number_of_failed_files + + @number_of_failed_files.setter + def number_of_failed_files(self, number_of_failed_files): + """ + Sets the number_of_failed_files of this DataIngestionJobStatistics. + The number of files that have failed during the ingestion. + + + :param number_of_failed_files: The number_of_failed_files of this DataIngestionJobStatistics. + :type: int + """ + self._number_of_failed_files = number_of_failed_files + + @property + def number_of_ingested_files(self): + """ + Gets the number_of_ingested_files of this DataIngestionJobStatistics. + The number of files that have been successfully ingested during the ingestion. + + + :return: The number_of_ingested_files of this DataIngestionJobStatistics. + :rtype: int + """ + return self._number_of_ingested_files + + @number_of_ingested_files.setter + def number_of_ingested_files(self, number_of_ingested_files): + """ + Sets the number_of_ingested_files of this DataIngestionJobStatistics. + The number of files that have been successfully ingested during the ingestion. + + + :param number_of_ingested_files: The number_of_ingested_files of this DataIngestionJobStatistics. + :type: int + """ + self._number_of_ingested_files = number_of_ingested_files + + @property + def duration_in_seconds(self): + """ + Gets the duration_in_seconds of this DataIngestionJobStatistics. + The duration of this ingestion job. + + + :return: The duration_in_seconds of this DataIngestionJobStatistics. + :rtype: int + """ + return self._duration_in_seconds + + @duration_in_seconds.setter + def duration_in_seconds(self, duration_in_seconds): + """ + Sets the duration_in_seconds of this DataIngestionJobStatistics. + The duration of this ingestion job. + + + :param duration_in_seconds: The duration_in_seconds of this DataIngestionJobStatistics. + :type: int + """ + self._duration_in_seconds = duration_in_seconds + + 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/generative_ai_agent/models/data_ingestion_job_summary.py b/src/oci/generative_ai_agent/models/data_ingestion_job_summary.py new file mode 100644 index 000000000..d4a83e930 --- /dev/null +++ b/src/oci/generative_ai_agent/models/data_ingestion_job_summary.py @@ -0,0 +1,469 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DataIngestionJobSummary(object): + """ + **DataIngestionJobSummary** + + Summary information about a data ingestion job. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DataIngestionJobSummary 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 DataIngestionJobSummary. + :type id: str + + :param display_name: + The value to assign to the display_name property of this DataIngestionJobSummary. + :type display_name: str + + :param description: + The value to assign to the description property of this DataIngestionJobSummary. + :type description: str + + :param data_source_id: + The value to assign to the data_source_id property of this DataIngestionJobSummary. + :type data_source_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this DataIngestionJobSummary. + :type compartment_id: str + + :param time_created: + The value to assign to the time_created property of this DataIngestionJobSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this DataIngestionJobSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this DataIngestionJobSummary. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this DataIngestionJobSummary. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this DataIngestionJobSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this DataIngestionJobSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this DataIngestionJobSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'data_source_id': 'str', + 'compartment_id': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'data_source_id': 'dataSourceId', + 'compartment_id': 'compartmentId', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._data_source_id = None + self._compartment_id = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this DataIngestionJobSummary. + The `OCID`__ of the data ingestion job. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this DataIngestionJobSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DataIngestionJobSummary. + The `OCID`__ of the data ingestion job. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this DataIngestionJobSummary. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this DataIngestionJobSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this DataIngestionJobSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this DataIngestionJobSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this DataIngestionJobSummary. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this DataIngestionJobSummary. + A user-friendly description of the DataSource. + + + :return: The description of this DataIngestionJobSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this DataIngestionJobSummary. + A user-friendly description of the DataSource. + + + :param description: The description of this DataIngestionJobSummary. + :type: str + """ + self._description = description + + @property + def data_source_id(self): + """ + **[Required]** Gets the data_source_id of this DataIngestionJobSummary. + The `OCID`__ of the parent DataSource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The data_source_id of this DataIngestionJobSummary. + :rtype: str + """ + return self._data_source_id + + @data_source_id.setter + def data_source_id(self, data_source_id): + """ + Sets the data_source_id of this DataIngestionJobSummary. + The `OCID`__ of the parent DataSource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param data_source_id: The data_source_id of this DataIngestionJobSummary. + :type: str + """ + self._data_source_id = data_source_id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this DataIngestionJobSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this DataIngestionJobSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this DataIngestionJobSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this DataIngestionJobSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this DataIngestionJobSummary. + The date and time the data ingestion job was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this DataIngestionJobSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this DataIngestionJobSummary. + The date and time the data ingestion job was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this DataIngestionJobSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this DataIngestionJobSummary. + The date and time the data ingestion job was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this DataIngestionJobSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this DataIngestionJobSummary. + The date and time the data ingestion job was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this DataIngestionJobSummary. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this DataIngestionJobSummary. + The current state of the data ingestion job. + + + :return: The lifecycle_state of this DataIngestionJobSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this DataIngestionJobSummary. + The current state of the data ingestion job. + + + :param lifecycle_state: The lifecycle_state of this DataIngestionJobSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this DataIngestionJobSummary. + A message that describes the current state of the data ingestion job in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this DataIngestionJobSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this DataIngestionJobSummary. + A message that describes the current state of the data ingestion job in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this DataIngestionJobSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + **[Required]** Gets the freeform_tags of this DataIngestionJobSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this DataIngestionJobSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this DataIngestionJobSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this DataIngestionJobSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + **[Required]** Gets the defined_tags of this DataIngestionJobSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this DataIngestionJobSummary. + :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 DataIngestionJobSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this DataIngestionJobSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this DataIngestionJobSummary. + 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 DataIngestionJobSummary. + :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 DataIngestionJobSummary. + 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 DataIngestionJobSummary. + :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/generative_ai_agent/models/data_source.py b/src/oci/generative_ai_agent/models/data_source.py new file mode 100644 index 000000000..501913906 --- /dev/null +++ b/src/oci/generative_ai_agent/models/data_source.py @@ -0,0 +1,536 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DataSource(object): + """ + **DataSource** + + A data source points to the source of your data. After you add a data source to a knowledge base, you must ingest the data source's data, so that agents using the knowledge base can refer to the data. + + To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. + + __ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm + """ + + #: A constant which can be used with the lifecycle_state property of a DataSource. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a DataSource. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a DataSource. + #: This constant has a value of "INACTIVE" + LIFECYCLE_STATE_INACTIVE = "INACTIVE" + + #: A constant which can be used with the lifecycle_state property of a DataSource. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a DataSource. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a DataSource. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a DataSource. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new DataSource 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 DataSource. + :type id: str + + :param display_name: + The value to assign to the display_name property of this DataSource. + :type display_name: str + + :param description: + The value to assign to the description property of this DataSource. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this DataSource. + :type compartment_id: str + + :param knowledge_base_id: + The value to assign to the knowledge_base_id property of this DataSource. + :type knowledge_base_id: str + + :param data_source_config: + The value to assign to the data_source_config property of this DataSource. + :type data_source_config: oci.generative_ai_agent.models.DataSourceConfig + + :param time_created: + The value to assign to the time_created property of this DataSource. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this DataSource. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this DataSource. + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", '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 DataSource. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this DataSource. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this DataSource. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this DataSource. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'knowledge_base_id': 'str', + 'data_source_config': 'DataSourceConfig', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'knowledge_base_id': 'knowledgeBaseId', + 'data_source_config': 'dataSourceConfig', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._compartment_id = None + self._knowledge_base_id = None + self._data_source_config = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this DataSource. + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this DataSource. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DataSource. + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this DataSource. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this DataSource. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this DataSource. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this DataSource. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this DataSource. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this DataSource. + A description of the data source. + + + :return: The description of this DataSource. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this DataSource. + A description of the data source. + + + :param description: The description of this DataSource. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this DataSource. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this DataSource. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this DataSource. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this DataSource. + :type: str + """ + self._compartment_id = compartment_id + + @property + def knowledge_base_id(self): + """ + **[Required]** Gets the knowledge_base_id of this DataSource. + The `OCID`__ of the parent KnowledgeBase. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The knowledge_base_id of this DataSource. + :rtype: str + """ + return self._knowledge_base_id + + @knowledge_base_id.setter + def knowledge_base_id(self, knowledge_base_id): + """ + Sets the knowledge_base_id of this DataSource. + The `OCID`__ of the parent KnowledgeBase. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param knowledge_base_id: The knowledge_base_id of this DataSource. + :type: str + """ + self._knowledge_base_id = knowledge_base_id + + @property + def data_source_config(self): + """ + **[Required]** Gets the data_source_config of this DataSource. + + :return: The data_source_config of this DataSource. + :rtype: oci.generative_ai_agent.models.DataSourceConfig + """ + return self._data_source_config + + @data_source_config.setter + def data_source_config(self, data_source_config): + """ + Sets the data_source_config of this DataSource. + + :param data_source_config: The data_source_config of this DataSource. + :type: oci.generative_ai_agent.models.DataSourceConfig + """ + self._data_source_config = data_source_config + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this DataSource. + The date and time the data source was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this DataSource. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this DataSource. + The date and time the data source was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this DataSource. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this DataSource. + The date and time the data source was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this DataSource. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this DataSource. + The date and time the data source was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this DataSource. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this DataSource. + The current state of the data source. + + Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this DataSource. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this DataSource. + The current state of the data source. + + + :param lifecycle_state: The lifecycle_state of this DataSource. + :type: str + """ + allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this DataSource. + A message that describes the current state of the data source in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this DataSource. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this DataSource. + A message that describes the current state of the data source in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this DataSource. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + **[Required]** Gets the freeform_tags of this DataSource. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this DataSource. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this DataSource. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this DataSource. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + **[Required]** Gets the defined_tags of this DataSource. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this DataSource. + :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 DataSource. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this DataSource. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this DataSource. + 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 DataSource. + :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 DataSource. + 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 DataSource. + :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/generative_ai_agent/models/data_source_collection.py b/src/oci/generative_ai_agent/models/data_source_collection.py new file mode 100644 index 000000000..4750098f6 --- /dev/null +++ b/src/oci/generative_ai_agent/models/data_source_collection.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DataSourceCollection(object): + """ + **DataSourceCollection** + + Results of a dataSource search. Contains both DataSourceSummary items and other information, such as metadata. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DataSourceCollection 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 DataSourceCollection. + :type items: list[oci.generative_ai_agent.models.DataSourceSummary] + + """ + self.swagger_types = { + 'items': 'list[DataSourceSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this DataSourceCollection. + List of data sources. + + + :return: The items of this DataSourceCollection. + :rtype: list[oci.generative_ai_agent.models.DataSourceSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this DataSourceCollection. + List of data sources. + + + :param items: The items of this DataSourceCollection. + :type: list[oci.generative_ai_agent.models.DataSourceSummary] + """ + 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/generative_ai_agent/models/data_source_config.py b/src/oci/generative_ai_agent/models/data_source_config.py new file mode 100644 index 000000000..7d5c5e3fb --- /dev/null +++ b/src/oci/generative_ai_agent/models/data_source_config.py @@ -0,0 +1,107 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DataSourceConfig(object): + """ + **DataSourceConfig** + + The details of data source. + """ + + #: A constant which can be used with the data_source_config_type property of a DataSourceConfig. + #: This constant has a value of "OCI_OBJECT_STORAGE" + DATA_SOURCE_CONFIG_TYPE_OCI_OBJECT_STORAGE = "OCI_OBJECT_STORAGE" + + def __init__(self, **kwargs): + """ + Initializes a new DataSourceConfig 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.generative_ai_agent.models.OciObjectStorageDataSourceConfig` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param data_source_config_type: + The value to assign to the data_source_config_type property of this DataSourceConfig. + Allowed values for this property are: "OCI_OBJECT_STORAGE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type data_source_config_type: str + + """ + self.swagger_types = { + 'data_source_config_type': 'str' + } + + self.attribute_map = { + 'data_source_config_type': 'dataSourceConfigType' + } + + self._data_source_config_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['dataSourceConfigType'] + + if type == 'OCI_OBJECT_STORAGE': + return 'OciObjectStorageDataSourceConfig' + else: + return 'DataSourceConfig' + + @property + def data_source_config_type(self): + """ + **[Required]** Gets the data_source_config_type of this DataSourceConfig. + The type of the tool. + The allowed values are: + - `OCI_OBJECT_STORAGE`: The data source is OCI Object Storage. + + Allowed values for this property are: "OCI_OBJECT_STORAGE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The data_source_config_type of this DataSourceConfig. + :rtype: str + """ + return self._data_source_config_type + + @data_source_config_type.setter + def data_source_config_type(self, data_source_config_type): + """ + Sets the data_source_config_type of this DataSourceConfig. + The type of the tool. + The allowed values are: + - `OCI_OBJECT_STORAGE`: The data source is OCI Object Storage. + + + :param data_source_config_type: The data_source_config_type of this DataSourceConfig. + :type: str + """ + allowed_values = ["OCI_OBJECT_STORAGE"] + if not value_allowed_none_or_none_sentinel(data_source_config_type, allowed_values): + data_source_config_type = 'UNKNOWN_ENUM_VALUE' + self._data_source_config_type = data_source_config_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/generative_ai_agent/models/data_source_summary.py b/src/oci/generative_ai_agent/models/data_source_summary.py new file mode 100644 index 000000000..8373e7fb0 --- /dev/null +++ b/src/oci/generative_ai_agent/models/data_source_summary.py @@ -0,0 +1,469 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DataSourceSummary(object): + """ + **DataSourceSummary** + + Summary information about a data source. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DataSourceSummary 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 DataSourceSummary. + :type id: str + + :param display_name: + The value to assign to the display_name property of this DataSourceSummary. + :type display_name: str + + :param description: + The value to assign to the description property of this DataSourceSummary. + :type description: str + + :param knowledge_base_id: + The value to assign to the knowledge_base_id property of this DataSourceSummary. + :type knowledge_base_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this DataSourceSummary. + :type compartment_id: str + + :param time_created: + The value to assign to the time_created property of this DataSourceSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this DataSourceSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this DataSourceSummary. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this DataSourceSummary. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this DataSourceSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this DataSourceSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this DataSourceSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'knowledge_base_id': 'str', + 'compartment_id': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'knowledge_base_id': 'knowledgeBaseId', + 'compartment_id': 'compartmentId', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._knowledge_base_id = None + self._compartment_id = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this DataSourceSummary. + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this DataSourceSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this DataSourceSummary. + The `OCID`__ of the data source. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this DataSourceSummary. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this DataSourceSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this DataSourceSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this DataSourceSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this DataSourceSummary. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this DataSourceSummary. + A description of the data source. + + + :return: The description of this DataSourceSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this DataSourceSummary. + A description of the data source. + + + :param description: The description of this DataSourceSummary. + :type: str + """ + self._description = description + + @property + def knowledge_base_id(self): + """ + **[Required]** Gets the knowledge_base_id of this DataSourceSummary. + The `OCID`__ of the parent KnowledgeBase. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The knowledge_base_id of this DataSourceSummary. + :rtype: str + """ + return self._knowledge_base_id + + @knowledge_base_id.setter + def knowledge_base_id(self, knowledge_base_id): + """ + Sets the knowledge_base_id of this DataSourceSummary. + The `OCID`__ of the parent KnowledgeBase. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param knowledge_base_id: The knowledge_base_id of this DataSourceSummary. + :type: str + """ + self._knowledge_base_id = knowledge_base_id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this DataSourceSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this DataSourceSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this DataSourceSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this DataSourceSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this DataSourceSummary. + The date and time the data source was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this DataSourceSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this DataSourceSummary. + The date and time the data source was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this DataSourceSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this DataSourceSummary. + The date and time the DataSource was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this DataSourceSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this DataSourceSummary. + The date and time the DataSource was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this DataSourceSummary. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this DataSourceSummary. + The current state of the data source. + + + :return: The lifecycle_state of this DataSourceSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this DataSourceSummary. + The current state of the data source. + + + :param lifecycle_state: The lifecycle_state of this DataSourceSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this DataSourceSummary. + A message that describes the current state of the data source in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this DataSourceSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this DataSourceSummary. + A message that describes the current state of the data source in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this DataSourceSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + **[Required]** Gets the freeform_tags of this DataSourceSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this DataSourceSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this DataSourceSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this DataSourceSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + **[Required]** Gets the defined_tags of this DataSourceSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this DataSourceSummary. + :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 DataSourceSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this DataSourceSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this DataSourceSummary. + 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 DataSourceSummary. + :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 DataSourceSummary. + 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 DataSourceSummary. + :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/generative_ai_agent/models/database_connection.py b/src/oci/generative_ai_agent/models/database_connection.py new file mode 100644 index 000000000..1b043b2ca --- /dev/null +++ b/src/oci/generative_ai_agent/models/database_connection.py @@ -0,0 +1,107 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DatabaseConnection(object): + """ + **DatabaseConnection** + + The connection type for Databases. + """ + + #: A constant which can be used with the connection_type property of a DatabaseConnection. + #: This constant has a value of "DATABASE_TOOL_CONNECTION" + CONNECTION_TYPE_DATABASE_TOOL_CONNECTION = "DATABASE_TOOL_CONNECTION" + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseConnection 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.generative_ai_agent.models.DatabaseToolConnection` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connection_type: + The value to assign to the connection_type property of this DatabaseConnection. + Allowed values for this property are: "DATABASE_TOOL_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type connection_type: str + + """ + self.swagger_types = { + 'connection_type': 'str' + } + + self.attribute_map = { + 'connection_type': 'connectionType' + } + + self._connection_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['connectionType'] + + if type == 'DATABASE_TOOL_CONNECTION': + return 'DatabaseToolConnection' + else: + return 'DatabaseConnection' + + @property + def connection_type(self): + """ + **[Required]** Gets the connection_type of this DatabaseConnection. + The type of Database connection. + The allowed values are: + - `DATABASE_TOOL_CONNECTION`: This allows the service to connect to a vector store via a Database Tools Connection. + + Allowed values for this property are: "DATABASE_TOOL_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The connection_type of this DatabaseConnection. + :rtype: str + """ + return self._connection_type + + @connection_type.setter + def connection_type(self, connection_type): + """ + Sets the connection_type of this DatabaseConnection. + The type of Database connection. + The allowed values are: + - `DATABASE_TOOL_CONNECTION`: This allows the service to connect to a vector store via a Database Tools Connection. + + + :param connection_type: The connection_type of this DatabaseConnection. + :type: str + """ + allowed_values = ["DATABASE_TOOL_CONNECTION"] + if not value_allowed_none_or_none_sentinel(connection_type, allowed_values): + connection_type = 'UNKNOWN_ENUM_VALUE' + self._connection_type = connection_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/generative_ai_agent/models/database_function.py b/src/oci/generative_ai_agent/models/database_function.py new file mode 100644 index 000000000..85cf4b793 --- /dev/null +++ b/src/oci/generative_ai_agent/models/database_function.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 DatabaseFunction(object): + """ + **DatabaseFunction** + + The details of Database function. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseFunction object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param name: + The value to assign to the name property of this DatabaseFunction. + :type name: str + + """ + self.swagger_types = { + 'name': 'str' + } + + self.attribute_map = { + 'name': 'name' + } + + self._name = None + + @property + def name(self): + """ + **[Required]** Gets the name of this DatabaseFunction. + The name of the Database function. + + + :return: The name of this DatabaseFunction. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this DatabaseFunction. + The name of the Database function. + + + :param name: The name of this DatabaseFunction. + :type: str + """ + self._name = 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/generative_ai_agent/models/database_tool_connection.py b/src/oci/generative_ai_agent/models/database_tool_connection.py new file mode 100644 index 000000000..62c234a4e --- /dev/null +++ b/src/oci/generative_ai_agent/models/database_tool_connection.py @@ -0,0 +1,88 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .database_connection import DatabaseConnection +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 DatabaseToolConnection(DatabaseConnection): + """ + **DatabaseToolConnection** + + The details of the customer Database Tools Connection. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseToolConnection object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent.models.DatabaseToolConnection.connection_type` attribute + of this class is ``DATABASE_TOOL_CONNECTION`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param connection_type: + The value to assign to the connection_type property of this DatabaseToolConnection. + Allowed values for this property are: "DATABASE_TOOL_CONNECTION" + :type connection_type: str + + :param connection_id: + The value to assign to the connection_id property of this DatabaseToolConnection. + :type connection_id: str + + """ + self.swagger_types = { + 'connection_type': 'str', + 'connection_id': 'str' + } + + self.attribute_map = { + 'connection_type': 'connectionType', + 'connection_id': 'connectionId' + } + + self._connection_type = None + self._connection_id = None + self._connection_type = 'DATABASE_TOOL_CONNECTION' + + @property + def connection_id(self): + """ + **[Required]** Gets the connection_id of this DatabaseToolConnection. + The `OCID`__ of the Database Tools Connection. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The connection_id of this DatabaseToolConnection. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """ + Sets the connection_id of this DatabaseToolConnection. + The `OCID`__ of the Database Tools Connection. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param connection_id: The connection_id of this DatabaseToolConnection. + :type: str + """ + self._connection_id = connection_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/generative_ai_agent/models/default_index_config.py b/src/oci/generative_ai_agent/models/default_index_config.py new file mode 100644 index 000000000..eb75cad80 --- /dev/null +++ b/src/oci/generative_ai_agent/models/default_index_config.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .index_config import IndexConfig +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 DefaultIndexConfig(IndexConfig): + """ + **DefaultIndexConfig** + + The default index is service managed vector store on behalf of the customer. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DefaultIndexConfig object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent.models.DefaultIndexConfig.index_config_type` attribute + of this class is ``DEFAULT_INDEX_CONFIG`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param index_config_type: + The value to assign to the index_config_type property of this DefaultIndexConfig. + Allowed values for this property are: "DEFAULT_INDEX_CONFIG", "OCI_OPEN_SEARCH_INDEX_CONFIG", "OCI_DATABASE_CONFIG" + :type index_config_type: str + + :param should_enable_hybrid_search: + The value to assign to the should_enable_hybrid_search property of this DefaultIndexConfig. + :type should_enable_hybrid_search: bool + + """ + self.swagger_types = { + 'index_config_type': 'str', + 'should_enable_hybrid_search': 'bool' + } + + self.attribute_map = { + 'index_config_type': 'indexConfigType', + 'should_enable_hybrid_search': 'shouldEnableHybridSearch' + } + + self._index_config_type = None + self._should_enable_hybrid_search = None + self._index_config_type = 'DEFAULT_INDEX_CONFIG' + + @property + def should_enable_hybrid_search(self): + """ + Gets the should_enable_hybrid_search of this DefaultIndexConfig. + Whether to enable Hybrid search in service managed OpenSearch. + + + :return: The should_enable_hybrid_search of this DefaultIndexConfig. + :rtype: bool + """ + return self._should_enable_hybrid_search + + @should_enable_hybrid_search.setter + def should_enable_hybrid_search(self, should_enable_hybrid_search): + """ + Sets the should_enable_hybrid_search of this DefaultIndexConfig. + Whether to enable Hybrid search in service managed OpenSearch. + + + :param should_enable_hybrid_search: The should_enable_hybrid_search of this DefaultIndexConfig. + :type: bool + """ + self._should_enable_hybrid_search = should_enable_hybrid_search + + 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/generative_ai_agent/models/idcs_secret.py b/src/oci/generative_ai_agent/models/idcs_secret.py new file mode 100644 index 000000000..26bd267c6 --- /dev/null +++ b/src/oci/generative_ai_agent/models/idcs_secret.py @@ -0,0 +1,181 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .secret_detail import SecretDetail +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 IdcsSecret(SecretDetail): + """ + **IdcsSecret** + + The details of IDCS configured as OpenID setting in OpenSearch. + """ + + def __init__(self, **kwargs): + """ + Initializes a new IdcsSecret object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent.models.IdcsSecret.type` attribute + of this class is ``IDCS_SECRET`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param type: + The value to assign to the type property of this IdcsSecret. + Allowed values for this property are: "IDCS_SECRET", "BASIC_AUTH_SECRET" + :type type: str + + :param idcs_url: + The value to assign to the idcs_url property of this IdcsSecret. + :type idcs_url: str + + :param client_id: + The value to assign to the client_id property of this IdcsSecret. + :type client_id: str + + :param vault_secret_id: + The value to assign to the vault_secret_id property of this IdcsSecret. + :type vault_secret_id: str + + :param scope_url: + The value to assign to the scope_url property of this IdcsSecret. + :type scope_url: str + + """ + self.swagger_types = { + 'type': 'str', + 'idcs_url': 'str', + 'client_id': 'str', + 'vault_secret_id': 'str', + 'scope_url': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'idcs_url': 'idcsUrl', + 'client_id': 'clientId', + 'vault_secret_id': 'vaultSecretId', + 'scope_url': 'scopeUrl' + } + + self._type = None + self._idcs_url = None + self._client_id = None + self._vault_secret_id = None + self._scope_url = None + self._type = 'IDCS_SECRET' + + @property + def idcs_url(self): + """ + **[Required]** Gets the idcs_url of this IdcsSecret. + The URL represent authentication url of the IDCS. + + + :return: The idcs_url of this IdcsSecret. + :rtype: str + """ + return self._idcs_url + + @idcs_url.setter + def idcs_url(self, idcs_url): + """ + Sets the idcs_url of this IdcsSecret. + The URL represent authentication url of the IDCS. + + + :param idcs_url: The idcs_url of this IdcsSecret. + :type: str + """ + self._idcs_url = idcs_url + + @property + def client_id(self): + """ + **[Required]** Gets the client_id of this IdcsSecret. + The IDCS Connect clientId. + + + :return: The client_id of this IdcsSecret. + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """ + Sets the client_id of this IdcsSecret. + The IDCS Connect clientId. + + + :param client_id: The client_id of this IdcsSecret. + :type: str + """ + self._client_id = client_id + + @property + def vault_secret_id(self): + """ + **[Required]** Gets the vault_secret_id of this IdcsSecret. + The `OCID`__ of the secret for client secret. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The vault_secret_id of this IdcsSecret. + :rtype: str + """ + return self._vault_secret_id + + @vault_secret_id.setter + def vault_secret_id(self, vault_secret_id): + """ + Sets the vault_secret_id of this IdcsSecret. + The `OCID`__ of the secret for client secret. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param vault_secret_id: The vault_secret_id of this IdcsSecret. + :type: str + """ + self._vault_secret_id = vault_secret_id + + @property + def scope_url(self): + """ + **[Required]** Gets the scope_url of this IdcsSecret. + Fully qualified scope url + + + :return: The scope_url of this IdcsSecret. + :rtype: str + """ + return self._scope_url + + @scope_url.setter + def scope_url(self, scope_url): + """ + Sets the scope_url of this IdcsSecret. + Fully qualified scope url + + + :param scope_url: The scope_url of this IdcsSecret. + :type: str + """ + self._scope_url = scope_url + + 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/generative_ai_agent/models/index.py b/src/oci/generative_ai_agent/models/index.py new file mode 100644 index 000000000..134c092d7 --- /dev/null +++ b/src/oci/generative_ai_agent/models/index.py @@ -0,0 +1,101 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 Index(object): + """ + **Index** + + OCI OpenSearch index details. + """ + + def __init__(self, **kwargs): + """ + Initializes a new Index object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param name: + The value to assign to the name property of this Index. + :type name: str + + :param schema: + The value to assign to the schema property of this Index. + :type schema: oci.generative_ai_agent.models.IndexSchema + + """ + self.swagger_types = { + 'name': 'str', + 'schema': 'IndexSchema' + } + + self.attribute_map = { + 'name': 'name', + 'schema': 'schema' + } + + self._name = None + self._schema = None + + @property + def name(self): + """ + **[Required]** Gets the name of this Index. + The index name in opensearch. + + + :return: The name of this Index. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this Index. + The index name in opensearch. + + + :param name: The name of this Index. + :type: str + """ + self._name = name + + @property + def schema(self): + """ + **[Required]** Gets the schema of this Index. + + :return: The schema of this Index. + :rtype: oci.generative_ai_agent.models.IndexSchema + """ + return self._schema + + @schema.setter + def schema(self, schema): + """ + Sets the schema of this Index. + + :param schema: The schema of this Index. + :type: oci.generative_ai_agent.models.IndexSchema + """ + self._schema = schema + + 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/generative_ai_agent/models/index_config.py b/src/oci/generative_ai_agent/models/index_config.py new file mode 100644 index 000000000..dce7beb83 --- /dev/null +++ b/src/oci/generative_ai_agent/models/index_config.py @@ -0,0 +1,127 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 IndexConfig(object): + """ + **IndexConfig** + + The index configuration of Knowledge bases. + """ + + #: A constant which can be used with the index_config_type property of a IndexConfig. + #: This constant has a value of "DEFAULT_INDEX_CONFIG" + INDEX_CONFIG_TYPE_DEFAULT_INDEX_CONFIG = "DEFAULT_INDEX_CONFIG" + + #: A constant which can be used with the index_config_type property of a IndexConfig. + #: This constant has a value of "OCI_OPEN_SEARCH_INDEX_CONFIG" + INDEX_CONFIG_TYPE_OCI_OPEN_SEARCH_INDEX_CONFIG = "OCI_OPEN_SEARCH_INDEX_CONFIG" + + #: A constant which can be used with the index_config_type property of a IndexConfig. + #: This constant has a value of "OCI_DATABASE_CONFIG" + INDEX_CONFIG_TYPE_OCI_DATABASE_CONFIG = "OCI_DATABASE_CONFIG" + + def __init__(self, **kwargs): + """ + Initializes a new IndexConfig 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.generative_ai_agent.models.DefaultIndexConfig` + * :class:`~oci.generative_ai_agent.models.OciDatabaseConfig` + * :class:`~oci.generative_ai_agent.models.OciOpenSearchIndexConfig` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param index_config_type: + The value to assign to the index_config_type property of this IndexConfig. + Allowed values for this property are: "DEFAULT_INDEX_CONFIG", "OCI_OPEN_SEARCH_INDEX_CONFIG", "OCI_DATABASE_CONFIG", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type index_config_type: str + + """ + self.swagger_types = { + 'index_config_type': 'str' + } + + self.attribute_map = { + 'index_config_type': 'indexConfigType' + } + + self._index_config_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['indexConfigType'] + + if type == 'DEFAULT_INDEX_CONFIG': + return 'DefaultIndexConfig' + + if type == 'OCI_DATABASE_CONFIG': + return 'OciDatabaseConfig' + + if type == 'OCI_OPEN_SEARCH_INDEX_CONFIG': + return 'OciOpenSearchIndexConfig' + else: + return 'IndexConfig' + + @property + def index_config_type(self): + """ + **[Required]** Gets the index_config_type of this IndexConfig. + The type of index. + The allowed values are: + - `DEFAULT_INDEX_CONFIG`: DefaultIndexConfig allows the service to create and manage vector store on behalf of the customer. + - `OCI_OPEN_SEARCH_INDEX_CONFIG`: OciOpenSearchIndexConfig allows customer to configure their OpenSearch cluster. + - `OCI_DATABASE_CONFIG`: OciDatabaseConfig allows customer to configure their Database. + + Allowed values for this property are: "DEFAULT_INDEX_CONFIG", "OCI_OPEN_SEARCH_INDEX_CONFIG", "OCI_DATABASE_CONFIG", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The index_config_type of this IndexConfig. + :rtype: str + """ + return self._index_config_type + + @index_config_type.setter + def index_config_type(self, index_config_type): + """ + Sets the index_config_type of this IndexConfig. + The type of index. + The allowed values are: + - `DEFAULT_INDEX_CONFIG`: DefaultIndexConfig allows the service to create and manage vector store on behalf of the customer. + - `OCI_OPEN_SEARCH_INDEX_CONFIG`: OciOpenSearchIndexConfig allows customer to configure their OpenSearch cluster. + - `OCI_DATABASE_CONFIG`: OciDatabaseConfig allows customer to configure their Database. + + + :param index_config_type: The index_config_type of this IndexConfig. + :type: str + """ + allowed_values = ["DEFAULT_INDEX_CONFIG", "OCI_OPEN_SEARCH_INDEX_CONFIG", "OCI_DATABASE_CONFIG"] + if not value_allowed_none_or_none_sentinel(index_config_type, allowed_values): + index_config_type = 'UNKNOWN_ENUM_VALUE' + self._index_config_type = index_config_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/generative_ai_agent/models/index_schema.py b/src/oci/generative_ai_agent/models/index_schema.py new file mode 100644 index 000000000..c5474b432 --- /dev/null +++ b/src/oci/generative_ai_agent/models/index_schema.py @@ -0,0 +1,167 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 IndexSchema(object): + """ + **IndexSchema** + + The index schema details. + """ + + def __init__(self, **kwargs): + """ + Initializes a new IndexSchema object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param body_key: + The value to assign to the body_key property of this IndexSchema. + :type body_key: str + + :param url_key: + The value to assign to the url_key property of this IndexSchema. + :type url_key: str + + :param title_key: + The value to assign to the title_key property of this IndexSchema. + :type title_key: str + + :param embedding_body_key: + The value to assign to the embedding_body_key property of this IndexSchema. + :type embedding_body_key: str + + """ + self.swagger_types = { + 'body_key': 'str', + 'url_key': 'str', + 'title_key': 'str', + 'embedding_body_key': 'str' + } + + self.attribute_map = { + 'body_key': 'bodyKey', + 'url_key': 'urlKey', + 'title_key': 'titleKey', + 'embedding_body_key': 'embeddingBodyKey' + } + + self._body_key = None + self._url_key = None + self._title_key = None + self._embedding_body_key = None + + @property + def body_key(self): + """ + **[Required]** Gets the body_key of this IndexSchema. + Body key name. + + + :return: The body_key of this IndexSchema. + :rtype: str + """ + return self._body_key + + @body_key.setter + def body_key(self, body_key): + """ + Sets the body_key of this IndexSchema. + Body key name. + + + :param body_key: The body_key of this IndexSchema. + :type: str + """ + self._body_key = body_key + + @property + def url_key(self): + """ + Gets the url_key of this IndexSchema. + URL key that stores the URL of a document, if available. + + + :return: The url_key of this IndexSchema. + :rtype: str + """ + return self._url_key + + @url_key.setter + def url_key(self, url_key): + """ + Sets the url_key of this IndexSchema. + URL key that stores the URL of a document, if available. + + + :param url_key: The url_key of this IndexSchema. + :type: str + """ + self._url_key = url_key + + @property + def title_key(self): + """ + Gets the title_key of this IndexSchema. + Title key that stores the Title of a document, if available. + + + :return: The title_key of this IndexSchema. + :rtype: str + """ + return self._title_key + + @title_key.setter + def title_key(self, title_key): + """ + Sets the title_key of this IndexSchema. + Title key that stores the Title of a document, if available. + + + :param title_key: The title_key of this IndexSchema. + :type: str + """ + self._title_key = title_key + + @property + def embedding_body_key(self): + """ + Gets the embedding_body_key of this IndexSchema. + Field within customer managed OCI OpenSearch document containing the vector embedding for queries. + + + :return: The embedding_body_key of this IndexSchema. + :rtype: str + """ + return self._embedding_body_key + + @embedding_body_key.setter + def embedding_body_key(self, embedding_body_key): + """ + Sets the embedding_body_key of this IndexSchema. + Field within customer managed OCI OpenSearch document containing the vector embedding for queries. + + + :param embedding_body_key: The embedding_body_key of this IndexSchema. + :type: str + """ + self._embedding_body_key = embedding_body_key + + 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/generative_ai_agent/models/knowledge_base.py b/src/oci/generative_ai_agent/models/knowledge_base.py new file mode 100644 index 000000000..d842603e4 --- /dev/null +++ b/src/oci/generative_ai_agent/models/knowledge_base.py @@ -0,0 +1,501 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 KnowledgeBase(object): + """ + **KnowledgeBase** + + A knowledge base is the base for all the data sources that an agent can use to retrieve information for its responses. + + To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see `Getting Started with Policies`__. + + __ https://docs.cloud.oracle.com/iaas/Content/Identity/policiesgs/get-started-with-policies.htm + """ + + #: A constant which can be used with the lifecycle_state property of a KnowledgeBase. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a KnowledgeBase. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a KnowledgeBase. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a KnowledgeBase. + #: This constant has a value of "INACTIVE" + LIFECYCLE_STATE_INACTIVE = "INACTIVE" + + #: A constant which can be used with the lifecycle_state property of a KnowledgeBase. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a KnowledgeBase. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a KnowledgeBase. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new KnowledgeBase 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 KnowledgeBase. + :type id: str + + :param display_name: + The value to assign to the display_name property of this KnowledgeBase. + :type display_name: str + + :param description: + The value to assign to the description property of this KnowledgeBase. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this KnowledgeBase. + :type compartment_id: str + + :param index_config: + The value to assign to the index_config property of this KnowledgeBase. + :type index_config: oci.generative_ai_agent.models.IndexConfig + + :param time_created: + The value to assign to the time_created property of this KnowledgeBase. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this KnowledgeBase. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this KnowledgeBase. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", '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 KnowledgeBase. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this KnowledgeBase. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this KnowledgeBase. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this KnowledgeBase. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'index_config': 'IndexConfig', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'index_config': 'indexConfig', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._compartment_id = None + self._index_config = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this KnowledgeBase. + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this KnowledgeBase. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this KnowledgeBase. + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this KnowledgeBase. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this KnowledgeBase. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this KnowledgeBase. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this KnowledgeBase. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this KnowledgeBase. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this KnowledgeBase. + A description of the knowledge base. + + + :return: The description of this KnowledgeBase. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this KnowledgeBase. + A description of the knowledge base. + + + :param description: The description of this KnowledgeBase. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this KnowledgeBase. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this KnowledgeBase. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this KnowledgeBase. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this KnowledgeBase. + :type: str + """ + self._compartment_id = compartment_id + + @property + def index_config(self): + """ + **[Required]** Gets the index_config of this KnowledgeBase. + + :return: The index_config of this KnowledgeBase. + :rtype: oci.generative_ai_agent.models.IndexConfig + """ + return self._index_config + + @index_config.setter + def index_config(self, index_config): + """ + Sets the index_config of this KnowledgeBase. + + :param index_config: The index_config of this KnowledgeBase. + :type: oci.generative_ai_agent.models.IndexConfig + """ + self._index_config = index_config + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this KnowledgeBase. + The date and time the knowledge base was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this KnowledgeBase. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this KnowledgeBase. + The date and time the knowledge base was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this KnowledgeBase. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this KnowledgeBase. + The date and time the knowledge base was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this KnowledgeBase. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this KnowledgeBase. + The date and time the knowledge base was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this KnowledgeBase. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this KnowledgeBase. + The current state of the knowledge base. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this KnowledgeBase. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this KnowledgeBase. + The current state of the knowledge base. + + + :param lifecycle_state: The lifecycle_state of this KnowledgeBase. + :type: str + """ + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this KnowledgeBase. + A message that describes the current state of the knowledge base in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this KnowledgeBase. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this KnowledgeBase. + A message that describes the current state of the knowledge base in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this KnowledgeBase. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + **[Required]** Gets the freeform_tags of this KnowledgeBase. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this KnowledgeBase. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this KnowledgeBase. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this KnowledgeBase. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + **[Required]** Gets the defined_tags of this KnowledgeBase. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this KnowledgeBase. + :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 KnowledgeBase. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this KnowledgeBase. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this KnowledgeBase. + 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 KnowledgeBase. + :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 KnowledgeBase. + 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 KnowledgeBase. + :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/generative_ai_agent/models/knowledge_base_collection.py b/src/oci/generative_ai_agent/models/knowledge_base_collection.py new file mode 100644 index 000000000..90a44cadb --- /dev/null +++ b/src/oci/generative_ai_agent/models/knowledge_base_collection.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 KnowledgeBaseCollection(object): + """ + **KnowledgeBaseCollection** + + Results of a knowledge base search. Contains both KnowledgeBaseSummary items and other information, such as metadata. + """ + + def __init__(self, **kwargs): + """ + Initializes a new KnowledgeBaseCollection 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 KnowledgeBaseCollection. + :type items: list[oci.generative_ai_agent.models.KnowledgeBaseSummary] + + """ + self.swagger_types = { + 'items': 'list[KnowledgeBaseSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this KnowledgeBaseCollection. + List of knowledge bases. + + + :return: The items of this KnowledgeBaseCollection. + :rtype: list[oci.generative_ai_agent.models.KnowledgeBaseSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this KnowledgeBaseCollection. + List of knowledge bases. + + + :param items: The items of this KnowledgeBaseCollection. + :type: list[oci.generative_ai_agent.models.KnowledgeBaseSummary] + """ + 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/generative_ai_agent/models/knowledge_base_summary.py b/src/oci/generative_ai_agent/models/knowledge_base_summary.py new file mode 100644 index 000000000..f01290afb --- /dev/null +++ b/src/oci/generative_ai_agent/models/knowledge_base_summary.py @@ -0,0 +1,434 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 KnowledgeBaseSummary(object): + """ + **KnowledgeBaseSummary** + + Summary information about a knowledge base. + """ + + def __init__(self, **kwargs): + """ + Initializes a new KnowledgeBaseSummary 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 KnowledgeBaseSummary. + :type id: str + + :param display_name: + The value to assign to the display_name property of this KnowledgeBaseSummary. + :type display_name: str + + :param description: + The value to assign to the description property of this KnowledgeBaseSummary. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this KnowledgeBaseSummary. + :type compartment_id: str + + :param time_created: + The value to assign to the time_created property of this KnowledgeBaseSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this KnowledgeBaseSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this KnowledgeBaseSummary. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this KnowledgeBaseSummary. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this KnowledgeBaseSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this KnowledgeBaseSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this KnowledgeBaseSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': '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', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._display_name = None + self._description = None + self._compartment_id = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this KnowledgeBaseSummary. + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this KnowledgeBaseSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this KnowledgeBaseSummary. + The `OCID`__ of the knowledge base. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this KnowledgeBaseSummary. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this KnowledgeBaseSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :return: The display_name of this KnowledgeBaseSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this KnowledgeBaseSummary. + A user-friendly name. Does not have to be unique, and it's changeable. + + + :param display_name: The display_name of this KnowledgeBaseSummary. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this KnowledgeBaseSummary. + A user-friendly description of the knowledge base. + + + :return: The description of this KnowledgeBaseSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this KnowledgeBaseSummary. + A user-friendly description of the knowledge base. + + + :param description: The description of this KnowledgeBaseSummary. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this KnowledgeBaseSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this KnowledgeBaseSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this KnowledgeBaseSummary. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this KnowledgeBaseSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this KnowledgeBaseSummary. + The date and time the knowledge base was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_created of this KnowledgeBaseSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this KnowledgeBaseSummary. + The date and time the knowledge base was created, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_created: The time_created of this KnowledgeBaseSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this KnowledgeBaseSummary. + The date and time the knowledge base was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_updated of this KnowledgeBaseSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this KnowledgeBaseSummary. + The date and time the knowledge base was updated, in the format defined by `RFC 3339`__. + + Example: `2016-08-25T21:10:29.600Z` + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_updated: The time_updated of this KnowledgeBaseSummary. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this KnowledgeBaseSummary. + The current state of the knowledge base. + + + :return: The lifecycle_state of this KnowledgeBaseSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this KnowledgeBaseSummary. + The current state of the knowledge base. + + + :param lifecycle_state: The lifecycle_state of this KnowledgeBaseSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this KnowledgeBaseSummary. + A message that describes the current state of the knowledge base in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :return: The lifecycle_details of this KnowledgeBaseSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this KnowledgeBaseSummary. + A message that describes the current state of the knowledge base in more detail. For example, + can be used to provide actionable information for a resource in the Failed state. + + + :param lifecycle_details: The lifecycle_details of this KnowledgeBaseSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + **[Required]** Gets the freeform_tags of this KnowledgeBaseSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this KnowledgeBaseSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this KnowledgeBaseSummary. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this KnowledgeBaseSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + **[Required]** Gets the defined_tags of this KnowledgeBaseSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this KnowledgeBaseSummary. + :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 KnowledgeBaseSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this KnowledgeBaseSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this KnowledgeBaseSummary. + 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 KnowledgeBaseSummary. + :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 KnowledgeBaseSummary. + 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 KnowledgeBaseSummary. + :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/generative_ai_agent/models/object_storage_prefix.py b/src/oci/generative_ai_agent/models/object_storage_prefix.py new file mode 100644 index 000000000..29e803490 --- /dev/null +++ b/src/oci/generative_ai_agent/models/object_storage_prefix.py @@ -0,0 +1,136 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 ObjectStoragePrefix(object): + """ + **ObjectStoragePrefix** + + The details of OCI Object Storage object. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ObjectStoragePrefix object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param namespace_name: + The value to assign to the namespace_name property of this ObjectStoragePrefix. + :type namespace_name: str + + :param bucket_name: + The value to assign to the bucket_name property of this ObjectStoragePrefix. + :type bucket_name: str + + :param prefix: + The value to assign to the prefix property of this ObjectStoragePrefix. + :type prefix: str + + """ + self.swagger_types = { + 'namespace_name': 'str', + 'bucket_name': 'str', + 'prefix': 'str' + } + + self.attribute_map = { + 'namespace_name': 'namespaceName', + 'bucket_name': 'bucketName', + 'prefix': 'prefix' + } + + self._namespace_name = None + self._bucket_name = None + self._prefix = None + + @property + def namespace_name(self): + """ + **[Required]** Gets the namespace_name of this ObjectStoragePrefix. + The namespace name of an object. + + + :return: The namespace_name of this ObjectStoragePrefix. + :rtype: str + """ + return self._namespace_name + + @namespace_name.setter + def namespace_name(self, namespace_name): + """ + Sets the namespace_name of this ObjectStoragePrefix. + The namespace name of an object. + + + :param namespace_name: The namespace_name of this ObjectStoragePrefix. + :type: str + """ + self._namespace_name = namespace_name + + @property + def bucket_name(self): + """ + **[Required]** Gets the bucket_name of this ObjectStoragePrefix. + The bucket name of an object. + + + :return: The bucket_name of this ObjectStoragePrefix. + :rtype: str + """ + return self._bucket_name + + @bucket_name.setter + def bucket_name(self, bucket_name): + """ + Sets the bucket_name of this ObjectStoragePrefix. + The bucket name of an object. + + + :param bucket_name: The bucket_name of this ObjectStoragePrefix. + :type: str + """ + self._bucket_name = bucket_name + + @property + def prefix(self): + """ + Gets the prefix of this ObjectStoragePrefix. + The name of the object (file) or prefix (folder). + + + :return: The prefix of this ObjectStoragePrefix. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """ + Sets the prefix of this ObjectStoragePrefix. + The name of the object (file) or prefix (folder). + + + :param prefix: The prefix of this ObjectStoragePrefix. + :type: str + """ + self._prefix = prefix + + 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/generative_ai_agent/models/oci_database_config.py b/src/oci/generative_ai_agent/models/oci_database_config.py new file mode 100644 index 000000000..d6d21f360 --- /dev/null +++ b/src/oci/generative_ai_agent/models/oci_database_config.py @@ -0,0 +1,111 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .index_config import IndexConfig +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 OciDatabaseConfig(IndexConfig): + """ + **OciDatabaseConfig** + + The details of the customer Database Connection. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OciDatabaseConfig object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent.models.OciDatabaseConfig.index_config_type` attribute + of this class is ``OCI_DATABASE_CONFIG`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param index_config_type: + The value to assign to the index_config_type property of this OciDatabaseConfig. + Allowed values for this property are: "DEFAULT_INDEX_CONFIG", "OCI_OPEN_SEARCH_INDEX_CONFIG", "OCI_DATABASE_CONFIG" + :type index_config_type: str + + :param database_connection: + The value to assign to the database_connection property of this OciDatabaseConfig. + :type database_connection: oci.generative_ai_agent.models.DatabaseConnection + + :param database_functions: + The value to assign to the database_functions property of this OciDatabaseConfig. + :type database_functions: list[oci.generative_ai_agent.models.DatabaseFunction] + + """ + self.swagger_types = { + 'index_config_type': 'str', + 'database_connection': 'DatabaseConnection', + 'database_functions': 'list[DatabaseFunction]' + } + + self.attribute_map = { + 'index_config_type': 'indexConfigType', + 'database_connection': 'databaseConnection', + 'database_functions': 'databaseFunctions' + } + + self._index_config_type = None + self._database_connection = None + self._database_functions = None + self._index_config_type = 'OCI_DATABASE_CONFIG' + + @property + def database_connection(self): + """ + **[Required]** Gets the database_connection of this OciDatabaseConfig. + + :return: The database_connection of this OciDatabaseConfig. + :rtype: oci.generative_ai_agent.models.DatabaseConnection + """ + return self._database_connection + + @database_connection.setter + def database_connection(self, database_connection): + """ + Sets the database_connection of this OciDatabaseConfig. + + :param database_connection: The database_connection of this OciDatabaseConfig. + :type: oci.generative_ai_agent.models.DatabaseConnection + """ + self._database_connection = database_connection + + @property + def database_functions(self): + """ + **[Required]** Gets the database_functions of this OciDatabaseConfig. + Array of Database functions to be used. + + + :return: The database_functions of this OciDatabaseConfig. + :rtype: list[oci.generative_ai_agent.models.DatabaseFunction] + """ + return self._database_functions + + @database_functions.setter + def database_functions(self, database_functions): + """ + Sets the database_functions of this OciDatabaseConfig. + Array of Database functions to be used. + + + :param database_functions: The database_functions of this OciDatabaseConfig. + :type: list[oci.generative_ai_agent.models.DatabaseFunction] + """ + self._database_functions = database_functions + + 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/generative_ai_agent/models/oci_object_storage_data_source_config.py b/src/oci/generative_ai_agent/models/oci_object_storage_data_source_config.py new file mode 100644 index 000000000..88e1a78a5 --- /dev/null +++ b/src/oci/generative_ai_agent/models/oci_object_storage_data_source_config.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .data_source_config import DataSourceConfig +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 OciObjectStorageDataSourceConfig(DataSourceConfig): + """ + **OciObjectStorageDataSourceConfig** + + The details of OCI Search with OpenSearch data source information. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OciObjectStorageDataSourceConfig object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent.models.OciObjectStorageDataSourceConfig.data_source_config_type` attribute + of this class is ``OCI_OBJECT_STORAGE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param data_source_config_type: + The value to assign to the data_source_config_type property of this OciObjectStorageDataSourceConfig. + Allowed values for this property are: "OCI_OBJECT_STORAGE" + :type data_source_config_type: str + + :param object_storage_prefixes: + The value to assign to the object_storage_prefixes property of this OciObjectStorageDataSourceConfig. + :type object_storage_prefixes: list[oci.generative_ai_agent.models.ObjectStoragePrefix] + + """ + self.swagger_types = { + 'data_source_config_type': 'str', + 'object_storage_prefixes': 'list[ObjectStoragePrefix]' + } + + self.attribute_map = { + 'data_source_config_type': 'dataSourceConfigType', + 'object_storage_prefixes': 'objectStoragePrefixes' + } + + self._data_source_config_type = None + self._object_storage_prefixes = None + self._data_source_config_type = 'OCI_OBJECT_STORAGE' + + @property + def object_storage_prefixes(self): + """ + **[Required]** Gets the object_storage_prefixes of this OciObjectStorageDataSourceConfig. + The locations of data items in Object Storage, can either be an object (File) or a prefix (folder). + + + :return: The object_storage_prefixes of this OciObjectStorageDataSourceConfig. + :rtype: list[oci.generative_ai_agent.models.ObjectStoragePrefix] + """ + return self._object_storage_prefixes + + @object_storage_prefixes.setter + def object_storage_prefixes(self, object_storage_prefixes): + """ + Sets the object_storage_prefixes of this OciObjectStorageDataSourceConfig. + The locations of data items in Object Storage, can either be an object (File) or a prefix (folder). + + + :param object_storage_prefixes: The object_storage_prefixes of this OciObjectStorageDataSourceConfig. + :type: list[oci.generative_ai_agent.models.ObjectStoragePrefix] + """ + self._object_storage_prefixes = object_storage_prefixes + + 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/generative_ai_agent/models/oci_open_search_index_config.py b/src/oci/generative_ai_agent/models/oci_open_search_index_config.py new file mode 100644 index 000000000..3e0ec53bd --- /dev/null +++ b/src/oci/generative_ai_agent/models/oci_open_search_index_config.py @@ -0,0 +1,146 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .index_config import IndexConfig +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 OciOpenSearchIndexConfig(IndexConfig): + """ + **OciOpenSearchIndexConfig** + + The details of customer managed OCI OpenSearch. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OciOpenSearchIndexConfig object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent.models.OciOpenSearchIndexConfig.index_config_type` attribute + of this class is ``OCI_OPEN_SEARCH_INDEX_CONFIG`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param index_config_type: + The value to assign to the index_config_type property of this OciOpenSearchIndexConfig. + Allowed values for this property are: "DEFAULT_INDEX_CONFIG", "OCI_OPEN_SEARCH_INDEX_CONFIG", "OCI_DATABASE_CONFIG" + :type index_config_type: str + + :param cluster_id: + The value to assign to the cluster_id property of this OciOpenSearchIndexConfig. + :type cluster_id: str + + :param secret_detail: + The value to assign to the secret_detail property of this OciOpenSearchIndexConfig. + :type secret_detail: oci.generative_ai_agent.models.SecretDetail + + :param indexes: + The value to assign to the indexes property of this OciOpenSearchIndexConfig. + :type indexes: list[oci.generative_ai_agent.models.Index] + + """ + self.swagger_types = { + 'index_config_type': 'str', + 'cluster_id': 'str', + 'secret_detail': 'SecretDetail', + 'indexes': 'list[Index]' + } + + self.attribute_map = { + 'index_config_type': 'indexConfigType', + 'cluster_id': 'clusterId', + 'secret_detail': 'secretDetail', + 'indexes': 'indexes' + } + + self._index_config_type = None + self._cluster_id = None + self._secret_detail = None + self._indexes = None + self._index_config_type = 'OCI_OPEN_SEARCH_INDEX_CONFIG' + + @property + def cluster_id(self): + """ + **[Required]** Gets the cluster_id of this OciOpenSearchIndexConfig. + The `OCID`__ of the OpenSearch Cluster. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The cluster_id of this OciOpenSearchIndexConfig. + :rtype: str + """ + return self._cluster_id + + @cluster_id.setter + def cluster_id(self, cluster_id): + """ + Sets the cluster_id of this OciOpenSearchIndexConfig. + The `OCID`__ of the OpenSearch Cluster. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param cluster_id: The cluster_id of this OciOpenSearchIndexConfig. + :type: str + """ + self._cluster_id = cluster_id + + @property + def secret_detail(self): + """ + **[Required]** Gets the secret_detail of this OciOpenSearchIndexConfig. + + :return: The secret_detail of this OciOpenSearchIndexConfig. + :rtype: oci.generative_ai_agent.models.SecretDetail + """ + return self._secret_detail + + @secret_detail.setter + def secret_detail(self, secret_detail): + """ + Sets the secret_detail of this OciOpenSearchIndexConfig. + + :param secret_detail: The secret_detail of this OciOpenSearchIndexConfig. + :type: oci.generative_ai_agent.models.SecretDetail + """ + self._secret_detail = secret_detail + + @property + def indexes(self): + """ + **[Required]** Gets the indexes of this OciOpenSearchIndexConfig. + Index configuration for open search. + + + :return: The indexes of this OciOpenSearchIndexConfig. + :rtype: list[oci.generative_ai_agent.models.Index] + """ + return self._indexes + + @indexes.setter + def indexes(self, indexes): + """ + Sets the indexes of this OciOpenSearchIndexConfig. + Index configuration for open search. + + + :param indexes: The indexes of this OciOpenSearchIndexConfig. + :type: list[oci.generative_ai_agent.models.Index] + """ + self._indexes = indexes + + 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/generative_ai_agent/models/secret_detail.py b/src/oci/generative_ai_agent/models/secret_detail.py new file mode 100644 index 000000000..b52fc6524 --- /dev/null +++ b/src/oci/generative_ai_agent/models/secret_detail.py @@ -0,0 +1,117 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 SecretDetail(object): + """ + **SecretDetail** + + The details of configured security configuration on OpenSearch. + """ + + #: A constant which can be used with the type property of a SecretDetail. + #: This constant has a value of "IDCS_SECRET" + TYPE_IDCS_SECRET = "IDCS_SECRET" + + #: A constant which can be used with the type property of a SecretDetail. + #: This constant has a value of "BASIC_AUTH_SECRET" + TYPE_BASIC_AUTH_SECRET = "BASIC_AUTH_SECRET" + + def __init__(self, **kwargs): + """ + Initializes a new SecretDetail 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.generative_ai_agent.models.IdcsSecret` + * :class:`~oci.generative_ai_agent.models.BasicAuthSecret` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param type: + The value to assign to the type property of this SecretDetail. + Allowed values for this property are: "IDCS_SECRET", "BASIC_AUTH_SECRET", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type type: str + + """ + self.swagger_types = { + 'type': 'str' + } + + self.attribute_map = { + 'type': 'type' + } + + self._type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['type'] + + if type == 'IDCS_SECRET': + return 'IdcsSecret' + + if type == 'BASIC_AUTH_SECRET': + return 'BasicAuthSecret' + else: + return 'SecretDetail' + + @property + def type(self): + """ + **[Required]** Gets the type of this SecretDetail. + The type of OpenID. + The allowed values are: + - `IDCS_SECRET`: The OpenID configuration used is OpenSearch is IDCS. + - `BASIC_AUTH_SECRET`: Basic authentication use for OpenSearch + + Allowed values for this property are: "IDCS_SECRET", "BASIC_AUTH_SECRET", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The type of this SecretDetail. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SecretDetail. + The type of OpenID. + The allowed values are: + - `IDCS_SECRET`: The OpenID configuration used is OpenSearch is IDCS. + - `BASIC_AUTH_SECRET`: Basic authentication use for OpenSearch + + + :param type: The type of this SecretDetail. + :type: str + """ + allowed_values = ["IDCS_SECRET", "BASIC_AUTH_SECRET"] + if not value_allowed_none_or_none_sentinel(type, allowed_values): + type = 'UNKNOWN_ENUM_VALUE' + self._type = type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/generative_ai_agent/models/session_config.py b/src/oci/generative_ai_agent/models/session_config.py new file mode 100644 index 000000000..d34a5f84d --- /dev/null +++ b/src/oci/generative_ai_agent/models/session_config.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 SessionConfig(object): + """ + **SessionConfig** + + Session Configuration on AgentEndpoint. + """ + + def __init__(self, **kwargs): + """ + Initializes a new SessionConfig object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param idle_timeout_in_seconds: + The value to assign to the idle_timeout_in_seconds property of this SessionConfig. + :type idle_timeout_in_seconds: int + + """ + self.swagger_types = { + 'idle_timeout_in_seconds': 'int' + } + + self.attribute_map = { + 'idle_timeout_in_seconds': 'idleTimeoutInSeconds' + } + + self._idle_timeout_in_seconds = None + + @property + def idle_timeout_in_seconds(self): + """ + Gets the idle_timeout_in_seconds of this SessionConfig. + The session will become inactive after this timeout. + + + :return: The idle_timeout_in_seconds of this SessionConfig. + :rtype: int + """ + return self._idle_timeout_in_seconds + + @idle_timeout_in_seconds.setter + def idle_timeout_in_seconds(self, idle_timeout_in_seconds): + """ + Sets the idle_timeout_in_seconds of this SessionConfig. + The session will become inactive after this timeout. + + + :param idle_timeout_in_seconds: The idle_timeout_in_seconds of this SessionConfig. + :type: int + """ + self._idle_timeout_in_seconds = idle_timeout_in_seconds + + 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/generative_ai_agent/models/update_agent_details.py b/src/oci/generative_ai_agent/models/update_agent_details.py new file mode 100644 index 000000000..6ff70cf0d --- /dev/null +++ b/src/oci/generative_ai_agent/models/update_agent_details.py @@ -0,0 +1,253 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 UpdateAgentDetails(object): + """ + **UpdateAgentDetails** + + The data to update an agent. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateAgentDetails 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 UpdateAgentDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this UpdateAgentDetails. + :type description: str + + :param knowledge_base_ids: + The value to assign to the knowledge_base_ids property of this UpdateAgentDetails. + :type knowledge_base_ids: list[str] + + :param welcome_message: + The value to assign to the welcome_message property of this UpdateAgentDetails. + :type welcome_message: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateAgentDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateAgentDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'knowledge_base_ids': 'list[str]', + 'welcome_message': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'knowledge_base_ids': 'knowledgeBaseIds', + 'welcome_message': 'welcomeMessage', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._knowledge_base_ids = None + self._welcome_message = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this UpdateAgentDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this UpdateAgentDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this UpdateAgentDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this UpdateAgentDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this UpdateAgentDetails. + Description about the agent. + + + :return: The description of this UpdateAgentDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this UpdateAgentDetails. + Description about the agent. + + + :param description: The description of this UpdateAgentDetails. + :type: str + """ + self._description = description + + @property + def knowledge_base_ids(self): + """ + Gets the knowledge_base_ids of this UpdateAgentDetails. + List of `OCID`__ of the knowledgeBases associated with agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The knowledge_base_ids of this UpdateAgentDetails. + :rtype: list[str] + """ + return self._knowledge_base_ids + + @knowledge_base_ids.setter + def knowledge_base_ids(self, knowledge_base_ids): + """ + Sets the knowledge_base_ids of this UpdateAgentDetails. + List of `OCID`__ of the knowledgeBases associated with agent. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param knowledge_base_ids: The knowledge_base_ids of this UpdateAgentDetails. + :type: list[str] + """ + self._knowledge_base_ids = knowledge_base_ids + + @property + def welcome_message(self): + """ + Gets the welcome_message of this UpdateAgentDetails. + Details about purpose and responsibility of the agent + + + :return: The welcome_message of this UpdateAgentDetails. + :rtype: str + """ + return self._welcome_message + + @welcome_message.setter + def welcome_message(self, welcome_message): + """ + Sets the welcome_message of this UpdateAgentDetails. + Details about purpose and responsibility of the agent + + + :param welcome_message: The welcome_message of this UpdateAgentDetails. + :type: str + """ + self._welcome_message = welcome_message + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this UpdateAgentDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this UpdateAgentDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this UpdateAgentDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this UpdateAgentDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this UpdateAgentDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this UpdateAgentDetails. + :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 UpdateAgentDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this UpdateAgentDetails. + :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/generative_ai_agent/models/update_agent_endpoint_details.py b/src/oci/generative_ai_agent/models/update_agent_endpoint_details.py new file mode 100644 index 000000000..9ecddbbd0 --- /dev/null +++ b/src/oci/generative_ai_agent/models/update_agent_endpoint_details.py @@ -0,0 +1,303 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 UpdateAgentEndpointDetails(object): + """ + **UpdateAgentEndpointDetails** + + The data to update an endpoint. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateAgentEndpointDetails 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 UpdateAgentEndpointDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this UpdateAgentEndpointDetails. + :type description: str + + :param content_moderation_config: + The value to assign to the content_moderation_config property of this UpdateAgentEndpointDetails. + :type content_moderation_config: oci.generative_ai_agent.models.ContentModerationConfig + + :param should_enable_trace: + The value to assign to the should_enable_trace property of this UpdateAgentEndpointDetails. + :type should_enable_trace: bool + + :param should_enable_citation: + The value to assign to the should_enable_citation property of this UpdateAgentEndpointDetails. + :type should_enable_citation: bool + + :param session_config: + The value to assign to the session_config property of this UpdateAgentEndpointDetails. + :type session_config: oci.generative_ai_agent.models.SessionConfig + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateAgentEndpointDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateAgentEndpointDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'content_moderation_config': 'ContentModerationConfig', + 'should_enable_trace': 'bool', + 'should_enable_citation': 'bool', + 'session_config': 'SessionConfig', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'content_moderation_config': 'contentModerationConfig', + 'should_enable_trace': 'shouldEnableTrace', + 'should_enable_citation': 'shouldEnableCitation', + 'session_config': 'sessionConfig', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._content_moderation_config = None + self._should_enable_trace = None + self._should_enable_citation = None + self._session_config = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this UpdateAgentEndpointDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this UpdateAgentEndpointDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this UpdateAgentEndpointDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this UpdateAgentEndpointDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this UpdateAgentEndpointDetails. + An optional description of the AgentEndpoint. + + + :return: The description of this UpdateAgentEndpointDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this UpdateAgentEndpointDetails. + An optional description of the AgentEndpoint. + + + :param description: The description of this UpdateAgentEndpointDetails. + :type: str + """ + self._description = description + + @property + def content_moderation_config(self): + """ + Gets the content_moderation_config of this UpdateAgentEndpointDetails. + + :return: The content_moderation_config of this UpdateAgentEndpointDetails. + :rtype: oci.generative_ai_agent.models.ContentModerationConfig + """ + return self._content_moderation_config + + @content_moderation_config.setter + def content_moderation_config(self, content_moderation_config): + """ + Sets the content_moderation_config of this UpdateAgentEndpointDetails. + + :param content_moderation_config: The content_moderation_config of this UpdateAgentEndpointDetails. + :type: oci.generative_ai_agent.models.ContentModerationConfig + """ + self._content_moderation_config = content_moderation_config + + @property + def should_enable_trace(self): + """ + Gets the should_enable_trace of this UpdateAgentEndpointDetails. + Whether to show traces in the chat result. + + + :return: The should_enable_trace of this UpdateAgentEndpointDetails. + :rtype: bool + """ + return self._should_enable_trace + + @should_enable_trace.setter + def should_enable_trace(self, should_enable_trace): + """ + Sets the should_enable_trace of this UpdateAgentEndpointDetails. + Whether to show traces in the chat result. + + + :param should_enable_trace: The should_enable_trace of this UpdateAgentEndpointDetails. + :type: bool + """ + self._should_enable_trace = should_enable_trace + + @property + def should_enable_citation(self): + """ + Gets the should_enable_citation of this UpdateAgentEndpointDetails. + Whether to show citations in the chat result. + + + :return: The should_enable_citation of this UpdateAgentEndpointDetails. + :rtype: bool + """ + return self._should_enable_citation + + @should_enable_citation.setter + def should_enable_citation(self, should_enable_citation): + """ + Sets the should_enable_citation of this UpdateAgentEndpointDetails. + Whether to show citations in the chat result. + + + :param should_enable_citation: The should_enable_citation of this UpdateAgentEndpointDetails. + :type: bool + """ + self._should_enable_citation = should_enable_citation + + @property + def session_config(self): + """ + Gets the session_config of this UpdateAgentEndpointDetails. + + :return: The session_config of this UpdateAgentEndpointDetails. + :rtype: oci.generative_ai_agent.models.SessionConfig + """ + return self._session_config + + @session_config.setter + def session_config(self, session_config): + """ + Sets the session_config of this UpdateAgentEndpointDetails. + + :param session_config: The session_config of this UpdateAgentEndpointDetails. + :type: oci.generative_ai_agent.models.SessionConfig + """ + self._session_config = session_config + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this UpdateAgentEndpointDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this UpdateAgentEndpointDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this UpdateAgentEndpointDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this UpdateAgentEndpointDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this UpdateAgentEndpointDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this UpdateAgentEndpointDetails. + :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 UpdateAgentEndpointDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this UpdateAgentEndpointDetails. + :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/generative_ai_agent/models/update_data_source_details.py b/src/oci/generative_ai_agent/models/update_data_source_details.py new file mode 100644 index 000000000..f13f9141d --- /dev/null +++ b/src/oci/generative_ai_agent/models/update_data_source_details.py @@ -0,0 +1,214 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 UpdateDataSourceDetails(object): + """ + **UpdateDataSourceDetails** + + The data to update a data source. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateDataSourceDetails 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 UpdateDataSourceDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this UpdateDataSourceDetails. + :type description: str + + :param data_source_config: + The value to assign to the data_source_config property of this UpdateDataSourceDetails. + :type data_source_config: oci.generative_ai_agent.models.DataSourceConfig + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateDataSourceDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateDataSourceDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'data_source_config': 'DataSourceConfig', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'data_source_config': 'dataSourceConfig', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._data_source_config = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this UpdateDataSourceDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this UpdateDataSourceDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this UpdateDataSourceDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this UpdateDataSourceDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this UpdateDataSourceDetails. + A user-friendly description of the data source. + + + :return: The description of this UpdateDataSourceDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this UpdateDataSourceDetails. + A user-friendly description of the data source. + + + :param description: The description of this UpdateDataSourceDetails. + :type: str + """ + self._description = description + + @property + def data_source_config(self): + """ + Gets the data_source_config of this UpdateDataSourceDetails. + + :return: The data_source_config of this UpdateDataSourceDetails. + :rtype: oci.generative_ai_agent.models.DataSourceConfig + """ + return self._data_source_config + + @data_source_config.setter + def data_source_config(self, data_source_config): + """ + Sets the data_source_config of this UpdateDataSourceDetails. + + :param data_source_config: The data_source_config of this UpdateDataSourceDetails. + :type: oci.generative_ai_agent.models.DataSourceConfig + """ + self._data_source_config = data_source_config + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this UpdateDataSourceDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this UpdateDataSourceDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this UpdateDataSourceDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this UpdateDataSourceDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this UpdateDataSourceDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this UpdateDataSourceDetails. + :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 UpdateDataSourceDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this UpdateDataSourceDetails. + :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/generative_ai_agent/models/update_knowledge_base_details.py b/src/oci/generative_ai_agent/models/update_knowledge_base_details.py new file mode 100644 index 000000000..b43d2356b --- /dev/null +++ b/src/oci/generative_ai_agent/models/update_knowledge_base_details.py @@ -0,0 +1,214 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 UpdateKnowledgeBaseDetails(object): + """ + **UpdateKnowledgeBaseDetails** + + The data to update a knowledge base. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateKnowledgeBaseDetails 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 UpdateKnowledgeBaseDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this UpdateKnowledgeBaseDetails. + :type description: str + + :param index_config: + The value to assign to the index_config property of this UpdateKnowledgeBaseDetails. + :type index_config: oci.generative_ai_agent.models.IndexConfig + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateKnowledgeBaseDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateKnowledgeBaseDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'index_config': 'IndexConfig', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'index_config': 'indexConfig', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._index_config = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this UpdateKnowledgeBaseDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this UpdateKnowledgeBaseDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this UpdateKnowledgeBaseDetails. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this UpdateKnowledgeBaseDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this UpdateKnowledgeBaseDetails. + A description of the knowledge base. + + + :return: The description of this UpdateKnowledgeBaseDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this UpdateKnowledgeBaseDetails. + A description of the knowledge base. + + + :param description: The description of this UpdateKnowledgeBaseDetails. + :type: str + """ + self._description = description + + @property + def index_config(self): + """ + Gets the index_config of this UpdateKnowledgeBaseDetails. + + :return: The index_config of this UpdateKnowledgeBaseDetails. + :rtype: oci.generative_ai_agent.models.IndexConfig + """ + return self._index_config + + @index_config.setter + def index_config(self, index_config): + """ + Sets the index_config of this UpdateKnowledgeBaseDetails. + + :param index_config: The index_config of this UpdateKnowledgeBaseDetails. + :type: oci.generative_ai_agent.models.IndexConfig + """ + self._index_config = index_config + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this UpdateKnowledgeBaseDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The freeform_tags of this UpdateKnowledgeBaseDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this UpdateKnowledgeBaseDetails. + Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Department\": \"Finance\"}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param freeform_tags: The freeform_tags of this UpdateKnowledgeBaseDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this UpdateKnowledgeBaseDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :return: The defined_tags of this UpdateKnowledgeBaseDetails. + :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 UpdateKnowledgeBaseDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + For more information, see `Resource Tags`__. + + Example: `{\"Operations\": {\"CostCenter\": \"42\"}}` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm + + + :param defined_tags: The defined_tags of this UpdateKnowledgeBaseDetails. + :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/generative_ai_agent/models/work_request.py b/src/oci/generative_ai_agent/models/work_request.py new file mode 100644 index 000000000..36c727bf7 --- /dev/null +++ b/src/oci/generative_ai_agent/models/work_request.py @@ -0,0 +1,505 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 WorkRequest(object): + """ + **WorkRequest** + + An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, + the service creates a work request. A work request is an activity log that lets you track each step in the operation's + progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation. + """ + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CREATE_AGENT" + OPERATION_TYPE_CREATE_AGENT = "CREATE_AGENT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "UPDATE_AGENT" + OPERATION_TYPE_UPDATE_AGENT = "UPDATE_AGENT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DELETE_AGENT" + OPERATION_TYPE_DELETE_AGENT = "DELETE_AGENT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "MOVE_AGENT" + OPERATION_TYPE_MOVE_AGENT = "MOVE_AGENT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CREATE_AGENT_ENDPOINT" + OPERATION_TYPE_CREATE_AGENT_ENDPOINT = "CREATE_AGENT_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "UPDATE_AGENT_ENDPOINT" + OPERATION_TYPE_UPDATE_AGENT_ENDPOINT = "UPDATE_AGENT_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DELETE_AGENT_ENDPOINT" + OPERATION_TYPE_DELETE_AGENT_ENDPOINT = "DELETE_AGENT_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "MOVE_AGENT_ENDPOINT" + OPERATION_TYPE_MOVE_AGENT_ENDPOINT = "MOVE_AGENT_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CREATE_DATA_SOURCE" + OPERATION_TYPE_CREATE_DATA_SOURCE = "CREATE_DATA_SOURCE" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "UPDATE_DATA_SOURCE" + OPERATION_TYPE_UPDATE_DATA_SOURCE = "UPDATE_DATA_SOURCE" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DELETE_DATA_SOURCE" + OPERATION_TYPE_DELETE_DATA_SOURCE = "DELETE_DATA_SOURCE" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CREATE_KNOWLEDGE_BASE" + OPERATION_TYPE_CREATE_KNOWLEDGE_BASE = "CREATE_KNOWLEDGE_BASE" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "UPDATE_KNOWLEDGE_BASE" + OPERATION_TYPE_UPDATE_KNOWLEDGE_BASE = "UPDATE_KNOWLEDGE_BASE" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DELETE_KNOWLEDGE_BASE" + OPERATION_TYPE_DELETE_KNOWLEDGE_BASE = "DELETE_KNOWLEDGE_BASE" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "MOVE_KNOWLEDGE_BASE" + OPERATION_TYPE_MOVE_KNOWLEDGE_BASE = "MOVE_KNOWLEDGE_BASE" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CREATE_DATA_INGESTION_JOB" + OPERATION_TYPE_CREATE_DATA_INGESTION_JOB = "CREATE_DATA_INGESTION_JOB" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DELETE_DATA_INGESTION_JOB" + OPERATION_TYPE_DELETE_DATA_INGESTION_JOB = "DELETE_DATA_INGESTION_JOB" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "ACCEPTED" + STATUS_ACCEPTED = "ACCEPTED" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "IN_PROGRESS" + STATUS_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "WAITING" + STATUS_WAITING = "WAITING" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "NEEDS_ATTENTION" + STATUS_NEEDS_ATTENTION = "NEEDS_ATTENTION" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "FAILED" + STATUS_FAILED = "FAILED" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "SUCCEEDED" + STATUS_SUCCEEDED = "SUCCEEDED" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "CANCELING" + STATUS_CANCELING = "CANCELING" + + #: A constant which can be used with the status property of a WorkRequest. + #: This constant has a value of "CANCELED" + STATUS_CANCELED = "CANCELED" + + def __init__(self, **kwargs): + """ + Initializes a new WorkRequest object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation_type: + The value to assign to the operation_type property of this WorkRequest. + Allowed values for this property are: "CREATE_AGENT", "UPDATE_AGENT", "DELETE_AGENT", "MOVE_AGENT", "CREATE_AGENT_ENDPOINT", "UPDATE_AGENT_ENDPOINT", "DELETE_AGENT_ENDPOINT", "MOVE_AGENT_ENDPOINT", "CREATE_DATA_SOURCE", "UPDATE_DATA_SOURCE", "DELETE_DATA_SOURCE", "CREATE_KNOWLEDGE_BASE", "UPDATE_KNOWLEDGE_BASE", "DELETE_KNOWLEDGE_BASE", "MOVE_KNOWLEDGE_BASE", "CREATE_DATA_INGESTION_JOB", "DELETE_DATA_INGESTION_JOB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type operation_type: str + + :param status: + The value to assign to the status property of this WorkRequest. + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + :param id: + The value to assign to the id property of this WorkRequest. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this WorkRequest. + :type compartment_id: str + + :param resources: + The value to assign to the resources property of this WorkRequest. + :type resources: list[oci.generative_ai_agent.models.WorkRequestResource] + + :param percent_complete: + The value to assign to the percent_complete property of this WorkRequest. + :type percent_complete: float + + :param time_accepted: + The value to assign to the time_accepted property of this WorkRequest. + :type time_accepted: datetime + + :param time_started: + The value to assign to the time_started property of this WorkRequest. + :type time_started: datetime + + :param time_finished: + The value to assign to the time_finished property of this WorkRequest. + :type time_finished: datetime + + :param time_updated: + The value to assign to the time_updated property of this WorkRequest. + :type time_updated: datetime + + """ + self.swagger_types = { + 'operation_type': 'str', + 'status': 'str', + 'id': 'str', + 'compartment_id': 'str', + 'resources': 'list[WorkRequestResource]', + 'percent_complete': 'float', + 'time_accepted': 'datetime', + 'time_started': 'datetime', + 'time_finished': 'datetime', + 'time_updated': 'datetime' + } + + self.attribute_map = { + 'operation_type': 'operationType', + 'status': 'status', + 'id': 'id', + 'compartment_id': 'compartmentId', + 'resources': 'resources', + 'percent_complete': 'percentComplete', + 'time_accepted': 'timeAccepted', + 'time_started': 'timeStarted', + 'time_finished': 'timeFinished', + 'time_updated': 'timeUpdated' + } + + self._operation_type = None + self._status = None + self._id = None + self._compartment_id = None + self._resources = None + self._percent_complete = None + self._time_accepted = None + self._time_started = None + self._time_finished = None + self._time_updated = None + + @property + def operation_type(self): + """ + **[Required]** Gets the operation_type of this WorkRequest. + The asynchronous operation tracked by this work request. + + Allowed values for this property are: "CREATE_AGENT", "UPDATE_AGENT", "DELETE_AGENT", "MOVE_AGENT", "CREATE_AGENT_ENDPOINT", "UPDATE_AGENT_ENDPOINT", "DELETE_AGENT_ENDPOINT", "MOVE_AGENT_ENDPOINT", "CREATE_DATA_SOURCE", "UPDATE_DATA_SOURCE", "DELETE_DATA_SOURCE", "CREATE_KNOWLEDGE_BASE", "UPDATE_KNOWLEDGE_BASE", "DELETE_KNOWLEDGE_BASE", "MOVE_KNOWLEDGE_BASE", "CREATE_DATA_INGESTION_JOB", "DELETE_DATA_INGESTION_JOB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The operation_type of this WorkRequest. + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """ + Sets the operation_type of this WorkRequest. + The asynchronous operation tracked by this work request. + + + :param operation_type: The operation_type of this WorkRequest. + :type: str + """ + allowed_values = ["CREATE_AGENT", "UPDATE_AGENT", "DELETE_AGENT", "MOVE_AGENT", "CREATE_AGENT_ENDPOINT", "UPDATE_AGENT_ENDPOINT", "DELETE_AGENT_ENDPOINT", "MOVE_AGENT_ENDPOINT", "CREATE_DATA_SOURCE", "UPDATE_DATA_SOURCE", "DELETE_DATA_SOURCE", "CREATE_KNOWLEDGE_BASE", "UPDATE_KNOWLEDGE_BASE", "DELETE_KNOWLEDGE_BASE", "MOVE_KNOWLEDGE_BASE", "CREATE_DATA_INGESTION_JOB", "DELETE_DATA_INGESTION_JOB"] + if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): + operation_type = 'UNKNOWN_ENUM_VALUE' + self._operation_type = operation_type + + @property + def status(self): + """ + **[Required]** Gets the status of this WorkRequest. + The status of the work request. + + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The status of this WorkRequest. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this WorkRequest. + The status of the work request. + + + :param status: The status of this WorkRequest. + :type: str + """ + allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] + if not value_allowed_none_or_none_sentinel(status, allowed_values): + status = 'UNKNOWN_ENUM_VALUE' + self._status = status + + @property + def id(self): + """ + **[Required]** Gets the id of this WorkRequest. + The `OCID`__ of the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this WorkRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this WorkRequest. + The `OCID`__ of the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this WorkRequest. + :type: str + """ + self._id = id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this WorkRequest. + The `OCID`__ of the compartment that contains the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this WorkRequest. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this WorkRequest. + The `OCID`__ of the compartment that contains the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this WorkRequest. + :type: str + """ + self._compartment_id = compartment_id + + @property + def resources(self): + """ + **[Required]** Gets the resources of this WorkRequest. + The resources that are affected by the work request. + + + :return: The resources of this WorkRequest. + :rtype: list[oci.generative_ai_agent.models.WorkRequestResource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this WorkRequest. + The resources that are affected by the work request. + + + :param resources: The resources of this WorkRequest. + :type: list[oci.generative_ai_agent.models.WorkRequestResource] + """ + self._resources = resources + + @property + def percent_complete(self): + """ + **[Required]** Gets the percent_complete of this WorkRequest. + Shows the progress of the operation tracked by the work request, as a percentage of the total work + that must be performed. + + + :return: The percent_complete of this WorkRequest. + :rtype: float + """ + return self._percent_complete + + @percent_complete.setter + def percent_complete(self, percent_complete): + """ + Sets the percent_complete of this WorkRequest. + Shows the progress of the operation tracked by the work request, as a percentage of the total work + that must be performed. + + + :param percent_complete: The percent_complete of this WorkRequest. + :type: float + """ + self._percent_complete = percent_complete + + @property + def time_accepted(self): + """ + **[Required]** Gets the time_accepted of this WorkRequest. + The date and time the work request was created, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_accepted of this WorkRequest. + :rtype: datetime + """ + return self._time_accepted + + @time_accepted.setter + def time_accepted(self, time_accepted): + """ + Sets the time_accepted of this WorkRequest. + The date and time the work request was created, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_accepted: The time_accepted of this WorkRequest. + :type: datetime + """ + self._time_accepted = time_accepted + + @property + def time_started(self): + """ + Gets the time_started of this WorkRequest. + The date and time the work request was started, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_started of this WorkRequest. + :rtype: datetime + """ + return self._time_started + + @time_started.setter + def time_started(self, time_started): + """ + Sets the time_started of this WorkRequest. + The date and time the work request was started, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_started: The time_started of this WorkRequest. + :type: datetime + """ + self._time_started = time_started + + @property + def time_finished(self): + """ + Gets the time_finished of this WorkRequest. + The date and time the work request was finished, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/rfc/rfc3339 + + + :return: The time_finished of this WorkRequest. + :rtype: datetime + """ + return self._time_finished + + @time_finished.setter + def time_finished(self, time_finished): + """ + Sets the time_finished of this WorkRequest. + The date and time the work request was finished, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/rfc/rfc3339 + + + :param time_finished: The time_finished of this WorkRequest. + :type: datetime + """ + self._time_finished = time_finished + + @property + def time_updated(self): + """ + Gets the time_updated of this WorkRequest. + The date and time the work request was updated, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/rfc/rfc3339 + + + :return: The time_updated of this WorkRequest. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this WorkRequest. + The date and time the work request was updated, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/rfc/rfc3339 + + + :param time_updated: The time_updated of this WorkRequest. + :type: datetime + """ + self._time_updated = time_updated + + 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/generative_ai_agent/models/work_request_error.py b/src/oci/generative_ai_agent/models/work_request_error.py new file mode 100644 index 000000000..16cb212d1 --- /dev/null +++ b/src/oci/generative_ai_agent/models/work_request_error.py @@ -0,0 +1,148 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 WorkRequestError(object): + """ + **WorkRequestError** + + An error encountered while performing an operation that is tracked by a work request. + """ + + def __init__(self, **kwargs): + """ + Initializes a new WorkRequestError object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param code: + The value to assign to the code property of this WorkRequestError. + :type code: str + + :param message: + The value to assign to the message property of this WorkRequestError. + :type message: str + + :param timestamp: + The value to assign to the timestamp property of this WorkRequestError. + :type timestamp: datetime + + """ + self.swagger_types = { + 'code': 'str', + 'message': 'str', + 'timestamp': 'datetime' + } + + self.attribute_map = { + 'code': 'code', + 'message': 'message', + 'timestamp': 'timestamp' + } + + self._code = None + self._message = None + self._timestamp = None + + @property + def code(self): + """ + **[Required]** Gets the code of this WorkRequestError. + A machine-usable code for the error that occurred. For a list of error codes, see + `API Errors`__. + + __ https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm + + + :return: The code of this WorkRequestError. + :rtype: str + """ + return self._code + + @code.setter + def code(self, code): + """ + Sets the code of this WorkRequestError. + A machine-usable code for the error that occurred. For a list of error codes, see + `API Errors`__. + + __ https://docs.cloud.oracle.com/iaas/Content/API/References/apierrors.htm + + + :param code: The code of this WorkRequestError. + :type: str + """ + self._code = code + + @property + def message(self): + """ + **[Required]** Gets the message of this WorkRequestError. + A human-readable error message. + + + :return: The message of this WorkRequestError. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this WorkRequestError. + A human-readable error message. + + + :param message: The message of this WorkRequestError. + :type: str + """ + self._message = message + + @property + def timestamp(self): + """ + **[Required]** Gets the timestamp of this WorkRequestError. + The date and time the error occurred, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The timestamp of this WorkRequestError. + :rtype: datetime + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """ + Sets the timestamp of this WorkRequestError. + The date and time the error occurred, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param timestamp: The timestamp of this WorkRequestError. + :type: datetime + """ + self._timestamp = timestamp + + 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/generative_ai_agent/models/work_request_error_collection.py b/src/oci/generative_ai_agent/models/work_request_error_collection.py new file mode 100644 index 000000000..a1e2479e7 --- /dev/null +++ b/src/oci/generative_ai_agent/models/work_request_error_collection.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 WorkRequestErrorCollection(object): + """ + **WorkRequestErrorCollection** + + A list of work request errors. Can contain both errors and other information, such as metadata. + """ + + def __init__(self, **kwargs): + """ + Initializes a new WorkRequestErrorCollection 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 WorkRequestErrorCollection. + :type items: list[oci.generative_ai_agent.models.WorkRequestError] + + """ + self.swagger_types = { + 'items': 'list[WorkRequestError]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this WorkRequestErrorCollection. + A list of work request errors. + + + :return: The items of this WorkRequestErrorCollection. + :rtype: list[oci.generative_ai_agent.models.WorkRequestError] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this WorkRequestErrorCollection. + A list of work request errors. + + + :param items: The items of this WorkRequestErrorCollection. + :type: list[oci.generative_ai_agent.models.WorkRequestError] + """ + 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/generative_ai_agent/models/work_request_log_entry.py b/src/oci/generative_ai_agent/models/work_request_log_entry.py new file mode 100644 index 000000000..a43578cbd --- /dev/null +++ b/src/oci/generative_ai_agent/models/work_request_log_entry.py @@ -0,0 +1,111 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 WorkRequestLogEntry(object): + """ + **WorkRequestLogEntry** + + A log message from performing an operation that is tracked by a work request. + """ + + def __init__(self, **kwargs): + """ + Initializes a new WorkRequestLogEntry object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param message: + The value to assign to the message property of this WorkRequestLogEntry. + :type message: str + + :param timestamp: + The value to assign to the timestamp property of this WorkRequestLogEntry. + :type timestamp: datetime + + """ + self.swagger_types = { + 'message': 'str', + 'timestamp': 'datetime' + } + + self.attribute_map = { + 'message': 'message', + 'timestamp': 'timestamp' + } + + self._message = None + self._timestamp = None + + @property + def message(self): + """ + **[Required]** Gets the message of this WorkRequestLogEntry. + A human-readable log message. + + + :return: The message of this WorkRequestLogEntry. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this WorkRequestLogEntry. + A human-readable log message. + + + :param message: The message of this WorkRequestLogEntry. + :type: str + """ + self._message = message + + @property + def timestamp(self): + """ + **[Required]** Gets the timestamp of this WorkRequestLogEntry. + The date and time the log message was written, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The timestamp of this WorkRequestLogEntry. + :rtype: datetime + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """ + Sets the timestamp of this WorkRequestLogEntry. + The date and time the log message was written, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param timestamp: The timestamp of this WorkRequestLogEntry. + :type: datetime + """ + self._timestamp = timestamp + + 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/generative_ai_agent/models/work_request_log_entry_collection.py b/src/oci/generative_ai_agent/models/work_request_log_entry_collection.py new file mode 100644 index 000000000..50172d232 --- /dev/null +++ b/src/oci/generative_ai_agent/models/work_request_log_entry_collection.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 WorkRequestLogEntryCollection(object): + """ + **WorkRequestLogEntryCollection** + + A list of work request logs. Can contain both logs and other information, such as metadata. + """ + + def __init__(self, **kwargs): + """ + Initializes a new WorkRequestLogEntryCollection 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 WorkRequestLogEntryCollection. + :type items: list[oci.generative_ai_agent.models.WorkRequestLogEntry] + + """ + self.swagger_types = { + 'items': 'list[WorkRequestLogEntry]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this WorkRequestLogEntryCollection. + A list of work request log entries. + + + :return: The items of this WorkRequestLogEntryCollection. + :rtype: list[oci.generative_ai_agent.models.WorkRequestLogEntry] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this WorkRequestLogEntryCollection. + A list of work request log entries. + + + :param items: The items of this WorkRequestLogEntryCollection. + :type: list[oci.generative_ai_agent.models.WorkRequestLogEntry] + """ + 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/generative_ai_agent/models/work_request_resource.py b/src/oci/generative_ai_agent/models/work_request_resource.py new file mode 100644 index 000000000..bc3f0e2e7 --- /dev/null +++ b/src/oci/generative_ai_agent/models/work_request_resource.py @@ -0,0 +1,240 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 WorkRequestResource(object): + """ + **WorkRequestResource** + + A resource created or operated on by a work request. + """ + + #: A constant which can be used with the action_type property of a WorkRequestResource. + #: This constant has a value of "CREATED" + ACTION_TYPE_CREATED = "CREATED" + + #: A constant which can be used with the action_type property of a WorkRequestResource. + #: This constant has a value of "UPDATED" + ACTION_TYPE_UPDATED = "UPDATED" + + #: A constant which can be used with the action_type property of a WorkRequestResource. + #: This constant has a value of "DELETED" + ACTION_TYPE_DELETED = "DELETED" + + #: A constant which can be used with the action_type property of a WorkRequestResource. + #: This constant has a value of "IN_PROGRESS" + ACTION_TYPE_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the action_type property of a WorkRequestResource. + #: This constant has a value of "RELATED" + ACTION_TYPE_RELATED = "RELATED" + + #: A constant which can be used with the action_type property of a WorkRequestResource. + #: This constant has a value of "FAILED" + ACTION_TYPE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new WorkRequestResource object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param entity_type: + The value to assign to the entity_type property of this WorkRequestResource. + :type entity_type: str + + :param action_type: + The value to assign to the action_type property of this WorkRequestResource. + Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type action_type: str + + :param identifier: + The value to assign to the identifier property of this WorkRequestResource. + :type identifier: str + + :param entity_uri: + The value to assign to the entity_uri property of this WorkRequestResource. + :type entity_uri: str + + :param metadata: + The value to assign to the metadata property of this WorkRequestResource. + :type metadata: dict(str, str) + + """ + self.swagger_types = { + 'entity_type': 'str', + 'action_type': 'str', + 'identifier': 'str', + 'entity_uri': 'str', + 'metadata': 'dict(str, str)' + } + + self.attribute_map = { + 'entity_type': 'entityType', + 'action_type': 'actionType', + 'identifier': 'identifier', + 'entity_uri': 'entityUri', + 'metadata': 'metadata' + } + + self._entity_type = None + self._action_type = None + self._identifier = None + self._entity_uri = None + self._metadata = None + + @property + def entity_type(self): + """ + **[Required]** Gets the entity_type of this WorkRequestResource. + The resource type that the work request affects. + + + :return: The entity_type of this WorkRequestResource. + :rtype: str + """ + return self._entity_type + + @entity_type.setter + def entity_type(self, entity_type): + """ + Sets the entity_type of this WorkRequestResource. + The resource type that the work request affects. + + + :param entity_type: The entity_type of this WorkRequestResource. + :type: str + """ + self._entity_type = entity_type + + @property + def action_type(self): + """ + **[Required]** Gets the action_type of this WorkRequestResource. + The way in which this resource is affected by the operation tracked in the work request. + A resource being created, updated, or deleted remains in the IN_PROGRESS state until + work is complete for that resource, at which point it transitions to CREATED, UPDATED, + or DELETED, respectively. + + Allowed values for this property are: "CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The action_type of this WorkRequestResource. + :rtype: str + """ + return self._action_type + + @action_type.setter + def action_type(self, action_type): + """ + Sets the action_type of this WorkRequestResource. + The way in which this resource is affected by the operation tracked in the work request. + A resource being created, updated, or deleted remains in the IN_PROGRESS state until + work is complete for that resource, at which point it transitions to CREATED, UPDATED, + or DELETED, respectively. + + + :param action_type: The action_type of this WorkRequestResource. + :type: str + """ + allowed_values = ["CREATED", "UPDATED", "DELETED", "IN_PROGRESS", "RELATED", "FAILED"] + if not value_allowed_none_or_none_sentinel(action_type, allowed_values): + action_type = 'UNKNOWN_ENUM_VALUE' + self._action_type = action_type + + @property + def identifier(self): + """ + **[Required]** Gets the identifier of this WorkRequestResource. + An `OCID`__ or other unique identifier for the resource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The identifier of this WorkRequestResource. + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """ + Sets the identifier of this WorkRequestResource. + An `OCID`__ or other unique identifier for the resource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param identifier: The identifier of this WorkRequestResource. + :type: str + """ + self._identifier = identifier + + @property + def entity_uri(self): + """ + Gets the entity_uri of this WorkRequestResource. + The URI path that you can use for a GET request to access the resource metadata. + + + :return: The entity_uri of this WorkRequestResource. + :rtype: str + """ + return self._entity_uri + + @entity_uri.setter + def entity_uri(self, entity_uri): + """ + Sets the entity_uri of this WorkRequestResource. + The URI path that you can use for a GET request to access the resource metadata. + + + :param entity_uri: The entity_uri of this WorkRequestResource. + :type: str + """ + self._entity_uri = entity_uri + + @property + def metadata(self): + """ + Gets the metadata of this WorkRequestResource. + Additional information that helps to explain the resource. + + + :return: The metadata of this WorkRequestResource. + :rtype: dict(str, str) + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this WorkRequestResource. + Additional information that helps to explain the resource. + + + :param metadata: The metadata of this WorkRequestResource. + :type: dict(str, str) + """ + self._metadata = metadata + + 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/generative_ai_agent/models/work_request_summary.py b/src/oci/generative_ai_agent/models/work_request_summary.py new file mode 100644 index 000000000..05b573e66 --- /dev/null +++ b/src/oci/generative_ai_agent/models/work_request_summary.py @@ -0,0 +1,503 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 WorkRequestSummary(object): + """ + **WorkRequestSummary** + + Summary information about an asynchronous work request. + """ + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "CREATE_AGENT" + OPERATION_TYPE_CREATE_AGENT = "CREATE_AGENT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "UPDATE_AGENT" + OPERATION_TYPE_UPDATE_AGENT = "UPDATE_AGENT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DELETE_AGENT" + OPERATION_TYPE_DELETE_AGENT = "DELETE_AGENT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "MOVE_AGENT" + OPERATION_TYPE_MOVE_AGENT = "MOVE_AGENT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "CREATE_AGENT_ENDPOINT" + OPERATION_TYPE_CREATE_AGENT_ENDPOINT = "CREATE_AGENT_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "UPDATE_AGENT_ENDPOINT" + OPERATION_TYPE_UPDATE_AGENT_ENDPOINT = "UPDATE_AGENT_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DELETE_AGENT_ENDPOINT" + OPERATION_TYPE_DELETE_AGENT_ENDPOINT = "DELETE_AGENT_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "MOVE_AGENT_ENDPOINT" + OPERATION_TYPE_MOVE_AGENT_ENDPOINT = "MOVE_AGENT_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "CREATE_DATA_SOURCE" + OPERATION_TYPE_CREATE_DATA_SOURCE = "CREATE_DATA_SOURCE" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "UPDATE_DATA_SOURCE" + OPERATION_TYPE_UPDATE_DATA_SOURCE = "UPDATE_DATA_SOURCE" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DELETE_DATA_SOURCE" + OPERATION_TYPE_DELETE_DATA_SOURCE = "DELETE_DATA_SOURCE" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "CREATE_KNOWLEDGE_BASE" + OPERATION_TYPE_CREATE_KNOWLEDGE_BASE = "CREATE_KNOWLEDGE_BASE" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "UPDATE_KNOWLEDGE_BASE" + OPERATION_TYPE_UPDATE_KNOWLEDGE_BASE = "UPDATE_KNOWLEDGE_BASE" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DELETE_KNOWLEDGE_BASE" + OPERATION_TYPE_DELETE_KNOWLEDGE_BASE = "DELETE_KNOWLEDGE_BASE" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "MOVE_KNOWLEDGE_BASE" + OPERATION_TYPE_MOVE_KNOWLEDGE_BASE = "MOVE_KNOWLEDGE_BASE" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "CREATE_DATA_INGESTION_JOB" + OPERATION_TYPE_CREATE_DATA_INGESTION_JOB = "CREATE_DATA_INGESTION_JOB" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DELETE_DATA_INGESTION_JOB" + OPERATION_TYPE_DELETE_DATA_INGESTION_JOB = "DELETE_DATA_INGESTION_JOB" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "ACCEPTED" + STATUS_ACCEPTED = "ACCEPTED" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "IN_PROGRESS" + STATUS_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "WAITING" + STATUS_WAITING = "WAITING" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "NEEDS_ATTENTION" + STATUS_NEEDS_ATTENTION = "NEEDS_ATTENTION" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "FAILED" + STATUS_FAILED = "FAILED" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "SUCCEEDED" + STATUS_SUCCEEDED = "SUCCEEDED" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "CANCELING" + STATUS_CANCELING = "CANCELING" + + #: A constant which can be used with the status property of a WorkRequestSummary. + #: This constant has a value of "CANCELED" + STATUS_CANCELED = "CANCELED" + + def __init__(self, **kwargs): + """ + Initializes a new WorkRequestSummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation_type: + The value to assign to the operation_type property of this WorkRequestSummary. + Allowed values for this property are: "CREATE_AGENT", "UPDATE_AGENT", "DELETE_AGENT", "MOVE_AGENT", "CREATE_AGENT_ENDPOINT", "UPDATE_AGENT_ENDPOINT", "DELETE_AGENT_ENDPOINT", "MOVE_AGENT_ENDPOINT", "CREATE_DATA_SOURCE", "UPDATE_DATA_SOURCE", "DELETE_DATA_SOURCE", "CREATE_KNOWLEDGE_BASE", "UPDATE_KNOWLEDGE_BASE", "DELETE_KNOWLEDGE_BASE", "MOVE_KNOWLEDGE_BASE", "CREATE_DATA_INGESTION_JOB", "DELETE_DATA_INGESTION_JOB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type operation_type: str + + :param status: + The value to assign to the status property of this WorkRequestSummary. + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + :param id: + The value to assign to the id property of this WorkRequestSummary. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this WorkRequestSummary. + :type compartment_id: str + + :param resources: + The value to assign to the resources property of this WorkRequestSummary. + :type resources: list[oci.generative_ai_agent.models.WorkRequestResource] + + :param percent_complete: + The value to assign to the percent_complete property of this WorkRequestSummary. + :type percent_complete: float + + :param time_accepted: + The value to assign to the time_accepted property of this WorkRequestSummary. + :type time_accepted: datetime + + :param time_started: + The value to assign to the time_started property of this WorkRequestSummary. + :type time_started: datetime + + :param time_finished: + The value to assign to the time_finished property of this WorkRequestSummary. + :type time_finished: datetime + + :param time_updated: + The value to assign to the time_updated property of this WorkRequestSummary. + :type time_updated: datetime + + """ + self.swagger_types = { + 'operation_type': 'str', + 'status': 'str', + 'id': 'str', + 'compartment_id': 'str', + 'resources': 'list[WorkRequestResource]', + 'percent_complete': 'float', + 'time_accepted': 'datetime', + 'time_started': 'datetime', + 'time_finished': 'datetime', + 'time_updated': 'datetime' + } + + self.attribute_map = { + 'operation_type': 'operationType', + 'status': 'status', + 'id': 'id', + 'compartment_id': 'compartmentId', + 'resources': 'resources', + 'percent_complete': 'percentComplete', + 'time_accepted': 'timeAccepted', + 'time_started': 'timeStarted', + 'time_finished': 'timeFinished', + 'time_updated': 'timeUpdated' + } + + self._operation_type = None + self._status = None + self._id = None + self._compartment_id = None + self._resources = None + self._percent_complete = None + self._time_accepted = None + self._time_started = None + self._time_finished = None + self._time_updated = None + + @property + def operation_type(self): + """ + **[Required]** Gets the operation_type of this WorkRequestSummary. + The asynchronous operation tracked by this work request. + + Allowed values for this property are: "CREATE_AGENT", "UPDATE_AGENT", "DELETE_AGENT", "MOVE_AGENT", "CREATE_AGENT_ENDPOINT", "UPDATE_AGENT_ENDPOINT", "DELETE_AGENT_ENDPOINT", "MOVE_AGENT_ENDPOINT", "CREATE_DATA_SOURCE", "UPDATE_DATA_SOURCE", "DELETE_DATA_SOURCE", "CREATE_KNOWLEDGE_BASE", "UPDATE_KNOWLEDGE_BASE", "DELETE_KNOWLEDGE_BASE", "MOVE_KNOWLEDGE_BASE", "CREATE_DATA_INGESTION_JOB", "DELETE_DATA_INGESTION_JOB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The operation_type of this WorkRequestSummary. + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """ + Sets the operation_type of this WorkRequestSummary. + The asynchronous operation tracked by this work request. + + + :param operation_type: The operation_type of this WorkRequestSummary. + :type: str + """ + allowed_values = ["CREATE_AGENT", "UPDATE_AGENT", "DELETE_AGENT", "MOVE_AGENT", "CREATE_AGENT_ENDPOINT", "UPDATE_AGENT_ENDPOINT", "DELETE_AGENT_ENDPOINT", "MOVE_AGENT_ENDPOINT", "CREATE_DATA_SOURCE", "UPDATE_DATA_SOURCE", "DELETE_DATA_SOURCE", "CREATE_KNOWLEDGE_BASE", "UPDATE_KNOWLEDGE_BASE", "DELETE_KNOWLEDGE_BASE", "MOVE_KNOWLEDGE_BASE", "CREATE_DATA_INGESTION_JOB", "DELETE_DATA_INGESTION_JOB"] + if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): + operation_type = 'UNKNOWN_ENUM_VALUE' + self._operation_type = operation_type + + @property + def status(self): + """ + **[Required]** Gets the status of this WorkRequestSummary. + The status of the work request. + + Allowed values for this property are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The status of this WorkRequestSummary. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this WorkRequestSummary. + The status of the work request. + + + :param status: The status of this WorkRequestSummary. + :type: str + """ + allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"] + if not value_allowed_none_or_none_sentinel(status, allowed_values): + status = 'UNKNOWN_ENUM_VALUE' + self._status = status + + @property + def id(self): + """ + **[Required]** Gets the id of this WorkRequestSummary. + The `OCID`__ of the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The id of this WorkRequestSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this WorkRequestSummary. + The `OCID`__ of the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param id: The id of this WorkRequestSummary. + :type: str + """ + self._id = id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this WorkRequestSummary. + The `OCID`__ of the compartment that contains the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this WorkRequestSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this WorkRequestSummary. + The `OCID`__ of the compartment that contains the work request. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this WorkRequestSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def resources(self): + """ + **[Required]** Gets the resources of this WorkRequestSummary. + The resources that are affected by this work request. + + + :return: The resources of this WorkRequestSummary. + :rtype: list[oci.generative_ai_agent.models.WorkRequestResource] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this WorkRequestSummary. + The resources that are affected by this work request. + + + :param resources: The resources of this WorkRequestSummary. + :type: list[oci.generative_ai_agent.models.WorkRequestResource] + """ + self._resources = resources + + @property + def percent_complete(self): + """ + **[Required]** Gets the percent_complete of this WorkRequestSummary. + Shows the progress of the operation tracked by the work request, as a percentage of the total work + that must be performed. + + + :return: The percent_complete of this WorkRequestSummary. + :rtype: float + """ + return self._percent_complete + + @percent_complete.setter + def percent_complete(self, percent_complete): + """ + Sets the percent_complete of this WorkRequestSummary. + Shows the progress of the operation tracked by the work request, as a percentage of the total work + that must be performed. + + + :param percent_complete: The percent_complete of this WorkRequestSummary. + :type: float + """ + self._percent_complete = percent_complete + + @property + def time_accepted(self): + """ + **[Required]** Gets the time_accepted of this WorkRequestSummary. + The date and time the work request was created, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_accepted of this WorkRequestSummary. + :rtype: datetime + """ + return self._time_accepted + + @time_accepted.setter + def time_accepted(self, time_accepted): + """ + Sets the time_accepted of this WorkRequestSummary. + The date and time the work request was created, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_accepted: The time_accepted of this WorkRequestSummary. + :type: datetime + """ + self._time_accepted = time_accepted + + @property + def time_started(self): + """ + Gets the time_started of this WorkRequestSummary. + The date and time the work request was started, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :return: The time_started of this WorkRequestSummary. + :rtype: datetime + """ + return self._time_started + + @time_started.setter + def time_started(self, time_started): + """ + Sets the time_started of this WorkRequestSummary. + The date and time the work request was started, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/html/rfc3339 + + + :param time_started: The time_started of this WorkRequestSummary. + :type: datetime + """ + self._time_started = time_started + + @property + def time_finished(self): + """ + Gets the time_finished of this WorkRequestSummary. + The date and time the work request was finished, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/rfc/rfc3339 + + + :return: The time_finished of this WorkRequestSummary. + :rtype: datetime + """ + return self._time_finished + + @time_finished.setter + def time_finished(self, time_finished): + """ + Sets the time_finished of this WorkRequestSummary. + The date and time the work request was finished, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/rfc/rfc3339 + + + :param time_finished: The time_finished of this WorkRequestSummary. + :type: datetime + """ + self._time_finished = time_finished + + @property + def time_updated(self): + """ + Gets the time_updated of this WorkRequestSummary. + The date and time the work request was updated, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/rfc/rfc3339 + + + :return: The time_updated of this WorkRequestSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this WorkRequestSummary. + The date and time the work request was updated, in the format defined by + `RFC 3339`__. + + __ https://tools.ietf.org/rfc/rfc3339 + + + :param time_updated: The time_updated of this WorkRequestSummary. + :type: datetime + """ + self._time_updated = time_updated + + 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/generative_ai_agent/models/work_request_summary_collection.py b/src/oci/generative_ai_agent/models/work_request_summary_collection.py new file mode 100644 index 000000000..6bfc28ba7 --- /dev/null +++ b/src/oci/generative_ai_agent/models/work_request_summary_collection.py @@ -0,0 +1,74 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 WorkRequestSummaryCollection(object): + """ + **WorkRequestSummaryCollection** + + A list of work requests. Can contain both work requests and other information, such as metadata. + """ + + def __init__(self, **kwargs): + """ + Initializes a new WorkRequestSummaryCollection 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 WorkRequestSummaryCollection. + :type items: list[oci.generative_ai_agent.models.WorkRequestSummary] + + """ + self.swagger_types = { + 'items': 'list[WorkRequestSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this WorkRequestSummaryCollection. + A list of work requests. + + + :return: The items of this WorkRequestSummaryCollection. + :rtype: list[oci.generative_ai_agent.models.WorkRequestSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this WorkRequestSummaryCollection. + A list of work requests. + + + :param items: The items of this WorkRequestSummaryCollection. + :type: list[oci.generative_ai_agent.models.WorkRequestSummary] + """ + 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/generative_ai_agent_runtime/__init__.py b/src/oci/generative_ai_agent_runtime/__init__.py new file mode 100644 index 000000000..0c1aa3099 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/__init__.py @@ -0,0 +1,14 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from __future__ import absolute_import + + +from .generative_ai_agent_runtime_client import GenerativeAiAgentRuntimeClient +from .generative_ai_agent_runtime_client_composite_operations import GenerativeAiAgentRuntimeClientCompositeOperations +from . import models + +__all__ = ["GenerativeAiAgentRuntimeClient", "GenerativeAiAgentRuntimeClientCompositeOperations", "models"] diff --git a/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py new file mode 100644 index 000000000..530b6a447 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py @@ -0,0 +1,689 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from __future__ import absolute_import + +from oci._vendor import requests # noqa: F401 +from oci._vendor import six + +from oci import retry, circuit_breaker # noqa: F401 +from oci.base_client import BaseClient +from oci.config import get_config_value_or_default, validate_config +from oci.signer import Signer +from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME +from oci.exceptions import InvalidAlloyConfig +from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET +from .models import generative_ai_agent_runtime_type_mapping +missing = Sentinel("Missing") + + +class GenerativeAiAgentRuntimeClient(object): + """ + OCI Generative AI Agents is a fully managed service that combines the power of large language models (LLMs) with an intelligent retrieval system to create contextually relevant answers by searching your knowledge base, making your AI applications smart and efficient. + + OCI Generative AI Agents supports several ways to onboard your data and then allows you and your customers to interact with your data using a chat interface or API. + + Use the Generative AI Agents Client API to create and manage client chat sessions. A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation. + + For creating and managing agents, knowledge bases, data sources, endpoints, and data ingestion jobs see the [Generative AI Agents Management API](#/EN/generative-ai-agents/latest/). + + To learn more about the service, see the [Generative AI Agents documentation](/iaas/Content/generative-ai-agents/home.htm). + """ + + def __init__(self, config, **kwargs): + """ + Creates a new service client + + :param dict config: + Configuration keys and values as per `SDK and Tool Configuration `__. + The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config + the dict using :py:meth:`~oci.config.validate_config` + + :param str service_endpoint: (optional) + The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is + not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit + need to specify a service endpoint. + + :param timeout: (optional) + The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided + as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If + a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. + :type timeout: float or tuple(float, float) + + :param signer: (optional) + The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values + provided in the config parameter. + + One use case for this parameter is for `Instance Principals authentication `__ + by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument + :type signer: :py:class:`~oci.signer.AbstractBaseSigner` + + :param obj retry_strategy: (optional) + A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. + Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. + Any value provided at the operation level will override whatever is specified at the client level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` + is also available. The specifics of the default retry strategy are described `here `__. + + :param obj circuit_breaker_strategy: (optional) + A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). + This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. + The specifics of circuit breaker strategy are described `here `__. + + :param function circuit_breaker_callback: (optional) + Callback function to receive any exceptions triggerred by the circuit breaker. + + :param bool client_level_realm_specific_endpoint_template_enabled: (optional) + A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None. + + :param allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not + allow control characters to be in the response object. + """ + if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("generative_ai_agent_runtime"): + raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service") + + validate_config(config, signer=kwargs.get('signer')) + if 'signer' in kwargs: + signer = kwargs['signer'] + + elif AUTHENTICATION_TYPE_FIELD_NAME in config: + signer = get_signer_from_authentication_type(config) + + else: + signer = Signer( + tenancy=config["tenancy"], + user=config["user"], + fingerprint=config["fingerprint"], + private_key_file_location=config.get("key_file"), + pass_phrase=get_config_value_or_default(config, "pass_phrase"), + private_key_content=config.get("key_content") + ) + + base_client_init_kwargs = { + 'regional_client': True, + 'service_endpoint': kwargs.get('service_endpoint'), + 'base_path': '/20240531', + 'service_endpoint_template': 'https://genai-agent-service.{region}.oci.{secondLevelDomain}', + 'service_endpoint_template_per_realm': { }, # noqa: E201 E202 + 'skip_deserialization': kwargs.get('skip_deserialization', False), + 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY), + 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled') + } + if 'timeout' in kwargs: + base_client_init_kwargs['timeout'] = kwargs.get('timeout') + if base_client_init_kwargs.get('circuit_breaker_strategy') is None: + base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY + if 'allow_control_chars' in kwargs: + base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') + self.base_client = BaseClient("generative_ai_agent_runtime", config, signer, generative_ai_agent_runtime_type_mapping, **base_client_init_kwargs) + self.retry_strategy = kwargs.get('retry_strategy') + self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') + + def chat(self, agent_endpoint_id, chat_details, **kwargs): + """ + Chat on endpoint with provided messages. + + + :param str agent_endpoint_id: (required) + A unique ID for the endpoint. + + :param oci.generative_ai_agent_runtime.models.ChatDetails chat_details: (required) + Input for chat. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent_runtime.models.ChatResult` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use chat API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId'] + resource_path = "/agentEndpoints/{agentEndpointId}/actions/chat" + method = "POST" + operation_name = "chat" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/Chat" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "if_match", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"chat got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_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(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json, text/event-stream", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "if-match": kwargs.get("if_match", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=chat_details, + response_type="ChatResult", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=chat_details, + response_type="ChatResult", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def create_session(self, create_session_details, agent_endpoint_id, **kwargs): + """ + A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation.Creates an agent session. + + Use this API to create an agent session. + + + :param oci.generative_ai_agent_runtime.models.CreateSessionDetails create_session_details: (required) + Details for the new agent session. + + :param str agent_endpoint_id: (required) + A unique ID for the endpoint. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent_runtime.models.Session` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_session API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId'] + resource_path = "/agentEndpoints/{agentEndpointId}/sessions" + method = "POST" + operation_name = "create_session" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/CreateSession" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_session got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_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(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=create_session_details, + response_type="Session", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=create_session_details, + response_type="Session", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def delete_session(self, agent_endpoint_id, session_id, **kwargs): + """ + Delete a session and all its associated information. + + + :param str agent_endpoint_id: (required) + A unique ID for the endpoint. + + :param str session_id: (required) + A unique ID for the session. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_session API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId', 'sessionId'] + resource_path = "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}" + method = "DELETE" + operation_name = "delete_session" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/DeleteSession" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_session got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_endpoint_id, + "sessionId": session_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_session(self, agent_endpoint_id, session_id, **kwargs): + """ + Return the session resource identified by the session ID. + + + :param str agent_endpoint_id: (required) + A unique ID for the endpoint. + + :param str session_id: (required) + A unique ID for the session. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent_runtime.models.Session` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_session API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId', 'sessionId'] + resource_path = "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}" + method = "GET" + operation_name = "get_session" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/GetSession" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_session got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_endpoint_id, + "sessionId": session_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="Session", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="Session", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def update_session(self, agent_endpoint_id, session_id, update_session_details, **kwargs): + """ + Update session metadata, including but not limited to description, tags. + + + :param str agent_endpoint_id: (required) + A unique ID for the endpoint. + + :param str session_id: (required) + A unique ID for the session. + + :param oci.generative_ai_agent_runtime.models.UpdateSessionDetails update_session_details: (required) + Details to update an agent session. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.generative_ai_agent_runtime.models.Session` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_session API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['agentEndpointId', 'sessionId'] + resource_path = "/agentEndpoints/{agentEndpointId}/sessions/{sessionId}" + method = "PUT" + operation_name = "update_session" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/generative-ai-agents-client/20240531/Session/UpdateSession" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_session got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "agentEndpointId": agent_endpoint_id, + "sessionId": session_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_session_details, + response_type="Session", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_session_details, + response_type="Session", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) diff --git a/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client_composite_operations.py b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client_composite_operations.py new file mode 100644 index 000000000..f074641ed --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client_composite_operations.py @@ -0,0 +1,26 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +import oci # noqa: F401 +from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 + + +class GenerativeAiAgentRuntimeClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.generative_ai_agent_runtime.GenerativeAiAgentRuntimeClient` and offers convenience methods + for operations that would otherwise need to be chained together. For example, instead of performing an action + on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource + to enter a given state, you can call a single method in this class to accomplish the same functionality + """ + + def __init__(self, client, **kwargs): + """ + Creates a new GenerativeAiAgentRuntimeClientCompositeOperations object + + :param GenerativeAiAgentRuntimeClient client: + The service client which will be wrapped by this object + """ + self.client = client diff --git a/src/oci/generative_ai_agent_runtime/models/__init__.py b/src/oci/generative_ai_agent_runtime/models/__init__.py new file mode 100644 index 000000000..09f1b83b2 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/__init__.py @@ -0,0 +1,44 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from __future__ import absolute_import + +from .chat_details import ChatDetails +from .chat_result import ChatResult +from .citation import Citation +from .create_session_details import CreateSessionDetails +from .error_trace import ErrorTrace +from .generation_trace import GenerationTrace +from .message import Message +from .message_content import MessageContent +from .oci_database_source_location import OciDatabaseSourceLocation +from .oci_object_storage_source_location import OciObjectStorageSourceLocation +from .oci_open_search_source_location import OciOpenSearchSourceLocation +from .retrieval_trace import RetrievalTrace +from .session import Session +from .source_location import SourceLocation +from .trace import Trace +from .update_session_details import UpdateSessionDetails + +# Maps type names to classes for generative_ai_agent_runtime services. +generative_ai_agent_runtime_type_mapping = { + "ChatDetails": ChatDetails, + "ChatResult": ChatResult, + "Citation": Citation, + "CreateSessionDetails": CreateSessionDetails, + "ErrorTrace": ErrorTrace, + "GenerationTrace": GenerationTrace, + "Message": Message, + "MessageContent": MessageContent, + "OciDatabaseSourceLocation": OciDatabaseSourceLocation, + "OciObjectStorageSourceLocation": OciObjectStorageSourceLocation, + "OciOpenSearchSourceLocation": OciOpenSearchSourceLocation, + "RetrievalTrace": RetrievalTrace, + "Session": Session, + "SourceLocation": SourceLocation, + "Trace": Trace, + "UpdateSessionDetails": UpdateSessionDetails +} diff --git a/src/oci/generative_ai_agent_runtime/models/chat_details.py b/src/oci/generative_ai_agent_runtime/models/chat_details.py new file mode 100644 index 000000000..d2bcd52bc --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/chat_details.py @@ -0,0 +1,134 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 ChatDetails(object): + """ + Chat details. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ChatDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param user_message: + The value to assign to the user_message property of this ChatDetails. + :type user_message: str + + :param should_stream: + The value to assign to the should_stream property of this ChatDetails. + :type should_stream: bool + + :param session_id: + The value to assign to the session_id property of this ChatDetails. + :type session_id: str + + """ + self.swagger_types = { + 'user_message': 'str', + 'should_stream': 'bool', + 'session_id': 'str' + } + + self.attribute_map = { + 'user_message': 'userMessage', + 'should_stream': 'shouldStream', + 'session_id': 'sessionId' + } + + self._user_message = None + self._should_stream = None + self._session_id = None + + @property + def user_message(self): + """ + **[Required]** Gets the user_message of this ChatDetails. + The input user message content for the chat. + + + :return: The user_message of this ChatDetails. + :rtype: str + """ + return self._user_message + + @user_message.setter + def user_message(self, user_message): + """ + Sets the user_message of this ChatDetails. + The input user message content for the chat. + + + :param user_message: The user_message of this ChatDetails. + :type: str + """ + self._user_message = user_message + + @property + def should_stream(self): + """ + Gets the should_stream of this ChatDetails. + Whether to stream the response. + + + :return: The should_stream of this ChatDetails. + :rtype: bool + """ + return self._should_stream + + @should_stream.setter + def should_stream(self, should_stream): + """ + Sets the should_stream of this ChatDetails. + Whether to stream the response. + + + :param should_stream: The should_stream of this ChatDetails. + :type: bool + """ + self._should_stream = should_stream + + @property + def session_id(self): + """ + Gets the session_id of this ChatDetails. + Optional sessionId. If not provided, will chat without any prior context. + + + :return: The session_id of this ChatDetails. + :rtype: str + """ + return self._session_id + + @session_id.setter + def session_id(self, session_id): + """ + Sets the session_id of this ChatDetails. + Optional sessionId. If not provided, will chat without any prior context. + + + :param session_id: The session_id of this ChatDetails. + :type: str + """ + self._session_id = session_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/generative_ai_agent_runtime/models/chat_result.py b/src/oci/generative_ai_agent_runtime/models/chat_result.py new file mode 100644 index 000000000..f5dacef1c --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/chat_result.py @@ -0,0 +1,99 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 ChatResult(object): + """ + The response of a chat request. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ChatResult object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param message: + The value to assign to the message property of this ChatResult. + :type message: oci.generative_ai_agent_runtime.models.Message + + :param traces: + The value to assign to the traces property of this ChatResult. + :type traces: list[oci.generative_ai_agent_runtime.models.Trace] + + """ + self.swagger_types = { + 'message': 'Message', + 'traces': 'list[Trace]' + } + + self.attribute_map = { + 'message': 'message', + 'traces': 'traces' + } + + self._message = None + self._traces = None + + @property + def message(self): + """ + Gets the message of this ChatResult. + + :return: The message of this ChatResult. + :rtype: oci.generative_ai_agent_runtime.models.Message + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this ChatResult. + + :param message: The message of this ChatResult. + :type: oci.generative_ai_agent_runtime.models.Message + """ + self._message = message + + @property + def traces(self): + """ + Gets the traces of this ChatResult. + The trace that displays the internal progression, such as reasoning and actions during an execution. + + + :return: The traces of this ChatResult. + :rtype: list[oci.generative_ai_agent_runtime.models.Trace] + """ + return self._traces + + @traces.setter + def traces(self, traces): + """ + Sets the traces of this ChatResult. + The trace that displays the internal progression, such as reasoning and actions during an execution. + + + :param traces: The traces of this ChatResult. + :type: list[oci.generative_ai_agent_runtime.models.Trace] + """ + self._traces = traces + + 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/generative_ai_agent_runtime/models/citation.py b/src/oci/generative_ai_agent_runtime/models/citation.py new file mode 100644 index 000000000..15ce5a909 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/citation.py @@ -0,0 +1,99 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 Citation(object): + """ + The citation displays the location of source text that is the agent uses to create the responses. + """ + + def __init__(self, **kwargs): + """ + Initializes a new Citation object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param source_text: + The value to assign to the source_text property of this Citation. + :type source_text: str + + :param source_location: + The value to assign to the source_location property of this Citation. + :type source_location: oci.generative_ai_agent_runtime.models.SourceLocation + + """ + self.swagger_types = { + 'source_text': 'str', + 'source_location': 'SourceLocation' + } + + self.attribute_map = { + 'source_text': 'sourceText', + 'source_location': 'sourceLocation' + } + + self._source_text = None + self._source_location = None + + @property + def source_text(self): + """ + Gets the source_text of this Citation. + The text that's the source for the agent's response. + + + :return: The source_text of this Citation. + :rtype: str + """ + return self._source_text + + @source_text.setter + def source_text(self, source_text): + """ + Sets the source_text of this Citation. + The text that's the source for the agent's response. + + + :param source_text: The source_text of this Citation. + :type: str + """ + self._source_text = source_text + + @property + def source_location(self): + """ + Gets the source_location of this Citation. + + :return: The source_location of this Citation. + :rtype: oci.generative_ai_agent_runtime.models.SourceLocation + """ + return self._source_location + + @source_location.setter + def source_location(self, source_location): + """ + Sets the source_location of this Citation. + + :param source_location: The source_location of this Citation. + :type: oci.generative_ai_agent_runtime.models.SourceLocation + """ + self._source_location = source_location + + 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/generative_ai_agent_runtime/models/create_session_details.py b/src/oci/generative_ai_agent_runtime/models/create_session_details.py new file mode 100644 index 000000000..e80ca10fc --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/create_session_details.py @@ -0,0 +1,103 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 CreateSessionDetails(object): + """ + Information about the new session. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateSessionDetails 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 CreateSessionDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this CreateSessionDetails. + :type description: str + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description' + } + + self._display_name = None + self._description = None + + @property + def display_name(self): + """ + Gets the display_name of this CreateSessionDetails. + The name of the session. A session names doesn't have to be unique and you can change the session name later. + + + :return: The display_name of this CreateSessionDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this CreateSessionDetails. + The name of the session. A session names doesn't have to be unique and you can change the session name later. + + + :param display_name: The display_name of this CreateSessionDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this CreateSessionDetails. + An optional description of the session. + + + :return: The description of this CreateSessionDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateSessionDetails. + An optional description of the session. + + + :param description: The description of this CreateSessionDetails. + :type: str + """ + self._description = description + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/generative_ai_agent_runtime/models/error_trace.py b/src/oci/generative_ai_agent_runtime/models/error_trace.py new file mode 100644 index 000000000..741302581 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/error_trace.py @@ -0,0 +1,89 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .trace import Trace +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 ErrorTrace(Trace): + """ + The trace information about the error. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ErrorTrace object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent_runtime.models.ErrorTrace.trace_type` attribute + of this class is ``ERROR_TRACE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param time_created: + The value to assign to the time_created property of this ErrorTrace. + :type time_created: datetime + + :param trace_type: + The value to assign to the trace_type property of this ErrorTrace. + Allowed values for this property are: "ERROR_TRACE", "RETRIEVAL_TRACE", "GENERATION_TRACE" + :type trace_type: str + + :param error_message: + The value to assign to the error_message property of this ErrorTrace. + :type error_message: str + + """ + self.swagger_types = { + 'time_created': 'datetime', + 'trace_type': 'str', + 'error_message': 'str' + } + + self.attribute_map = { + 'time_created': 'timeCreated', + 'trace_type': 'traceType', + 'error_message': 'errorMessage' + } + + self._time_created = None + self._trace_type = None + self._error_message = None + self._trace_type = 'ERROR_TRACE' + + @property + def error_message(self): + """ + Gets the error_message of this ErrorTrace. + The error message in this trace. + + + :return: The error_message of this ErrorTrace. + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """ + Sets the error_message of this ErrorTrace. + The error message in this trace. + + + :param error_message: The error_message of this ErrorTrace. + :type: str + """ + self._error_message = error_message + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/generative_ai_agent_runtime/models/generation_trace.py b/src/oci/generative_ai_agent_runtime/models/generation_trace.py new file mode 100644 index 000000000..06a0f9803 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/generation_trace.py @@ -0,0 +1,89 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .trace import Trace +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 GenerationTrace(Trace): + """ + The trace information about the generated response. + """ + + def __init__(self, **kwargs): + """ + Initializes a new GenerationTrace object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent_runtime.models.GenerationTrace.trace_type` attribute + of this class is ``GENERATION_TRACE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param time_created: + The value to assign to the time_created property of this GenerationTrace. + :type time_created: datetime + + :param trace_type: + The value to assign to the trace_type property of this GenerationTrace. + Allowed values for this property are: "ERROR_TRACE", "RETRIEVAL_TRACE", "GENERATION_TRACE" + :type trace_type: str + + :param generation: + The value to assign to the generation property of this GenerationTrace. + :type generation: str + + """ + self.swagger_types = { + 'time_created': 'datetime', + 'trace_type': 'str', + 'generation': 'str' + } + + self.attribute_map = { + 'time_created': 'timeCreated', + 'trace_type': 'traceType', + 'generation': 'generation' + } + + self._time_created = None + self._trace_type = None + self._generation = None + self._trace_type = 'GENERATION_TRACE' + + @property + def generation(self): + """ + Gets the generation of this GenerationTrace. + The generated response that's returned to the user. + + + :return: The generation of this GenerationTrace. + :rtype: str + """ + return self._generation + + @generation.setter + def generation(self, generation): + """ + Sets the generation of this GenerationTrace. + The generated response that's returned to the user. + + + :param generation: The generation of this GenerationTrace. + :type: str + """ + self._generation = generation + + 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/generative_ai_agent_runtime/models/message.py b/src/oci/generative_ai_agent_runtime/models/message.py new file mode 100644 index 000000000..540e2fd6d --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/message.py @@ -0,0 +1,146 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 Message(object): + """ + The Message resource generated by the agent. + """ + + #: A constant which can be used with the role property of a Message. + #: This constant has a value of "USER" + ROLE_USER = "USER" + + #: A constant which can be used with the role property of a Message. + #: This constant has a value of "AGENT" + ROLE_AGENT = "AGENT" + + def __init__(self, **kwargs): + """ + Initializes a new Message object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param role: + The value to assign to the role property of this Message. + Allowed values for this property are: "USER", "AGENT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type role: str + + :param content: + The value to assign to the content property of this Message. + :type content: oci.generative_ai_agent_runtime.models.MessageContent + + :param time_created: + The value to assign to the time_created property of this Message. + :type time_created: datetime + + """ + self.swagger_types = { + 'role': 'str', + 'content': 'MessageContent', + 'time_created': 'datetime' + } + + self.attribute_map = { + 'role': 'role', + 'content': 'content', + 'time_created': 'timeCreated' + } + + self._role = None + self._content = None + self._time_created = None + + @property + def role(self): + """ + **[Required]** Gets the role of this Message. + The role of the sender of this message. + + Allowed values for this property are: "USER", "AGENT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The role of this Message. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """ + Sets the role of this Message. + The role of the sender of this message. + + + :param role: The role of this Message. + :type: str + """ + allowed_values = ["USER", "AGENT"] + if not value_allowed_none_or_none_sentinel(role, allowed_values): + role = 'UNKNOWN_ENUM_VALUE' + self._role = role + + @property + def content(self): + """ + **[Required]** Gets the content of this Message. + + :return: The content of this Message. + :rtype: oci.generative_ai_agent_runtime.models.MessageContent + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this Message. + + :param content: The content of this Message. + :type: oci.generative_ai_agent_runtime.models.MessageContent + """ + self._content = content + + @property + def time_created(self): + """ + Gets the time_created of this Message. + The date and time that the message was created in the format of an RFC3339 datetime string. + + + :return: The time_created of this Message. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this Message. + The date and time that the message was created in the format of an RFC3339 datetime string. + + + :param time_created: The time_created of this Message. + :type: datetime + """ + self._time_created = time_created + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/generative_ai_agent_runtime/models/message_content.py b/src/oci/generative_ai_agent_runtime/models/message_content.py new file mode 100644 index 000000000..7b0f18b6c --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/message_content.py @@ -0,0 +1,103 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 MessageContent(object): + """ + The content of the message. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MessageContent object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param text: + The value to assign to the text property of this MessageContent. + :type text: str + + :param citations: + The value to assign to the citations property of this MessageContent. + :type citations: list[oci.generative_ai_agent_runtime.models.Citation] + + """ + self.swagger_types = { + 'text': 'str', + 'citations': 'list[Citation]' + } + + self.attribute_map = { + 'text': 'text', + 'citations': 'citations' + } + + self._text = None + self._citations = None + + @property + def text(self): + """ + **[Required]** Gets the text of this MessageContent. + The content of the message. + + + :return: The text of this MessageContent. + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """ + Sets the text of this MessageContent. + The content of the message. + + + :param text: The text of this MessageContent. + :type: str + """ + self._text = text + + @property + def citations(self): + """ + Gets the citations of this MessageContent. + Citations to data sources used for generating an agent's message. + + + :return: The citations of this MessageContent. + :rtype: list[oci.generative_ai_agent_runtime.models.Citation] + """ + return self._citations + + @citations.setter + def citations(self, citations): + """ + Sets the citations of this MessageContent. + Citations to data sources used for generating an agent's message. + + + :param citations: The citations of this MessageContent. + :type: list[oci.generative_ai_agent_runtime.models.Citation] + """ + self._citations = citations + + 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/generative_ai_agent_runtime/models/oci_database_source_location.py b/src/oci/generative_ai_agent_runtime/models/oci_database_source_location.py new file mode 100644 index 000000000..bc54ec06c --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/oci_database_source_location.py @@ -0,0 +1,148 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .source_location import SourceLocation +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 OciDatabaseSourceLocation(SourceLocation): + """ + The location of the OCI Database that the agent will use. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OciDatabaseSourceLocation object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent_runtime.models.OciDatabaseSourceLocation.source_location_type` attribute + of this class is ``OCI_DATABASE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param source_location_type: + The value to assign to the source_location_type property of this OciDatabaseSourceLocation. + Allowed values for this property are: "OCI_OBJECT_STORAGE", "OCI_OPEN_SEARCH", "OCI_DATABASE" + :type source_location_type: str + + :param id: + The value to assign to the id property of this OciDatabaseSourceLocation. + :type id: str + + :param function_name: + The value to assign to the function_name property of this OciDatabaseSourceLocation. + :type function_name: str + + :param url: + The value to assign to the url property of this OciDatabaseSourceLocation. + :type url: str + + """ + self.swagger_types = { + 'source_location_type': 'str', + 'id': 'str', + 'function_name': 'str', + 'url': 'str' + } + + self.attribute_map = { + 'source_location_type': 'sourceLocationType', + 'id': 'id', + 'function_name': 'functionName', + 'url': 'url' + } + + self._source_location_type = None + self._id = None + self._function_name = None + self._url = None + self._source_location_type = 'OCI_DATABASE' + + @property + def id(self): + """ + Gets the id of this OciDatabaseSourceLocation. + The OCID of the `OCI Database Tools Connection`__. + + __ https://docs.cloud.oracle.com/iaas/database-tools/home.htm + + + :return: The id of this OciDatabaseSourceLocation. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this OciDatabaseSourceLocation. + The OCID of the `OCI Database Tools Connection`__. + + __ https://docs.cloud.oracle.com/iaas/database-tools/home.htm + + + :param id: The id of this OciDatabaseSourceLocation. + :type: str + """ + self._id = id + + @property + def function_name(self): + """ + Gets the function_name of this OciDatabaseSourceLocation. + The name of the function that returns source text. + + + :return: The function_name of this OciDatabaseSourceLocation. + :rtype: str + """ + return self._function_name + + @function_name.setter + def function_name(self, function_name): + """ + Sets the function_name of this OciDatabaseSourceLocation. + The name of the function that returns source text. + + + :param function_name: The function_name of this OciDatabaseSourceLocation. + :type: str + """ + self._function_name = function_name + + @property + def url(self): + """ + Gets the url of this OciDatabaseSourceLocation. + The URL of the retrieved document, if available. + + + :return: The url of this OciDatabaseSourceLocation. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this OciDatabaseSourceLocation. + The URL of the retrieved document, if available. + + + :param url: The url of this OciDatabaseSourceLocation. + :type: str + """ + self._url = url + + 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/generative_ai_agent_runtime/models/oci_object_storage_source_location.py b/src/oci/generative_ai_agent_runtime/models/oci_object_storage_source_location.py new file mode 100644 index 000000000..3b879a6dc --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/oci_object_storage_source_location.py @@ -0,0 +1,82 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .source_location import SourceLocation +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 OciObjectStorageSourceLocation(SourceLocation): + """ + The OCI Object Storage that contains the data files. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OciObjectStorageSourceLocation object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent_runtime.models.OciObjectStorageSourceLocation.source_location_type` attribute + of this class is ``OCI_OBJECT_STORAGE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param source_location_type: + The value to assign to the source_location_type property of this OciObjectStorageSourceLocation. + Allowed values for this property are: "OCI_OBJECT_STORAGE", "OCI_OPEN_SEARCH", "OCI_DATABASE" + :type source_location_type: str + + :param url: + The value to assign to the url property of this OciObjectStorageSourceLocation. + :type url: str + + """ + self.swagger_types = { + 'source_location_type': 'str', + 'url': 'str' + } + + self.attribute_map = { + 'source_location_type': 'sourceLocationType', + 'url': 'url' + } + + self._source_location_type = None + self._url = None + self._source_location_type = 'OCI_OBJECT_STORAGE' + + @property + def url(self): + """ + Gets the url of this OciObjectStorageSourceLocation. + The URL of the OCI Object Storage data source. + + + :return: The url of this OciObjectStorageSourceLocation. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this OciObjectStorageSourceLocation. + The URL of the OCI Object Storage data source. + + + :param url: The url of this OciObjectStorageSourceLocation. + :type: str + """ + self._url = url + + 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/generative_ai_agent_runtime/models/oci_open_search_source_location.py b/src/oci/generative_ai_agent_runtime/models/oci_open_search_source_location.py new file mode 100644 index 000000000..ccde10607 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/oci_open_search_source_location.py @@ -0,0 +1,144 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .source_location import SourceLocation +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 OciOpenSearchSourceLocation(SourceLocation): + """ + The location of the OCI Search with OpenSearch that the agent will use. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OciOpenSearchSourceLocation object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent_runtime.models.OciOpenSearchSourceLocation.source_location_type` attribute + of this class is ``OCI_OPEN_SEARCH`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param source_location_type: + The value to assign to the source_location_type property of this OciOpenSearchSourceLocation. + Allowed values for this property are: "OCI_OBJECT_STORAGE", "OCI_OPEN_SEARCH", "OCI_DATABASE" + :type source_location_type: str + + :param id: + The value to assign to the id property of this OciOpenSearchSourceLocation. + :type id: str + + :param index_name: + The value to assign to the index_name property of this OciOpenSearchSourceLocation. + :type index_name: str + + :param url: + The value to assign to the url property of this OciOpenSearchSourceLocation. + :type url: str + + """ + self.swagger_types = { + 'source_location_type': 'str', + 'id': 'str', + 'index_name': 'str', + 'url': 'str' + } + + self.attribute_map = { + 'source_location_type': 'sourceLocationType', + 'id': 'id', + 'index_name': 'indexName', + 'url': 'url' + } + + self._source_location_type = None + self._id = None + self._index_name = None + self._url = None + self._source_location_type = 'OCI_OPEN_SEARCH' + + @property + def id(self): + """ + Gets the id of this OciOpenSearchSourceLocation. + The OCID of the OCI OpenSearch cluster. + + + :return: The id of this OciOpenSearchSourceLocation. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this OciOpenSearchSourceLocation. + The OCID of the OCI OpenSearch cluster. + + + :param id: The id of this OciOpenSearchSourceLocation. + :type: str + """ + self._id = id + + @property + def index_name(self): + """ + Gets the index_name of this OciOpenSearchSourceLocation. + The name of the index in OpenSearch that contains the source text. + + + :return: The index_name of this OciOpenSearchSourceLocation. + :rtype: str + """ + return self._index_name + + @index_name.setter + def index_name(self, index_name): + """ + Sets the index_name of this OciOpenSearchSourceLocation. + The name of the index in OpenSearch that contains the source text. + + + :param index_name: The index_name of this OciOpenSearchSourceLocation. + :type: str + """ + self._index_name = index_name + + @property + def url(self): + """ + Gets the url of this OciOpenSearchSourceLocation. + The URL of the retrieved document, if available. + + + :return: The url of this OciOpenSearchSourceLocation. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this OciOpenSearchSourceLocation. + The URL of the retrieved document, if available. + + + :param url: The url of this OciOpenSearchSourceLocation. + :type: str + """ + self._url = url + + 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/generative_ai_agent_runtime/models/retrieval_trace.py b/src/oci/generative_ai_agent_runtime/models/retrieval_trace.py new file mode 100644 index 000000000..2df55a246 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/retrieval_trace.py @@ -0,0 +1,120 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + +from .trace import Trace +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 RetrievalTrace(Trace): + """ + The trace that displays the retrieval information. + """ + + def __init__(self, **kwargs): + """ + Initializes a new RetrievalTrace object with values from keyword arguments. The default value of the :py:attr:`~oci.generative_ai_agent_runtime.models.RetrievalTrace.trace_type` attribute + of this class is ``RETRIEVAL_TRACE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param time_created: + The value to assign to the time_created property of this RetrievalTrace. + :type time_created: datetime + + :param trace_type: + The value to assign to the trace_type property of this RetrievalTrace. + Allowed values for this property are: "ERROR_TRACE", "RETRIEVAL_TRACE", "GENERATION_TRACE" + :type trace_type: str + + :param retrieval_input: + The value to assign to the retrieval_input property of this RetrievalTrace. + :type retrieval_input: str + + :param citations: + The value to assign to the citations property of this RetrievalTrace. + :type citations: list[oci.generative_ai_agent_runtime.models.Citation] + + """ + self.swagger_types = { + 'time_created': 'datetime', + 'trace_type': 'str', + 'retrieval_input': 'str', + 'citations': 'list[Citation]' + } + + self.attribute_map = { + 'time_created': 'timeCreated', + 'trace_type': 'traceType', + 'retrieval_input': 'retrievalInput', + 'citations': 'citations' + } + + self._time_created = None + self._trace_type = None + self._retrieval_input = None + self._citations = None + self._trace_type = 'RETRIEVAL_TRACE' + + @property + def retrieval_input(self): + """ + Gets the retrieval_input of this RetrievalTrace. + The agent's search string for getting the displayed information. + + + :return: The retrieval_input of this RetrievalTrace. + :rtype: str + """ + return self._retrieval_input + + @retrieval_input.setter + def retrieval_input(self, retrieval_input): + """ + Sets the retrieval_input of this RetrievalTrace. + The agent's search string for getting the displayed information. + + + :param retrieval_input: The retrieval_input of this RetrievalTrace. + :type: str + """ + self._retrieval_input = retrieval_input + + @property + def citations(self): + """ + Gets the citations of this RetrievalTrace. + A list of citations retrieved from data sources. + + + :return: The citations of this RetrievalTrace. + :rtype: list[oci.generative_ai_agent_runtime.models.Citation] + """ + return self._citations + + @citations.setter + def citations(self, citations): + """ + Sets the citations of this RetrievalTrace. + A list of citations retrieved from data sources. + + + :param citations: The citations of this RetrievalTrace. + :type: list[oci.generative_ai_agent_runtime.models.Citation] + """ + self._citations = citations + + 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/generative_ai_agent_runtime/models/session.py b/src/oci/generative_ai_agent_runtime/models/session.py new file mode 100644 index 000000000..4c25e4d8b --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/session.py @@ -0,0 +1,227 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 Session(object): + """ + A session represents an interactive conversation initiated by a user through an API to engage with an agent. It involves a series of exchanges where the user sends queries or prompts, and the agent responds with relevant information, actions, or assistance based on the user's input. The session persists for the duration of the interaction, maintaining context and continuity to provide coherent and meaningful responses throughout the conversation. + """ + + def __init__(self, **kwargs): + """ + Initializes a new Session 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 Session. + :type id: str + + :param display_name: + The value to assign to the display_name property of this Session. + :type display_name: str + + :param description: + The value to assign to the description property of this Session. + :type description: str + + :param welcome_message: + The value to assign to the welcome_message property of this Session. + :type welcome_message: str + + :param time_created: + The value to assign to the time_created property of this Session. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this Session. + :type time_updated: datetime + + """ + self.swagger_types = { + 'id': 'str', + 'display_name': 'str', + 'description': 'str', + 'welcome_message': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime' + } + + self.attribute_map = { + 'id': 'id', + 'display_name': 'displayName', + 'description': 'description', + 'welcome_message': 'welcomeMessage', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated' + } + + self._id = None + self._display_name = None + self._description = None + self._welcome_message = None + self._time_created = None + self._time_updated = None + + @property + def id(self): + """ + **[Required]** Gets the id of this Session. + A unique ID for the session. This ID is immutable on creation. + + + :return: The id of this Session. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this Session. + A unique ID for the session. This ID is immutable on creation. + + + :param id: The id of this Session. + :type: str + """ + self._id = id + + @property + def display_name(self): + """ + Gets the display_name of this Session. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this Session. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this Session. + A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this Session. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this Session. + A description of the session. + + + :return: The description of this Session. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this Session. + A description of the session. + + + :param description: The description of this Session. + :type: str + """ + self._description = description + + @property + def welcome_message(self): + """ + Gets the welcome_message of this Session. + A greeting message that the you receive when you start of a session. + + + :return: The welcome_message of this Session. + :rtype: str + """ + return self._welcome_message + + @welcome_message.setter + def welcome_message(self, welcome_message): + """ + Sets the welcome_message of this Session. + A greeting message that the you receive when you start of a session. + + + :param welcome_message: The welcome_message of this Session. + :type: str + """ + self._welcome_message = welcome_message + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this Session. + The date and time that the session started in the format of an RFC3339 datetime string. + + + :return: The time_created of this Session. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this Session. + The date and time that the session started in the format of an RFC3339 datetime string. + + + :param time_created: The time_created of this Session. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this Session. + The date and time that the session was last updated in the format of an RFC3339 datetime string. + + + :return: The time_updated of this Session. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this Session. + The date and time that the session was last updated in the format of an RFC3339 datetime string. + + + :param time_updated: The time_updated of this Session. + :type: datetime + """ + self._time_updated = time_updated + + 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/generative_ai_agent_runtime/models/source_location.py b/src/oci/generative_ai_agent_runtime/models/source_location.py new file mode 100644 index 000000000..80d5e1018 --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/source_location.py @@ -0,0 +1,117 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 SourceLocation(object): + """ + The location of the data files that the agent will use. + """ + + #: A constant which can be used with the source_location_type property of a SourceLocation. + #: This constant has a value of "OCI_OBJECT_STORAGE" + SOURCE_LOCATION_TYPE_OCI_OBJECT_STORAGE = "OCI_OBJECT_STORAGE" + + #: A constant which can be used with the source_location_type property of a SourceLocation. + #: This constant has a value of "OCI_OPEN_SEARCH" + SOURCE_LOCATION_TYPE_OCI_OPEN_SEARCH = "OCI_OPEN_SEARCH" + + #: A constant which can be used with the source_location_type property of a SourceLocation. + #: This constant has a value of "OCI_DATABASE" + SOURCE_LOCATION_TYPE_OCI_DATABASE = "OCI_DATABASE" + + def __init__(self, **kwargs): + """ + Initializes a new SourceLocation 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.generative_ai_agent_runtime.models.OciObjectStorageSourceLocation` + * :class:`~oci.generative_ai_agent_runtime.models.OciOpenSearchSourceLocation` + * :class:`~oci.generative_ai_agent_runtime.models.OciDatabaseSourceLocation` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param source_location_type: + The value to assign to the source_location_type property of this SourceLocation. + Allowed values for this property are: "OCI_OBJECT_STORAGE", "OCI_OPEN_SEARCH", "OCI_DATABASE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type source_location_type: str + + """ + self.swagger_types = { + 'source_location_type': 'str' + } + + self.attribute_map = { + 'source_location_type': 'sourceLocationType' + } + + self._source_location_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['sourceLocationType'] + + if type == 'OCI_OBJECT_STORAGE': + return 'OciObjectStorageSourceLocation' + + if type == 'OCI_OPEN_SEARCH': + return 'OciOpenSearchSourceLocation' + + if type == 'OCI_DATABASE': + return 'OciDatabaseSourceLocation' + else: + return 'SourceLocation' + + @property + def source_location_type(self): + """ + **[Required]** Gets the source_location_type of this SourceLocation. + The type of the data source that contains data files for the agent. + + Allowed values for this property are: "OCI_OBJECT_STORAGE", "OCI_OPEN_SEARCH", "OCI_DATABASE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The source_location_type of this SourceLocation. + :rtype: str + """ + return self._source_location_type + + @source_location_type.setter + def source_location_type(self, source_location_type): + """ + Sets the source_location_type of this SourceLocation. + The type of the data source that contains data files for the agent. + + + :param source_location_type: The source_location_type of this SourceLocation. + :type: str + """ + allowed_values = ["OCI_OBJECT_STORAGE", "OCI_OPEN_SEARCH", "OCI_DATABASE"] + if not value_allowed_none_or_none_sentinel(source_location_type, allowed_values): + source_location_type = 'UNKNOWN_ENUM_VALUE' + self._source_location_type = source_location_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/generative_ai_agent_runtime/models/trace.py b/src/oci/generative_ai_agent_runtime/models/trace.py new file mode 100644 index 000000000..8219cfeca --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/trace.py @@ -0,0 +1,148 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 Trace(object): + """ + The trace that displays the internal progression, such as reasoning and actions during an execution. + """ + + #: A constant which can be used with the trace_type property of a Trace. + #: This constant has a value of "ERROR_TRACE" + TRACE_TYPE_ERROR_TRACE = "ERROR_TRACE" + + #: A constant which can be used with the trace_type property of a Trace. + #: This constant has a value of "RETRIEVAL_TRACE" + TRACE_TYPE_RETRIEVAL_TRACE = "RETRIEVAL_TRACE" + + #: A constant which can be used with the trace_type property of a Trace. + #: This constant has a value of "GENERATION_TRACE" + TRACE_TYPE_GENERATION_TRACE = "GENERATION_TRACE" + + def __init__(self, **kwargs): + """ + Initializes a new Trace 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.generative_ai_agent_runtime.models.ErrorTrace` + * :class:`~oci.generative_ai_agent_runtime.models.RetrievalTrace` + * :class:`~oci.generative_ai_agent_runtime.models.GenerationTrace` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param time_created: + The value to assign to the time_created property of this Trace. + :type time_created: datetime + + :param trace_type: + The value to assign to the trace_type property of this Trace. + Allowed values for this property are: "ERROR_TRACE", "RETRIEVAL_TRACE", "GENERATION_TRACE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type trace_type: str + + """ + self.swagger_types = { + 'time_created': 'datetime', + 'trace_type': 'str' + } + + self.attribute_map = { + 'time_created': 'timeCreated', + 'trace_type': 'traceType' + } + + self._time_created = None + self._trace_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['traceType'] + + if type == 'ERROR_TRACE': + return 'ErrorTrace' + + if type == 'RETRIEVAL_TRACE': + return 'RetrievalTrace' + + if type == 'GENERATION_TRACE': + return 'GenerationTrace' + else: + return 'Trace' + + @property + def time_created(self): + """ + Gets the time_created of this Trace. + The date and time that the trace was created in the format of an RFC3339 datetime string. + + + :return: The time_created of this Trace. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this Trace. + The date and time that the trace was created in the format of an RFC3339 datetime string. + + + :param time_created: The time_created of this Trace. + :type: datetime + """ + self._time_created = time_created + + @property + def trace_type(self): + """ + **[Required]** Gets the trace_type of this Trace. + The type of the trace. + + Allowed values for this property are: "ERROR_TRACE", "RETRIEVAL_TRACE", "GENERATION_TRACE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The trace_type of this Trace. + :rtype: str + """ + return self._trace_type + + @trace_type.setter + def trace_type(self, trace_type): + """ + Sets the trace_type of this Trace. + The type of the trace. + + + :param trace_type: The trace_type of this Trace. + :type: str + """ + allowed_values = ["ERROR_TRACE", "RETRIEVAL_TRACE", "GENERATION_TRACE"] + if not value_allowed_none_or_none_sentinel(trace_type, allowed_values): + trace_type = 'UNKNOWN_ENUM_VALUE' + self._trace_type = trace_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/generative_ai_agent_runtime/models/update_session_details.py b/src/oci/generative_ai_agent_runtime/models/update_session_details.py new file mode 100644 index 000000000..76d77f72e --- /dev/null +++ b/src/oci/generative_ai_agent_runtime/models/update_session_details.py @@ -0,0 +1,103 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240531 + + +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 UpdateSessionDetails(object): + """ + Information about the updated session. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateSessionDetails 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 UpdateSessionDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this UpdateSessionDetails. + :type description: str + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description' + } + + self._display_name = None + self._description = None + + @property + def display_name(self): + """ + Gets the display_name of this UpdateSessionDetails. + The name of the session. A session names doesn't have to be unique and you can change the session name later. + + + :return: The display_name of this UpdateSessionDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this UpdateSessionDetails. + The name of the session. A session names doesn't have to be unique and you can change the session name later. + + + :param display_name: The display_name of this UpdateSessionDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this UpdateSessionDetails. + A description of the session. + + + :return: The description of this UpdateSessionDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this UpdateSessionDetails. + A description of the session. + + + :param description: The description of this UpdateSessionDetails. + :type: str + """ + self._description = description + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/integration/integration_instance_client.py b/src/oci/integration/integration_instance_client.py index 45a8364c0..8841a38d5 100644 --- a/src/oci/integration/integration_instance_client.py +++ b/src/oci/integration/integration_instance_client.py @@ -116,6 +116,127 @@ def __init__(self, config, **kwargs): self.retry_strategy = kwargs.get('retry_strategy') self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') + def add_oracle_managed_custom_endpoint(self, add_oracle_managed_custom_endpoint_details, integration_instance_id, **kwargs): + """ + Enable Oracle Managed Custom Endpoint for given integration instance. + + + :param oci.integration.models.AddOracleManagedCustomEndpointDetails add_oracle_managed_custom_endpoint_details: (required) + Details for enabling oracle managed custom endpoint. + + :param str integration_instance_id: (required) + Unique Integration Instance identifier. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case + of a timeout or server error without risk of executing that same action + again. Retry tokens expire after 24 hours, but can be invalidated before + then due to conflicting operations. For example, if a resource has been + deleted and purged from the system, then a retry of the original creation + request might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use add_oracle_managed_custom_endpoint API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['integrationInstanceId'] + resource_path = "/integrationInstances/{integrationInstanceId}/actions/addOracleManagedCustomEndpoint" + method = "POST" + operation_name = "add_oracle_managed_custom_endpoint" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/AddOracleManagedCustomEndpoint" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"add_oracle_managed_custom_endpoint got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "integrationInstanceId": integration_instance_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing), + "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 is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=add_oracle_managed_custom_endpoint_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=add_oracle_managed_custom_endpoint_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def change_integration_instance_compartment(self, integration_instance_id, change_integration_instance_compartment_details, **kwargs): """ Change the compartment for an integration instance @@ -1118,7 +1239,7 @@ def list_integration_instances(self, compartment_id, **kwargs): :param str lifecycle_state: (optional) Life cycle state to query on. - Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "STANDBY" + Allowed values are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED" :param int limit: (optional) The maximum number of items to return. @@ -1184,7 +1305,7 @@ def list_integration_instances(self, compartment_id, **kwargs): f"list_integration_instances got unknown kwargs: {extra_kwargs!r}") if 'lifecycle_state' in kwargs: - lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "STANDBY"] + lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values: raise ValueError( f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" @@ -1592,6 +1713,122 @@ def list_work_requests(self, compartment_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def remove_oracle_managed_custom_endpoint(self, integration_instance_id, **kwargs): + """ + Remove Oracle Managed Custom Endpoint for given integration instance that was previously enabled. + + + :param str integration_instance_id: (required) + Unique Integration Instance identifier. + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case + of a timeout or server error without risk of executing that same action + again. Retry tokens expire after 24 hours, but can be invalidated before + then due to conflicting operations. For example, if a resource has been + deleted and purged from the system, then a retry of the original creation + request might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use remove_oracle_managed_custom_endpoint API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['integrationInstanceId'] + resource_path = "/integrationInstances/{integrationInstanceId}/actions/removeOracleManagedCustomEndpoint" + method = "POST" + operation_name = "remove_oracle_managed_custom_endpoint" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/integration/20190131/IntegrationInstance/RemoveOracleManagedCustomEndpoint" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"remove_oracle_managed_custom_endpoint got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "integrationInstanceId": integration_instance_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing), + "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 is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def start_integration_instance(self, integration_instance_id, **kwargs): """ Start an integration instance that was previously in an INACTIVE state diff --git a/src/oci/integration/integration_instance_client_composite_operations.py b/src/oci/integration/integration_instance_client_composite_operations.py index 81911b0bb..ee9a71252 100644 --- a/src/oci/integration/integration_instance_client_composite_operations.py +++ b/src/oci/integration/integration_instance_client_composite_operations.py @@ -25,6 +25,48 @@ def __init__(self, client, **kwargs): """ self.client = client + def add_oracle_managed_custom_endpoint_and_wait_for_state(self, add_oracle_managed_custom_endpoint_details, integration_instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.integration.IntegrationInstanceClient.add_oracle_managed_custom_endpoint` and waits for the :py:class:`~oci.integration.models.WorkRequest` + to enter the given state(s). + + :param oci.integration.models.AddOracleManagedCustomEndpointDetails add_oracle_managed_custom_endpoint_details: (required) + Details for enabling oracle managed custom endpoint. + + :param str integration_instance_id: (required) + Unique Integration Instance identifier. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.integration.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.integration.IntegrationInstanceClient.add_oracle_managed_custom_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.add_oracle_managed_custom_endpoint(add_oracle_managed_custom_endpoint_details, integration_instance_id, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def change_integration_instance_compartment_and_wait_for_state(self, integration_instance_id, change_integration_instance_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.integration.IntegrationInstanceClient.change_integration_instance_compartment` and waits for the :py:class:`~oci.integration.models.WorkRequest` @@ -318,6 +360,45 @@ def extend_data_retention_and_wait_for_state(self, integration_instance_id, exte except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def remove_oracle_managed_custom_endpoint_and_wait_for_state(self, integration_instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.integration.IntegrationInstanceClient.remove_oracle_managed_custom_endpoint` and waits for the :py:class:`~oci.integration.models.WorkRequest` + to enter the given state(s). + + :param str integration_instance_id: (required) + Unique Integration Instance identifier. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.integration.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.integration.IntegrationInstanceClient.remove_oracle_managed_custom_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.remove_oracle_managed_custom_endpoint(integration_instance_id, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def start_integration_instance_and_wait_for_state(self, integration_instance_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.integration.IntegrationInstanceClient.start_integration_instance` and waits for the :py:class:`~oci.integration.models.WorkRequest` diff --git a/src/oci/integration/models/__init__.py b/src/oci/integration/models/__init__.py index 965b47000..ec4fd2180 100644 --- a/src/oci/integration/models/__init__.py +++ b/src/oci/integration/models/__init__.py @@ -6,6 +6,7 @@ from __future__ import absolute_import +from .add_oracle_managed_custom_endpoint_details import AddOracleManagedCustomEndpointDetails from .attachment_details import AttachmentDetails from .change_integration_instance_compartment_details import ChangeIntegrationInstanceCompartmentDetails from .change_integration_instance_network_endpoint_details import ChangeIntegrationInstanceNetworkEndpointDetails @@ -33,6 +34,7 @@ # Maps type names to classes for integration services. integration_type_mapping = { + "AddOracleManagedCustomEndpointDetails": AddOracleManagedCustomEndpointDetails, "AttachmentDetails": AttachmentDetails, "ChangeIntegrationInstanceCompartmentDetails": ChangeIntegrationInstanceCompartmentDetails, "ChangeIntegrationInstanceNetworkEndpointDetails": ChangeIntegrationInstanceNetworkEndpointDetails, diff --git a/src/oci/integration/models/add_oracle_managed_custom_endpoint_details.py b/src/oci/integration/models/add_oracle_managed_custom_endpoint_details.py new file mode 100644 index 000000000..5a9ab2359 --- /dev/null +++ b/src/oci/integration/models/add_oracle_managed_custom_endpoint_details.py @@ -0,0 +1,146 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190131 + + +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 AddOracleManagedCustomEndpointDetails(object): + """ + Details for enabling Oracle Managed custom endpoint + """ + + #: A constant which can be used with the dns_type property of a AddOracleManagedCustomEndpointDetails. + #: This constant has a value of "OCI" + DNS_TYPE_OCI = "OCI" + + def __init__(self, **kwargs): + """ + Initializes a new AddOracleManagedCustomEndpointDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param hostname: + The value to assign to the hostname property of this AddOracleManagedCustomEndpointDetails. + :type hostname: str + + :param dns_type: + The value to assign to the dns_type property of this AddOracleManagedCustomEndpointDetails. + Allowed values for this property are: "OCI" + :type dns_type: str + + :param dns_zone_name: + The value to assign to the dns_zone_name property of this AddOracleManagedCustomEndpointDetails. + :type dns_zone_name: str + + """ + self.swagger_types = { + 'hostname': 'str', + 'dns_type': 'str', + 'dns_zone_name': 'str' + } + + self.attribute_map = { + 'hostname': 'hostname', + 'dns_type': 'dnsType', + 'dns_zone_name': 'dnsZoneName' + } + + self._hostname = None + self._dns_type = None + self._dns_zone_name = None + + @property + def hostname(self): + """ + **[Required]** Gets the hostname of this AddOracleManagedCustomEndpointDetails. + Oracle managed custom hostname + + + :return: The hostname of this AddOracleManagedCustomEndpointDetails. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this AddOracleManagedCustomEndpointDetails. + Oracle managed custom hostname + + + :param hostname: The hostname of this AddOracleManagedCustomEndpointDetails. + :type: str + """ + self._hostname = hostname + + @property + def dns_type(self): + """ + Gets the dns_type of this AddOracleManagedCustomEndpointDetails. + Type of DNS. + + Allowed values for this property are: "OCI" + + + :return: The dns_type of this AddOracleManagedCustomEndpointDetails. + :rtype: str + """ + return self._dns_type + + @dns_type.setter + def dns_type(self, dns_type): + """ + Sets the dns_type of this AddOracleManagedCustomEndpointDetails. + Type of DNS. + + + :param dns_type: The dns_type of this AddOracleManagedCustomEndpointDetails. + :type: str + """ + allowed_values = ["OCI"] + if not value_allowed_none_or_none_sentinel(dns_type, allowed_values): + raise ValueError( + f"Invalid value for `dns_type`, must be None or one of {allowed_values}" + ) + self._dns_type = dns_type + + @property + def dns_zone_name(self): + """ + Gets the dns_zone_name of this AddOracleManagedCustomEndpointDetails. + DNS Zone name + + + :return: The dns_zone_name of this AddOracleManagedCustomEndpointDetails. + :rtype: str + """ + return self._dns_zone_name + + @dns_zone_name.setter + def dns_zone_name(self, dns_zone_name): + """ + Sets the dns_zone_name of this AddOracleManagedCustomEndpointDetails. + DNS Zone name + + + :param dns_zone_name: The dns_zone_name of this AddOracleManagedCustomEndpointDetails. + :type: str + """ + self._dns_zone_name = dns_zone_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/integration/models/custom_endpoint_details.py b/src/oci/integration/models/custom_endpoint_details.py index 51159663b..da092ba26 100644 --- a/src/oci/integration/models/custom_endpoint_details.py +++ b/src/oci/integration/models/custom_endpoint_details.py @@ -15,6 +15,18 @@ class CustomEndpointDetails(object): Details for a custom endpoint for the integration instance. """ + #: A constant which can be used with the managed_type property of a CustomEndpointDetails. + #: This constant has a value of "ORACLE_MANAGED" + MANAGED_TYPE_ORACLE_MANAGED = "ORACLE_MANAGED" + + #: A constant which can be used with the managed_type property of a CustomEndpointDetails. + #: This constant has a value of "CUSTOMER_MANAGED" + MANAGED_TYPE_CUSTOMER_MANAGED = "CUSTOMER_MANAGED" + + #: A constant which can be used with the dns_type property of a CustomEndpointDetails. + #: This constant has a value of "OCI" + DNS_TYPE_OCI = "OCI" + def __init__(self, **kwargs): """ Initializes a new CustomEndpointDetails object with values from keyword arguments. @@ -24,6 +36,22 @@ def __init__(self, **kwargs): The value to assign to the hostname property of this CustomEndpointDetails. :type hostname: str + :param managed_type: + The value to assign to the managed_type property of this CustomEndpointDetails. + Allowed values for this property are: "ORACLE_MANAGED", "CUSTOMER_MANAGED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type managed_type: str + + :param dns_zone_name: + The value to assign to the dns_zone_name property of this CustomEndpointDetails. + :type dns_zone_name: str + + :param dns_type: + The value to assign to the dns_type property of this CustomEndpointDetails. + Allowed values for this property are: "OCI", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type dns_type: str + :param certificate_secret_id: The value to assign to the certificate_secret_id property of this CustomEndpointDetails. :type certificate_secret_id: str @@ -39,6 +67,9 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'hostname': 'str', + 'managed_type': 'str', + 'dns_zone_name': 'str', + 'dns_type': 'str', 'certificate_secret_id': 'str', 'certificate_secret_version': 'int', 'alias': 'str' @@ -46,12 +77,18 @@ def __init__(self, **kwargs): self.attribute_map = { 'hostname': 'hostname', + 'managed_type': 'managedType', + 'dns_zone_name': 'dnsZoneName', + 'dns_type': 'dnsType', 'certificate_secret_id': 'certificateSecretId', 'certificate_secret_version': 'certificateSecretVersion', 'alias': 'alias' } self._hostname = None + self._managed_type = None + self._dns_zone_name = None + self._dns_type = None self._certificate_secret_id = None self._certificate_secret_version = None self._alias = None @@ -80,6 +117,90 @@ def hostname(self, hostname): """ self._hostname = hostname + @property + def managed_type(self): + """ + Gets the managed_type of this CustomEndpointDetails. + Indicates if custom endpoint is managed by oracle or customer. + + Allowed values for this property are: "ORACLE_MANAGED", "CUSTOMER_MANAGED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The managed_type of this CustomEndpointDetails. + :rtype: str + """ + return self._managed_type + + @managed_type.setter + def managed_type(self, managed_type): + """ + Sets the managed_type of this CustomEndpointDetails. + Indicates if custom endpoint is managed by oracle or customer. + + + :param managed_type: The managed_type of this CustomEndpointDetails. + :type: str + """ + allowed_values = ["ORACLE_MANAGED", "CUSTOMER_MANAGED"] + if not value_allowed_none_or_none_sentinel(managed_type, allowed_values): + managed_type = 'UNKNOWN_ENUM_VALUE' + self._managed_type = managed_type + + @property + def dns_zone_name(self): + """ + Gets the dns_zone_name of this CustomEndpointDetails. + DNS Zone name + + + :return: The dns_zone_name of this CustomEndpointDetails. + :rtype: str + """ + return self._dns_zone_name + + @dns_zone_name.setter + def dns_zone_name(self, dns_zone_name): + """ + Sets the dns_zone_name of this CustomEndpointDetails. + DNS Zone name + + + :param dns_zone_name: The dns_zone_name of this CustomEndpointDetails. + :type: str + """ + self._dns_zone_name = dns_zone_name + + @property + def dns_type(self): + """ + Gets the dns_type of this CustomEndpointDetails. + Type of DNS. + + Allowed values for this property are: "OCI", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The dns_type of this CustomEndpointDetails. + :rtype: str + """ + return self._dns_type + + @dns_type.setter + def dns_type(self, dns_type): + """ + Sets the dns_type of this CustomEndpointDetails. + Type of DNS. + + + :param dns_type: The dns_type of this CustomEndpointDetails. + :type: str + """ + allowed_values = ["OCI"] + if not value_allowed_none_or_none_sentinel(dns_type, allowed_values): + dns_type = 'UNKNOWN_ENUM_VALUE' + self._dns_type = dns_type + @property def certificate_secret_id(self): """ diff --git a/src/oci/integration/models/integration_instance.py b/src/oci/integration/models/integration_instance.py index e5dbbeb4a..dab66dd36 100644 --- a/src/oci/integration/models/integration_instance.py +++ b/src/oci/integration/models/integration_instance.py @@ -63,10 +63,6 @@ class IntegrationInstance(object): #: This constant has a value of "FAILED" LIFECYCLE_STATE_FAILED = "FAILED" - #: A constant which can be used with the lifecycle_state property of a IntegrationInstance. - #: This constant has a value of "STANDBY" - LIFECYCLE_STATE_STANDBY = "STANDBY" - #: A constant which can be used with the consumption_model property of a IntegrationInstance. #: This constant has a value of "UCM" CONSUMPTION_MODEL_UCM = "UCM" @@ -132,7 +128,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this IntegrationInstance. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "STANDBY", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -160,6 +156,10 @@ def __init__(self, **kwargs): The value to assign to the instance_url property of this IntegrationInstance. :type instance_url: str + :param instance_design_time_url: + The value to assign to the instance_design_time_url property of this IntegrationInstance. + :type instance_design_time_url: str + :param message_packs: The value to assign to the message_packs property of this IntegrationInstance. :type message_packs: int @@ -229,6 +229,7 @@ def __init__(self, **kwargs): 'system_tags': 'dict(str, dict(str, object))', 'is_byol': 'bool', 'instance_url': 'str', + 'instance_design_time_url': 'str', 'message_packs': 'int', 'is_file_server_enabled': 'bool', 'is_visual_builder_enabled': 'bool', @@ -257,6 +258,7 @@ def __init__(self, **kwargs): 'system_tags': 'systemTags', 'is_byol': 'isByol', 'instance_url': 'instanceUrl', + 'instance_design_time_url': 'instanceDesignTimeUrl', 'message_packs': 'messagePacks', 'is_file_server_enabled': 'isFileServerEnabled', 'is_visual_builder_enabled': 'isVisualBuilderEnabled', @@ -284,6 +286,7 @@ def __init__(self, **kwargs): self._system_tags = None self._is_byol = None self._instance_url = None + self._instance_design_time_url = None self._message_packs = None self._is_file_server_enabled = None self._is_visual_builder_enabled = None @@ -457,7 +460,7 @@ def lifecycle_state(self): Gets the lifecycle_state of this IntegrationInstance. The current state of the integration instance. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "STANDBY", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -476,7 +479,7 @@ def lifecycle_state(self, lifecycle_state): :param lifecycle_state: The lifecycle_state of this IntegrationInstance. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "STANDBY"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @@ -635,6 +638,30 @@ def instance_url(self, instance_url): """ self._instance_url = instance_url + @property + def instance_design_time_url(self): + """ + Gets the instance_design_time_url of this IntegrationInstance. + The Integration Instance Design Time URL + + + :return: The instance_design_time_url of this IntegrationInstance. + :rtype: str + """ + return self._instance_design_time_url + + @instance_design_time_url.setter + def instance_design_time_url(self, instance_design_time_url): + """ + Sets the instance_design_time_url of this IntegrationInstance. + The Integration Instance Design Time URL + + + :param instance_design_time_url: The instance_design_time_url of this IntegrationInstance. + :type: str + """ + self._instance_design_time_url = instance_design_time_url + @property def message_packs(self): """ diff --git a/src/oci/integration/models/integration_instance_summary.py b/src/oci/integration/models/integration_instance_summary.py index d99fa91be..173e7accf 100644 --- a/src/oci/integration/models/integration_instance_summary.py +++ b/src/oci/integration/models/integration_instance_summary.py @@ -63,10 +63,6 @@ class IntegrationInstanceSummary(object): #: This constant has a value of "FAILED" LIFECYCLE_STATE_FAILED = "FAILED" - #: A constant which can be used with the lifecycle_state property of a IntegrationInstanceSummary. - #: This constant has a value of "STANDBY" - LIFECYCLE_STATE_STANDBY = "STANDBY" - #: A constant which can be used with the consumption_model property of a IntegrationInstanceSummary. #: This constant has a value of "UCM" CONSUMPTION_MODEL_UCM = "UCM" @@ -132,7 +128,7 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this IntegrationInstanceSummary. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "STANDBY", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str @@ -148,6 +144,10 @@ def __init__(self, **kwargs): The value to assign to the instance_url property of this IntegrationInstanceSummary. :type instance_url: str + :param instance_design_time_url: + The value to assign to the instance_design_time_url property of this IntegrationInstanceSummary. + :type instance_design_time_url: str + :param message_packs: The value to assign to the message_packs property of this IntegrationInstanceSummary. :type message_packs: int @@ -218,6 +218,7 @@ def __init__(self, **kwargs): 'state_message': 'str', 'is_byol': 'bool', 'instance_url': 'str', + 'instance_design_time_url': 'str', 'message_packs': 'int', 'is_file_server_enabled': 'bool', 'is_visual_builder_enabled': 'bool', @@ -244,6 +245,7 @@ def __init__(self, **kwargs): 'state_message': 'stateMessage', 'is_byol': 'isByol', 'instance_url': 'instanceUrl', + 'instance_design_time_url': 'instanceDesignTimeUrl', 'message_packs': 'messagePacks', 'is_file_server_enabled': 'isFileServerEnabled', 'is_visual_builder_enabled': 'isVisualBuilderEnabled', @@ -269,6 +271,7 @@ def __init__(self, **kwargs): self._state_message = None self._is_byol = None self._instance_url = None + self._instance_design_time_url = None self._message_packs = None self._is_file_server_enabled = None self._is_visual_builder_enabled = None @@ -443,7 +446,7 @@ def lifecycle_state(self): Gets the lifecycle_state of this IntegrationInstanceSummary. The current state of the Integration Instance. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "STANDBY", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -462,7 +465,7 @@ def lifecycle_state(self, lifecycle_state): :param lifecycle_state: The lifecycle_state of this IntegrationInstanceSummary. :type: str """ - allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", "STANDBY"] + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @@ -539,6 +542,30 @@ def instance_url(self, instance_url): """ self._instance_url = instance_url + @property + def instance_design_time_url(self): + """ + Gets the instance_design_time_url of this IntegrationInstanceSummary. + The Integration Instance Design Time URL + + + :return: The instance_design_time_url of this IntegrationInstanceSummary. + :rtype: str + """ + return self._instance_design_time_url + + @instance_design_time_url.setter + def instance_design_time_url(self, instance_design_time_url): + """ + Sets the instance_design_time_url of this IntegrationInstanceSummary. + The Integration Instance Design Time URL + + + :param instance_design_time_url: The instance_design_time_url of this IntegrationInstanceSummary. + :type: str + """ + self._instance_design_time_url = instance_design_time_url + @property def message_packs(self): """ diff --git a/src/oci/integration/models/work_request.py b/src/oci/integration/models/work_request.py index c610b89d6..0c3093fee 100644 --- a/src/oci/integration/models/work_request.py +++ b/src/oci/integration/models/work_request.py @@ -47,6 +47,14 @@ class WorkRequest(object): #: This constant has a value of "EXTEND_DATA_RETENTION" OPERATION_TYPE_EXTEND_DATA_RETENTION = "EXTEND_DATA_RETENTION" + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CREATE_CUSTOM_ENDPOINT" + OPERATION_TYPE_CREATE_CUSTOM_ENDPOINT = "CREATE_CUSTOM_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DELETE_CUSTOM_ENDPOINT" + OPERATION_TYPE_DELETE_CUSTOM_ENDPOINT = "DELETE_CUSTOM_ENDPOINT" + #: A constant which can be used with the status property of a WorkRequest. #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" @@ -78,7 +86,7 @@ def __init__(self, **kwargs): :param operation_type: The value to assign to the operation_type property of this WorkRequest. - Allowed values for this property are: "CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", "CREATE_CUSTOM_ENDPOINT", "DELETE_CUSTOM_ENDPOINT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -157,7 +165,7 @@ def operation_type(self): **[Required]** Gets the operation_type of this WorkRequest. Type of the work request. - Allowed values for this property are: "CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", "CREATE_CUSTOM_ENDPOINT", "DELETE_CUSTOM_ENDPOINT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -176,7 +184,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequest. :type: str """ - allowed_values = ["CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION"] + allowed_values = ["CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", "CREATE_CUSTOM_ENDPOINT", "DELETE_CUSTOM_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/integration/models/work_request_summary.py b/src/oci/integration/models/work_request_summary.py index 575623af6..68dfa50f1 100644 --- a/src/oci/integration/models/work_request_summary.py +++ b/src/oci/integration/models/work_request_summary.py @@ -47,6 +47,14 @@ class WorkRequestSummary(object): #: This constant has a value of "EXTEND_DATA_RETENTION" OPERATION_TYPE_EXTEND_DATA_RETENTION = "EXTEND_DATA_RETENTION" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "CREATE_CUSTOM_ENDPOINT" + OPERATION_TYPE_CREATE_CUSTOM_ENDPOINT = "CREATE_CUSTOM_ENDPOINT" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DELETE_CUSTOM_ENDPOINT" + OPERATION_TYPE_DELETE_CUSTOM_ENDPOINT = "DELETE_CUSTOM_ENDPOINT" + #: A constant which can be used with the status property of a WorkRequestSummary. #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" @@ -78,7 +86,7 @@ def __init__(self, **kwargs): :param operation_type: The value to assign to the operation_type property of this WorkRequestSummary. - Allowed values for this property are: "CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", "CREATE_CUSTOM_ENDPOINT", "DELETE_CUSTOM_ENDPOINT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -157,7 +165,7 @@ def operation_type(self): **[Required]** Gets the operation_type of this WorkRequestSummary. Type of the work request. - Allowed values for this property are: "CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", "CREATE_CUSTOM_ENDPOINT", "DELETE_CUSTOM_ENDPOINT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -176,7 +184,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequestSummary. :type: str """ - allowed_values = ["CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION"] + allowed_values = ["CREATE_INTEGRATION_INSTANCE", "UPDATE_INTEGRATION_INSTANCE", "STOP_INTEGRATION_INSTANCE", "START_INTEGRATION_INSTANCE", "DELETE_INTEGRATION_INSTANCE", "CHANGE_PRIVATE_ENDPOINT_OUTBOUND_CONNECTION", "ENABLE_PROCESS_AUTOMATION", "EXTEND_DATA_RETENTION", "CREATE_CUSTOM_ENDPOINT", "DELETE_CUSTOM_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/log_analytics/models/chart_data_column.py b/src/oci/log_analytics/models/chart_data_column.py index 3a8f45090..347ffa318 100644 --- a/src/oci/log_analytics/models/chart_data_column.py +++ b/src/oci/log_analytics/models/chart_data_column.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this ChartDataColumn. - Allowed values for this property are: "COLUMN", "CHART_COLUMN", "CHART_DATA_COLUMN", "TIME_STATS_COLUMN", "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN" + Allowed values for this property are: "COLUMN", "CHART_COLUMN", "CHART_DATA_COLUMN", "TIME_STATS_COLUMN", "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param display_name: @@ -32,7 +33,8 @@ def __init__(self, **kwargs): :param sub_system: The value to assign to the sub_system property of this ChartDataColumn. - Allowed values for this property are: "LOG" + Allowed values for this property are: "LOG", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type sub_system: str :param values: @@ -65,7 +67,8 @@ def __init__(self, **kwargs): :param value_type: The value to assign to the value_type property of this ChartDataColumn. - Allowed values for this property are: "BOOLEAN", "STRING", "DOUBLE", "FLOAT", "LONG", "INTEGER", "TIMESTAMP", "FACET", "TABLE" + Allowed values for this property are: "BOOLEAN", "STRING", "DOUBLE", "FLOAT", "LONG", "INTEGER", "TIMESTAMP", "FACET", "TABLE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type value_type: str :param original_display_name: diff --git a/src/oci/log_analytics/models/function_field.py b/src/oci/log_analytics/models/function_field.py index 2986a791d..0808b544b 100644 --- a/src/oci/log_analytics/models/function_field.py +++ b/src/oci/log_analytics/models/function_field.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param name: The value to assign to the name property of this FunctionField. - Allowed values for this property are: "FIELD", "FIELDS", "FUNCTION", "SORT" + Allowed values for this property are: "FIELD", "FIELDS", "FUNCTION", "SORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type name: str :param display_name: @@ -44,7 +45,8 @@ def __init__(self, **kwargs): :param value_type: The value to assign to the value_type property of this FunctionField. - Allowed values for this property are: "BOOLEAN", "STRING", "DOUBLE", "FLOAT", "LONG", "INTEGER", "TIMESTAMP", "FACET", "TABLE" + Allowed values for this property are: "BOOLEAN", "STRING", "DOUBLE", "FLOAT", "LONG", "INTEGER", "TIMESTAMP", "FACET", "TABLE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type value_type: str :param is_groupable: diff --git a/src/oci/log_analytics/models/time_cluster_data_column.py b/src/oci/log_analytics/models/time_cluster_data_column.py index 3cc1b65d4..59cb728aa 100644 --- a/src/oci/log_analytics/models/time_cluster_data_column.py +++ b/src/oci/log_analytics/models/time_cluster_data_column.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this TimeClusterDataColumn. - Allowed values for this property are: "COLUMN", "CHART_COLUMN", "CHART_DATA_COLUMN", "TIME_STATS_COLUMN", "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN" + Allowed values for this property are: "COLUMN", "CHART_COLUMN", "CHART_DATA_COLUMN", "TIME_STATS_COLUMN", "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param display_name: @@ -32,7 +33,8 @@ def __init__(self, **kwargs): :param sub_system: The value to assign to the sub_system property of this TimeClusterDataColumn. - Allowed values for this property are: "LOG" + Allowed values for this property are: "LOG", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type sub_system: str :param values: @@ -65,7 +67,8 @@ def __init__(self, **kwargs): :param value_type: The value to assign to the value_type property of this TimeClusterDataColumn. - Allowed values for this property are: "BOOLEAN", "STRING", "DOUBLE", "FLOAT", "LONG", "INTEGER", "TIMESTAMP", "FACET", "TABLE" + Allowed values for this property are: "BOOLEAN", "STRING", "DOUBLE", "FLOAT", "LONG", "INTEGER", "TIMESTAMP", "FACET", "TABLE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type value_type: str :param original_display_name: diff --git a/src/oci/log_analytics/models/time_stats_data_column.py b/src/oci/log_analytics/models/time_stats_data_column.py index 004021cf0..9753b74a6 100644 --- a/src/oci/log_analytics/models/time_stats_data_column.py +++ b/src/oci/log_analytics/models/time_stats_data_column.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this TimeStatsDataColumn. - Allowed values for this property are: "COLUMN", "CHART_COLUMN", "CHART_DATA_COLUMN", "TIME_STATS_COLUMN", "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN" + Allowed values for this property are: "COLUMN", "CHART_COLUMN", "CHART_DATA_COLUMN", "TIME_STATS_COLUMN", "TIME_STATS_DATA_COLUMN", "TIME_CLUSTER_COLUMN", "TIME_CLUSTER_DATA_COLUMN", "TABLE_COLUMN", "TIME_COLUMN", "TREND_COLUMN", "CLASSIFY_COLUMN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param display_name: @@ -32,7 +33,8 @@ def __init__(self, **kwargs): :param sub_system: The value to assign to the sub_system property of this TimeStatsDataColumn. - Allowed values for this property are: "LOG" + Allowed values for this property are: "LOG", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type sub_system: str :param values: @@ -65,7 +67,8 @@ def __init__(self, **kwargs): :param value_type: The value to assign to the value_type property of this TimeStatsDataColumn. - Allowed values for this property are: "BOOLEAN", "STRING", "DOUBLE", "FLOAT", "LONG", "INTEGER", "TIMESTAMP", "FACET", "TABLE" + Allowed values for this property are: "BOOLEAN", "STRING", "DOUBLE", "FLOAT", "LONG", "INTEGER", "TIMESTAMP", "FACET", "TABLE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type value_type: str :param original_display_name: diff --git a/src/oci/logging/models/unified_agent_monitoring_filter.py b/src/oci/logging/models/unified_agent_monitoring_filter.py index 0ee7baa68..37f8704ef 100644 --- a/src/oci/logging/models/unified_agent_monitoring_filter.py +++ b/src/oci/logging/models/unified_agent_monitoring_filter.py @@ -39,7 +39,8 @@ def __init__(self, **kwargs): :param filter_type: The value to assign to the filter_type property of this UnifiedAgentMonitoringFilter. - Allowed values for this property are: "KUBERNETES_FILTER", "URL_FILTER" + Allowed values for this property are: "KUBERNETES_FILTER", "URL_FILTER", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type filter_type: str """ @@ -102,7 +103,8 @@ def filter_type(self): **[Required]** Gets the filter_type of this UnifiedAgentMonitoringFilter. Unified schema logging filter type. - Allowed values for this property are: "KUBERNETES_FILTER", "URL_FILTER" + Allowed values for this property are: "KUBERNETES_FILTER", "URL_FILTER", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The filter_type of this UnifiedAgentMonitoringFilter. @@ -122,9 +124,7 @@ def filter_type(self, filter_type): """ allowed_values = ["KUBERNETES_FILTER", "URL_FILTER"] if not value_allowed_none_or_none_sentinel(filter_type, allowed_values): - raise ValueError( - f"Invalid value for `filter_type`, must be None or one of {allowed_values}" - ) + filter_type = 'UNKNOWN_ENUM_VALUE' self._filter_type = filter_type def __repr__(self): diff --git a/src/oci/logging/models/unified_agent_tail_log_source.py b/src/oci/logging/models/unified_agent_tail_log_source.py index a99df603c..d03fb7e53 100644 --- a/src/oci/logging/models/unified_agent_tail_log_source.py +++ b/src/oci/logging/models/unified_agent_tail_log_source.py @@ -27,7 +27,8 @@ def __init__(self, **kwargs): :param source_type: The value to assign to the source_type property of this UnifiedAgentTailLogSource. - Allowed values for this property are: "LOG_TAIL", "WINDOWS_EVENT_LOG", "CUSTOM_PLUGIN" + Allowed values for this property are: "LOG_TAIL", "WINDOWS_EVENT_LOG", "CUSTOM_PLUGIN", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type source_type: str :param paths: diff --git a/src/oci/logging/models/unified_agent_url_filter.py b/src/oci/logging/models/unified_agent_url_filter.py index f85ee9aca..d9d325c65 100644 --- a/src/oci/logging/models/unified_agent_url_filter.py +++ b/src/oci/logging/models/unified_agent_url_filter.py @@ -27,7 +27,8 @@ def __init__(self, **kwargs): :param filter_type: The value to assign to the filter_type property of this UnifiedAgentUrlFilter. - Allowed values for this property are: "KUBERNETES_FILTER", "URL_FILTER" + Allowed values for this property are: "KUBERNETES_FILTER", "URL_FILTER", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type filter_type: str :param allow_list: diff --git a/src/oci/monitoring/models/__init__.py b/src/oci/monitoring/models/__init__.py index cc990d8b5..08465743d 100644 --- a/src/oci/monitoring/models/__init__.py +++ b/src/oci/monitoring/models/__init__.py @@ -18,6 +18,7 @@ from .alarm_suppression import AlarmSuppression from .alarm_suppression_alarm_target import AlarmSuppressionAlarmTarget from .alarm_suppression_collection import AlarmSuppressionCollection +from .alarm_suppression_compartment_target import AlarmSuppressionCompartmentTarget from .alarm_suppression_history_item import AlarmSuppressionHistoryItem from .alarm_suppression_history_item_collection import AlarmSuppressionHistoryItemCollection from .alarm_suppression_summary import AlarmSuppressionSummary @@ -33,10 +34,12 @@ from .metric_data_details import MetricDataDetails from .post_metric_data_details import PostMetricDataDetails from .post_metric_data_response_details import PostMetricDataResponseDetails +from .recurrence import Recurrence from .retrieve_dimension_states_details import RetrieveDimensionStatesDetails from .summarize_alarm_suppression_history_details import SummarizeAlarmSuppressionHistoryDetails from .summarize_metrics_data_details import SummarizeMetricsDataDetails from .suppression import Suppression +from .suppression_condition import SuppressionCondition from .update_alarm_details import UpdateAlarmDetails # Maps type names to classes for monitoring services. @@ -53,6 +56,7 @@ "AlarmSuppression": AlarmSuppression, "AlarmSuppressionAlarmTarget": AlarmSuppressionAlarmTarget, "AlarmSuppressionCollection": AlarmSuppressionCollection, + "AlarmSuppressionCompartmentTarget": AlarmSuppressionCompartmentTarget, "AlarmSuppressionHistoryItem": AlarmSuppressionHistoryItem, "AlarmSuppressionHistoryItemCollection": AlarmSuppressionHistoryItemCollection, "AlarmSuppressionSummary": AlarmSuppressionSummary, @@ -68,9 +72,11 @@ "MetricDataDetails": MetricDataDetails, "PostMetricDataDetails": PostMetricDataDetails, "PostMetricDataResponseDetails": PostMetricDataResponseDetails, + "Recurrence": Recurrence, "RetrieveDimensionStatesDetails": RetrieveDimensionStatesDetails, "SummarizeAlarmSuppressionHistoryDetails": SummarizeAlarmSuppressionHistoryDetails, "SummarizeMetricsDataDetails": SummarizeMetricsDataDetails, "Suppression": Suppression, + "SuppressionCondition": SuppressionCondition, "UpdateAlarmDetails": UpdateAlarmDetails } diff --git a/src/oci/monitoring/models/alarm_status_summary.py b/src/oci/monitoring/models/alarm_status_summary.py index c23d9625a..1f0f0e098 100644 --- a/src/oci/monitoring/models/alarm_status_summary.py +++ b/src/oci/monitoring/models/alarm_status_summary.py @@ -325,6 +325,7 @@ def status(self): The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use :func:`retrieve_dimension_states`. + Example: `FIRING` Allowed values for this property are: "FIRING", "OK", "SUSPENDED", 'UNKNOWN_ENUM_VALUE'. @@ -343,6 +344,7 @@ def status(self, status): The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use :func:`retrieve_dimension_states`. + Example: `FIRING` diff --git a/src/oci/monitoring/models/alarm_suppression.py b/src/oci/monitoring/models/alarm_suppression.py index 67e8fb07d..fb2db62b6 100644 --- a/src/oci/monitoring/models/alarm_suppression.py +++ b/src/oci/monitoring/models/alarm_suppression.py @@ -12,9 +12,17 @@ @init_model_state_from_kwargs class AlarmSuppression(object): """ - The configuration details for a dimension-specific alarm suppression. + The configuration details for an alarm suppression. """ + #: A constant which can be used with the level property of a AlarmSuppression. + #: This constant has a value of "ALARM" + LEVEL_ALARM = "ALARM" + + #: A constant which can be used with the level property of a AlarmSuppression. + #: This constant has a value of "DIMENSION" + LEVEL_DIMENSION = "DIMENSION" + #: A constant which can be used with the lifecycle_state property of a AlarmSuppression. #: This constant has a value of "ACTIVE" LIFECYCLE_STATE_ACTIVE = "ACTIVE" @@ -40,6 +48,16 @@ def __init__(self, **kwargs): The value to assign to the alarm_suppression_target property of this AlarmSuppression. :type alarm_suppression_target: oci.monitoring.models.AlarmSuppressionTarget + :param level: + The value to assign to the level property of this AlarmSuppression. + Allowed values for this property are: "ALARM", "DIMENSION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type level: str + + :param suppression_conditions: + The value to assign to the suppression_conditions property of this AlarmSuppression. + :type suppression_conditions: list[oci.monitoring.models.SuppressionCondition] + :param display_name: The value to assign to the display_name property of this AlarmSuppression. :type display_name: str @@ -87,6 +105,8 @@ def __init__(self, **kwargs): 'id': 'str', 'compartment_id': 'str', 'alarm_suppression_target': 'AlarmSuppressionTarget', + 'level': 'str', + 'suppression_conditions': 'list[SuppressionCondition]', 'display_name': 'str', 'description': 'str', 'dimensions': 'dict(str, str)', @@ -103,6 +123,8 @@ def __init__(self, **kwargs): 'id': 'id', 'compartment_id': 'compartmentId', 'alarm_suppression_target': 'alarmSuppressionTarget', + 'level': 'level', + 'suppression_conditions': 'suppressionConditions', 'display_name': 'displayName', 'description': 'description', 'dimensions': 'dimensions', @@ -118,6 +140,8 @@ def __init__(self, **kwargs): self._id = None self._compartment_id = None self._alarm_suppression_target = None + self._level = None + self._suppression_conditions = None self._display_name = None self._description = None self._dimensions = None @@ -205,6 +229,74 @@ def alarm_suppression_target(self, alarm_suppression_target): """ self._alarm_suppression_target = alarm_suppression_target + @property + def level(self): + """ + **[Required]** Gets the level of this AlarmSuppression. + The level of this alarm suppression. + `ALARM` indicates a suppression of the entire alarm, regardless of dimension. + `DIMENSION` indicates a suppression configured for specified dimensions. + + Allowed values for this property are: "ALARM", "DIMENSION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The level of this AlarmSuppression. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """ + Sets the level of this AlarmSuppression. + The level of this alarm suppression. + `ALARM` indicates a suppression of the entire alarm, regardless of dimension. + `DIMENSION` indicates a suppression configured for specified dimensions. + + + :param level: The level of this AlarmSuppression. + :type: str + """ + allowed_values = ["ALARM", "DIMENSION"] + if not value_allowed_none_or_none_sentinel(level, allowed_values): + level = 'UNKNOWN_ENUM_VALUE' + self._level = level + + @property + def suppression_conditions(self): + """ + Gets the suppression_conditions of this AlarmSuppression. + Array of all preconditions for alarm suppression. + Example: `[{ + conditionType: \"RECURRENCE\", + suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\", + suppressionDuration: \"PT1H\" + }]` + + + :return: The suppression_conditions of this AlarmSuppression. + :rtype: list[oci.monitoring.models.SuppressionCondition] + """ + return self._suppression_conditions + + @suppression_conditions.setter + def suppression_conditions(self, suppression_conditions): + """ + Sets the suppression_conditions of this AlarmSuppression. + Array of all preconditions for alarm suppression. + Example: `[{ + conditionType: \"RECURRENCE\", + suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\", + suppressionDuration: \"PT1H\" + }]` + + + :param suppression_conditions: The suppression_conditions of this AlarmSuppression. + :type: list[oci.monitoring.models.SuppressionCondition] + """ + self._suppression_conditions = suppression_conditions + @property def display_name(self): """ @@ -270,7 +362,7 @@ def description(self, description): @property def dimensions(self): """ - **[Required]** Gets the dimensions of this AlarmSuppression. + Gets the dimensions of this AlarmSuppression. Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example: `{\"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"}` diff --git a/src/oci/monitoring/models/alarm_suppression_alarm_target.py b/src/oci/monitoring/models/alarm_suppression_alarm_target.py index 7ba9499c8..70f7fb3dc 100644 --- a/src/oci/monitoring/models/alarm_suppression_alarm_target.py +++ b/src/oci/monitoring/models/alarm_suppression_alarm_target.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param target_type: The value to assign to the target_type property of this AlarmSuppressionAlarmTarget. - Allowed values for this property are: "ALARM" + Allowed values for this property are: "ALARM", "COMPARTMENT" :type target_type: str :param alarm_id: diff --git a/src/oci/monitoring/models/alarm_suppression_collection.py b/src/oci/monitoring/models/alarm_suppression_collection.py index dda550590..e0eb30f09 100644 --- a/src/oci/monitoring/models/alarm_suppression_collection.py +++ b/src/oci/monitoring/models/alarm_suppression_collection.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class AlarmSuppressionCollection(object): """ - Collection of property summaries for dimension-specific alarm suppressions. + Collection of property summaries for alarm suppressions. """ def __init__(self, **kwargs): @@ -39,7 +39,7 @@ def __init__(self, **kwargs): def items(self): """ **[Required]** Gets the items of this AlarmSuppressionCollection. - List of property summaries for dimension-specific alarm suppressions. + List of property summaries for alarm suppressions. :return: The items of this AlarmSuppressionCollection. @@ -51,7 +51,7 @@ def items(self): def items(self, items): """ Sets the items of this AlarmSuppressionCollection. - List of property summaries for dimension-specific alarm suppressions. + List of property summaries for alarm suppressions. :param items: The items of this AlarmSuppressionCollection. diff --git a/src/oci/monitoring/models/alarm_suppression_compartment_target.py b/src/oci/monitoring/models/alarm_suppression_compartment_target.py new file mode 100644 index 000000000..3d3cda866 --- /dev/null +++ b/src/oci/monitoring/models/alarm_suppression_compartment_target.py @@ -0,0 +1,127 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20180401 + +from .alarm_suppression_target import AlarmSuppressionTarget +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 AlarmSuppressionCompartmentTarget(AlarmSuppressionTarget): + """ + The compartment target of the alarm suppression. + """ + + def __init__(self, **kwargs): + """ + Initializes a new AlarmSuppressionCompartmentTarget object with values from keyword arguments. The default value of the :py:attr:`~oci.monitoring.models.AlarmSuppressionCompartmentTarget.target_type` attribute + of this class is ``COMPARTMENT`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param target_type: + The value to assign to the target_type property of this AlarmSuppressionCompartmentTarget. + Allowed values for this property are: "ALARM", "COMPARTMENT" + :type target_type: str + + :param compartment_id: + The value to assign to the compartment_id property of this AlarmSuppressionCompartmentTarget. + :type compartment_id: str + + :param compartment_id_in_subtree: + The value to assign to the compartment_id_in_subtree property of this AlarmSuppressionCompartmentTarget. + :type compartment_id_in_subtree: bool + + """ + self.swagger_types = { + 'target_type': 'str', + 'compartment_id': 'str', + 'compartment_id_in_subtree': 'bool' + } + + self.attribute_map = { + 'target_type': 'targetType', + 'compartment_id': 'compartmentId', + 'compartment_id_in_subtree': 'compartmentIdInSubtree' + } + + self._target_type = None + self._compartment_id = None + self._compartment_id_in_subtree = None + self._target_type = 'COMPARTMENT' + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this AlarmSuppressionCompartmentTarget. + The `OCID`__ of the compartment or tenancy that is the + target of the alarm suppression. + Example: `ocid1.compartment.oc1..exampleuniqueID` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this AlarmSuppressionCompartmentTarget. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this AlarmSuppressionCompartmentTarget. + The `OCID`__ of the compartment or tenancy that is the + target of the alarm suppression. + Example: `ocid1.compartment.oc1..exampleuniqueID` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this AlarmSuppressionCompartmentTarget. + :type: str + """ + self._compartment_id = compartment_id + + @property + def compartment_id_in_subtree(self): + """ + Gets the compartment_id_in_subtree of this AlarmSuppressionCompartmentTarget. + When true, the alarm suppression targets all alarms under all compartments and subcompartments of + the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID + (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under + the specified compartment. + + + :return: The compartment_id_in_subtree of this AlarmSuppressionCompartmentTarget. + :rtype: bool + """ + return self._compartment_id_in_subtree + + @compartment_id_in_subtree.setter + def compartment_id_in_subtree(self, compartment_id_in_subtree): + """ + Sets the compartment_id_in_subtree of this AlarmSuppressionCompartmentTarget. + When true, the alarm suppression targets all alarms under all compartments and subcompartments of + the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID + (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under + the specified compartment. + + + :param compartment_id_in_subtree: The compartment_id_in_subtree of this AlarmSuppressionCompartmentTarget. + :type: bool + """ + self._compartment_id_in_subtree = compartment_id_in_subtree + + 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/monitoring/models/alarm_suppression_history_item.py b/src/oci/monitoring/models/alarm_suppression_history_item.py index 307ff112a..07c95e70a 100644 --- a/src/oci/monitoring/models/alarm_suppression_history_item.py +++ b/src/oci/monitoring/models/alarm_suppression_history_item.py @@ -62,6 +62,10 @@ def __init__(self, **kwargs): The value to assign to the time_effective_until property of this AlarmSuppressionHistoryItem. :type time_effective_until: datetime + :param suppression_conditions: + The value to assign to the suppression_conditions property of this AlarmSuppressionHistoryItem. + :type suppression_conditions: list[oci.monitoring.models.SuppressionCondition] + """ self.swagger_types = { 'suppression_id': 'str', @@ -71,7 +75,8 @@ def __init__(self, **kwargs): 'description': 'str', 'dimensions': 'dict(str, str)', 'time_effective_from': 'datetime', - 'time_effective_until': 'datetime' + 'time_effective_until': 'datetime', + 'suppression_conditions': 'list[SuppressionCondition]' } self.attribute_map = { @@ -82,7 +87,8 @@ def __init__(self, **kwargs): 'description': 'description', 'dimensions': 'dimensions', 'time_effective_from': 'timeEffectiveFrom', - 'time_effective_until': 'timeEffectiveUntil' + 'time_effective_until': 'timeEffectiveUntil', + 'suppression_conditions': 'suppressionConditions' } self._suppression_id = None @@ -93,6 +99,7 @@ def __init__(self, **kwargs): self._dimensions = None self._time_effective_from = None self._time_effective_until = None + self._suppression_conditions = None @property def suppression_id(self): @@ -322,6 +329,40 @@ def time_effective_until(self, time_effective_until): """ self._time_effective_until = time_effective_until + @property + def suppression_conditions(self): + """ + Gets the suppression_conditions of this AlarmSuppressionHistoryItem. + Array of all preconditions for alarm suppression. + Example: `[{ + conditionType: \"RECURRENCE\", + suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\", + suppressionDuration: \"PT1H\" + }]` + + + :return: The suppression_conditions of this AlarmSuppressionHistoryItem. + :rtype: list[oci.monitoring.models.SuppressionCondition] + """ + return self._suppression_conditions + + @suppression_conditions.setter + def suppression_conditions(self, suppression_conditions): + """ + Sets the suppression_conditions of this AlarmSuppressionHistoryItem. + Array of all preconditions for alarm suppression. + Example: `[{ + conditionType: \"RECURRENCE\", + suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\", + suppressionDuration: \"PT1H\" + }]` + + + :param suppression_conditions: The suppression_conditions of this AlarmSuppressionHistoryItem. + :type: list[oci.monitoring.models.SuppressionCondition] + """ + self._suppression_conditions = suppression_conditions + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/monitoring/models/alarm_suppression_summary.py b/src/oci/monitoring/models/alarm_suppression_summary.py index b508134ea..1c315cbbf 100644 --- a/src/oci/monitoring/models/alarm_suppression_summary.py +++ b/src/oci/monitoring/models/alarm_suppression_summary.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class AlarmSuppressionSummary(object): """ - A summary of properties for the specified dimension-specific alarm suppression. + A summary of properties for the specified alarm suppression. """ def __init__(self, **kwargs): @@ -32,6 +32,14 @@ def __init__(self, **kwargs): The value to assign to the alarm_suppression_target property of this AlarmSuppressionSummary. :type alarm_suppression_target: oci.monitoring.models.AlarmSuppressionTarget + :param level: + The value to assign to the level property of this AlarmSuppressionSummary. + :type level: str + + :param suppression_conditions: + The value to assign to the suppression_conditions property of this AlarmSuppressionSummary. + :type suppression_conditions: list[oci.monitoring.models.SuppressionCondition] + :param display_name: The value to assign to the display_name property of this AlarmSuppressionSummary. :type display_name: str @@ -77,6 +85,8 @@ def __init__(self, **kwargs): 'id': 'str', 'compartment_id': 'str', 'alarm_suppression_target': 'AlarmSuppressionTarget', + 'level': 'str', + 'suppression_conditions': 'list[SuppressionCondition]', 'display_name': 'str', 'description': 'str', 'dimensions': 'dict(str, str)', @@ -93,6 +103,8 @@ def __init__(self, **kwargs): 'id': 'id', 'compartment_id': 'compartmentId', 'alarm_suppression_target': 'alarmSuppressionTarget', + 'level': 'level', + 'suppression_conditions': 'suppressionConditions', 'display_name': 'displayName', 'description': 'description', 'dimensions': 'dimensions', @@ -108,6 +120,8 @@ def __init__(self, **kwargs): self._id = None self._compartment_id = None self._alarm_suppression_target = None + self._level = None + self._suppression_conditions = None self._display_name = None self._description = None self._dimensions = None @@ -195,6 +209,68 @@ def alarm_suppression_target(self, alarm_suppression_target): """ self._alarm_suppression_target = alarm_suppression_target + @property + def level(self): + """ + **[Required]** Gets the level of this AlarmSuppressionSummary. + The level of this alarm suppression. + `ALARM` indicates a suppression of the entire alarm, regardless of dimension. + `DIMENSION` indicates a suppression configured for specified dimensions. + + + :return: The level of this AlarmSuppressionSummary. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """ + Sets the level of this AlarmSuppressionSummary. + The level of this alarm suppression. + `ALARM` indicates a suppression of the entire alarm, regardless of dimension. + `DIMENSION` indicates a suppression configured for specified dimensions. + + + :param level: The level of this AlarmSuppressionSummary. + :type: str + """ + self._level = level + + @property + def suppression_conditions(self): + """ + Gets the suppression_conditions of this AlarmSuppressionSummary. + Array of all preconditions for alarm suppression. + Example: `[{ + conditionType: \"RECURRENCE\", + suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\", + suppressionDuration: \"PT1H\" + }]` + + + :return: The suppression_conditions of this AlarmSuppressionSummary. + :rtype: list[oci.monitoring.models.SuppressionCondition] + """ + return self._suppression_conditions + + @suppression_conditions.setter + def suppression_conditions(self, suppression_conditions): + """ + Sets the suppression_conditions of this AlarmSuppressionSummary. + Array of all preconditions for alarm suppression. + Example: `[{ + conditionType: \"RECURRENCE\", + suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\", + suppressionDuration: \"PT1H\" + }]` + + + :param suppression_conditions: The suppression_conditions of this AlarmSuppressionSummary. + :type: list[oci.monitoring.models.SuppressionCondition] + """ + self._suppression_conditions = suppression_conditions + @property def display_name(self): """ @@ -260,7 +336,7 @@ def description(self, description): @property def dimensions(self): """ - **[Required]** Gets the dimensions of this AlarmSuppressionSummary. + Gets the dimensions of this AlarmSuppressionSummary. Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example: `{\"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"}` diff --git a/src/oci/monitoring/models/alarm_suppression_target.py b/src/oci/monitoring/models/alarm_suppression_target.py index 7b82726a6..35a79691e 100644 --- a/src/oci/monitoring/models/alarm_suppression_target.py +++ b/src/oci/monitoring/models/alarm_suppression_target.py @@ -19,18 +19,23 @@ class AlarmSuppressionTarget(object): #: This constant has a value of "ALARM" TARGET_TYPE_ALARM = "ALARM" + #: A constant which can be used with the target_type property of a AlarmSuppressionTarget. + #: This constant has a value of "COMPARTMENT" + TARGET_TYPE_COMPARTMENT = "COMPARTMENT" + def __init__(self, **kwargs): """ Initializes a new AlarmSuppressionTarget 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.monitoring.models.AlarmSuppressionAlarmTarget` + * :class:`~oci.monitoring.models.AlarmSuppressionCompartmentTarget` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param target_type: The value to assign to the target_type property of this AlarmSuppressionTarget. - Allowed values for this property are: "ALARM", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ALARM", "COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type target_type: str @@ -55,6 +60,9 @@ def get_subtype(object_dictionary): if type == 'ALARM': return 'AlarmSuppressionAlarmTarget' + + if type == 'COMPARTMENT': + return 'AlarmSuppressionCompartmentTarget' else: return 'AlarmSuppressionTarget' @@ -64,7 +72,7 @@ def target_type(self): **[Required]** Gets the target_type of this AlarmSuppressionTarget. The type of the alarm suppression target. - Allowed values for this property are: "ALARM", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ALARM", "COMPARTMENT", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -83,7 +91,7 @@ def target_type(self, target_type): :param target_type: The target_type of this AlarmSuppressionTarget. :type: str """ - allowed_values = ["ALARM"] + allowed_values = ["ALARM", "COMPARTMENT"] if not value_allowed_none_or_none_sentinel(target_type, allowed_values): target_type = 'UNKNOWN_ENUM_VALUE' self._target_type = target_type diff --git a/src/oci/monitoring/models/create_alarm_suppression_details.py b/src/oci/monitoring/models/create_alarm_suppression_details.py index 97093f4ae..1876be6f5 100644 --- a/src/oci/monitoring/models/create_alarm_suppression_details.py +++ b/src/oci/monitoring/models/create_alarm_suppression_details.py @@ -12,7 +12,7 @@ @init_model_state_from_kwargs class CreateAlarmSuppressionDetails(object): """ - The configuration details for creating a dimension-specific alarm suppression. + The configuration details for creating an alarm suppression. """ def __init__(self, **kwargs): @@ -24,6 +24,10 @@ def __init__(self, **kwargs): The value to assign to the alarm_suppression_target property of this CreateAlarmSuppressionDetails. :type alarm_suppression_target: oci.monitoring.models.AlarmSuppressionTarget + :param level: + The value to assign to the level property of this CreateAlarmSuppressionDetails. + :type level: str + :param display_name: The value to assign to the display_name property of this CreateAlarmSuppressionDetails. :type display_name: str @@ -52,30 +56,39 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this CreateAlarmSuppressionDetails. :type defined_tags: dict(str, dict(str, object)) + :param suppression_conditions: + The value to assign to the suppression_conditions property of this CreateAlarmSuppressionDetails. + :type suppression_conditions: list[oci.monitoring.models.SuppressionCondition] + """ self.swagger_types = { 'alarm_suppression_target': 'AlarmSuppressionTarget', + 'level': 'str', 'display_name': 'str', 'description': 'str', 'dimensions': 'dict(str, str)', 'time_suppress_from': 'datetime', 'time_suppress_until': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'suppression_conditions': 'list[SuppressionCondition]' } self.attribute_map = { 'alarm_suppression_target': 'alarmSuppressionTarget', + 'level': 'level', 'display_name': 'displayName', 'description': 'description', 'dimensions': 'dimensions', 'time_suppress_from': 'timeSuppressFrom', 'time_suppress_until': 'timeSuppressUntil', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'suppression_conditions': 'suppressionConditions' } self._alarm_suppression_target = None + self._level = None self._display_name = None self._description = None self._dimensions = None @@ -83,6 +96,7 @@ def __init__(self, **kwargs): self._time_suppress_until = None self._freeform_tags = None self._defined_tags = None + self._suppression_conditions = None @property def alarm_suppression_target(self): @@ -104,6 +118,38 @@ def alarm_suppression_target(self, alarm_suppression_target): """ self._alarm_suppression_target = alarm_suppression_target + @property + def level(self): + """ + Gets the level of this CreateAlarmSuppressionDetails. + The level of this alarm suppression. + `ALARM` indicates a suppression of the entire alarm, regardless of dimension. + `DIMENSION` indicates a suppression configured for specified dimensions. + + Defaut: `DIMENSION` + + + :return: The level of this CreateAlarmSuppressionDetails. + :rtype: str + """ + return self._level + + @level.setter + def level(self, level): + """ + Sets the level of this CreateAlarmSuppressionDetails. + The level of this alarm suppression. + `ALARM` indicates a suppression of the entire alarm, regardless of dimension. + `DIMENSION` indicates a suppression configured for specified dimensions. + + Defaut: `DIMENSION` + + + :param level: The level of this CreateAlarmSuppressionDetails. + :type: str + """ + self._level = level + @property def display_name(self): """ @@ -169,13 +215,13 @@ def description(self, description): @property def dimensions(self): """ - **[Required]** Gets the dimensions of this CreateAlarmSuppressionDetails. + Gets the dimensions of this CreateAlarmSuppressionDetails. A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {\"availabilityDomain\": \"phx-ad-1\"} and the alarm state entry corresponds to the set {\"availabilityDomain\": \"phx-ad-1\" and \"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"}, then this alarm will be included for suppression. - The value cannot be an empty object. + This is required only when the value of level is `DIMENSION`. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is `HTTP 400` with an \"dimensions values are too long\" message. @@ -195,7 +241,7 @@ def dimensions(self, dimensions): and the alarm state entry corresponds to the set {\"availabilityDomain\": \"phx-ad-1\" and \"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"}, then this alarm will be included for suppression. - The value cannot be an empty object. + This is required only when the value of level is `DIMENSION`. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is `HTTP 400` with an \"dimensions values are too long\" message. @@ -314,6 +360,40 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def suppression_conditions(self): + """ + Gets the suppression_conditions of this CreateAlarmSuppressionDetails. + Array of all preconditions for alarm suppression. + Example: `[{ + conditionType: \"RECURRENCE\", + suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\", + suppressionDuration: \"PT1H\" + }]` + + + :return: The suppression_conditions of this CreateAlarmSuppressionDetails. + :rtype: list[oci.monitoring.models.SuppressionCondition] + """ + return self._suppression_conditions + + @suppression_conditions.setter + def suppression_conditions(self, suppression_conditions): + """ + Sets the suppression_conditions of this CreateAlarmSuppressionDetails. + Array of all preconditions for alarm suppression. + Example: `[{ + conditionType: \"RECURRENCE\", + suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\", + suppressionDuration: \"PT1H\" + }]` + + + :param suppression_conditions: The suppression_conditions of this CreateAlarmSuppressionDetails. + :type: list[oci.monitoring.models.SuppressionCondition] + """ + self._suppression_conditions = suppression_conditions + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/monitoring/models/recurrence.py b/src/oci/monitoring/models/recurrence.py new file mode 100644 index 000000000..a646688a3 --- /dev/null +++ b/src/oci/monitoring/models/recurrence.py @@ -0,0 +1,127 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20180401 + +from .suppression_condition import SuppressionCondition +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 Recurrence(SuppressionCondition): + """ + Alarm suppression recurring schedule. Only one recurrence condition is supported within the list of preconditions for a suppression (`suppressionConditions`). + """ + + def __init__(self, **kwargs): + """ + Initializes a new Recurrence object with values from keyword arguments. The default value of the :py:attr:`~oci.monitoring.models.Recurrence.condition_type` attribute + of this class is ``RECURRENCE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param condition_type: + The value to assign to the condition_type property of this Recurrence. + Allowed values for this property are: "RECURRENCE" + :type condition_type: str + + :param suppression_recurrence: + The value to assign to the suppression_recurrence property of this Recurrence. + :type suppression_recurrence: str + + :param suppression_duration: + The value to assign to the suppression_duration property of this Recurrence. + :type suppression_duration: str + + """ + self.swagger_types = { + 'condition_type': 'str', + 'suppression_recurrence': 'str', + 'suppression_duration': 'str' + } + + self.attribute_map = { + 'condition_type': 'conditionType', + 'suppression_recurrence': 'suppressionRecurrence', + 'suppression_duration': 'suppressionDuration' + } + + self._condition_type = None + self._suppression_recurrence = None + self._suppression_duration = None + self._condition_type = 'RECURRENCE' + + @property + def suppression_recurrence(self): + """ + **[Required]** Gets the suppression_recurrence of this Recurrence. + Frequency and start time of the recurring suppression. The format follows + `the iCalendar specification (RFC 5545, section 3.3.10)`__. + Supported rule parts: + * `FREQ`: Frequency of the recurring suppression: `WEEKLY` or `DAILY` only. + * `BYDAY`: Comma separated days. Use with weekly suppressions only. Supported values: `MO`, `TU`, `WE`, `TH`, `FR`, `SA` ,`SU`. + * `BYHOUR`, `BYMINUTE`, `BYSECOND`: Start time in UTC, after `timeSuppressFrom` value. Default is 00:00:00 UTC after `timeSuppressFrom`. + + __ https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 + + + :return: The suppression_recurrence of this Recurrence. + :rtype: str + """ + return self._suppression_recurrence + + @suppression_recurrence.setter + def suppression_recurrence(self, suppression_recurrence): + """ + Sets the suppression_recurrence of this Recurrence. + Frequency and start time of the recurring suppression. The format follows + `the iCalendar specification (RFC 5545, section 3.3.10)`__. + Supported rule parts: + * `FREQ`: Frequency of the recurring suppression: `WEEKLY` or `DAILY` only. + * `BYDAY`: Comma separated days. Use with weekly suppressions only. Supported values: `MO`, `TU`, `WE`, `TH`, `FR`, `SA` ,`SU`. + * `BYHOUR`, `BYMINUTE`, `BYSECOND`: Start time in UTC, after `timeSuppressFrom` value. Default is 00:00:00 UTC after `timeSuppressFrom`. + + __ https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 + + + :param suppression_recurrence: The suppression_recurrence of this Recurrence. + :type: str + """ + self._suppression_recurrence = suppression_recurrence + + @property + def suppression_duration(self): + """ + **[Required]** Gets the suppression_duration of this Recurrence. + Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: `PT1M` (1 minute). Maximum: `PT24H` (24 hours). + + + :return: The suppression_duration of this Recurrence. + :rtype: str + """ + return self._suppression_duration + + @suppression_duration.setter + def suppression_duration(self, suppression_duration): + """ + Sets the suppression_duration of this Recurrence. + Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: `PT1M` (1 minute). Maximum: `PT24H` (24 hours). + + + :param suppression_duration: The suppression_duration of this Recurrence. + :type: str + """ + self._suppression_duration = suppression_duration + + 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/monitoring/models/suppression.py b/src/oci/monitoring/models/suppression.py index d598d6cac..684fcf97a 100644 --- a/src/oci/monitoring/models/suppression.py +++ b/src/oci/monitoring/models/suppression.py @@ -14,6 +14,7 @@ class Suppression(object): """ The configuration details for an alarm-wide suppression. For dimension-specific suppressions, see :class:`AlarmSuppression`. + For information about alarms, see `Alarms Overview`__. diff --git a/src/oci/monitoring/models/suppression_condition.py b/src/oci/monitoring/models/suppression_condition.py new file mode 100644 index 000000000..f979b5418 --- /dev/null +++ b/src/oci/monitoring/models/suppression_condition.py @@ -0,0 +1,101 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20180401 + + +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 SuppressionCondition(object): + """ + Precondition for an alarm suppression within the suppression date and time range (`timeSuppressFrom` to `timeSuppressUntil`). + """ + + #: A constant which can be used with the condition_type property of a SuppressionCondition. + #: This constant has a value of "RECURRENCE" + CONDITION_TYPE_RECURRENCE = "RECURRENCE" + + def __init__(self, **kwargs): + """ + Initializes a new SuppressionCondition 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.monitoring.models.Recurrence` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param condition_type: + The value to assign to the condition_type property of this SuppressionCondition. + Allowed values for this property are: "RECURRENCE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type condition_type: str + + """ + self.swagger_types = { + 'condition_type': 'str' + } + + self.attribute_map = { + 'condition_type': 'conditionType' + } + + self._condition_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['conditionType'] + + if type == 'RECURRENCE': + return 'Recurrence' + else: + return 'SuppressionCondition' + + @property + def condition_type(self): + """ + **[Required]** Gets the condition_type of this SuppressionCondition. + Type of suppression condition. + + Allowed values for this property are: "RECURRENCE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The condition_type of this SuppressionCondition. + :rtype: str + """ + return self._condition_type + + @condition_type.setter + def condition_type(self, condition_type): + """ + Sets the condition_type of this SuppressionCondition. + Type of suppression condition. + + + :param condition_type: The condition_type of this SuppressionCondition. + :type: str + """ + allowed_values = ["RECURRENCE"] + if not value_allowed_none_or_none_sentinel(condition_type, allowed_values): + condition_type = 'UNKNOWN_ENUM_VALUE' + self._condition_type = condition_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/monitoring/monitoring_client.py b/src/oci/monitoring/monitoring_client.py index ac512d57b..9eaebdac5 100644 --- a/src/oci/monitoring/monitoring_client.py +++ b/src/oci/monitoring/monitoring_client.py @@ -352,7 +352,10 @@ def create_alarm(self, create_alarm_details, **kwargs): def create_alarm_suppression(self, create_alarm_suppression_details, **kwargs): """ - Creates a dimension-specific suppression for an alarm. + Creates a new alarm suppression at the specified level (alarm-wide or dimension-specific). + For more information, see + `Adding an Alarm-wide Suppression`__ and + `Adding a Dimension-Specific Alarm Suppression`__. For important limits information, see `Limits on Monitoring`__. @@ -361,6 +364,8 @@ def create_alarm_suppression(self, create_alarm_suppression_details, **kwargs): Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy. + __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/add-alarm-suppression.htm + __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-alarm-suppression.htm __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits @@ -573,7 +578,9 @@ def delete_alarm(self, alarm_id, **kwargs): def delete_alarm_suppression(self, alarm_suppression_id, **kwargs): """ - Deletes the specified alarm suppression. + Deletes the specified alarm suppression. For more information, see + `Removing an Alarm-wide Suppression`__ and + `Removing a Dimension-Specific Alarm Suppression`__. For important limits information, see `Limits on Monitoring`__. @@ -582,6 +589,8 @@ def delete_alarm_suppression(self, alarm_suppression_id, **kwargs): Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy. + __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/remove-alarm-suppression.htm + __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/delete-alarm-suppression.htm __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits @@ -966,7 +975,8 @@ def get_alarm_history(self, alarm_id, **kwargs): def get_alarm_suppression(self, alarm_suppression_id, **kwargs): """ - Gets the specified alarm suppression. + Gets the specified alarm suppression. For more information, see + `Getting an Alarm-wide Suppression`__. For important limits information, see `Limits on Monitoring`__. @@ -975,6 +985,7 @@ def get_alarm_suppression(self, alarm_suppression_id, **kwargs): Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy. + __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/get-alarm-suppression.htm __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits @@ -1072,10 +1083,10 @@ def get_alarm_suppression(self, alarm_suppression_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) - def list_alarm_suppressions(self, alarm_id, **kwargs): + def list_alarm_suppressions(self, **kwargs): """ - Lists alarm suppressions for the specified alarm. - Only dimension-level suppressions are listed. Alarm-level suppressions are not listed. + Lists alarm suppressions for the specified alarm. For more information, see + `Listing Alarm Suppressions`__. For important limits information, see `Limits on Monitoring`__. @@ -1084,21 +1095,22 @@ def list_alarm_suppressions(self, alarm_id, **kwargs): Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy. + __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-suppression.htm __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits - :param str alarm_id: (required) - The `OCID`__ of the alarm that is the target of the alarm suppression. - - __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm - :param str opc_request_id: (optional) Customer part of the request identifier token. If you need to contact Oracle about a particular request, please provide the complete request ID. + :param str alarm_id: (optional) + The `OCID`__ of the alarm that is the target of the alarm suppression. + + __ 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 given display name exactly. - Use this filter to list a alarm suppression by name. + Use this filter to list an alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation. :param str lifecycle_state: (optional) @@ -1106,6 +1118,47 @@ def list_alarm_suppressions(self, alarm_id, **kwargs): Allowed values are: "ACTIVE", "DELETED" + :param str level: (optional) + The level of this alarm suppression. + `ALARM` indicates a suppression of the entire alarm, regardless of dimension. + `DIMENSION` indicates a suppression configured for specified dimensions. + + Allowed values are: "ALARM", "DIMENSION" + + :param str compartment_id: (optional) + The `OCID`__ of the compartment for searching. + Use the tenancy OCID to search in the root compartment. + + If targetType is not specified, searches all suppressions defined under the compartment. + If targetType is `COMPARTMENT`, searches suppressions in the specified compartment only. + + Example: `ocid1.compartment.oc1..exampleuniqueID` + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param bool compartment_id_in_subtree: (optional) + When true, returns resources from all compartments and subcompartments. The parameter can + only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). + A true value requires the user to have tenancy-level permissions. If this requirement is not met, + then the call is rejected. When false, returns resources from only the compartment specified in + compartmentId. Default is false. + + :param str target_type: (optional) + The target type to use when listing alarm suppressions. + `ALARM` lists all suppression records for the specified alarm. + `COMPARTMENT` lists all suppression records for the specified compartment or tenancy. + + Allowed values are: "ALARM", "COMPARTMENT" + + :param bool is_all_suppressions: (optional) + Setting this parameter to true requires the query to specify the alarm (`alarmId`). + + When true, lists all alarm suppressions that affect the specified alarm, + including suppressions that target the corresponding compartment or tenancy. + When false, lists only the alarm suppressions that target the specified alarm. + + Default is false. + :param str sort_by: (optional) The field to use when sorting returned alarm suppressions. Only one sorting level is provided. @@ -1157,7 +1210,7 @@ def list_alarm_suppressions(self, alarm_id, **kwargs): Click `here `__ to see an example of how to use list_alarm_suppressions API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['alarmId'] + required_arguments = [] resource_path = "/alarmSuppressions" method = "GET" operation_name = "list_alarm_suppressions" @@ -1168,8 +1221,14 @@ def list_alarm_suppressions(self, alarm_id, **kwargs): "allow_control_chars", "retry_strategy", "opc_request_id", + "alarm_id", "display_name", "lifecycle_state", + "level", + "compartment_id", + "compartment_id_in_subtree", + "target_type", + "is_all_suppressions", "sort_by", "sort_order", "page", @@ -1187,6 +1246,20 @@ def list_alarm_suppressions(self, alarm_id, **kwargs): f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }" ) + if 'level' in kwargs: + level_allowed_values = ["ALARM", "DIMENSION"] + if kwargs['level'] not in level_allowed_values: + raise ValueError( + f"Invalid value for `level`, must be one of { level_allowed_values }" + ) + + if 'target_type' in kwargs: + target_type_allowed_values = ["ALARM", "COMPARTMENT"] + if kwargs['target_type'] not in target_type_allowed_values: + raise ValueError( + f"Invalid value for `target_type`, must be one of { target_type_allowed_values }" + ) + if 'sort_by' in kwargs: sort_by_allowed_values = ["displayName", "timeCreated", "timeSuppressFrom"] if kwargs['sort_by'] not in sort_by_allowed_values: @@ -1202,9 +1275,14 @@ def list_alarm_suppressions(self, alarm_id, **kwargs): ) query_params = { - "alarmId": alarm_id, + "alarmId": kwargs.get("alarm_id", missing), "displayName": kwargs.get("display_name", missing), "lifecycleState": kwargs.get("lifecycle_state", missing), + "level": kwargs.get("level", missing), + "compartmentId": kwargs.get("compartment_id", missing), + "compartmentIdInSubtree": kwargs.get("compartment_id_in_subtree", missing), + "targetType": kwargs.get("target_type", missing), + "isAllSuppressions": kwargs.get("is_all_suppressions", missing), "sortBy": kwargs.get("sort_by", missing), "sortOrder": kwargs.get("sort_order", missing), "page": kwargs.get("page", missing), @@ -1449,6 +1527,7 @@ def list_alarms_status(self, compartment_id, **kwargs): Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use :func:`retrieve_dimension_states`. Optionally filter by resource or status value. + For more information, see `Listing Alarm Statuses`__. For important limits information, see @@ -2063,6 +2142,7 @@ def retrieve_dimension_states(self, alarm_id, **kwargs): """ Lists the current alarm status of each metric stream, where status is derived from the metric stream's last associated transition. Optionally filter by status value and one or more dimension key-value pairs. + For more information, see `Listing Metric Stream Status in an Alarm`__. @@ -2207,7 +2287,8 @@ def retrieve_dimension_states(self, alarm_id, **kwargs): def summarize_alarm_suppression_history(self, alarm_id, **kwargs): """ - Returns history of suppressions for the specified alarm, including both dimension-specific and and alarm-wide suppressions. + Returns history of suppressions for the specified alarm, including both dimension-specific and and alarm-wide suppressions. For more information, see + `Getting Suppression History for an Alarm`__. For important limits information, see `Limits on Monitoring`__. @@ -2216,6 +2297,7 @@ def summarize_alarm_suppression_history(self, alarm_id, **kwargs): Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy. + __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/summarize-alarm-suppression-history.htm __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits diff --git a/src/oci/oda/models/bot.py b/src/oci/oda/models/bot.py index 7c3a4e47f..7ae4240a8 100644 --- a/src/oci/oda/models/bot.py +++ b/src/oci/oda/models/bot.py @@ -94,12 +94,14 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this Bot. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", '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 Bot. - Allowed values for this property are: "PUBLISHED", "DRAFT" + Allowed values for this property are: "PUBLISHED", "DRAFT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_details: str :param platform_version: @@ -116,7 +118,8 @@ def __init__(self, **kwargs): :param multilingual_mode: The value to assign to the multilingual_mode property of this Bot. - Allowed values for this property are: "NATIVE", "TRANSLATION" + Allowed values for this property are: "NATIVE", "TRANSLATION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type multilingual_mode: str :param primary_language_tag: @@ -382,7 +385,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this Bot. The resource's current state. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this Bot. @@ -402,9 +406,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state @property @@ -413,7 +415,8 @@ def lifecycle_details(self): **[Required]** Gets the lifecycle_details of this Bot. The resource's publish state. - Allowed values for this property are: "PUBLISHED", "DRAFT" + Allowed values for this property are: "PUBLISHED", "DRAFT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_details of this Bot. @@ -433,9 +436,7 @@ def lifecycle_details(self, lifecycle_details): """ allowed_values = ["PUBLISHED", "DRAFT"] if not value_allowed_none_or_none_sentinel(lifecycle_details, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_details`, must be None or one of {allowed_values}" - ) + lifecycle_details = 'UNKNOWN_ENUM_VALUE' self._lifecycle_details = lifecycle_details @property @@ -516,7 +517,8 @@ def multilingual_mode(self): Gets the multilingual_mode of this Bot. The multilingual mode for the resource. - Allowed values for this property are: "NATIVE", "TRANSLATION" + Allowed values for this property are: "NATIVE", "TRANSLATION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The multilingual_mode of this Bot. @@ -536,9 +538,7 @@ def multilingual_mode(self, multilingual_mode): """ allowed_values = ["NATIVE", "TRANSLATION"] if not value_allowed_none_or_none_sentinel(multilingual_mode, allowed_values): - raise ValueError( - f"Invalid value for `multilingual_mode`, must be None or one of {allowed_values}" - ) + multilingual_mode = 'UNKNOWN_ENUM_VALUE' self._multilingual_mode = multilingual_mode @property diff --git a/src/oci/oda/models/parameter.py b/src/oci/oda/models/parameter.py index d5f215116..3e7b20c16 100644 --- a/src/oci/oda/models/parameter.py +++ b/src/oci/oda/models/parameter.py @@ -82,7 +82,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this Parameter. - Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN", "SECURE" + Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN", "SECURE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param value: @@ -91,7 +92,8 @@ def __init__(self, **kwargs): :param lifecycle_state: The value to assign to the lifecycle_state property of this Parameter. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str """ @@ -198,7 +200,8 @@ def type(self): **[Required]** Gets the type of this Parameter. The value type. - Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN", "SECURE" + Allowed values for this property are: "STRING", "INTEGER", "FLOAT", "BOOLEAN", "SECURE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this Parameter. @@ -218,9 +221,7 @@ def type(self, type): """ allowed_values = ["STRING", "INTEGER", "FLOAT", "BOOLEAN", "SECURE"] if not value_allowed_none_or_none_sentinel(type, allowed_values): - raise ValueError( - f"Invalid value for `type`, must be None or one of {allowed_values}" - ) + type = 'UNKNOWN_ENUM_VALUE' self._type = type @property @@ -253,7 +254,8 @@ def lifecycle_state(self): **[Required]** Gets the lifecycle_state of this Parameter. The Parameter's current state. - Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED" + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this Parameter. @@ -273,9 +275,7 @@ def lifecycle_state(self, lifecycle_state): """ allowed_values = ["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"] if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): - raise ValueError( - f"Invalid value for `lifecycle_state`, must be None or one of {allowed_values}" - ) + lifecycle_state = 'UNKNOWN_ENUM_VALUE' self._lifecycle_state = lifecycle_state def __repr__(self): diff --git a/src/oci/opsi/models/__init__.py b/src/oci/opsi/models/__init__.py index 5aa43eb19..ebebbb3fb 100644 --- a/src/oci/opsi/models/__init__.py +++ b/src/oci/opsi/models/__init__.py @@ -8,6 +8,7 @@ from .add_em_managed_external_exadata_insight_members_details import AddEmManagedExternalExadataInsightMembersDetails from .add_exadata_insight_members_details import AddExadataInsightMembersDetails +from .add_macs_managed_cloud_exadata_insight_members_details import AddMacsManagedCloudExadataInsightMembersDetails from .add_pe_comanaged_exadata_insight_members_details import AddPeComanagedExadataInsightMembersDetails from .addm_db_collection import AddmDbCollection from .addm_db_finding_aggregation import AddmDbFindingAggregation @@ -83,6 +84,7 @@ 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_macs_managed_cloud_database_insight_connection_details import ChangeMacsManagedCloudDatabaseInsightConnectionDetails from .change_news_report_compartment_details import ChangeNewsReportCompartmentDetails from .change_operations_insights_private_endpoint_compartment_details import ChangeOperationsInsightsPrivateEndpointCompartmentDetails from .change_operations_insights_warehouse_compartment_details import ChangeOperationsInsightsWarehouseCompartmentDetails @@ -110,6 +112,10 @@ from .create_enterprise_manager_bridge_details import CreateEnterpriseManagerBridgeDetails from .create_exadata_insight_details import CreateExadataInsightDetails from .create_host_insight_details import CreateHostInsightDetails +from .create_macs_managed_cloud_database_insight_details import CreateMacsManagedCloudDatabaseInsightDetails +from .create_macs_managed_cloud_exadata_cluster_details import CreateMacsManagedCloudExadataClusterDetails +from .create_macs_managed_cloud_exadata_insight_details import CreateMacsManagedCloudExadataInsightDetails +from .create_macs_managed_cloud_exadata_vmcluster_details import CreateMacsManagedCloudExadataVmclusterDetails from .create_macs_managed_cloud_host_insight_details import CreateMacsManagedCloudHostInsightDetails from .create_macs_managed_external_host_insight_details import CreateMacsManagedExternalHostInsightDetails from .create_mds_my_sql_database_insight_details import CreateMdsMySqlDatabaseInsightDetails @@ -125,6 +131,7 @@ from .credential_by_vault import CredentialByVault from .credential_details import CredentialDetails from .credentials_by_source import CredentialsBySource +from .db_connection_status import DBConnectionStatus from .db_external_instance import DBExternalInstance from .db_external_properties import DBExternalProperties from .dbos_config_instance import DBOSConfigInstance @@ -174,6 +181,8 @@ from .enable_em_managed_external_host_insight_details import EnableEmManagedExternalHostInsightDetails from .enable_exadata_insight_details import EnableExadataInsightDetails from .enable_host_insight_details import EnableHostInsightDetails +from .enable_macs_managed_cloud_database_insight_details import EnableMacsManagedCloudDatabaseInsightDetails +from .enable_macs_managed_cloud_exadata_insight_details import EnableMacsManagedCloudExadataInsightDetails from .enable_macs_managed_cloud_host_insight_details import EnableMacsManagedCloudHostInsightDetails from .enable_macs_managed_external_host_insight_details import EnableMacsManagedExternalHostInsightDetails from .enable_mds_my_sql_database_insight_details import EnableMdsMySqlDatabaseInsightDetails @@ -183,12 +192,15 @@ from .enterprise_manager_bridge_collection import EnterpriseManagerBridgeCollection from .enterprise_manager_bridge_summary import EnterpriseManagerBridgeSummary from .enterprise_manager_bridges import EnterpriseManagerBridges +from .exadata_asm_entity import ExadataAsmEntity +from .exadata_cell_config import ExadataCellConfig from .exadata_configuration_collection import ExadataConfigurationCollection from .exadata_configuration_summary import ExadataConfigurationSummary from .exadata_database_machine_configuration_summary import ExadataDatabaseMachineConfigurationSummary from .exadata_database_statistics_summary import ExadataDatabaseStatisticsSummary from .exadata_details import ExadataDetails from .exadata_diskgroup_statistics_summary import ExadataDiskgroupStatisticsSummary +from .exadata_exacc_configuration_summary import ExadataExaccConfigurationSummary from .exadata_exacs_configuration_summary import ExadataExacsConfigurationSummary from .exadata_host_statistics_summary import ExadataHostStatisticsSummary from .exadata_insight import ExadataInsight @@ -207,6 +219,7 @@ from .exadata_member_summary import ExadataMemberSummary from .exadata_storage_server_statistics_summary import ExadataStorageServerStatisticsSummary from .historical_data_item import HistoricalDataItem +from .host_allocation import HostAllocation from .host_configuration_collection import HostConfigurationCollection from .host_configuration_metric_group import HostConfigurationMetricGroup from .host_configuration_summary import HostConfigurationSummary @@ -281,6 +294,14 @@ from .ingest_sql_text_response_details import IngestSqlTextResponseDetails from .instance_metrics import InstanceMetrics from .list_objects import ListObjects +from .macs_managed_cloud_database_configuration_summary import MacsManagedCloudDatabaseConfigurationSummary +from .macs_managed_cloud_database_host_insight import MacsManagedCloudDatabaseHostInsight +from .macs_managed_cloud_database_host_insight_summary import MacsManagedCloudDatabaseHostInsightSummary +from .macs_managed_cloud_database_insight import MacsManagedCloudDatabaseInsight +from .macs_managed_cloud_database_insight_summary import MacsManagedCloudDatabaseInsightSummary +from .macs_managed_cloud_db_host_configuration_summary import MacsManagedCloudDbHostConfigurationSummary +from .macs_managed_cloud_exadata_insight import MacsManagedCloudExadataInsight +from .macs_managed_cloud_exadata_insight_summary import MacsManagedCloudExadataInsightSummary from .macs_managed_cloud_host_configuration_summary import MacsManagedCloudHostConfigurationSummary from .macs_managed_cloud_host_insight import MacsManagedCloudHostInsight from .macs_managed_cloud_host_insight_summary import MacsManagedCloudHostInsightSummary @@ -421,6 +442,7 @@ from .summary_statistics import SummaryStatistics from .tablespace_usage_trend import TablespaceUsageTrend from .tablespace_usage_trend_aggregation import TablespaceUsageTrendAggregation +from .test_macs_managed_cloud_database_insight_connection_details import TestMacsManagedCloudDatabaseInsightConnectionDetails from .top_processes_usage import TopProcessesUsage from .top_processes_usage_trend import TopProcessesUsageTrend from .top_processes_usage_trend_aggregation import TopProcessesUsageTrendAggregation @@ -436,6 +458,9 @@ from .update_enterprise_manager_bridge_details import UpdateEnterpriseManagerBridgeDetails from .update_exadata_insight_details import UpdateExadataInsightDetails from .update_host_insight_details import UpdateHostInsightDetails +from .update_macs_managed_cloud_database_host_insight_details import UpdateMacsManagedCloudDatabaseHostInsightDetails +from .update_macs_managed_cloud_database_insight_details import UpdateMacsManagedCloudDatabaseInsightDetails +from .update_macs_managed_cloud_exadata_insight_details import UpdateMacsManagedCloudExadataInsightDetails from .update_macs_managed_cloud_host_insight_details import UpdateMacsManagedCloudHostInsightDetails from .update_macs_managed_external_database_insight_details import UpdateMacsManagedExternalDatabaseInsightDetails from .update_macs_managed_external_host_insight_details import UpdateMacsManagedExternalHostInsightDetails @@ -469,6 +494,7 @@ opsi_type_mapping = { "AddEmManagedExternalExadataInsightMembersDetails": AddEmManagedExternalExadataInsightMembersDetails, "AddExadataInsightMembersDetails": AddExadataInsightMembersDetails, + "AddMacsManagedCloudExadataInsightMembersDetails": AddMacsManagedCloudExadataInsightMembersDetails, "AddPeComanagedExadataInsightMembersDetails": AddPeComanagedExadataInsightMembersDetails, "AddmDbCollection": AddmDbCollection, "AddmDbFindingAggregation": AddmDbFindingAggregation, @@ -544,6 +570,7 @@ "ChangeEnterpriseManagerBridgeCompartmentDetails": ChangeEnterpriseManagerBridgeCompartmentDetails, "ChangeExadataInsightCompartmentDetails": ChangeExadataInsightCompartmentDetails, "ChangeHostInsightCompartmentDetails": ChangeHostInsightCompartmentDetails, + "ChangeMacsManagedCloudDatabaseInsightConnectionDetails": ChangeMacsManagedCloudDatabaseInsightConnectionDetails, "ChangeNewsReportCompartmentDetails": ChangeNewsReportCompartmentDetails, "ChangeOperationsInsightsPrivateEndpointCompartmentDetails": ChangeOperationsInsightsPrivateEndpointCompartmentDetails, "ChangeOperationsInsightsWarehouseCompartmentDetails": ChangeOperationsInsightsWarehouseCompartmentDetails, @@ -571,6 +598,10 @@ "CreateEnterpriseManagerBridgeDetails": CreateEnterpriseManagerBridgeDetails, "CreateExadataInsightDetails": CreateExadataInsightDetails, "CreateHostInsightDetails": CreateHostInsightDetails, + "CreateMacsManagedCloudDatabaseInsightDetails": CreateMacsManagedCloudDatabaseInsightDetails, + "CreateMacsManagedCloudExadataClusterDetails": CreateMacsManagedCloudExadataClusterDetails, + "CreateMacsManagedCloudExadataInsightDetails": CreateMacsManagedCloudExadataInsightDetails, + "CreateMacsManagedCloudExadataVmclusterDetails": CreateMacsManagedCloudExadataVmclusterDetails, "CreateMacsManagedCloudHostInsightDetails": CreateMacsManagedCloudHostInsightDetails, "CreateMacsManagedExternalHostInsightDetails": CreateMacsManagedExternalHostInsightDetails, "CreateMdsMySqlDatabaseInsightDetails": CreateMdsMySqlDatabaseInsightDetails, @@ -586,6 +617,7 @@ "CredentialByVault": CredentialByVault, "CredentialDetails": CredentialDetails, "CredentialsBySource": CredentialsBySource, + "DBConnectionStatus": DBConnectionStatus, "DBExternalInstance": DBExternalInstance, "DBExternalProperties": DBExternalProperties, "DBOSConfigInstance": DBOSConfigInstance, @@ -635,6 +667,8 @@ "EnableEmManagedExternalHostInsightDetails": EnableEmManagedExternalHostInsightDetails, "EnableExadataInsightDetails": EnableExadataInsightDetails, "EnableHostInsightDetails": EnableHostInsightDetails, + "EnableMacsManagedCloudDatabaseInsightDetails": EnableMacsManagedCloudDatabaseInsightDetails, + "EnableMacsManagedCloudExadataInsightDetails": EnableMacsManagedCloudExadataInsightDetails, "EnableMacsManagedCloudHostInsightDetails": EnableMacsManagedCloudHostInsightDetails, "EnableMacsManagedExternalHostInsightDetails": EnableMacsManagedExternalHostInsightDetails, "EnableMdsMySqlDatabaseInsightDetails": EnableMdsMySqlDatabaseInsightDetails, @@ -644,12 +678,15 @@ "EnterpriseManagerBridgeCollection": EnterpriseManagerBridgeCollection, "EnterpriseManagerBridgeSummary": EnterpriseManagerBridgeSummary, "EnterpriseManagerBridges": EnterpriseManagerBridges, + "ExadataAsmEntity": ExadataAsmEntity, + "ExadataCellConfig": ExadataCellConfig, "ExadataConfigurationCollection": ExadataConfigurationCollection, "ExadataConfigurationSummary": ExadataConfigurationSummary, "ExadataDatabaseMachineConfigurationSummary": ExadataDatabaseMachineConfigurationSummary, "ExadataDatabaseStatisticsSummary": ExadataDatabaseStatisticsSummary, "ExadataDetails": ExadataDetails, "ExadataDiskgroupStatisticsSummary": ExadataDiskgroupStatisticsSummary, + "ExadataExaccConfigurationSummary": ExadataExaccConfigurationSummary, "ExadataExacsConfigurationSummary": ExadataExacsConfigurationSummary, "ExadataHostStatisticsSummary": ExadataHostStatisticsSummary, "ExadataInsight": ExadataInsight, @@ -668,6 +705,7 @@ "ExadataMemberSummary": ExadataMemberSummary, "ExadataStorageServerStatisticsSummary": ExadataStorageServerStatisticsSummary, "HistoricalDataItem": HistoricalDataItem, + "HostAllocation": HostAllocation, "HostConfigurationCollection": HostConfigurationCollection, "HostConfigurationMetricGroup": HostConfigurationMetricGroup, "HostConfigurationSummary": HostConfigurationSummary, @@ -742,6 +780,14 @@ "IngestSqlTextResponseDetails": IngestSqlTextResponseDetails, "InstanceMetrics": InstanceMetrics, "ListObjects": ListObjects, + "MacsManagedCloudDatabaseConfigurationSummary": MacsManagedCloudDatabaseConfigurationSummary, + "MacsManagedCloudDatabaseHostInsight": MacsManagedCloudDatabaseHostInsight, + "MacsManagedCloudDatabaseHostInsightSummary": MacsManagedCloudDatabaseHostInsightSummary, + "MacsManagedCloudDatabaseInsight": MacsManagedCloudDatabaseInsight, + "MacsManagedCloudDatabaseInsightSummary": MacsManagedCloudDatabaseInsightSummary, + "MacsManagedCloudDbHostConfigurationSummary": MacsManagedCloudDbHostConfigurationSummary, + "MacsManagedCloudExadataInsight": MacsManagedCloudExadataInsight, + "MacsManagedCloudExadataInsightSummary": MacsManagedCloudExadataInsightSummary, "MacsManagedCloudHostConfigurationSummary": MacsManagedCloudHostConfigurationSummary, "MacsManagedCloudHostInsight": MacsManagedCloudHostInsight, "MacsManagedCloudHostInsightSummary": MacsManagedCloudHostInsightSummary, @@ -882,6 +928,7 @@ "SummaryStatistics": SummaryStatistics, "TablespaceUsageTrend": TablespaceUsageTrend, "TablespaceUsageTrendAggregation": TablespaceUsageTrendAggregation, + "TestMacsManagedCloudDatabaseInsightConnectionDetails": TestMacsManagedCloudDatabaseInsightConnectionDetails, "TopProcessesUsage": TopProcessesUsage, "TopProcessesUsageTrend": TopProcessesUsageTrend, "TopProcessesUsageTrendAggregation": TopProcessesUsageTrendAggregation, @@ -897,6 +944,9 @@ "UpdateEnterpriseManagerBridgeDetails": UpdateEnterpriseManagerBridgeDetails, "UpdateExadataInsightDetails": UpdateExadataInsightDetails, "UpdateHostInsightDetails": UpdateHostInsightDetails, + "UpdateMacsManagedCloudDatabaseHostInsightDetails": UpdateMacsManagedCloudDatabaseHostInsightDetails, + "UpdateMacsManagedCloudDatabaseInsightDetails": UpdateMacsManagedCloudDatabaseInsightDetails, + "UpdateMacsManagedCloudExadataInsightDetails": UpdateMacsManagedCloudExadataInsightDetails, "UpdateMacsManagedCloudHostInsightDetails": UpdateMacsManagedCloudHostInsightDetails, "UpdateMacsManagedExternalDatabaseInsightDetails": UpdateMacsManagedExternalDatabaseInsightDetails, "UpdateMacsManagedExternalHostInsightDetails": UpdateMacsManagedExternalHostInsightDetails, diff --git a/src/oci/opsi/models/add_em_managed_external_exadata_insight_members_details.py b/src/oci/opsi/models/add_em_managed_external_exadata_insight_members_details.py index 3a7bdfc47..a6888528a 100644 --- a/src/oci/opsi/models/add_em_managed_external_exadata_insight_members_details.py +++ b/src/oci/opsi/models/add_em_managed_external_exadata_insight_members_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this AddEmManagedExternalExadataInsightMembersDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param member_entity_details: diff --git a/src/oci/opsi/models/add_exadata_insight_members_details.py b/src/oci/opsi/models/add_exadata_insight_members_details.py index ece4bc2ae..97335b88a 100644 --- a/src/oci/opsi/models/add_exadata_insight_members_details.py +++ b/src/oci/opsi/models/add_exadata_insight_members_details.py @@ -23,6 +23,10 @@ class AddExadataInsightMembersDetails(object): #: This constant has a value of "PE_COMANAGED_EXADATA" ENTITY_SOURCE_PE_COMANAGED_EXADATA = "PE_COMANAGED_EXADATA" + #: A constant which can be used with the entity_source property of a AddExadataInsightMembersDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_EXADATA" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_EXADATA = "MACS_MANAGED_CLOUD_EXADATA" + def __init__(self, **kwargs): """ Initializes a new AddExadataInsightMembersDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -30,12 +34,13 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.AddPeComanagedExadataInsightMembersDetails` * :class:`~oci.opsi.models.AddEmManagedExternalExadataInsightMembersDetails` + * :class:`~oci.opsi.models.AddMacsManagedCloudExadataInsightMembersDetails` 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 AddExadataInsightMembersDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str """ @@ -62,6 +67,9 @@ def get_subtype(object_dictionary): if type == 'EM_MANAGED_EXTERNAL_EXADATA': return 'AddEmManagedExternalExadataInsightMembersDetails' + + if type == 'MACS_MANAGED_CLOUD_EXADATA': + return 'AddMacsManagedCloudExadataInsightMembersDetails' else: return 'AddExadataInsightMembersDetails' @@ -71,7 +79,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this AddExadataInsightMembersDetails. Source of the Exadata system. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :return: The entity_source of this AddExadataInsightMembersDetails. @@ -89,7 +97,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this AddExadataInsightMembersDetails. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA"] + allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" diff --git a/src/oci/opsi/models/add_macs_managed_cloud_exadata_insight_members_details.py b/src/oci/opsi/models/add_macs_managed_cloud_exadata_insight_members_details.py new file mode 100644 index 000000000..6b0e34d06 --- /dev/null +++ b/src/oci/opsi/models/add_macs_managed_cloud_exadata_insight_members_details.py @@ -0,0 +1,78 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .add_exadata_insight_members_details import AddExadataInsightMembersDetails +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 AddMacsManagedCloudExadataInsightMembersDetails(AddExadataInsightMembersDetails): + """ + The information about the members of Exadata system to be added. + """ + + def __init__(self, **kwargs): + """ + Initializes a new AddMacsManagedCloudExadataInsightMembersDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.AddMacsManagedCloudExadataInsightMembersDetails.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_EXADATA`` 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 AddMacsManagedCloudExadataInsightMembersDetails. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" + :type entity_source: str + + :param member_entity_details: + The value to assign to the member_entity_details property of this AddMacsManagedCloudExadataInsightMembersDetails. + :type member_entity_details: list[oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails] + + """ + self.swagger_types = { + 'entity_source': 'str', + 'member_entity_details': 'list[CreateMacsManagedCloudExadataVmclusterDetails]' + } + + self.attribute_map = { + 'entity_source': 'entitySource', + 'member_entity_details': 'memberEntityDetails' + } + + self._entity_source = None + self._member_entity_details = None + self._entity_source = 'MACS_MANAGED_CLOUD_EXADATA' + + @property + def member_entity_details(self): + """ + Gets the member_entity_details of this AddMacsManagedCloudExadataInsightMembersDetails. + + :return: The member_entity_details of this AddMacsManagedCloudExadataInsightMembersDetails. + :rtype: list[oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails] + """ + return self._member_entity_details + + @member_entity_details.setter + def member_entity_details(self, member_entity_details): + """ + Sets the member_entity_details of this AddMacsManagedCloudExadataInsightMembersDetails. + + :param member_entity_details: The member_entity_details of this AddMacsManagedCloudExadataInsightMembersDetails. + :type: list[oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails] + """ + self._member_entity_details = member_entity_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/add_pe_comanaged_exadata_insight_members_details.py b/src/oci/opsi/models/add_pe_comanaged_exadata_insight_members_details.py index ce37f3fe1..225deeceb 100644 --- a/src/oci/opsi/models/add_pe_comanaged_exadata_insight_members_details.py +++ b/src/oci/opsi/models/add_pe_comanaged_exadata_insight_members_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this AddPeComanagedExadataInsightMembersDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param member_entity_details: diff --git a/src/oci/opsi/models/autonomous_database_configuration_summary.py b/src/oci/opsi/models/autonomous_database_configuration_summary.py index bafa5a07b..f0c844306 100644 --- a/src/oci/opsi/models/autonomous_database_configuration_summary.py +++ b/src/oci/opsi/models/autonomous_database_configuration_summary.py @@ -27,7 +27,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_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 d357dbdc6..c6e8a87bf 100644 --- a/src/oci/opsi/models/autonomous_database_insight.py +++ b/src/oci/opsi/models/autonomous_database_insight.py @@ -23,7 +23,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param id: diff --git a/src/oci/opsi/models/autonomous_database_insight_summary.py b/src/oci/opsi/models/autonomous_database_insight_summary.py index 1bee125fa..1ee0bd170 100644 --- a/src/oci/opsi/models/autonomous_database_insight_summary.py +++ b/src/oci/opsi/models/autonomous_database_insight_summary.py @@ -67,7 +67,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param processor_count: diff --git a/src/oci/opsi/models/awr_query_result.py b/src/oci/opsi/models/awr_query_result.py index 84435e380..347129a5b 100644 --- a/src/oci/opsi/models/awr_query_result.py +++ b/src/oci/opsi/models/awr_query_result.py @@ -102,7 +102,8 @@ def __init__(self, **kwargs): :param awr_result_type: The value to assign to the awr_result_type property of this AwrQueryResult. - Allowed values for this property are: "AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT" + Allowed values for this property are: "AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type awr_result_type: str """ @@ -252,7 +253,8 @@ def awr_result_type(self): **[Required]** Gets the awr_result_type of this AwrQueryResult. The result type of AWR query. - Allowed values for this property are: "AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT" + Allowed values for this property are: "AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The awr_result_type of this AwrQueryResult. @@ -272,9 +274,7 @@ def awr_result_type(self, awr_result_type): """ allowed_values = ["AWRDB_SET", "AWRDB_SNAPSHOT_RANGE_SET", "AWRDB_SNAPSHOT_SET", "AWRDB_METRICS_SET", "AWRDB_SYSSTAT_SET", "AWRDB_TOP_EVENT_SET", "AWRDB_EVENT_SET", "AWRDB_EVENT_HISTOGRAM", "AWRDB_DB_PARAMETER_SET", "AWRDB_DB_PARAMETER_CHANGE", "AWRDB_ASH_CPU_USAGE_SET", "AWRDB_DB_REPORT", "AWRDB_SQL_REPORT"] if not value_allowed_none_or_none_sentinel(awr_result_type, allowed_values): - raise ValueError( - f"Invalid value for `awr_result_type`, must be None or one of {allowed_values}" - ) + awr_result_type = 'UNKNOWN_ENUM_VALUE' self._awr_result_type = awr_result_type def __repr__(self): diff --git a/src/oci/opsi/models/change_macs_managed_cloud_database_insight_connection_details.py b/src/oci/opsi/models/change_macs_managed_cloud_database_insight_connection_details.py new file mode 100644 index 000000000..ddef7492e --- /dev/null +++ b/src/oci/opsi/models/change_macs_managed_cloud_database_insight_connection_details.py @@ -0,0 +1,130 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + + +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 ChangeMacsManagedCloudDatabaseInsightConnectionDetails(object): + """ + Connection details of a MACS-managed cloud database insight. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ChangeMacsManagedCloudDatabaseInsightConnectionDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param management_agent_id: + The value to assign to the management_agent_id property of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :type management_agent_id: str + + :param connection_details: + The value to assign to the connection_details property of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :type connection_details: oci.opsi.models.ConnectionDetails + + :param connection_credential_details: + The value to assign to the connection_credential_details property of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :type connection_credential_details: oci.opsi.models.CredentialDetails + + """ + self.swagger_types = { + 'management_agent_id': 'str', + 'connection_details': 'ConnectionDetails', + 'connection_credential_details': 'CredentialDetails' + } + + self.attribute_map = { + 'management_agent_id': 'managementAgentId', + 'connection_details': 'connectionDetails', + 'connection_credential_details': 'connectionCredentialDetails' + } + + self._management_agent_id = None + self._connection_details = None + self._connection_credential_details = None + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def connection_details(self): + """ + **[Required]** Gets the connection_details of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + + :return: The connection_details of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :rtype: oci.opsi.models.ConnectionDetails + """ + return self._connection_details + + @connection_details.setter + def connection_details(self, connection_details): + """ + Sets the connection_details of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + + :param connection_details: The connection_details of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :type: oci.opsi.models.ConnectionDetails + """ + self._connection_details = connection_details + + @property + def connection_credential_details(self): + """ + **[Required]** Gets the connection_credential_details of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + + :return: The connection_credential_details of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :rtype: oci.opsi.models.CredentialDetails + """ + return self._connection_credential_details + + @connection_credential_details.setter + def connection_credential_details(self, connection_credential_details): + """ + Sets the connection_credential_details of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + + :param connection_credential_details: The connection_credential_details of this ChangeMacsManagedCloudDatabaseInsightConnectionDetails. + :type: oci.opsi.models.CredentialDetails + """ + self._connection_credential_details = connection_credential_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/create_database_insight_details.py b/src/oci/opsi/models/create_database_insight_details.py index 1d5a7e767..e03a91c71 100644 --- a/src/oci/opsi/models/create_database_insight_details.py +++ b/src/oci/opsi/models/create_database_insight_details.py @@ -27,11 +27,16 @@ class CreateDatabaseInsightDetails(object): #: This constant has a value of "MDS_MYSQL_DATABASE_SYSTEM" ENTITY_SOURCE_MDS_MYSQL_DATABASE_SYSTEM = "MDS_MYSQL_DATABASE_SYSTEM" + #: A constant which can be used with the entity_source property of a CreateDatabaseInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_DATABASE" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DATABASE = "MACS_MANAGED_CLOUD_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.CreateMacsManagedCloudDatabaseInsightDetails` * :class:`~oci.opsi.models.CreateMdsMySqlDatabaseInsightDetails` * :class:`~oci.opsi.models.CreateEmManagedExternalDatabaseInsightDetails` * :class:`~oci.opsi.models.CreatePeComanagedDatabaseInsightDetails` @@ -40,7 +45,7 @@ def __init__(self, **kwargs): :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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param compartment_id: @@ -83,6 +88,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['entitySource'] + if type == 'MACS_MANAGED_CLOUD_DATABASE': + return 'CreateMacsManagedCloudDatabaseInsightDetails' + if type == 'MDS_MYSQL_DATABASE_SYSTEM': return 'CreateMdsMySqlDatabaseInsightDetails' @@ -100,7 +108,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :return: The entity_source of this CreateDatabaseInsightDetails. @@ -118,7 +126,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this CreateDatabaseInsightDetails. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM"] + allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" 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 c4f7bedde..951150602 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 @@ -23,7 +23,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/create_em_managed_external_exadata_insight_details.py b/src/oci/opsi/models/create_em_managed_external_exadata_insight_details.py index ba13df7d5..22269840c 100644 --- a/src/oci/opsi/models/create_em_managed_external_exadata_insight_details.py +++ b/src/oci/opsi/models/create_em_managed_external_exadata_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this CreateEmManagedExternalExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/create_em_managed_external_host_insight_details.py b/src/oci/opsi/models/create_em_managed_external_host_insight_details.py index 48867027d..c4c2a15d2 100644 --- a/src/oci/opsi/models/create_em_managed_external_host_insight_details.py +++ b/src/oci/opsi/models/create_em_managed_external_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this CreateEmManagedExternalHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/create_exadata_insight_details.py b/src/oci/opsi/models/create_exadata_insight_details.py index 98c7374c7..ae791f4bd 100644 --- a/src/oci/opsi/models/create_exadata_insight_details.py +++ b/src/oci/opsi/models/create_exadata_insight_details.py @@ -23,19 +23,24 @@ class CreateExadataInsightDetails(object): #: This constant has a value of "PE_COMANAGED_EXADATA" ENTITY_SOURCE_PE_COMANAGED_EXADATA = "PE_COMANAGED_EXADATA" + #: A constant which can be used with the entity_source property of a CreateExadataInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_EXADATA" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_EXADATA = "MACS_MANAGED_CLOUD_EXADATA" + def __init__(self, **kwargs): """ Initializes a new CreateExadataInsightDetails 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.CreateEmManagedExternalExadataInsightDetails` + * :class:`~oci.opsi.models.CreateMacsManagedCloudExadataInsightDetails` * :class:`~oci.opsi.models.CreatePeComanagedExadataInsightDetails` 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 CreateExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param compartment_id: @@ -81,6 +86,9 @@ def get_subtype(object_dictionary): if type == 'EM_MANAGED_EXTERNAL_EXADATA': return 'CreateEmManagedExternalExadataInsightDetails' + if type == 'MACS_MANAGED_CLOUD_EXADATA': + return 'CreateMacsManagedCloudExadataInsightDetails' + if type == 'PE_COMANAGED_EXADATA': return 'CreatePeComanagedExadataInsightDetails' else: @@ -92,7 +100,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this CreateExadataInsightDetails. Source of the Exadata system. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :return: The entity_source of this CreateExadataInsightDetails. @@ -110,7 +118,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this CreateExadataInsightDetails. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA"] + allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" diff --git a/src/oci/opsi/models/create_host_insight_details.py b/src/oci/opsi/models/create_host_insight_details.py index 01d203c16..75181328b 100644 --- a/src/oci/opsi/models/create_host_insight_details.py +++ b/src/oci/opsi/models/create_host_insight_details.py @@ -31,6 +31,10 @@ class CreateHostInsightDetails(object): #: This constant has a value of "PE_COMANAGED_HOST" ENTITY_SOURCE_PE_COMANAGED_HOST = "PE_COMANAGED_HOST" + #: A constant which can be used with the entity_source property of a CreateHostInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_DB_HOST" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DB_HOST = "MACS_MANAGED_CLOUD_DB_HOST" + def __init__(self, **kwargs): """ Initializes a new CreateHostInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -44,7 +48,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this CreateHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param compartment_id: @@ -104,7 +108,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this CreateHostInsightDetails. Source of the host entity. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :return: The entity_source of this CreateHostInsightDetails. @@ -122,7 +126,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this CreateHostInsightDetails. :type: str """ - allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST"] + allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" diff --git a/src/oci/opsi/models/create_macs_managed_cloud_database_insight_details.py b/src/oci/opsi/models/create_macs_managed_cloud_database_insight_details.py new file mode 100644 index 000000000..b64b452d8 --- /dev/null +++ b/src/oci/opsi/models/create_macs_managed_cloud_database_insight_details.py @@ -0,0 +1,315 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +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 CreateMacsManagedCloudDatabaseInsightDetails(CreateDatabaseInsightDetails): + """ + The information about database to be analyzed. + """ + + #: A constant which can be used with the deployment_type property of a CreateMacsManagedCloudDatabaseInsightDetails. + #: 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 CreateMacsManagedCloudDatabaseInsightDetails. + #: 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 CreateMacsManagedCloudDatabaseInsightDetails. + #: This constant has a value of "EXACC" + DEPLOYMENT_TYPE_EXACC = "EXACC" + + #: A constant which can be used with the deployment_type property of a CreateMacsManagedCloudDatabaseInsightDetails. + #: This constant has a value of "EXACS" + DEPLOYMENT_TYPE_EXACS = "EXACS" + + def __init__(self, **kwargs): + """ + Initializes a new CreateMacsManagedCloudDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CreateMacsManagedCloudDatabaseInsightDetails.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_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 CreateMacsManagedCloudDatabaseInsightDetails. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" + :type entity_source: str + + :param compartment_id: + The value to assign to the compartment_id property of this CreateMacsManagedCloudDatabaseInsightDetails. + :type compartment_id: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateMacsManagedCloudDatabaseInsightDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateMacsManagedCloudDatabaseInsightDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param database_id: + The value to assign to the database_id property of this CreateMacsManagedCloudDatabaseInsightDetails. + :type database_id: str + + :param management_agent_id: + The value to assign to the management_agent_id property of this CreateMacsManagedCloudDatabaseInsightDetails. + :type management_agent_id: str + + :param connection_details: + The value to assign to the connection_details property of this CreateMacsManagedCloudDatabaseInsightDetails. + :type connection_details: oci.opsi.models.ConnectionDetails + + :param connection_credential_details: + The value to assign to the connection_credential_details property of this CreateMacsManagedCloudDatabaseInsightDetails. + :type connection_credential_details: oci.opsi.models.CredentialDetails + + :param database_resource_type: + The value to assign to the database_resource_type property of this CreateMacsManagedCloudDatabaseInsightDetails. + :type database_resource_type: str + + :param deployment_type: + The value to assign to the deployment_type property of this CreateMacsManagedCloudDatabaseInsightDetails. + Allowed values for this property are: "VIRTUAL_MACHINE", "BARE_METAL", "EXACC", "EXACS" + :type deployment_type: str + + :param system_tags: + The value to assign to the system_tags property of this CreateMacsManagedCloudDatabaseInsightDetails. + :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', + 'management_agent_id': 'str', + 'connection_details': 'ConnectionDetails', + 'connection_credential_details': 'CredentialDetails', + 'database_resource_type': 'str', + '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', + 'management_agent_id': 'managementAgentId', + 'connection_details': 'connectionDetails', + 'connection_credential_details': 'connectionCredentialDetails', + 'database_resource_type': 'databaseResourceType', + '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._management_agent_id = None + self._connection_details = None + self._connection_credential_details = None + self._database_resource_type = None + self._deployment_type = None + self._system_tags = None + self._entity_source = 'MACS_MANAGED_CLOUD_DATABASE' + + @property + def database_id(self): + """ + **[Required]** Gets the database_id of this CreateMacsManagedCloudDatabaseInsightDetails. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The database_id of this CreateMacsManagedCloudDatabaseInsightDetails. + :rtype: str + """ + return self._database_id + + @database_id.setter + def database_id(self, database_id): + """ + Sets the database_id of this CreateMacsManagedCloudDatabaseInsightDetails. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param database_id: The database_id of this CreateMacsManagedCloudDatabaseInsightDetails. + :type: str + """ + self._database_id = database_id + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this CreateMacsManagedCloudDatabaseInsightDetails. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this CreateMacsManagedCloudDatabaseInsightDetails. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this CreateMacsManagedCloudDatabaseInsightDetails. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this CreateMacsManagedCloudDatabaseInsightDetails. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def connection_details(self): + """ + **[Required]** Gets the connection_details of this CreateMacsManagedCloudDatabaseInsightDetails. + + :return: The connection_details of this CreateMacsManagedCloudDatabaseInsightDetails. + :rtype: oci.opsi.models.ConnectionDetails + """ + return self._connection_details + + @connection_details.setter + def connection_details(self, connection_details): + """ + Sets the connection_details of this CreateMacsManagedCloudDatabaseInsightDetails. + + :param connection_details: The connection_details of this CreateMacsManagedCloudDatabaseInsightDetails. + :type: oci.opsi.models.ConnectionDetails + """ + self._connection_details = connection_details + + @property + def connection_credential_details(self): + """ + **[Required]** Gets the connection_credential_details of this CreateMacsManagedCloudDatabaseInsightDetails. + + :return: The connection_credential_details of this CreateMacsManagedCloudDatabaseInsightDetails. + :rtype: oci.opsi.models.CredentialDetails + """ + return self._connection_credential_details + + @connection_credential_details.setter + def connection_credential_details(self, connection_credential_details): + """ + Sets the connection_credential_details of this CreateMacsManagedCloudDatabaseInsightDetails. + + :param connection_credential_details: The connection_credential_details of this CreateMacsManagedCloudDatabaseInsightDetails. + :type: oci.opsi.models.CredentialDetails + """ + self._connection_credential_details = connection_credential_details + + @property + def database_resource_type(self): + """ + **[Required]** Gets the database_resource_type of this CreateMacsManagedCloudDatabaseInsightDetails. + OCI database resource type + + + :return: The database_resource_type of this CreateMacsManagedCloudDatabaseInsightDetails. + :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 CreateMacsManagedCloudDatabaseInsightDetails. + OCI database resource type + + + :param database_resource_type: The database_resource_type of this CreateMacsManagedCloudDatabaseInsightDetails. + :type: str + """ + self._database_resource_type = database_resource_type + + @property + def deployment_type(self): + """ + **[Required]** Gets the deployment_type of this CreateMacsManagedCloudDatabaseInsightDetails. + Database Deployment Type (EXACS will be supported in the future) + + Allowed values for this property are: "VIRTUAL_MACHINE", "BARE_METAL", "EXACC", "EXACS" + + + :return: The deployment_type of this CreateMacsManagedCloudDatabaseInsightDetails. + :rtype: str + """ + return self._deployment_type + + @deployment_type.setter + def deployment_type(self, deployment_type): + """ + Sets the deployment_type of this CreateMacsManagedCloudDatabaseInsightDetails. + Database Deployment Type (EXACS will be supported in the future) + + + :param deployment_type: The deployment_type of this CreateMacsManagedCloudDatabaseInsightDetails. + :type: str + """ + allowed_values = ["VIRTUAL_MACHINE", "BARE_METAL", "EXACC", "EXACS"] + if not value_allowed_none_or_none_sentinel(deployment_type, allowed_values): + raise ValueError( + f"Invalid value for `deployment_type`, must be None or one of {allowed_values}" + ) + self._deployment_type = deployment_type + + @property + def system_tags(self): + """ + Gets the system_tags of this CreateMacsManagedCloudDatabaseInsightDetails. + 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 CreateMacsManagedCloudDatabaseInsightDetails. + :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 CreateMacsManagedCloudDatabaseInsightDetails. + 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 CreateMacsManagedCloudDatabaseInsightDetails. + :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/create_macs_managed_cloud_exadata_cluster_details.py b/src/oci/opsi/models/create_macs_managed_cloud_exadata_cluster_details.py new file mode 100644 index 000000000..51ff30110 --- /dev/null +++ b/src/oci/opsi/models/create_macs_managed_cloud_exadata_cluster_details.py @@ -0,0 +1,171 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + + +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 CreateMacsManagedCloudExadataClusterDetails(object): + """ + The information of the VM Cluster which contains databases. + """ + + #: A constant which can be used with the vm_cluster_type property of a CreateMacsManagedCloudExadataClusterDetails. + #: This constant has a value of "vmCluster" + VM_CLUSTER_TYPE_VM_CLUSTER = "vmCluster" + + def __init__(self, **kwargs): + """ + Initializes a new CreateMacsManagedCloudExadataClusterDetails 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.CreateMacsManagedCloudExadataVmclusterDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param vm_cluster_type: + The value to assign to the vm_cluster_type property of this CreateMacsManagedCloudExadataClusterDetails. + Allowed values for this property are: "vmCluster" + :type vm_cluster_type: str + + :param vmcluster_id: + The value to assign to the vmcluster_id property of this CreateMacsManagedCloudExadataClusterDetails. + :type vmcluster_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this CreateMacsManagedCloudExadataClusterDetails. + :type compartment_id: str + + """ + self.swagger_types = { + 'vm_cluster_type': 'str', + 'vmcluster_id': 'str', + 'compartment_id': 'str' + } + + self.attribute_map = { + 'vm_cluster_type': 'vmClusterType', + 'vmcluster_id': 'vmclusterId', + 'compartment_id': 'compartmentId' + } + + self._vm_cluster_type = None + self._vmcluster_id = None + self._compartment_id = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['vmClusterType'] + + if type == 'vmCluster': + return 'CreateMacsManagedCloudExadataVmclusterDetails' + else: + return 'CreateMacsManagedCloudExadataClusterDetails' + + @property + def vm_cluster_type(self): + """ + Gets the vm_cluster_type of this CreateMacsManagedCloudExadataClusterDetails. + Exadata VMCluster type + + Allowed values for this property are: "vmCluster" + + + :return: The vm_cluster_type of this CreateMacsManagedCloudExadataClusterDetails. + :rtype: str + """ + return self._vm_cluster_type + + @vm_cluster_type.setter + def vm_cluster_type(self, vm_cluster_type): + """ + Sets the vm_cluster_type of this CreateMacsManagedCloudExadataClusterDetails. + Exadata VMCluster type + + + :param vm_cluster_type: The vm_cluster_type of this CreateMacsManagedCloudExadataClusterDetails. + :type: str + """ + allowed_values = ["vmCluster"] + if not value_allowed_none_or_none_sentinel(vm_cluster_type, allowed_values): + raise ValueError( + f"Invalid value for `vm_cluster_type`, must be None or one of {allowed_values}" + ) + self._vm_cluster_type = vm_cluster_type + + @property + def vmcluster_id(self): + """ + **[Required]** Gets the vmcluster_id of this CreateMacsManagedCloudExadataClusterDetails. + The `OCID`__ of the VM Cluster. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The vmcluster_id of this CreateMacsManagedCloudExadataClusterDetails. + :rtype: str + """ + return self._vmcluster_id + + @vmcluster_id.setter + def vmcluster_id(self, vmcluster_id): + """ + Sets the vmcluster_id of this CreateMacsManagedCloudExadataClusterDetails. + The `OCID`__ of the VM Cluster. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param vmcluster_id: The vmcluster_id of this CreateMacsManagedCloudExadataClusterDetails. + :type: str + """ + self._vmcluster_id = vmcluster_id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateMacsManagedCloudExadataClusterDetails. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this CreateMacsManagedCloudExadataClusterDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateMacsManagedCloudExadataClusterDetails. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this CreateMacsManagedCloudExadataClusterDetails. + :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/create_macs_managed_cloud_exadata_insight_details.py b/src/oci/opsi/models/create_macs_managed_cloud_exadata_insight_details.py new file mode 100644 index 000000000..ca3372425 --- /dev/null +++ b/src/oci/opsi/models/create_macs_managed_cloud_exadata_insight_details.py @@ -0,0 +1,134 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .create_exadata_insight_details import CreateExadataInsightDetails +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 CreateMacsManagedCloudExadataInsightDetails(CreateExadataInsightDetails): + """ + The information about the Exadata system to be analyzed. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateMacsManagedCloudExadataInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CreateMacsManagedCloudExadataInsightDetails.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_EXADATA`` 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 CreateMacsManagedCloudExadataInsightDetails. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" + :type entity_source: str + + :param compartment_id: + The value to assign to the compartment_id property of this CreateMacsManagedCloudExadataInsightDetails. + :type compartment_id: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateMacsManagedCloudExadataInsightDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateMacsManagedCloudExadataInsightDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param exadata_infra_id: + The value to assign to the exadata_infra_id property of this CreateMacsManagedCloudExadataInsightDetails. + :type exadata_infra_id: str + + :param member_vm_cluster_details: + The value to assign to the member_vm_cluster_details property of this CreateMacsManagedCloudExadataInsightDetails. + :type member_vm_cluster_details: list[oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails] + + """ + self.swagger_types = { + 'entity_source': 'str', + 'compartment_id': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'exadata_infra_id': 'str', + 'member_vm_cluster_details': 'list[CreateMacsManagedCloudExadataVmclusterDetails]' + } + + self.attribute_map = { + 'entity_source': 'entitySource', + 'compartment_id': 'compartmentId', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'exadata_infra_id': 'exadataInfraId', + 'member_vm_cluster_details': 'memberVmClusterDetails' + } + + self._entity_source = None + self._compartment_id = None + self._freeform_tags = None + self._defined_tags = None + self._exadata_infra_id = None + self._member_vm_cluster_details = None + self._entity_source = 'MACS_MANAGED_CLOUD_EXADATA' + + @property + def exadata_infra_id(self): + """ + **[Required]** Gets the exadata_infra_id of this CreateMacsManagedCloudExadataInsightDetails. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The exadata_infra_id of this CreateMacsManagedCloudExadataInsightDetails. + :rtype: str + """ + return self._exadata_infra_id + + @exadata_infra_id.setter + def exadata_infra_id(self, exadata_infra_id): + """ + Sets the exadata_infra_id of this CreateMacsManagedCloudExadataInsightDetails. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param exadata_infra_id: The exadata_infra_id of this CreateMacsManagedCloudExadataInsightDetails. + :type: str + """ + self._exadata_infra_id = exadata_infra_id + + @property + def member_vm_cluster_details(self): + """ + Gets the member_vm_cluster_details of this CreateMacsManagedCloudExadataInsightDetails. + + :return: The member_vm_cluster_details of this CreateMacsManagedCloudExadataInsightDetails. + :rtype: list[oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails] + """ + return self._member_vm_cluster_details + + @member_vm_cluster_details.setter + def member_vm_cluster_details(self, member_vm_cluster_details): + """ + Sets the member_vm_cluster_details of this CreateMacsManagedCloudExadataInsightDetails. + + :param member_vm_cluster_details: The member_vm_cluster_details of this CreateMacsManagedCloudExadataInsightDetails. + :type: list[oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails] + """ + self._member_vm_cluster_details = member_vm_cluster_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/create_macs_managed_cloud_exadata_vmcluster_details.py b/src/oci/opsi/models/create_macs_managed_cloud_exadata_vmcluster_details.py new file mode 100644 index 000000000..e553bf0e2 --- /dev/null +++ b/src/oci/opsi/models/create_macs_managed_cloud_exadata_vmcluster_details.py @@ -0,0 +1,96 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .create_macs_managed_cloud_exadata_cluster_details import CreateMacsManagedCloudExadataClusterDetails +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 CreateMacsManagedCloudExadataVmclusterDetails(CreateMacsManagedCloudExadataClusterDetails): + """ + The information of the VM Cluster which contains databases. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateMacsManagedCloudExadataVmclusterDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CreateMacsManagedCloudExadataVmclusterDetails.vm_cluster_type` attribute + of this class is ``vmCluster`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param vm_cluster_type: + The value to assign to the vm_cluster_type property of this CreateMacsManagedCloudExadataVmclusterDetails. + Allowed values for this property are: "vmCluster" + :type vm_cluster_type: str + + :param vmcluster_id: + The value to assign to the vmcluster_id property of this CreateMacsManagedCloudExadataVmclusterDetails. + :type vmcluster_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this CreateMacsManagedCloudExadataVmclusterDetails. + :type compartment_id: str + + :param member_database_details: + The value to assign to the member_database_details property of this CreateMacsManagedCloudExadataVmclusterDetails. + :type member_database_details: list[oci.opsi.models.CreateMacsManagedCloudDatabaseInsightDetails] + + """ + self.swagger_types = { + 'vm_cluster_type': 'str', + 'vmcluster_id': 'str', + 'compartment_id': 'str', + 'member_database_details': 'list[CreateMacsManagedCloudDatabaseInsightDetails]' + } + + self.attribute_map = { + 'vm_cluster_type': 'vmClusterType', + 'vmcluster_id': 'vmclusterId', + 'compartment_id': 'compartmentId', + 'member_database_details': 'memberDatabaseDetails' + } + + self._vm_cluster_type = None + self._vmcluster_id = None + self._compartment_id = None + self._member_database_details = None + self._vm_cluster_type = 'vmCluster' + + @property + def member_database_details(self): + """ + Gets the member_database_details of this CreateMacsManagedCloudExadataVmclusterDetails. + The databases that belong to the VM Cluster + + + :return: The member_database_details of this CreateMacsManagedCloudExadataVmclusterDetails. + :rtype: list[oci.opsi.models.CreateMacsManagedCloudDatabaseInsightDetails] + """ + return self._member_database_details + + @member_database_details.setter + def member_database_details(self, member_database_details): + """ + Sets the member_database_details of this CreateMacsManagedCloudExadataVmclusterDetails. + The databases that belong to the VM Cluster + + + :param member_database_details: The member_database_details of this CreateMacsManagedCloudExadataVmclusterDetails. + :type: list[oci.opsi.models.CreateMacsManagedCloudDatabaseInsightDetails] + """ + self._member_database_details = member_database_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/create_macs_managed_cloud_host_insight_details.py b/src/oci/opsi/models/create_macs_managed_cloud_host_insight_details.py index 9758a9db0..4d204ad4d 100644 --- a/src/oci/opsi/models/create_macs_managed_cloud_host_insight_details.py +++ b/src/oci/opsi/models/create_macs_managed_cloud_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this CreateMacsManagedCloudHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/create_macs_managed_external_host_insight_details.py b/src/oci/opsi/models/create_macs_managed_external_host_insight_details.py index 8b0433868..42a1d1fe9 100644 --- a/src/oci/opsi/models/create_macs_managed_external_host_insight_details.py +++ b/src/oci/opsi/models/create_macs_managed_external_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this CreateMacsManagedExternalHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/create_mds_my_sql_database_insight_details.py b/src/oci/opsi/models/create_mds_my_sql_database_insight_details.py index d26803e57..79db4ae33 100644 --- a/src/oci/opsi/models/create_mds_my_sql_database_insight_details.py +++ b/src/oci/opsi/models/create_mds_my_sql_database_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this CreateMdsMySqlDatabaseInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param compartment_id: 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 index 3bfd415b8..c8a193ed3 100644 --- a/src/oci/opsi/models/create_pe_comanaged_database_insight_details.py +++ b/src/oci/opsi/models/create_pe_comanaged_database_insight_details.py @@ -35,7 +35,7 @@ def __init__(self, **kwargs): :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", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/create_pe_comanaged_exadata_insight_details.py b/src/oci/opsi/models/create_pe_comanaged_exadata_insight_details.py index 6344fd270..2182fab27 100644 --- a/src/oci/opsi/models/create_pe_comanaged_exadata_insight_details.py +++ b/src/oci/opsi/models/create_pe_comanaged_exadata_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this CreatePeComanagedExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/database_configuration_metric_group.py b/src/oci/opsi/models/database_configuration_metric_group.py index b9aff0b3e..9e318680a 100644 --- a/src/oci/opsi/models/database_configuration_metric_group.py +++ b/src/oci/opsi/models/database_configuration_metric_group.py @@ -31,6 +31,22 @@ class DatabaseConfigurationMetricGroup(object): #: This constant has a value of "DB_PARAMETERS" METRIC_NAME_DB_PARAMETERS = "DB_PARAMETERS" + #: A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. + #: This constant has a value of "DB_CONNECTION_STATUS" + METRIC_NAME_DB_CONNECTION_STATUS = "DB_CONNECTION_STATUS" + + #: A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. + #: This constant has a value of "HOST_RESOURCE_ALLOCATION" + METRIC_NAME_HOST_RESOURCE_ALLOCATION = "HOST_RESOURCE_ALLOCATION" + + #: A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. + #: This constant has a value of "ASM_ENTITY" + METRIC_NAME_ASM_ENTITY = "ASM_ENTITY" + + #: A constant which can be used with the metric_name property of a DatabaseConfigurationMetricGroup. + #: This constant has a value of "EXADATA_CELL_CONFIG" + METRIC_NAME_EXADATA_CELL_CONFIG = "EXADATA_CELL_CONFIG" + def __init__(self, **kwargs): """ Initializes a new DatabaseConfigurationMetricGroup object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -39,13 +55,17 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.DBOSConfigInstance` * :class:`~oci.opsi.models.DBExternalInstance` * :class:`~oci.opsi.models.DBParameters` + * :class:`~oci.opsi.models.DBConnectionStatus` + * :class:`~oci.opsi.models.HostAllocation` + * :class:`~oci.opsi.models.ExadataCellConfig` * :class:`~oci.opsi.models.DBExternalProperties` + * :class:`~oci.opsi.models.ExadataAsmEntity` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param metric_name: The value to assign to the metric_name property of this DatabaseConfigurationMetricGroup. - Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS" + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" :type metric_name: str :param time_collected: @@ -83,8 +103,20 @@ def get_subtype(object_dictionary): if type == 'DB_PARAMETERS': return 'DBParameters' + if type == 'DB_CONNECTION_STATUS': + return 'DBConnectionStatus' + + if type == 'HOST_RESOURCE_ALLOCATION': + return 'HostAllocation' + + if type == 'EXADATA_CELL_CONFIG': + return 'ExadataCellConfig' + if type == 'DB_EXTERNAL_PROPERTIES': return 'DBExternalProperties' + + if type == 'ASM_ENTITY': + return 'ExadataAsmEntity' else: return 'DatabaseConfigurationMetricGroup' @@ -94,7 +126,7 @@ def metric_name(self): **[Required]** Gets the metric_name of this DatabaseConfigurationMetricGroup. Name of the metric group. - Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS" + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" :return: The metric_name of this DatabaseConfigurationMetricGroup. @@ -112,7 +144,7 @@ def metric_name(self, metric_name): :param metric_name: The metric_name of this DatabaseConfigurationMetricGroup. :type: str """ - allowed_values = ["DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS"] + allowed_values = ["DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG"] if not value_allowed_none_or_none_sentinel(metric_name, allowed_values): raise ValueError( f"Invalid value for `metric_name`, must be None or one of {allowed_values}" diff --git a/src/oci/opsi/models/database_configuration_summary.py b/src/oci/opsi/models/database_configuration_summary.py index 38c3cc38b..5f4ca36c7 100644 --- a/src/oci/opsi/models/database_configuration_summary.py +++ b/src/oci/opsi/models/database_configuration_summary.py @@ -35,6 +35,10 @@ class DatabaseConfigurationSummary(object): #: This constant has a value of "MDS_MYSQL_DATABASE_SYSTEM" ENTITY_SOURCE_MDS_MYSQL_DATABASE_SYSTEM = "MDS_MYSQL_DATABASE_SYSTEM" + #: A constant which can be used with the entity_source property of a DatabaseConfigurationSummary. + #: This constant has a value of "MACS_MANAGED_CLOUD_DATABASE" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DATABASE = "MACS_MANAGED_CLOUD_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 @@ -44,6 +48,7 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.AutonomousDatabaseConfigurationSummary` * :class:`~oci.opsi.models.MacsManagedExternalDatabaseConfigurationSummary` * :class:`~oci.opsi.models.PeComanagedManagedExternalDatabaseConfigurationSummary` + * :class:`~oci.opsi.models.MacsManagedCloudDatabaseConfigurationSummary` * :class:`~oci.opsi.models.MdsMysqlDatabaseConfigurationSummary` The following keyword arguments are supported (corresponding to the getters/setters of this class): @@ -54,7 +59,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -155,6 +160,9 @@ def get_subtype(object_dictionary): if type == 'PE_COMANAGED_DATABASE': return 'PeComanagedManagedExternalDatabaseConfigurationSummary' + if type == 'MACS_MANAGED_CLOUD_DATABASE': + return 'MacsManagedCloudDatabaseConfigurationSummary' + if type == 'MDS_MYSQL_DATABASE_SYSTEM': return 'MdsMysqlDatabaseConfigurationSummary' else: @@ -194,7 +202,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -213,7 +221,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM"] + allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_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 b1f3a3efb..f733578b0 100644 --- a/src/oci/opsi/models/database_insight.py +++ b/src/oci/opsi/models/database_insight.py @@ -35,6 +35,10 @@ class DatabaseInsight(object): #: This constant has a value of "MDS_MYSQL_DATABASE_SYSTEM" ENTITY_SOURCE_MDS_MYSQL_DATABASE_SYSTEM = "MDS_MYSQL_DATABASE_SYSTEM" + #: A constant which can be used with the entity_source property of a DatabaseInsight. + #: This constant has a value of "MACS_MANAGED_CLOUD_DATABASE" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DATABASE = "MACS_MANAGED_CLOUD_DATABASE" + #: A constant which can be used with the status property of a DatabaseInsight. #: This constant has a value of "DISABLED" STATUS_DISABLED = "DISABLED" @@ -83,6 +87,7 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.EmManagedExternalDatabaseInsight` * :class:`~oci.opsi.models.MacsManagedExternalDatabaseInsight` * :class:`~oci.opsi.models.PeComanagedDatabaseInsight` + * :class:`~oci.opsi.models.MacsManagedCloudDatabaseInsight` * :class:`~oci.opsi.models.AutonomousDatabaseInsight` * :class:`~oci.opsi.models.MdsMySqlDatabaseInsight` @@ -90,7 +95,7 @@ def __init__(self, **kwargs): :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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -224,6 +229,9 @@ def get_subtype(object_dictionary): if type == 'PE_COMANAGED_DATABASE': return 'PeComanagedDatabaseInsight' + if type == 'MACS_MANAGED_CLOUD_DATABASE': + return 'MacsManagedCloudDatabaseInsight' + if type == 'AUTONOMOUS_DATABASE': return 'AutonomousDatabaseInsight' @@ -238,7 +246,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -257,7 +265,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM"] + allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_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_summary.py b/src/oci/opsi/models/database_insight_summary.py index d08673a8d..d0d68ecdb 100644 --- a/src/oci/opsi/models/database_insight_summary.py +++ b/src/oci/opsi/models/database_insight_summary.py @@ -35,6 +35,10 @@ class DatabaseInsightSummary(object): #: This constant has a value of "MDS_MYSQL_DATABASE_SYSTEM" ENTITY_SOURCE_MDS_MYSQL_DATABASE_SYSTEM = "MDS_MYSQL_DATABASE_SYSTEM" + #: A constant which can be used with the entity_source property of a DatabaseInsightSummary. + #: This constant has a value of "MACS_MANAGED_CLOUD_DATABASE" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DATABASE = "MACS_MANAGED_CLOUD_DATABASE" + #: A constant which can be used with the status property of a DatabaseInsightSummary. #: This constant has a value of "DISABLED" STATUS_DISABLED = "DISABLED" @@ -82,6 +86,7 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.MacsManagedExternalDatabaseInsightSummary` * :class:`~oci.opsi.models.AutonomousDatabaseInsightSummary` + * :class:`~oci.opsi.models.MacsManagedCloudDatabaseInsightSummary` * :class:`~oci.opsi.models.MdsMySqlDatabaseInsightSummary` * :class:`~oci.opsi.models.PeComanagedDatabaseInsightSummary` * :class:`~oci.opsi.models.EmManagedExternalDatabaseInsightSummary` @@ -134,7 +139,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -249,6 +254,9 @@ def get_subtype(object_dictionary): if type == 'AUTONOMOUS_DATABASE': return 'AutonomousDatabaseInsightSummary' + if type == 'MACS_MANAGED_CLOUD_DATABASE': + return 'MacsManagedCloudDatabaseInsightSummary' + if type == 'MDS_MYSQL_DATABASE_SYSTEM': return 'MdsMySqlDatabaseInsightSummary' @@ -548,7 +556,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -567,7 +575,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM"] + allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_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/db_connection_status.py b/src/oci/opsi/models/db_connection_status.py new file mode 100644 index 000000000..af7dc24a9 --- /dev/null +++ b/src/oci/opsi/models/db_connection_status.py @@ -0,0 +1,58 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .database_configuration_metric_group import DatabaseConfigurationMetricGroup +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 DBConnectionStatus(DatabaseConfigurationMetricGroup): + """ + Database connection status. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DBConnectionStatus object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.DBConnectionStatus.metric_name` attribute + of this class is ``DB_CONNECTION_STATUS`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param metric_name: + The value to assign to the metric_name property of this DBConnectionStatus. + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" + :type metric_name: str + + :param time_collected: + The value to assign to the time_collected property of this DBConnectionStatus. + :type time_collected: datetime + + """ + self.swagger_types = { + 'metric_name': 'str', + 'time_collected': 'datetime' + } + + self.attribute_map = { + 'metric_name': 'metricName', + 'time_collected': 'timeCollected' + } + + self._metric_name = None + self._time_collected = None + self._metric_name = 'DB_CONNECTION_STATUS' + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/opsi/models/db_external_instance.py b/src/oci/opsi/models/db_external_instance.py index aa8da3f24..2871bcc95 100644 --- a/src/oci/opsi/models/db_external_instance.py +++ b/src/oci/opsi/models/db_external_instance.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param metric_name: The value to assign to the metric_name property of this DBExternalInstance. - Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS" + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" :type metric_name: str :param time_collected: diff --git a/src/oci/opsi/models/db_external_properties.py b/src/oci/opsi/models/db_external_properties.py index 535a2dc30..f4567deb6 100644 --- a/src/oci/opsi/models/db_external_properties.py +++ b/src/oci/opsi/models/db_external_properties.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param metric_name: The value to assign to the metric_name property of this DBExternalProperties. - Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS" + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" :type metric_name: str :param time_collected: diff --git a/src/oci/opsi/models/db_parameters.py b/src/oci/opsi/models/db_parameters.py index fbfb76bb5..272d4fef1 100644 --- a/src/oci/opsi/models/db_parameters.py +++ b/src/oci/opsi/models/db_parameters.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param metric_name: The value to assign to the metric_name property of this DBParameters. - Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS" + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" :type metric_name: str :param time_collected: diff --git a/src/oci/opsi/models/dbos_config_instance.py b/src/oci/opsi/models/dbos_config_instance.py index c61c80cf7..41d5faaaa 100644 --- a/src/oci/opsi/models/dbos_config_instance.py +++ b/src/oci/opsi/models/dbos_config_instance.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param metric_name: The value to assign to the metric_name property of this DBOSConfigInstance. - Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS" + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" :type metric_name: str :param time_collected: 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 99f765676..b04d9a8cb 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 @@ -27,7 +27,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param compartment_id: @@ -82,6 +82,22 @@ def __init__(self, **kwargs): The value to assign to the exadata_details property of this EmManagedExternalDatabaseConfigurationSummary. :type exadata_details: oci.opsi.models.ExadataDetails + :param enterprise_manager_entity_identifier: + The value to assign to the enterprise_manager_entity_identifier property of this EmManagedExternalDatabaseConfigurationSummary. + :type enterprise_manager_entity_identifier: str + + :param enterprise_manager_console_url: + The value to assign to the enterprise_manager_console_url property of this EmManagedExternalDatabaseConfigurationSummary. + :type enterprise_manager_console_url: str + + :param enterprise_manager_oms_ver: + The value to assign to the enterprise_manager_oms_ver property of this EmManagedExternalDatabaseConfigurationSummary. + :type enterprise_manager_oms_ver: str + + :param enterprise_manager_entity_type: + The value to assign to the enterprise_manager_entity_type property of this EmManagedExternalDatabaseConfigurationSummary. + :type enterprise_manager_entity_type: str + """ self.swagger_types = { 'database_insight_id': 'str', @@ -98,7 +114,11 @@ def __init__(self, **kwargs): 'enterprise_manager_identifier': 'str', 'enterprise_manager_bridge_id': 'str', 'instances': 'list[HostInstanceMap]', - 'exadata_details': 'ExadataDetails' + 'exadata_details': 'ExadataDetails', + 'enterprise_manager_entity_identifier': 'str', + 'enterprise_manager_console_url': 'str', + 'enterprise_manager_oms_ver': 'str', + 'enterprise_manager_entity_type': 'str' } self.attribute_map = { @@ -116,7 +136,11 @@ def __init__(self, **kwargs): 'enterprise_manager_identifier': 'enterpriseManagerIdentifier', 'enterprise_manager_bridge_id': 'enterpriseManagerBridgeId', 'instances': 'instances', - 'exadata_details': 'exadataDetails' + 'exadata_details': 'exadataDetails', + 'enterprise_manager_entity_identifier': 'enterpriseManagerEntityIdentifier', + 'enterprise_manager_console_url': 'enterpriseManagerConsoleUrl', + 'enterprise_manager_oms_ver': 'enterpriseManagerOmsVer', + 'enterprise_manager_entity_type': 'enterpriseManagerEntityType' } self._database_insight_id = None @@ -134,6 +158,10 @@ def __init__(self, **kwargs): self._enterprise_manager_bridge_id = None self._instances = None self._exadata_details = None + self._enterprise_manager_entity_identifier = None + self._enterprise_manager_console_url = None + self._enterprise_manager_oms_ver = None + self._enterprise_manager_entity_type = None self._entity_source = 'EM_MANAGED_EXTERNAL_DATABASE' @property @@ -228,6 +256,102 @@ def exadata_details(self, exadata_details): """ self._exadata_details = exadata_details + @property + def enterprise_manager_entity_identifier(self): + """ + **[Required]** Gets the enterprise_manager_entity_identifier of this EmManagedExternalDatabaseConfigurationSummary. + Enterprise Manager Entity Unique Identifier + + + :return: The enterprise_manager_entity_identifier of this EmManagedExternalDatabaseConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_entity_identifier + + @enterprise_manager_entity_identifier.setter + def enterprise_manager_entity_identifier(self, enterprise_manager_entity_identifier): + """ + Sets the enterprise_manager_entity_identifier of this EmManagedExternalDatabaseConfigurationSummary. + Enterprise Manager Entity Unique Identifier + + + :param enterprise_manager_entity_identifier: The enterprise_manager_entity_identifier of this EmManagedExternalDatabaseConfigurationSummary. + :type: str + """ + self._enterprise_manager_entity_identifier = enterprise_manager_entity_identifier + + @property + def enterprise_manager_console_url(self): + """ + **[Required]** Gets the enterprise_manager_console_url of this EmManagedExternalDatabaseConfigurationSummary. + Enterprise Manager Console Url + + + :return: The enterprise_manager_console_url of this EmManagedExternalDatabaseConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_console_url + + @enterprise_manager_console_url.setter + def enterprise_manager_console_url(self, enterprise_manager_console_url): + """ + Sets the enterprise_manager_console_url of this EmManagedExternalDatabaseConfigurationSummary. + Enterprise Manager Console Url + + + :param enterprise_manager_console_url: The enterprise_manager_console_url of this EmManagedExternalDatabaseConfigurationSummary. + :type: str + """ + self._enterprise_manager_console_url = enterprise_manager_console_url + + @property + def enterprise_manager_oms_ver(self): + """ + **[Required]** Gets the enterprise_manager_oms_ver of this EmManagedExternalDatabaseConfigurationSummary. + Enterprise Manager OMS Version + + + :return: The enterprise_manager_oms_ver of this EmManagedExternalDatabaseConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_oms_ver + + @enterprise_manager_oms_ver.setter + def enterprise_manager_oms_ver(self, enterprise_manager_oms_ver): + """ + Sets the enterprise_manager_oms_ver of this EmManagedExternalDatabaseConfigurationSummary. + Enterprise Manager OMS Version + + + :param enterprise_manager_oms_ver: The enterprise_manager_oms_ver of this EmManagedExternalDatabaseConfigurationSummary. + :type: str + """ + self._enterprise_manager_oms_ver = enterprise_manager_oms_ver + + @property + def enterprise_manager_entity_type(self): + """ + **[Required]** Gets the enterprise_manager_entity_type of this EmManagedExternalDatabaseConfigurationSummary. + Enterprise Manager Entity Type + + + :return: The enterprise_manager_entity_type of this EmManagedExternalDatabaseConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_entity_type + + @enterprise_manager_entity_type.setter + def enterprise_manager_entity_type(self, enterprise_manager_entity_type): + """ + Sets the enterprise_manager_entity_type of this EmManagedExternalDatabaseConfigurationSummary. + Enterprise Manager Entity Type + + + :param enterprise_manager_entity_type: The enterprise_manager_entity_type of this EmManagedExternalDatabaseConfigurationSummary. + :type: str + """ + self._enterprise_manager_entity_type = enterprise_manager_entity_type + def __repr__(self): return formatted_flat_dict(self) 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 4785b344a..a4adf0cd5 100644 --- a/src/oci/opsi/models/em_managed_external_database_insight.py +++ b/src/oci/opsi/models/em_managed_external_database_insight.py @@ -23,7 +23,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param id: 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 f4048648e..ce543720e 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 @@ -67,7 +67,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param processor_count: diff --git a/src/oci/opsi/models/em_managed_external_exadata_insight.py b/src/oci/opsi/models/em_managed_external_exadata_insight.py index 55efd4525..40a930d7e 100644 --- a/src/oci/opsi/models/em_managed_external_exadata_insight.py +++ b/src/oci/opsi/models/em_managed_external_exadata_insight.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EmManagedExternalExadataInsight. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param id: @@ -49,7 +49,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this EmManagedExternalExadataInsight. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX" + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE" :type exadata_rack_type: str :param is_virtualized_exadata: diff --git a/src/oci/opsi/models/em_managed_external_exadata_insight_summary.py b/src/oci/opsi/models/em_managed_external_exadata_insight_summary.py index 2c87634ad..43de1ed89 100644 --- a/src/oci/opsi/models/em_managed_external_exadata_insight_summary.py +++ b/src/oci/opsi/models/em_managed_external_exadata_insight_summary.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EmManagedExternalExadataInsightSummary. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param id: @@ -49,7 +49,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this EmManagedExternalExadataInsightSummary. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX" + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE" :type exadata_rack_type: str :param freeform_tags: diff --git a/src/oci/opsi/models/em_managed_external_host_configuration_summary.py b/src/oci/opsi/models/em_managed_external_host_configuration_summary.py index c2c6edfc2..086457118 100644 --- a/src/oci/opsi/models/em_managed_external_host_configuration_summary.py +++ b/src/oci/opsi/models/em_managed_external_host_configuration_summary.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EmManagedExternalHostConfigurationSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param compartment_id: @@ -115,6 +115,22 @@ def __init__(self, **kwargs): The value to assign to the exadata_details property of this EmManagedExternalHostConfigurationSummary. :type exadata_details: oci.opsi.models.ExadataDetails + :param enterprise_manager_entity_identifier: + The value to assign to the enterprise_manager_entity_identifier property of this EmManagedExternalHostConfigurationSummary. + :type enterprise_manager_entity_identifier: str + + :param enterprise_manager_console_url: + The value to assign to the enterprise_manager_console_url property of this EmManagedExternalHostConfigurationSummary. + :type enterprise_manager_console_url: str + + :param enterprise_manager_oms_ver: + The value to assign to the enterprise_manager_oms_ver property of this EmManagedExternalHostConfigurationSummary. + :type enterprise_manager_oms_ver: str + + :param enterprise_manager_entity_type: + The value to assign to the enterprise_manager_entity_type property of this EmManagedExternalHostConfigurationSummary. + :type enterprise_manager_entity_type: str + """ self.swagger_types = { 'host_insight_id': 'str', @@ -139,7 +155,11 @@ def __init__(self, **kwargs): 'freeform_tags': 'dict(str, str)', 'enterprise_manager_identifier': 'str', 'enterprise_manager_bridge_id': 'str', - 'exadata_details': 'ExadataDetails' + 'exadata_details': 'ExadataDetails', + 'enterprise_manager_entity_identifier': 'str', + 'enterprise_manager_console_url': 'str', + 'enterprise_manager_oms_ver': 'str', + 'enterprise_manager_entity_type': 'str' } self.attribute_map = { @@ -165,7 +185,11 @@ def __init__(self, **kwargs): 'freeform_tags': 'freeformTags', 'enterprise_manager_identifier': 'enterpriseManagerIdentifier', 'enterprise_manager_bridge_id': 'enterpriseManagerBridgeId', - 'exadata_details': 'exadataDetails' + 'exadata_details': 'exadataDetails', + 'enterprise_manager_entity_identifier': 'enterpriseManagerEntityIdentifier', + 'enterprise_manager_console_url': 'enterpriseManagerConsoleUrl', + 'enterprise_manager_oms_ver': 'enterpriseManagerOmsVer', + 'enterprise_manager_entity_type': 'enterpriseManagerEntityType' } self._host_insight_id = None @@ -191,6 +215,10 @@ def __init__(self, **kwargs): self._enterprise_manager_identifier = None self._enterprise_manager_bridge_id = None self._exadata_details = None + self._enterprise_manager_entity_identifier = None + self._enterprise_manager_console_url = None + self._enterprise_manager_oms_ver = None + self._enterprise_manager_entity_type = None self._entity_source = 'EM_MANAGED_EXTERNAL_HOST' @property @@ -261,6 +289,102 @@ def exadata_details(self, exadata_details): """ self._exadata_details = exadata_details + @property + def enterprise_manager_entity_identifier(self): + """ + **[Required]** Gets the enterprise_manager_entity_identifier of this EmManagedExternalHostConfigurationSummary. + Enterprise Manager Entity Unique Identifier + + + :return: The enterprise_manager_entity_identifier of this EmManagedExternalHostConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_entity_identifier + + @enterprise_manager_entity_identifier.setter + def enterprise_manager_entity_identifier(self, enterprise_manager_entity_identifier): + """ + Sets the enterprise_manager_entity_identifier of this EmManagedExternalHostConfigurationSummary. + Enterprise Manager Entity Unique Identifier + + + :param enterprise_manager_entity_identifier: The enterprise_manager_entity_identifier of this EmManagedExternalHostConfigurationSummary. + :type: str + """ + self._enterprise_manager_entity_identifier = enterprise_manager_entity_identifier + + @property + def enterprise_manager_console_url(self): + """ + **[Required]** Gets the enterprise_manager_console_url of this EmManagedExternalHostConfigurationSummary. + Enterprise Manager Console Url + + + :return: The enterprise_manager_console_url of this EmManagedExternalHostConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_console_url + + @enterprise_manager_console_url.setter + def enterprise_manager_console_url(self, enterprise_manager_console_url): + """ + Sets the enterprise_manager_console_url of this EmManagedExternalHostConfigurationSummary. + Enterprise Manager Console Url + + + :param enterprise_manager_console_url: The enterprise_manager_console_url of this EmManagedExternalHostConfigurationSummary. + :type: str + """ + self._enterprise_manager_console_url = enterprise_manager_console_url + + @property + def enterprise_manager_oms_ver(self): + """ + **[Required]** Gets the enterprise_manager_oms_ver of this EmManagedExternalHostConfigurationSummary. + Enterprise Manager OMS Version + + + :return: The enterprise_manager_oms_ver of this EmManagedExternalHostConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_oms_ver + + @enterprise_manager_oms_ver.setter + def enterprise_manager_oms_ver(self, enterprise_manager_oms_ver): + """ + Sets the enterprise_manager_oms_ver of this EmManagedExternalHostConfigurationSummary. + Enterprise Manager OMS Version + + + :param enterprise_manager_oms_ver: The enterprise_manager_oms_ver of this EmManagedExternalHostConfigurationSummary. + :type: str + """ + self._enterprise_manager_oms_ver = enterprise_manager_oms_ver + + @property + def enterprise_manager_entity_type(self): + """ + **[Required]** Gets the enterprise_manager_entity_type of this EmManagedExternalHostConfigurationSummary. + Enterprise Manager Entity Type + + + :return: The enterprise_manager_entity_type of this EmManagedExternalHostConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_entity_type + + @enterprise_manager_entity_type.setter + def enterprise_manager_entity_type(self, enterprise_manager_entity_type): + """ + Sets the enterprise_manager_entity_type of this EmManagedExternalHostConfigurationSummary. + Enterprise Manager Entity Type + + + :param enterprise_manager_entity_type: The enterprise_manager_entity_type of this EmManagedExternalHostConfigurationSummary. + :type: str + """ + self._enterprise_manager_entity_type = enterprise_manager_entity_type + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/opsi/models/em_managed_external_host_insight.py b/src/oci/opsi/models/em_managed_external_host_insight.py index 726e1bbc8..27f1fa708 100644 --- a/src/oci/opsi/models/em_managed_external_host_insight.py +++ b/src/oci/opsi/models/em_managed_external_host_insight.py @@ -51,7 +51,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EmManagedExternalHostInsight. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str diff --git a/src/oci/opsi/models/em_managed_external_host_insight_summary.py b/src/oci/opsi/models/em_managed_external_host_insight_summary.py index c541b491a..e67932470 100644 --- a/src/oci/opsi/models/em_managed_external_host_insight_summary.py +++ b/src/oci/opsi/models/em_managed_external_host_insight_summary.py @@ -51,7 +51,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EmManagedExternalHostInsightSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str diff --git a/src/oci/opsi/models/enable_database_insight_details.py b/src/oci/opsi/models/enable_database_insight_details.py index 6c07ffc45..a9db1a54b 100644 --- a/src/oci/opsi/models/enable_database_insight_details.py +++ b/src/oci/opsi/models/enable_database_insight_details.py @@ -27,6 +27,10 @@ class EnableDatabaseInsightDetails(object): #: This constant has a value of "MDS_MYSQL_DATABASE_SYSTEM" ENTITY_SOURCE_MDS_MYSQL_DATABASE_SYSTEM = "MDS_MYSQL_DATABASE_SYSTEM" + #: A constant which can be used with the entity_source property of a EnableDatabaseInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_DATABASE" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DATABASE = "MACS_MANAGED_CLOUD_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 @@ -34,13 +38,14 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails` * :class:`~oci.opsi.models.EnableMdsMySqlDatabaseInsightDetails` + * :class:`~oci.opsi.models.EnableMacsManagedCloudDatabaseInsightDetails` * :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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str """ @@ -68,6 +73,9 @@ def get_subtype(object_dictionary): if type == 'MDS_MYSQL_DATABASE_SYSTEM': return 'EnableMdsMySqlDatabaseInsightDetails' + if type == 'MACS_MANAGED_CLOUD_DATABASE': + return 'EnableMacsManagedCloudDatabaseInsightDetails' + if type == 'PE_COMANAGED_DATABASE': return 'EnablePeComanagedDatabaseInsightDetails' else: @@ -79,7 +87,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :return: The entity_source of this EnableDatabaseInsightDetails. @@ -97,7 +105,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this EnableDatabaseInsightDetails. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM"] + allowed_values = ["EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" 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 3e895275b..d0b216910 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 @@ -23,7 +23,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str """ diff --git a/src/oci/opsi/models/enable_em_managed_external_exadata_insight_details.py b/src/oci/opsi/models/enable_em_managed_external_exadata_insight_details.py index 347111b78..1510201b8 100644 --- a/src/oci/opsi/models/enable_em_managed_external_exadata_insight_details.py +++ b/src/oci/opsi/models/enable_em_managed_external_exadata_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EnableEmManagedExternalExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str """ diff --git a/src/oci/opsi/models/enable_em_managed_external_host_insight_details.py b/src/oci/opsi/models/enable_em_managed_external_host_insight_details.py index 3bba42e9e..f3a60886c 100644 --- a/src/oci/opsi/models/enable_em_managed_external_host_insight_details.py +++ b/src/oci/opsi/models/enable_em_managed_external_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EnableEmManagedExternalHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str """ diff --git a/src/oci/opsi/models/enable_exadata_insight_details.py b/src/oci/opsi/models/enable_exadata_insight_details.py index 2edd33e7a..76bf746c5 100644 --- a/src/oci/opsi/models/enable_exadata_insight_details.py +++ b/src/oci/opsi/models/enable_exadata_insight_details.py @@ -23,11 +23,16 @@ class EnableExadataInsightDetails(object): #: This constant has a value of "PE_COMANAGED_EXADATA" ENTITY_SOURCE_PE_COMANAGED_EXADATA = "PE_COMANAGED_EXADATA" + #: A constant which can be used with the entity_source property of a EnableExadataInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_EXADATA" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_EXADATA = "MACS_MANAGED_CLOUD_EXADATA" + def __init__(self, **kwargs): """ Initializes a new EnableExadataInsightDetails 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.EnableMacsManagedCloudExadataInsightDetails` * :class:`~oci.opsi.models.EnablePeComanagedExadataInsightDetails` * :class:`~oci.opsi.models.EnableEmManagedExternalExadataInsightDetails` @@ -35,7 +40,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EnableExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str """ @@ -57,6 +62,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['entitySource'] + if type == 'MACS_MANAGED_CLOUD_EXADATA': + return 'EnableMacsManagedCloudExadataInsightDetails' + if type == 'PE_COMANAGED_EXADATA': return 'EnablePeComanagedExadataInsightDetails' @@ -71,7 +79,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this EnableExadataInsightDetails. Source of the Exadata system. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :return: The entity_source of this EnableExadataInsightDetails. @@ -89,7 +97,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this EnableExadataInsightDetails. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA"] + allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" diff --git a/src/oci/opsi/models/enable_host_insight_details.py b/src/oci/opsi/models/enable_host_insight_details.py index 8d51f9080..a8de2ab40 100644 --- a/src/oci/opsi/models/enable_host_insight_details.py +++ b/src/oci/opsi/models/enable_host_insight_details.py @@ -31,6 +31,10 @@ class EnableHostInsightDetails(object): #: This constant has a value of "PE_COMANAGED_HOST" ENTITY_SOURCE_PE_COMANAGED_HOST = "PE_COMANAGED_HOST" + #: A constant which can be used with the entity_source property of a EnableHostInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_DB_HOST" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DB_HOST = "MACS_MANAGED_CLOUD_DB_HOST" + def __init__(self, **kwargs): """ Initializes a new EnableHostInsightDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -44,7 +48,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EnableHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str """ @@ -83,7 +87,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this EnableHostInsightDetails. Source of the host entity. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :return: The entity_source of this EnableHostInsightDetails. @@ -101,7 +105,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this EnableHostInsightDetails. :type: str """ - allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST"] + allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" diff --git a/src/oci/opsi/models/enable_macs_managed_cloud_database_insight_details.py b/src/oci/opsi/models/enable_macs_managed_cloud_database_insight_details.py new file mode 100644 index 000000000..01b5f072a --- /dev/null +++ b/src/oci/opsi/models/enable_macs_managed_cloud_database_insight_details.py @@ -0,0 +1,274 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +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 EnableMacsManagedCloudDatabaseInsightDetails(EnableDatabaseInsightDetails): + """ + The information about database to be analyzed. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EnableMacsManagedCloudDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.EnableMacsManagedCloudDatabaseInsightDetails.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_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 EnableMacsManagedCloudDatabaseInsightDetails. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" + :type entity_source: str + + :param compartment_id: + The value to assign to the compartment_id property of this EnableMacsManagedCloudDatabaseInsightDetails. + :type compartment_id: str + + :param management_agent_id: + The value to assign to the management_agent_id property of this EnableMacsManagedCloudDatabaseInsightDetails. + :type management_agent_id: str + + :param connection_details: + The value to assign to the connection_details property of this EnableMacsManagedCloudDatabaseInsightDetails. + :type connection_details: oci.opsi.models.ConnectionDetails + + :param connection_credential_details: + The value to assign to the connection_credential_details property of this EnableMacsManagedCloudDatabaseInsightDetails. + :type connection_credential_details: oci.opsi.models.CredentialDetails + + :param freeform_tags: + The value to assign to the freeform_tags property of this EnableMacsManagedCloudDatabaseInsightDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this EnableMacsManagedCloudDatabaseInsightDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this EnableMacsManagedCloudDatabaseInsightDetails. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'entity_source': 'str', + 'compartment_id': 'str', + 'management_agent_id': 'str', + 'connection_details': 'ConnectionDetails', + 'connection_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', + 'management_agent_id': 'managementAgentId', + 'connection_details': 'connectionDetails', + 'connection_credential_details': 'connectionCredentialDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._entity_source = None + self._compartment_id = None + self._management_agent_id = None + self._connection_details = None + self._connection_credential_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + self._entity_source = 'MACS_MANAGED_CLOUD_DATABASE' + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this EnableMacsManagedCloudDatabaseInsightDetails. + The compartment `OCID`__ of the External Database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this EnableMacsManagedCloudDatabaseInsightDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this EnableMacsManagedCloudDatabaseInsightDetails. + The compartment `OCID`__ of the External Database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this EnableMacsManagedCloudDatabaseInsightDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this EnableMacsManagedCloudDatabaseInsightDetails. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this EnableMacsManagedCloudDatabaseInsightDetails. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this EnableMacsManagedCloudDatabaseInsightDetails. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this EnableMacsManagedCloudDatabaseInsightDetails. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def connection_details(self): + """ + **[Required]** Gets the connection_details of this EnableMacsManagedCloudDatabaseInsightDetails. + + :return: The connection_details of this EnableMacsManagedCloudDatabaseInsightDetails. + :rtype: oci.opsi.models.ConnectionDetails + """ + return self._connection_details + + @connection_details.setter + def connection_details(self, connection_details): + """ + Sets the connection_details of this EnableMacsManagedCloudDatabaseInsightDetails. + + :param connection_details: The connection_details of this EnableMacsManagedCloudDatabaseInsightDetails. + :type: oci.opsi.models.ConnectionDetails + """ + self._connection_details = connection_details + + @property + def connection_credential_details(self): + """ + **[Required]** Gets the connection_credential_details of this EnableMacsManagedCloudDatabaseInsightDetails. + + :return: The connection_credential_details of this EnableMacsManagedCloudDatabaseInsightDetails. + :rtype: oci.opsi.models.CredentialDetails + """ + return self._connection_credential_details + + @connection_credential_details.setter + def connection_credential_details(self, connection_credential_details): + """ + Sets the connection_credential_details of this EnableMacsManagedCloudDatabaseInsightDetails. + + :param connection_credential_details: The connection_credential_details of this EnableMacsManagedCloudDatabaseInsightDetails. + :type: oci.opsi.models.CredentialDetails + """ + self._connection_credential_details = connection_credential_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this EnableMacsManagedCloudDatabaseInsightDetails. + 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 EnableMacsManagedCloudDatabaseInsightDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this EnableMacsManagedCloudDatabaseInsightDetails. + 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 EnableMacsManagedCloudDatabaseInsightDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this EnableMacsManagedCloudDatabaseInsightDetails. + 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 EnableMacsManagedCloudDatabaseInsightDetails. + :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 EnableMacsManagedCloudDatabaseInsightDetails. + 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 EnableMacsManagedCloudDatabaseInsightDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this EnableMacsManagedCloudDatabaseInsightDetails. + 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 EnableMacsManagedCloudDatabaseInsightDetails. + :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 EnableMacsManagedCloudDatabaseInsightDetails. + 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 EnableMacsManagedCloudDatabaseInsightDetails. + :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/enable_macs_managed_cloud_exadata_insight_details.py b/src/oci/opsi/models/enable_macs_managed_cloud_exadata_insight_details.py new file mode 100644 index 000000000..e2383aa91 --- /dev/null +++ b/src/oci/opsi/models/enable_macs_managed_cloud_exadata_insight_details.py @@ -0,0 +1,51 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .enable_exadata_insight_details import EnableExadataInsightDetails +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 EnableMacsManagedCloudExadataInsightDetails(EnableExadataInsightDetails): + """ + The information about the Exadata system to be analyzed. (ExaCC) + """ + + def __init__(self, **kwargs): + """ + Initializes a new EnableMacsManagedCloudExadataInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.EnableMacsManagedCloudExadataInsightDetails.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_EXADATA`` 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 EnableMacsManagedCloudExadataInsightDetails. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" + :type entity_source: str + + """ + self.swagger_types = { + 'entity_source': 'str' + } + + self.attribute_map = { + 'entity_source': 'entitySource' + } + + self._entity_source = None + self._entity_source = 'MACS_MANAGED_CLOUD_EXADATA' + + 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/enable_macs_managed_cloud_host_insight_details.py b/src/oci/opsi/models/enable_macs_managed_cloud_host_insight_details.py index 9eff635b1..4f24a0c24 100644 --- a/src/oci/opsi/models/enable_macs_managed_cloud_host_insight_details.py +++ b/src/oci/opsi/models/enable_macs_managed_cloud_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EnableMacsManagedCloudHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str """ diff --git a/src/oci/opsi/models/enable_macs_managed_external_host_insight_details.py b/src/oci/opsi/models/enable_macs_managed_external_host_insight_details.py index 20bb2dc52..a1bd8b768 100644 --- a/src/oci/opsi/models/enable_macs_managed_external_host_insight_details.py +++ b/src/oci/opsi/models/enable_macs_managed_external_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EnableMacsManagedExternalHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str """ diff --git a/src/oci/opsi/models/enable_mds_my_sql_database_insight_details.py b/src/oci/opsi/models/enable_mds_my_sql_database_insight_details.py index 2b9e7fa85..4ddd4c68b 100644 --- a/src/oci/opsi/models/enable_mds_my_sql_database_insight_details.py +++ b/src/oci/opsi/models/enable_mds_my_sql_database_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EnableMdsMySqlDatabaseInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_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 index 94b82215d..349685d91 100644 --- a/src/oci/opsi/models/enable_pe_comanaged_database_insight_details.py +++ b/src/oci/opsi/models/enable_pe_comanaged_database_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :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", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/enable_pe_comanaged_exadata_insight_details.py b/src/oci/opsi/models/enable_pe_comanaged_exadata_insight_details.py index 0968387c2..120790fb2 100644 --- a/src/oci/opsi/models/enable_pe_comanaged_exadata_insight_details.py +++ b/src/oci/opsi/models/enable_pe_comanaged_exadata_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this EnablePeComanagedExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str """ diff --git a/src/oci/opsi/models/exadata_asm_entity.py b/src/oci/opsi/models/exadata_asm_entity.py new file mode 100644 index 000000000..08cffbee0 --- /dev/null +++ b/src/oci/opsi/models/exadata_asm_entity.py @@ -0,0 +1,151 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .database_configuration_metric_group import DatabaseConfigurationMetricGroup +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 ExadataAsmEntity(DatabaseConfigurationMetricGroup): + """ + ASM entitie for an exadata + """ + + def __init__(self, **kwargs): + """ + Initializes a new ExadataAsmEntity object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.ExadataAsmEntity.metric_name` attribute + of this class is ``ASM_ENTITY`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param metric_name: + The value to assign to the metric_name property of this ExadataAsmEntity. + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" + :type metric_name: str + + :param time_collected: + The value to assign to the time_collected property of this ExadataAsmEntity. + :type time_collected: datetime + + :param instance_name: + The value to assign to the instance_name property of this ExadataAsmEntity. + :type instance_name: str + + :param cluster_name: + The value to assign to the cluster_name property of this ExadataAsmEntity. + :type cluster_name: str + + :param software_version: + The value to assign to the software_version property of this ExadataAsmEntity. + :type software_version: str + + """ + self.swagger_types = { + 'metric_name': 'str', + 'time_collected': 'datetime', + 'instance_name': 'str', + 'cluster_name': 'str', + 'software_version': 'str' + } + + self.attribute_map = { + 'metric_name': 'metricName', + 'time_collected': 'timeCollected', + 'instance_name': 'instanceName', + 'cluster_name': 'clusterName', + 'software_version': 'softwareVersion' + } + + self._metric_name = None + self._time_collected = None + self._instance_name = None + self._cluster_name = None + self._software_version = None + self._metric_name = 'ASM_ENTITY' + + @property + def instance_name(self): + """ + Gets the instance_name of this ExadataAsmEntity. + Instance name of ASM + + + :return: The instance_name of this ExadataAsmEntity. + :rtype: str + """ + return self._instance_name + + @instance_name.setter + def instance_name(self, instance_name): + """ + Sets the instance_name of this ExadataAsmEntity. + Instance name of ASM + + + :param instance_name: The instance_name of this ExadataAsmEntity. + :type: str + """ + self._instance_name = instance_name + + @property + def cluster_name(self): + """ + Gets the cluster_name of this ExadataAsmEntity. + Cluster name of ASM + + + :return: The cluster_name of this ExadataAsmEntity. + :rtype: str + """ + return self._cluster_name + + @cluster_name.setter + def cluster_name(self, cluster_name): + """ + Sets the cluster_name of this ExadataAsmEntity. + Cluster name of ASM + + + :param cluster_name: The cluster_name of this ExadataAsmEntity. + :type: str + """ + self._cluster_name = cluster_name + + @property + def software_version(self): + """ + Gets the software_version of this ExadataAsmEntity. + Software version + + + :return: The software_version of this ExadataAsmEntity. + :rtype: str + """ + return self._software_version + + @software_version.setter + def software_version(self, software_version): + """ + Sets the software_version of this ExadataAsmEntity. + Software version + + + :param software_version: The software_version of this ExadataAsmEntity. + :type: str + """ + self._software_version = software_version + + 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_cell_config.py b/src/oci/opsi/models/exadata_cell_config.py new file mode 100644 index 000000000..9f90ad6bc --- /dev/null +++ b/src/oci/opsi/models/exadata_cell_config.py @@ -0,0 +1,213 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .database_configuration_metric_group import DatabaseConfigurationMetricGroup +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 ExadataCellConfig(DatabaseConfigurationMetricGroup): + """ + Storage server configuration + """ + + def __init__(self, **kwargs): + """ + Initializes a new ExadataCellConfig object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.ExadataCellConfig.metric_name` attribute + of this class is ``EXADATA_CELL_CONFIG`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param metric_name: + The value to assign to the metric_name property of this ExadataCellConfig. + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" + :type metric_name: str + + :param time_collected: + The value to assign to the time_collected property of this ExadataCellConfig. + :type time_collected: datetime + + :param cell_name: + The value to assign to the cell_name property of this ExadataCellConfig. + :type cell_name: str + + :param cell_hash: + The value to assign to the cell_hash property of this ExadataCellConfig. + :type cell_hash: str + + :param cell_properties: + The value to assign to the cell_properties property of this ExadataCellConfig. + :type cell_properties: str + + :param cell_configs: + The value to assign to the cell_configs property of this ExadataCellConfig. + :type cell_configs: str + + :param disk_counts: + The value to assign to the disk_counts property of this ExadataCellConfig. + :type disk_counts: str + + """ + self.swagger_types = { + 'metric_name': 'str', + 'time_collected': 'datetime', + 'cell_name': 'str', + 'cell_hash': 'str', + 'cell_properties': 'str', + 'cell_configs': 'str', + 'disk_counts': 'str' + } + + self.attribute_map = { + 'metric_name': 'metricName', + 'time_collected': 'timeCollected', + 'cell_name': 'cellName', + 'cell_hash': 'cellHash', + 'cell_properties': 'cellProperties', + 'cell_configs': 'cellConfigs', + 'disk_counts': 'diskCounts' + } + + self._metric_name = None + self._time_collected = None + self._cell_name = None + self._cell_hash = None + self._cell_properties = None + self._cell_configs = None + self._disk_counts = None + self._metric_name = 'EXADATA_CELL_CONFIG' + + @property + def cell_name(self): + """ + Gets the cell_name of this ExadataCellConfig. + Cell name + + + :return: The cell_name of this ExadataCellConfig. + :rtype: str + """ + return self._cell_name + + @cell_name.setter + def cell_name(self, cell_name): + """ + Sets the cell_name of this ExadataCellConfig. + Cell name + + + :param cell_name: The cell_name of this ExadataCellConfig. + :type: str + """ + self._cell_name = cell_name + + @property + def cell_hash(self): + """ + Gets the cell_hash of this ExadataCellConfig. + Cell hash + + + :return: The cell_hash of this ExadataCellConfig. + :rtype: str + """ + return self._cell_hash + + @cell_hash.setter + def cell_hash(self, cell_hash): + """ + Sets the cell_hash of this ExadataCellConfig. + Cell hash + + + :param cell_hash: The cell_hash of this ExadataCellConfig. + :type: str + """ + self._cell_hash = cell_hash + + @property + def cell_properties(self): + """ + Gets the cell_properties of this ExadataCellConfig. + Cell properties + + + :return: The cell_properties of this ExadataCellConfig. + :rtype: str + """ + return self._cell_properties + + @cell_properties.setter + def cell_properties(self, cell_properties): + """ + Sets the cell_properties of this ExadataCellConfig. + Cell properties + + + :param cell_properties: The cell_properties of this ExadataCellConfig. + :type: str + """ + self._cell_properties = cell_properties + + @property + def cell_configs(self): + """ + Gets the cell_configs of this ExadataCellConfig. + Cell configs + + + :return: The cell_configs of this ExadataCellConfig. + :rtype: str + """ + return self._cell_configs + + @cell_configs.setter + def cell_configs(self, cell_configs): + """ + Sets the cell_configs of this ExadataCellConfig. + Cell configs + + + :param cell_configs: The cell_configs of this ExadataCellConfig. + :type: str + """ + self._cell_configs = cell_configs + + @property + def disk_counts(self): + """ + Gets the disk_counts of this ExadataCellConfig. + Cell disk counts + + + :return: The disk_counts of this ExadataCellConfig. + :rtype: str + """ + return self._disk_counts + + @disk_counts.setter + def disk_counts(self, disk_counts): + """ + Sets the disk_counts of this ExadataCellConfig. + Cell disk counts + + + :param disk_counts: The disk_counts of this ExadataCellConfig. + :type: str + """ + self._disk_counts = disk_counts + + 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_configuration_summary.py b/src/oci/opsi/models/exadata_configuration_summary.py index 8a0286076..7c44ad22f 100644 --- a/src/oci/opsi/models/exadata_configuration_summary.py +++ b/src/oci/opsi/models/exadata_configuration_summary.py @@ -23,6 +23,10 @@ class ExadataConfigurationSummary(object): #: This constant has a value of "PE_COMANAGED_EXADATA" ENTITY_SOURCE_PE_COMANAGED_EXADATA = "PE_COMANAGED_EXADATA" + #: A constant which can be used with the entity_source property of a ExadataConfigurationSummary. + #: This constant has a value of "MACS_MANAGED_CLOUD_EXADATA" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_EXADATA = "MACS_MANAGED_CLOUD_EXADATA" + #: A constant which can be used with the exadata_type property of a ExadataConfigurationSummary. #: This constant has a value of "DBMACHINE" EXADATA_TYPE_DBMACHINE = "DBMACHINE" @@ -55,6 +59,22 @@ class ExadataConfigurationSummary(object): #: This constant has a value of "FLEX" EXADATA_RACK_TYPE_FLEX = "FLEX" + #: A constant which can be used with the exadata_rack_type property of a ExadataConfigurationSummary. + #: This constant has a value of "BASE" + EXADATA_RACK_TYPE_BASE = "BASE" + + #: A constant which can be used with the exadata_rack_type property of a ExadataConfigurationSummary. + #: This constant has a value of "ELASTIC" + EXADATA_RACK_TYPE_ELASTIC = "ELASTIC" + + #: A constant which can be used with the exadata_rack_type property of a ExadataConfigurationSummary. + #: This constant has a value of "ELASTIC_BASE" + EXADATA_RACK_TYPE_ELASTIC_BASE = "ELASTIC_BASE" + + #: A constant which can be used with the exadata_rack_type property of a ExadataConfigurationSummary. + #: This constant has a value of "ELASTIC_LARGE" + EXADATA_RACK_TYPE_ELASTIC_LARGE = "ELASTIC_LARGE" + def __init__(self, **kwargs): """ Initializes a new ExadataConfigurationSummary object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -62,6 +82,7 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.ExadataDatabaseMachineConfigurationSummary` * :class:`~oci.opsi.models.ExadataExacsConfigurationSummary` + * :class:`~oci.opsi.models.ExadataExaccConfigurationSummary` The following keyword arguments are supported (corresponding to the getters/setters of this class): @@ -71,7 +92,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this ExadataConfigurationSummary. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -95,7 +116,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this ExadataConfigurationSummary. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type exadata_rack_type: str @@ -162,6 +183,9 @@ def get_subtype(object_dictionary): if type == 'PE_COMANAGED_EXADATA': return 'ExadataExacsConfigurationSummary' + + if type == 'MACS_MANAGED_CLOUD_EXADATA': + return 'ExadataExaccConfigurationSummary' else: return 'ExadataConfigurationSummary' @@ -199,7 +223,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this ExadataConfigurationSummary. Source of the exadata entity. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -218,7 +242,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this ExadataConfigurationSummary. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA"] + allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): entity_source = 'UNKNOWN_ENUM_VALUE' self._entity_source = entity_source @@ -335,7 +359,7 @@ def exadata_rack_type(self): **[Required]** Gets the exadata_rack_type of this ExadataConfigurationSummary. Exadata rack type. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -354,7 +378,7 @@ def exadata_rack_type(self, exadata_rack_type): :param exadata_rack_type: The exadata_rack_type of this ExadataConfigurationSummary. :type: str """ - allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH", "FLEX"] + allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE"] if not value_allowed_none_or_none_sentinel(exadata_rack_type, allowed_values): exadata_rack_type = 'UNKNOWN_ENUM_VALUE' self._exadata_rack_type = exadata_rack_type diff --git a/src/oci/opsi/models/exadata_database_machine_configuration_summary.py b/src/oci/opsi/models/exadata_database_machine_configuration_summary.py index 715b1e217..8b6d9e190 100644 --- a/src/oci/opsi/models/exadata_database_machine_configuration_summary.py +++ b/src/oci/opsi/models/exadata_database_machine_configuration_summary.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this ExadataDatabaseMachineConfigurationSummary. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param compartment_id: @@ -49,7 +49,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this ExadataDatabaseMachineConfigurationSummary. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX" + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE" :type exadata_rack_type: str :param defined_tags: @@ -72,6 +72,22 @@ def __init__(self, **kwargs): The value to assign to the enterprise_manager_bridge_id property of this ExadataDatabaseMachineConfigurationSummary. :type enterprise_manager_bridge_id: str + :param enterprise_manager_entity_identifier: + The value to assign to the enterprise_manager_entity_identifier property of this ExadataDatabaseMachineConfigurationSummary. + :type enterprise_manager_entity_identifier: str + + :param enterprise_manager_console_url: + The value to assign to the enterprise_manager_console_url property of this ExadataDatabaseMachineConfigurationSummary. + :type enterprise_manager_console_url: str + + :param enterprise_manager_oms_ver: + The value to assign to the enterprise_manager_oms_ver property of this ExadataDatabaseMachineConfigurationSummary. + :type enterprise_manager_oms_ver: str + + :param enterprise_manager_entity_type: + The value to assign to the enterprise_manager_entity_type property of this ExadataDatabaseMachineConfigurationSummary. + :type enterprise_manager_entity_type: str + """ self.swagger_types = { 'exadata_insight_id': 'str', @@ -85,7 +101,11 @@ def __init__(self, **kwargs): 'freeform_tags': 'dict(str, str)', 'vmcluster_details': 'list[VmClusterSummary]', 'enterprise_manager_identifier': 'str', - 'enterprise_manager_bridge_id': 'str' + 'enterprise_manager_bridge_id': 'str', + 'enterprise_manager_entity_identifier': 'str', + 'enterprise_manager_console_url': 'str', + 'enterprise_manager_oms_ver': 'str', + 'enterprise_manager_entity_type': 'str' } self.attribute_map = { @@ -100,7 +120,11 @@ def __init__(self, **kwargs): 'freeform_tags': 'freeformTags', 'vmcluster_details': 'vmclusterDetails', 'enterprise_manager_identifier': 'enterpriseManagerIdentifier', - 'enterprise_manager_bridge_id': 'enterpriseManagerBridgeId' + 'enterprise_manager_bridge_id': 'enterpriseManagerBridgeId', + 'enterprise_manager_entity_identifier': 'enterpriseManagerEntityIdentifier', + 'enterprise_manager_console_url': 'enterpriseManagerConsoleUrl', + 'enterprise_manager_oms_ver': 'enterpriseManagerOmsVer', + 'enterprise_manager_entity_type': 'enterpriseManagerEntityType' } self._exadata_insight_id = None @@ -115,6 +139,10 @@ def __init__(self, **kwargs): self._vmcluster_details = None self._enterprise_manager_identifier = None self._enterprise_manager_bridge_id = None + self._enterprise_manager_entity_identifier = None + self._enterprise_manager_console_url = None + self._enterprise_manager_oms_ver = None + self._enterprise_manager_entity_type = None self._entity_source = 'EM_MANAGED_EXTERNAL_EXADATA' @property @@ -165,6 +193,102 @@ def enterprise_manager_bridge_id(self, enterprise_manager_bridge_id): """ self._enterprise_manager_bridge_id = enterprise_manager_bridge_id + @property + def enterprise_manager_entity_identifier(self): + """ + **[Required]** Gets the enterprise_manager_entity_identifier of this ExadataDatabaseMachineConfigurationSummary. + Enterprise Manager Entity Unique Identifier + + + :return: The enterprise_manager_entity_identifier of this ExadataDatabaseMachineConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_entity_identifier + + @enterprise_manager_entity_identifier.setter + def enterprise_manager_entity_identifier(self, enterprise_manager_entity_identifier): + """ + Sets the enterprise_manager_entity_identifier of this ExadataDatabaseMachineConfigurationSummary. + Enterprise Manager Entity Unique Identifier + + + :param enterprise_manager_entity_identifier: The enterprise_manager_entity_identifier of this ExadataDatabaseMachineConfigurationSummary. + :type: str + """ + self._enterprise_manager_entity_identifier = enterprise_manager_entity_identifier + + @property + def enterprise_manager_console_url(self): + """ + **[Required]** Gets the enterprise_manager_console_url of this ExadataDatabaseMachineConfigurationSummary. + Enterprise Manager Console Url + + + :return: The enterprise_manager_console_url of this ExadataDatabaseMachineConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_console_url + + @enterprise_manager_console_url.setter + def enterprise_manager_console_url(self, enterprise_manager_console_url): + """ + Sets the enterprise_manager_console_url of this ExadataDatabaseMachineConfigurationSummary. + Enterprise Manager Console Url + + + :param enterprise_manager_console_url: The enterprise_manager_console_url of this ExadataDatabaseMachineConfigurationSummary. + :type: str + """ + self._enterprise_manager_console_url = enterprise_manager_console_url + + @property + def enterprise_manager_oms_ver(self): + """ + **[Required]** Gets the enterprise_manager_oms_ver of this ExadataDatabaseMachineConfigurationSummary. + Enterprise Manager OMS Version + + + :return: The enterprise_manager_oms_ver of this ExadataDatabaseMachineConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_oms_ver + + @enterprise_manager_oms_ver.setter + def enterprise_manager_oms_ver(self, enterprise_manager_oms_ver): + """ + Sets the enterprise_manager_oms_ver of this ExadataDatabaseMachineConfigurationSummary. + Enterprise Manager OMS Version + + + :param enterprise_manager_oms_ver: The enterprise_manager_oms_ver of this ExadataDatabaseMachineConfigurationSummary. + :type: str + """ + self._enterprise_manager_oms_ver = enterprise_manager_oms_ver + + @property + def enterprise_manager_entity_type(self): + """ + **[Required]** Gets the enterprise_manager_entity_type of this ExadataDatabaseMachineConfigurationSummary. + Enterprise Manager Entity Type + + + :return: The enterprise_manager_entity_type of this ExadataDatabaseMachineConfigurationSummary. + :rtype: str + """ + return self._enterprise_manager_entity_type + + @enterprise_manager_entity_type.setter + def enterprise_manager_entity_type(self, enterprise_manager_entity_type): + """ + Sets the enterprise_manager_entity_type of this ExadataDatabaseMachineConfigurationSummary. + Enterprise Manager Entity Type + + + :param enterprise_manager_entity_type: The enterprise_manager_entity_type of this ExadataDatabaseMachineConfigurationSummary. + :type: str + """ + self._enterprise_manager_entity_type = enterprise_manager_entity_type + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/opsi/models/exadata_exacc_configuration_summary.py b/src/oci/opsi/models/exadata_exacc_configuration_summary.py new file mode 100644 index 000000000..bfe405a53 --- /dev/null +++ b/src/oci/opsi/models/exadata_exacc_configuration_summary.py @@ -0,0 +1,186 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .exadata_configuration_summary import ExadataConfigurationSummary +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 ExadataExaccConfigurationSummary(ExadataConfigurationSummary): + """ + Configuration summary of a macs managed Exacc exadata machine. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ExadataExaccConfigurationSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.ExadataExaccConfigurationSummary.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_EXADATA`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param exadata_insight_id: + The value to assign to the exadata_insight_id property of this ExadataExaccConfigurationSummary. + :type exadata_insight_id: str + + :param entity_source: + The value to assign to the entity_source property of this ExadataExaccConfigurationSummary. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" + :type entity_source: str + + :param compartment_id: + The value to assign to the compartment_id property of this ExadataExaccConfigurationSummary. + :type compartment_id: str + + :param exadata_name: + The value to assign to the exadata_name property of this ExadataExaccConfigurationSummary. + :type exadata_name: str + + :param exadata_display_name: + The value to assign to the exadata_display_name property of this ExadataExaccConfigurationSummary. + :type exadata_display_name: str + + :param exadata_type: + The value to assign to the exadata_type property of this ExadataExaccConfigurationSummary. + Allowed values for this property are: "DBMACHINE", "EXACS", "EXACC" + :type exadata_type: str + + :param exadata_rack_type: + The value to assign to the exadata_rack_type property of this ExadataExaccConfigurationSummary. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE" + :type exadata_rack_type: str + + :param defined_tags: + The value to assign to the defined_tags property of this ExadataExaccConfigurationSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param freeform_tags: + The value to assign to the freeform_tags property of this ExadataExaccConfigurationSummary. + :type freeform_tags: dict(str, str) + + :param vmcluster_details: + The value to assign to the vmcluster_details property of this ExadataExaccConfigurationSummary. + :type vmcluster_details: list[oci.opsi.models.VmClusterSummary] + + :param management_agent_id: + The value to assign to the management_agent_id property of this ExadataExaccConfigurationSummary. + :type management_agent_id: str + + :param parent_id: + The value to assign to the parent_id property of this ExadataExaccConfigurationSummary. + :type parent_id: str + + """ + self.swagger_types = { + 'exadata_insight_id': 'str', + 'entity_source': 'str', + 'compartment_id': 'str', + 'exadata_name': 'str', + 'exadata_display_name': 'str', + 'exadata_type': 'str', + 'exadata_rack_type': 'str', + 'defined_tags': 'dict(str, dict(str, object))', + 'freeform_tags': 'dict(str, str)', + 'vmcluster_details': 'list[VmClusterSummary]', + 'management_agent_id': 'str', + 'parent_id': 'str' + } + + self.attribute_map = { + 'exadata_insight_id': 'exadataInsightId', + 'entity_source': 'entitySource', + 'compartment_id': 'compartmentId', + 'exadata_name': 'exadataName', + 'exadata_display_name': 'exadataDisplayName', + 'exadata_type': 'exadataType', + 'exadata_rack_type': 'exadataRackType', + 'defined_tags': 'definedTags', + 'freeform_tags': 'freeformTags', + 'vmcluster_details': 'vmclusterDetails', + 'management_agent_id': 'managementAgentId', + 'parent_id': 'parentId' + } + + self._exadata_insight_id = None + self._entity_source = None + self._compartment_id = None + self._exadata_name = None + self._exadata_display_name = None + self._exadata_type = None + self._exadata_rack_type = None + self._defined_tags = None + self._freeform_tags = None + self._vmcluster_details = None + self._management_agent_id = None + self._parent_id = None + self._entity_source = 'MACS_MANAGED_CLOUD_EXADATA' + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this ExadataExaccConfigurationSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this ExadataExaccConfigurationSummary. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this ExadataExaccConfigurationSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this ExadataExaccConfigurationSummary. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def parent_id(self): + """ + **[Required]** Gets the parent_id of this ExadataExaccConfigurationSummary. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The parent_id of this ExadataExaccConfigurationSummary. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """ + Sets the parent_id of this ExadataExaccConfigurationSummary. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param parent_id: The parent_id of this ExadataExaccConfigurationSummary. + :type: str + """ + self._parent_id = parent_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/exadata_exacs_configuration_summary.py b/src/oci/opsi/models/exadata_exacs_configuration_summary.py index 08bb1db02..5963ed982 100644 --- a/src/oci/opsi/models/exadata_exacs_configuration_summary.py +++ b/src/oci/opsi/models/exadata_exacs_configuration_summary.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this ExadataExacsConfigurationSummary. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param compartment_id: @@ -49,7 +49,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this ExadataExacsConfigurationSummary. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX" + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE" :type exadata_rack_type: str :param defined_tags: diff --git a/src/oci/opsi/models/exadata_insight.py b/src/oci/opsi/models/exadata_insight.py index 0846f26b8..1b426339c 100644 --- a/src/oci/opsi/models/exadata_insight.py +++ b/src/oci/opsi/models/exadata_insight.py @@ -23,6 +23,10 @@ class ExadataInsight(object): #: This constant has a value of "PE_COMANAGED_EXADATA" ENTITY_SOURCE_PE_COMANAGED_EXADATA = "PE_COMANAGED_EXADATA" + #: A constant which can be used with the entity_source property of a ExadataInsight. + #: This constant has a value of "MACS_MANAGED_CLOUD_EXADATA" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_EXADATA = "MACS_MANAGED_CLOUD_EXADATA" + #: A constant which can be used with the exadata_type property of a ExadataInsight. #: This constant has a value of "DBMACHINE" EXADATA_TYPE_DBMACHINE = "DBMACHINE" @@ -55,6 +59,22 @@ class ExadataInsight(object): #: This constant has a value of "FLEX" EXADATA_RACK_TYPE_FLEX = "FLEX" + #: A constant which can be used with the exadata_rack_type property of a ExadataInsight. + #: This constant has a value of "BASE" + EXADATA_RACK_TYPE_BASE = "BASE" + + #: A constant which can be used with the exadata_rack_type property of a ExadataInsight. + #: This constant has a value of "ELASTIC" + EXADATA_RACK_TYPE_ELASTIC = "ELASTIC" + + #: A constant which can be used with the exadata_rack_type property of a ExadataInsight. + #: This constant has a value of "ELASTIC_BASE" + EXADATA_RACK_TYPE_ELASTIC_BASE = "ELASTIC_BASE" + + #: A constant which can be used with the exadata_rack_type property of a ExadataInsight. + #: This constant has a value of "ELASTIC_LARGE" + EXADATA_RACK_TYPE_ELASTIC_LARGE = "ELASTIC_LARGE" + #: A constant which can be used with the status property of a ExadataInsight. #: This constant has a value of "DISABLED" STATUS_DISABLED = "DISABLED" @@ -98,12 +118,13 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.EmManagedExternalExadataInsight` * :class:`~oci.opsi.models.PeComanagedExadataInsight` + * :class:`~oci.opsi.models.MacsManagedCloudExadataInsight` 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 ExadataInsight. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -131,7 +152,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this ExadataInsight. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type exadata_rack_type: str @@ -244,6 +265,9 @@ def get_subtype(object_dictionary): if type == 'PE_COMANAGED_EXADATA': return 'PeComanagedExadataInsight' + + if type == 'MACS_MANAGED_CLOUD_EXADATA': + return 'MacsManagedCloudExadataInsight' else: return 'ExadataInsight' @@ -253,7 +277,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this ExadataInsight. Source of the Exadata system. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -272,7 +296,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this ExadataInsight. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA"] + allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): entity_source = 'UNKNOWN_ENUM_VALUE' self._entity_source = entity_source @@ -409,7 +433,7 @@ def exadata_rack_type(self): Gets the exadata_rack_type of this ExadataInsight. Exadata rack type. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -428,7 +452,7 @@ def exadata_rack_type(self, exadata_rack_type): :param exadata_rack_type: The exadata_rack_type of this ExadataInsight. :type: str """ - allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH", "FLEX"] + allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE"] if not value_allowed_none_or_none_sentinel(exadata_rack_type, allowed_values): exadata_rack_type = 'UNKNOWN_ENUM_VALUE' self._exadata_rack_type = exadata_rack_type diff --git a/src/oci/opsi/models/exadata_insight_summary.py b/src/oci/opsi/models/exadata_insight_summary.py index ccee89057..856916b22 100644 --- a/src/oci/opsi/models/exadata_insight_summary.py +++ b/src/oci/opsi/models/exadata_insight_summary.py @@ -23,6 +23,10 @@ class ExadataInsightSummary(object): #: This constant has a value of "PE_COMANAGED_EXADATA" ENTITY_SOURCE_PE_COMANAGED_EXADATA = "PE_COMANAGED_EXADATA" + #: A constant which can be used with the entity_source property of a ExadataInsightSummary. + #: This constant has a value of "MACS_MANAGED_CLOUD_EXADATA" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_EXADATA = "MACS_MANAGED_CLOUD_EXADATA" + #: A constant which can be used with the exadata_type property of a ExadataInsightSummary. #: This constant has a value of "DBMACHINE" EXADATA_TYPE_DBMACHINE = "DBMACHINE" @@ -55,6 +59,22 @@ class ExadataInsightSummary(object): #: This constant has a value of "FLEX" EXADATA_RACK_TYPE_FLEX = "FLEX" + #: A constant which can be used with the exadata_rack_type property of a ExadataInsightSummary. + #: This constant has a value of "BASE" + EXADATA_RACK_TYPE_BASE = "BASE" + + #: A constant which can be used with the exadata_rack_type property of a ExadataInsightSummary. + #: This constant has a value of "ELASTIC" + EXADATA_RACK_TYPE_ELASTIC = "ELASTIC" + + #: A constant which can be used with the exadata_rack_type property of a ExadataInsightSummary. + #: This constant has a value of "ELASTIC_BASE" + EXADATA_RACK_TYPE_ELASTIC_BASE = "ELASTIC_BASE" + + #: A constant which can be used with the exadata_rack_type property of a ExadataInsightSummary. + #: This constant has a value of "ELASTIC_LARGE" + EXADATA_RACK_TYPE_ELASTIC_LARGE = "ELASTIC_LARGE" + #: A constant which can be used with the status property of a ExadataInsightSummary. #: This constant has a value of "DISABLED" STATUS_DISABLED = "DISABLED" @@ -96,6 +116,7 @@ def __init__(self, **kwargs): Initializes a new ExadataInsightSummary 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.MacsManagedCloudExadataInsightSummary` * :class:`~oci.opsi.models.EmManagedExternalExadataInsightSummary` * :class:`~oci.opsi.models.PeComanagedExadataInsightSummary` @@ -103,7 +124,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this ExadataInsightSummary. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -131,7 +152,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this ExadataInsightSummary. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type exadata_rack_type: str @@ -232,6 +253,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['entitySource'] + if type == 'MACS_MANAGED_CLOUD_EXADATA': + return 'MacsManagedCloudExadataInsightSummary' + if type == 'EM_MANAGED_EXTERNAL_EXADATA': return 'EmManagedExternalExadataInsightSummary' @@ -246,7 +270,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this ExadataInsightSummary. Source of the Exadata system. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -265,7 +289,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this ExadataInsightSummary. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA"] + allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): entity_source = 'UNKNOWN_ENUM_VALUE' self._entity_source = entity_source @@ -410,7 +434,7 @@ def exadata_rack_type(self): Gets the exadata_rack_type of this ExadataInsightSummary. Operations Insights internal representation of the the Exadata system rack type. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -429,7 +453,7 @@ def exadata_rack_type(self, exadata_rack_type): :param exadata_rack_type: The exadata_rack_type of this ExadataInsightSummary. :type: str """ - allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH", "FLEX"] + allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE"] if not value_allowed_none_or_none_sentinel(exadata_rack_type, allowed_values): exadata_rack_type = 'UNKNOWN_ENUM_VALUE' self._exadata_rack_type = exadata_rack_type diff --git a/src/oci/opsi/models/exadata_member_collection.py b/src/oci/opsi/models/exadata_member_collection.py index 6135cdd89..9b38b3eed 100644 --- a/src/oci/opsi/models/exadata_member_collection.py +++ b/src/oci/opsi/models/exadata_member_collection.py @@ -47,6 +47,22 @@ class ExadataMemberCollection(object): #: This constant has a value of "FLEX" EXADATA_RACK_TYPE_FLEX = "FLEX" + #: A constant which can be used with the exadata_rack_type property of a ExadataMemberCollection. + #: This constant has a value of "BASE" + EXADATA_RACK_TYPE_BASE = "BASE" + + #: A constant which can be used with the exadata_rack_type property of a ExadataMemberCollection. + #: This constant has a value of "ELASTIC" + EXADATA_RACK_TYPE_ELASTIC = "ELASTIC" + + #: A constant which can be used with the exadata_rack_type property of a ExadataMemberCollection. + #: This constant has a value of "ELASTIC_BASE" + EXADATA_RACK_TYPE_ELASTIC_BASE = "ELASTIC_BASE" + + #: A constant which can be used with the exadata_rack_type property of a ExadataMemberCollection. + #: This constant has a value of "ELASTIC_LARGE" + EXADATA_RACK_TYPE_ELASTIC_LARGE = "ELASTIC_LARGE" + def __init__(self, **kwargs): """ Initializes a new ExadataMemberCollection object with values from keyword arguments. @@ -72,7 +88,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this ExadataMemberCollection. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type exadata_rack_type: str @@ -218,7 +234,7 @@ def exadata_rack_type(self): **[Required]** Gets the exadata_rack_type of this ExadataMemberCollection. Exadata rack type. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -237,7 +253,7 @@ def exadata_rack_type(self, exadata_rack_type): :param exadata_rack_type: The exadata_rack_type of this ExadataMemberCollection. :type: str """ - allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH", "FLEX"] + allowed_values = ["FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE"] if not value_allowed_none_or_none_sentinel(exadata_rack_type, allowed_values): exadata_rack_type = 'UNKNOWN_ENUM_VALUE' self._exadata_rack_type = exadata_rack_type diff --git a/src/oci/opsi/models/host_allocation.py b/src/oci/opsi/models/host_allocation.py new file mode 100644 index 000000000..069f6834e --- /dev/null +++ b/src/oci/opsi/models/host_allocation.py @@ -0,0 +1,120 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .database_configuration_metric_group import DatabaseConfigurationMetricGroup +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 HostAllocation(DatabaseConfigurationMetricGroup): + """ + Resource Allocation metric for the host + """ + + def __init__(self, **kwargs): + """ + Initializes a new HostAllocation object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.HostAllocation.metric_name` attribute + of this class is ``HOST_RESOURCE_ALLOCATION`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param metric_name: + The value to assign to the metric_name property of this HostAllocation. + Allowed values for this property are: "DB_EXTERNAL_PROPERTIES", "DB_EXTERNAL_INSTANCE", "DB_OS_CONFIG_INSTANCE", "DB_PARAMETERS", "DB_CONNECTION_STATUS", "HOST_RESOURCE_ALLOCATION", "ASM_ENTITY", "EXADATA_CELL_CONFIG" + :type metric_name: str + + :param time_collected: + The value to assign to the time_collected property of this HostAllocation. + :type time_collected: datetime + + :param resource_name: + The value to assign to the resource_name property of this HostAllocation. + :type resource_name: str + + :param resource_value: + The value to assign to the resource_value property of this HostAllocation. + :type resource_value: int + + """ + self.swagger_types = { + 'metric_name': 'str', + 'time_collected': 'datetime', + 'resource_name': 'str', + 'resource_value': 'int' + } + + self.attribute_map = { + 'metric_name': 'metricName', + 'time_collected': 'timeCollected', + 'resource_name': 'resourceName', + 'resource_value': 'resourceValue' + } + + self._metric_name = None + self._time_collected = None + self._resource_name = None + self._resource_value = None + self._metric_name = 'HOST_RESOURCE_ALLOCATION' + + @property + def resource_name(self): + """ + Gets the resource_name of this HostAllocation. + Name of the host resource + + + :return: The resource_name of this HostAllocation. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this HostAllocation. + Name of the host resource + + + :param resource_name: The resource_name of this HostAllocation. + :type: str + """ + self._resource_name = resource_name + + @property + def resource_value(self): + """ + Gets the resource_value of this HostAllocation. + Value of the host resource + + + :return: The resource_value of this HostAllocation. + :rtype: int + """ + return self._resource_value + + @resource_value.setter + def resource_value(self, resource_value): + """ + Sets the resource_value of this HostAllocation. + Value of the host resource + + + :param resource_value: The resource_value of this HostAllocation. + :type: int + """ + self._resource_value = resource_value + + 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/host_configuration_summary.py b/src/oci/opsi/models/host_configuration_summary.py index 1659bf4fd..070482c54 100644 --- a/src/oci/opsi/models/host_configuration_summary.py +++ b/src/oci/opsi/models/host_configuration_summary.py @@ -31,6 +31,10 @@ class HostConfigurationSummary(object): #: This constant has a value of "PE_COMANAGED_HOST" ENTITY_SOURCE_PE_COMANAGED_HOST = "PE_COMANAGED_HOST" + #: A constant which can be used with the entity_source property of a HostConfigurationSummary. + #: This constant has a value of "MACS_MANAGED_CLOUD_DB_HOST" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DB_HOST = "MACS_MANAGED_CLOUD_DB_HOST" + #: A constant which can be used with the platform_type property of a HostConfigurationSummary. #: This constant has a value of "LINUX" PLATFORM_TYPE_LINUX = "LINUX" @@ -66,6 +70,7 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.MacsManagedExternalHostConfigurationSummary` * :class:`~oci.opsi.models.PeComanagedHostConfigurationSummary` + * :class:`~oci.opsi.models.MacsManagedCloudDbHostConfigurationSummary` * :class:`~oci.opsi.models.EmManagedExternalHostConfigurationSummary` * :class:`~oci.opsi.models.MacsManagedCloudHostConfigurationSummary` @@ -77,7 +82,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this HostConfigurationSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -237,6 +242,9 @@ def get_subtype(object_dictionary): if type == 'PE_COMANAGED_HOST': return 'PeComanagedHostConfigurationSummary' + if type == 'MACS_MANAGED_CLOUD_DB_HOST': + return 'MacsManagedCloudDbHostConfigurationSummary' + if type == 'EM_MANAGED_EXTERNAL_HOST': return 'EmManagedExternalHostConfigurationSummary' @@ -279,7 +287,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this HostConfigurationSummary. Source of the host entity. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -298,7 +306,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this HostConfigurationSummary. :type: str """ - allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST"] + allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST"] 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/host_containers.py b/src/oci/opsi/models/host_containers.py index e45075eb8..02fd2b1fc 100644 --- a/src/oci/opsi/models/host_containers.py +++ b/src/oci/opsi/models/host_containers.py @@ -125,7 +125,7 @@ def container_name(self, container_name): def container_image(self): """ Gets the container_image of this HostContainers. - Container Image (may include tag version) + Container Image :return: The container_image of this HostContainers. @@ -137,7 +137,7 @@ def container_image(self): def container_image(self, container_image): """ Sets the container_image of this HostContainers. - Container Image (may include tag version) + Container Image :param container_image: The container_image of this HostContainers. diff --git a/src/oci/opsi/models/host_insight.py b/src/oci/opsi/models/host_insight.py index bf457fb1d..48669c7b1 100644 --- a/src/oci/opsi/models/host_insight.py +++ b/src/oci/opsi/models/host_insight.py @@ -31,6 +31,10 @@ class HostInsight(object): #: This constant has a value of "PE_COMANAGED_HOST" ENTITY_SOURCE_PE_COMANAGED_HOST = "PE_COMANAGED_HOST" + #: A constant which can be used with the entity_source property of a HostInsight. + #: This constant has a value of "MACS_MANAGED_CLOUD_DB_HOST" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DB_HOST = "MACS_MANAGED_CLOUD_DB_HOST" + #: A constant which can be used with the status property of a HostInsight. #: This constant has a value of "DISABLED" STATUS_DISABLED = "DISABLED" @@ -78,6 +82,7 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.MacsManagedCloudHostInsight` * :class:`~oci.opsi.models.EmManagedExternalHostInsight` + * :class:`~oci.opsi.models.MacsManagedCloudDatabaseHostInsight` * :class:`~oci.opsi.models.PeComanagedHostInsight` * :class:`~oci.opsi.models.MacsManagedExternalHostInsight` @@ -85,7 +90,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this HostInsight. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -216,6 +221,9 @@ def get_subtype(object_dictionary): if type == 'EM_MANAGED_EXTERNAL_HOST': return 'EmManagedExternalHostInsight' + if type == 'MACS_MANAGED_CLOUD_DB_HOST': + return 'MacsManagedCloudDatabaseHostInsight' + if type == 'PE_COMANAGED_HOST': return 'PeComanagedHostInsight' @@ -230,7 +238,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this HostInsight. Source of the host entity. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -249,7 +257,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this HostInsight. :type: str """ - allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST"] + allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST"] 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/host_insight_summary.py b/src/oci/opsi/models/host_insight_summary.py index 2f6e1be22..d9cf5de2b 100644 --- a/src/oci/opsi/models/host_insight_summary.py +++ b/src/oci/opsi/models/host_insight_summary.py @@ -31,6 +31,10 @@ class HostInsightSummary(object): #: This constant has a value of "PE_COMANAGED_HOST" ENTITY_SOURCE_PE_COMANAGED_HOST = "PE_COMANAGED_HOST" + #: A constant which can be used with the entity_source property of a HostInsightSummary. + #: This constant has a value of "MACS_MANAGED_CLOUD_DB_HOST" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DB_HOST = "MACS_MANAGED_CLOUD_DB_HOST" + #: A constant which can be used with the status property of a HostInsightSummary. #: This constant has a value of "DISABLED" STATUS_DISABLED = "DISABLED" @@ -77,6 +81,7 @@ def __init__(self, **kwargs): to a service operations then you should favor using a subclass over the base class: * :class:`~oci.opsi.models.MacsManagedExternalHostInsightSummary` + * :class:`~oci.opsi.models.MacsManagedCloudDatabaseHostInsightSummary` * :class:`~oci.opsi.models.EmManagedExternalHostInsightSummary` * :class:`~oci.opsi.models.PeComanagedHostInsightSummary` * :class:`~oci.opsi.models.MacsManagedCloudHostInsightSummary` @@ -85,7 +90,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this HostInsightSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -220,6 +225,9 @@ def get_subtype(object_dictionary): if type == 'MACS_MANAGED_EXTERNAL_HOST': return 'MacsManagedExternalHostInsightSummary' + if type == 'MACS_MANAGED_CLOUD_DB_HOST': + return 'MacsManagedCloudDatabaseHostInsightSummary' + if type == 'EM_MANAGED_EXTERNAL_HOST': return 'EmManagedExternalHostInsightSummary' @@ -237,7 +245,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this HostInsightSummary. Source of the host entity. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -256,7 +264,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this HostInsightSummary. :type: str """ - allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST"] + allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST"] 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/macs_managed_cloud_database_configuration_summary.py b/src/oci/opsi/models/macs_managed_cloud_database_configuration_summary.py new file mode 100644 index 000000000..8d5d53146 --- /dev/null +++ b/src/oci/opsi/models/macs_managed_cloud_database_configuration_summary.py @@ -0,0 +1,253 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +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 MacsManagedCloudDatabaseConfigurationSummary(DatabaseConfigurationSummary): + """ + Configuration Summary of a Macs Managed Cloud database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MacsManagedCloudDatabaseConfigurationSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedCloudDatabaseConfigurationSummary.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_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 MacsManagedCloudDatabaseConfigurationSummary. + :type database_insight_id: str + + :param entity_source: + The value to assign to the entity_source property of this MacsManagedCloudDatabaseConfigurationSummary. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" + :type entity_source: str + + :param compartment_id: + The value to assign to the compartment_id property of this MacsManagedCloudDatabaseConfigurationSummary. + :type compartment_id: str + + :param database_name: + The value to assign to the database_name property of this MacsManagedCloudDatabaseConfigurationSummary. + :type database_name: str + + :param database_display_name: + The value to assign to the database_display_name property of this MacsManagedCloudDatabaseConfigurationSummary. + :type database_display_name: str + + :param database_type: + The value to assign to the database_type property of this MacsManagedCloudDatabaseConfigurationSummary. + :type database_type: str + + :param database_version: + The value to assign to the database_version property of this MacsManagedCloudDatabaseConfigurationSummary. + :type database_version: str + + :param cdb_name: + The value to assign to the cdb_name property of this MacsManagedCloudDatabaseConfigurationSummary. + :type cdb_name: str + + :param defined_tags: + The value to assign to the defined_tags property of this MacsManagedCloudDatabaseConfigurationSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param freeform_tags: + The value to assign to the freeform_tags property of this MacsManagedCloudDatabaseConfigurationSummary. + :type freeform_tags: dict(str, str) + + :param processor_count: + The value to assign to the processor_count property of this MacsManagedCloudDatabaseConfigurationSummary. + :type processor_count: int + + :param database_id: + The value to assign to the database_id property of this MacsManagedCloudDatabaseConfigurationSummary. + :type database_id: str + + :param management_agent_id: + The value to assign to the management_agent_id property of this MacsManagedCloudDatabaseConfigurationSummary. + :type management_agent_id: str + + :param parent_id: + The value to assign to the parent_id property of this MacsManagedCloudDatabaseConfigurationSummary. + :type parent_id: str + + :param exadata_details: + The value to assign to the exadata_details property of this MacsManagedCloudDatabaseConfigurationSummary. + :type exadata_details: oci.opsi.models.ExadataDetails + + """ + 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', + 'management_agent_id': 'str', + 'parent_id': 'str', + 'exadata_details': 'ExadataDetails' + } + + 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', + 'management_agent_id': 'managementAgentId', + 'parent_id': 'parentId', + 'exadata_details': 'exadataDetails' + } + + 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._management_agent_id = None + self._parent_id = None + self._exadata_details = None + self._entity_source = 'MACS_MANAGED_CLOUD_DATABASE' + + @property + def database_id(self): + """ + **[Required]** Gets the database_id of this MacsManagedCloudDatabaseConfigurationSummary. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The database_id of this MacsManagedCloudDatabaseConfigurationSummary. + :rtype: str + """ + return self._database_id + + @database_id.setter + def database_id(self, database_id): + """ + Sets the database_id of this MacsManagedCloudDatabaseConfigurationSummary. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param database_id: The database_id of this MacsManagedCloudDatabaseConfigurationSummary. + :type: str + """ + self._database_id = database_id + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this MacsManagedCloudDatabaseConfigurationSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this MacsManagedCloudDatabaseConfigurationSummary. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this MacsManagedCloudDatabaseConfigurationSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this MacsManagedCloudDatabaseConfigurationSummary. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def parent_id(self): + """ + **[Required]** Gets the parent_id of this MacsManagedCloudDatabaseConfigurationSummary. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The parent_id of this MacsManagedCloudDatabaseConfigurationSummary. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """ + Sets the parent_id of this MacsManagedCloudDatabaseConfigurationSummary. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param parent_id: The parent_id of this MacsManagedCloudDatabaseConfigurationSummary. + :type: str + """ + self._parent_id = parent_id + + @property + def exadata_details(self): + """ + **[Required]** Gets the exadata_details of this MacsManagedCloudDatabaseConfigurationSummary. + + :return: The exadata_details of this MacsManagedCloudDatabaseConfigurationSummary. + :rtype: oci.opsi.models.ExadataDetails + """ + return self._exadata_details + + @exadata_details.setter + def exadata_details(self, exadata_details): + """ + Sets the exadata_details of this MacsManagedCloudDatabaseConfigurationSummary. + + :param exadata_details: The exadata_details of this MacsManagedCloudDatabaseConfigurationSummary. + :type: oci.opsi.models.ExadataDetails + """ + self._exadata_details = exadata_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/macs_managed_cloud_database_host_insight.py b/src/oci/opsi/models/macs_managed_cloud_database_host_insight.py new file mode 100644 index 000000000..bcd2bbd7a --- /dev/null +++ b/src/oci/opsi/models/macs_managed_cloud_database_host_insight.py @@ -0,0 +1,394 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .host_insight import HostInsight +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 MacsManagedCloudDatabaseHostInsight(HostInsight): + """ + Cloud MACS-managed database host insight resource. + """ + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsight. + #: This constant has a value of "LINUX" + PLATFORM_TYPE_LINUX = "LINUX" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsight. + #: This constant has a value of "SOLARIS" + PLATFORM_TYPE_SOLARIS = "SOLARIS" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsight. + #: This constant has a value of "SUNOS" + PLATFORM_TYPE_SUNOS = "SUNOS" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsight. + #: This constant has a value of "ZLINUX" + PLATFORM_TYPE_ZLINUX = "ZLINUX" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsight. + #: This constant has a value of "WINDOWS" + PLATFORM_TYPE_WINDOWS = "WINDOWS" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsight. + #: This constant has a value of "AIX" + PLATFORM_TYPE_AIX = "AIX" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsight. + #: This constant has a value of "HP_UX" + PLATFORM_TYPE_HP_UX = "HP_UX" + + def __init__(self, **kwargs): + """ + Initializes a new MacsManagedCloudDatabaseHostInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedCloudDatabaseHostInsight.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_DB_HOST`` 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 MacsManagedCloudDatabaseHostInsight. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type entity_source: str + + :param id: + The value to assign to the id property of this MacsManagedCloudDatabaseHostInsight. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this MacsManagedCloudDatabaseHostInsight. + :type compartment_id: str + + :param host_name: + The value to assign to the host_name property of this MacsManagedCloudDatabaseHostInsight. + :type host_name: str + + :param host_display_name: + The value to assign to the host_display_name property of this MacsManagedCloudDatabaseHostInsight. + :type host_display_name: str + + :param host_type: + The value to assign to the host_type property of this MacsManagedCloudDatabaseHostInsight. + :type host_type: str + + :param processor_count: + The value to assign to the processor_count property of this MacsManagedCloudDatabaseHostInsight. + :type processor_count: int + + :param freeform_tags: + The value to assign to the freeform_tags property of this MacsManagedCloudDatabaseHostInsight. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MacsManagedCloudDatabaseHostInsight. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this MacsManagedCloudDatabaseHostInsight. + :type system_tags: dict(str, dict(str, object)) + + :param status: + The value to assign to the status property of this MacsManagedCloudDatabaseHostInsight. + Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + :param time_created: + The value to assign to the time_created property of this MacsManagedCloudDatabaseHostInsight. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this MacsManagedCloudDatabaseHostInsight. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MacsManagedCloudDatabaseHostInsight. + 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 MacsManagedCloudDatabaseHostInsight. + :type lifecycle_details: str + + :param management_agent_id: + The value to assign to the management_agent_id property of this MacsManagedCloudDatabaseHostInsight. + :type management_agent_id: str + + :param platform_name: + The value to assign to the platform_name property of this MacsManagedCloudDatabaseHostInsight. + :type platform_name: str + + :param platform_type: + The value to assign to the platform_type property of this MacsManagedCloudDatabaseHostInsight. + Allowed values for this property are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type platform_type: str + + :param platform_version: + The value to assign to the platform_version property of this MacsManagedCloudDatabaseHostInsight. + :type platform_version: str + + :param parent_id: + The value to assign to the parent_id property of this MacsManagedCloudDatabaseHostInsight. + :type parent_id: str + + :param root_id: + The value to assign to the root_id property of this MacsManagedCloudDatabaseHostInsight. + :type root_id: str + + """ + self.swagger_types = { + 'entity_source': 'str', + 'id': 'str', + 'compartment_id': 'str', + 'host_name': 'str', + 'host_display_name': 'str', + 'host_type': 'str', + 'processor_count': 'int', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))', + 'status': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'management_agent_id': 'str', + 'platform_name': 'str', + 'platform_type': 'str', + 'platform_version': 'str', + 'parent_id': 'str', + 'root_id': 'str' + } + + self.attribute_map = { + 'entity_source': 'entitySource', + 'id': 'id', + 'compartment_id': 'compartmentId', + 'host_name': 'hostName', + 'host_display_name': 'hostDisplayName', + 'host_type': 'hostType', + 'processor_count': 'processorCount', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags', + 'status': 'status', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'management_agent_id': 'managementAgentId', + 'platform_name': 'platformName', + 'platform_type': 'platformType', + 'platform_version': 'platformVersion', + 'parent_id': 'parentId', + 'root_id': 'rootId' + } + + self._entity_source = None + self._id = None + self._compartment_id = None + self._host_name = None + self._host_display_name = None + self._host_type = None + self._processor_count = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + self._status = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._management_agent_id = None + self._platform_name = None + self._platform_type = None + self._platform_version = None + self._parent_id = None + self._root_id = None + self._entity_source = 'MACS_MANAGED_CLOUD_DB_HOST' + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this MacsManagedCloudDatabaseHostInsight. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this MacsManagedCloudDatabaseHostInsight. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this MacsManagedCloudDatabaseHostInsight. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this MacsManagedCloudDatabaseHostInsight. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def platform_name(self): + """ + Gets the platform_name of this MacsManagedCloudDatabaseHostInsight. + Platform name. + + + :return: The platform_name of this MacsManagedCloudDatabaseHostInsight. + :rtype: str + """ + return self._platform_name + + @platform_name.setter + def platform_name(self, platform_name): + """ + Sets the platform_name of this MacsManagedCloudDatabaseHostInsight. + Platform name. + + + :param platform_name: The platform_name of this MacsManagedCloudDatabaseHostInsight. + :type: str + """ + self._platform_name = platform_name + + @property + def platform_type(self): + """ + Gets the platform_type of this MacsManagedCloudDatabaseHostInsight. + Platform type. + Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. + Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. + Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. + + Allowed values for this property are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The platform_type of this MacsManagedCloudDatabaseHostInsight. + :rtype: str + """ + return self._platform_type + + @platform_type.setter + def platform_type(self, platform_type): + """ + Sets the platform_type of this MacsManagedCloudDatabaseHostInsight. + Platform type. + Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. + Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. + Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. + + + :param platform_type: The platform_type of this MacsManagedCloudDatabaseHostInsight. + :type: str + """ + allowed_values = ["LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX"] + if not value_allowed_none_or_none_sentinel(platform_type, allowed_values): + platform_type = 'UNKNOWN_ENUM_VALUE' + self._platform_type = platform_type + + @property + def platform_version(self): + """ + Gets the platform_version of this MacsManagedCloudDatabaseHostInsight. + Platform version. + + + :return: The platform_version of this MacsManagedCloudDatabaseHostInsight. + :rtype: str + """ + return self._platform_version + + @platform_version.setter + def platform_version(self, platform_version): + """ + Sets the platform_version of this MacsManagedCloudDatabaseHostInsight. + Platform version. + + + :param platform_version: The platform_version of this MacsManagedCloudDatabaseHostInsight. + :type: str + """ + self._platform_version = platform_version + + @property + def parent_id(self): + """ + Gets the parent_id of this MacsManagedCloudDatabaseHostInsight. + The `OCID`__ of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The parent_id of this MacsManagedCloudDatabaseHostInsight. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """ + Sets the parent_id of this MacsManagedCloudDatabaseHostInsight. + The `OCID`__ of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param parent_id: The parent_id of this MacsManagedCloudDatabaseHostInsight. + :type: str + """ + self._parent_id = parent_id + + @property + def root_id(self): + """ + Gets the root_id of this MacsManagedCloudDatabaseHostInsight. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The root_id of this MacsManagedCloudDatabaseHostInsight. + :rtype: str + """ + return self._root_id + + @root_id.setter + def root_id(self, root_id): + """ + Sets the root_id of this MacsManagedCloudDatabaseHostInsight. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param root_id: The root_id of this MacsManagedCloudDatabaseHostInsight. + :type: str + """ + self._root_id = root_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/macs_managed_cloud_database_host_insight_summary.py b/src/oci/opsi/models/macs_managed_cloud_database_host_insight_summary.py new file mode 100644 index 000000000..e1f25d943 --- /dev/null +++ b/src/oci/opsi/models/macs_managed_cloud_database_host_insight_summary.py @@ -0,0 +1,339 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .host_insight_summary import HostInsightSummary +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 MacsManagedCloudDatabaseHostInsightSummary(HostInsightSummary): + """ + Summary of a Cloud MACS-managed database host insight resource. + """ + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsightSummary. + #: This constant has a value of "LINUX" + PLATFORM_TYPE_LINUX = "LINUX" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsightSummary. + #: This constant has a value of "SOLARIS" + PLATFORM_TYPE_SOLARIS = "SOLARIS" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsightSummary. + #: This constant has a value of "SUNOS" + PLATFORM_TYPE_SUNOS = "SUNOS" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsightSummary. + #: This constant has a value of "ZLINUX" + PLATFORM_TYPE_ZLINUX = "ZLINUX" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsightSummary. + #: This constant has a value of "WINDOWS" + PLATFORM_TYPE_WINDOWS = "WINDOWS" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsightSummary. + #: This constant has a value of "AIX" + PLATFORM_TYPE_AIX = "AIX" + + #: A constant which can be used with the platform_type property of a MacsManagedCloudDatabaseHostInsightSummary. + #: This constant has a value of "HP_UX" + PLATFORM_TYPE_HP_UX = "HP_UX" + + def __init__(self, **kwargs): + """ + Initializes a new MacsManagedCloudDatabaseHostInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedCloudDatabaseHostInsightSummary.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_DB_HOST`` 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 MacsManagedCloudDatabaseHostInsightSummary. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type entity_source: str + + :param id: + The value to assign to the id property of this MacsManagedCloudDatabaseHostInsightSummary. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this MacsManagedCloudDatabaseHostInsightSummary. + :type compartment_id: str + + :param host_name: + The value to assign to the host_name property of this MacsManagedCloudDatabaseHostInsightSummary. + :type host_name: str + + :param host_display_name: + The value to assign to the host_display_name property of this MacsManagedCloudDatabaseHostInsightSummary. + :type host_display_name: str + + :param host_type: + The value to assign to the host_type property of this MacsManagedCloudDatabaseHostInsightSummary. + :type host_type: str + + :param processor_count: + The value to assign to the processor_count property of this MacsManagedCloudDatabaseHostInsightSummary. + :type processor_count: int + + :param freeform_tags: + The value to assign to the freeform_tags property of this MacsManagedCloudDatabaseHostInsightSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MacsManagedCloudDatabaseHostInsightSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this MacsManagedCloudDatabaseHostInsightSummary. + :type system_tags: dict(str, dict(str, object)) + + :param opsi_private_endpoint_id: + The value to assign to the opsi_private_endpoint_id property of this MacsManagedCloudDatabaseHostInsightSummary. + :type opsi_private_endpoint_id: str + + :param status: + The value to assign to the status property of this MacsManagedCloudDatabaseHostInsightSummary. + Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + :param time_created: + The value to assign to the time_created property of this MacsManagedCloudDatabaseHostInsightSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this MacsManagedCloudDatabaseHostInsightSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MacsManagedCloudDatabaseHostInsightSummary. + 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 MacsManagedCloudDatabaseHostInsightSummary. + :type lifecycle_details: str + + :param management_agent_id: + The value to assign to the management_agent_id property of this MacsManagedCloudDatabaseHostInsightSummary. + :type management_agent_id: str + + :param parent_id: + The value to assign to the parent_id property of this MacsManagedCloudDatabaseHostInsightSummary. + :type parent_id: str + + :param root_id: + The value to assign to the root_id property of this MacsManagedCloudDatabaseHostInsightSummary. + :type root_id: str + + :param platform_type: + The value to assign to the platform_type property of this MacsManagedCloudDatabaseHostInsightSummary. + Allowed values for this property are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type platform_type: str + + """ + self.swagger_types = { + 'entity_source': 'str', + 'id': 'str', + 'compartment_id': 'str', + 'host_name': 'str', + 'host_display_name': 'str', + 'host_type': 'str', + 'processor_count': 'int', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))', + 'opsi_private_endpoint_id': 'str', + 'status': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'management_agent_id': 'str', + 'parent_id': 'str', + 'root_id': 'str', + 'platform_type': 'str' + } + + self.attribute_map = { + 'entity_source': 'entitySource', + 'id': 'id', + 'compartment_id': 'compartmentId', + 'host_name': 'hostName', + 'host_display_name': 'hostDisplayName', + 'host_type': 'hostType', + 'processor_count': 'processorCount', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags', + 'opsi_private_endpoint_id': 'opsiPrivateEndpointId', + 'status': 'status', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'management_agent_id': 'managementAgentId', + 'parent_id': 'parentId', + 'root_id': 'rootId', + 'platform_type': 'platformType' + } + + self._entity_source = None + self._id = None + self._compartment_id = None + self._host_name = None + self._host_display_name = None + self._host_type = None + self._processor_count = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + self._opsi_private_endpoint_id = None + self._status = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._management_agent_id = None + self._parent_id = None + self._root_id = None + self._platform_type = None + self._entity_source = 'MACS_MANAGED_CLOUD_DB_HOST' + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this MacsManagedCloudDatabaseHostInsightSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this MacsManagedCloudDatabaseHostInsightSummary. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this MacsManagedCloudDatabaseHostInsightSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this MacsManagedCloudDatabaseHostInsightSummary. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def parent_id(self): + """ + Gets the parent_id of this MacsManagedCloudDatabaseHostInsightSummary. + The `OCID`__ of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The parent_id of this MacsManagedCloudDatabaseHostInsightSummary. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """ + Sets the parent_id of this MacsManagedCloudDatabaseHostInsightSummary. + The `OCID`__ of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param parent_id: The parent_id of this MacsManagedCloudDatabaseHostInsightSummary. + :type: str + """ + self._parent_id = parent_id + + @property + def root_id(self): + """ + Gets the root_id of this MacsManagedCloudDatabaseHostInsightSummary. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The root_id of this MacsManagedCloudDatabaseHostInsightSummary. + :rtype: str + """ + return self._root_id + + @root_id.setter + def root_id(self, root_id): + """ + Sets the root_id of this MacsManagedCloudDatabaseHostInsightSummary. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param root_id: The root_id of this MacsManagedCloudDatabaseHostInsightSummary. + :type: str + """ + self._root_id = root_id + + @property + def platform_type(self): + """ + Gets the platform_type of this MacsManagedCloudDatabaseHostInsightSummary. + Platform type. + Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. + Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. + Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. + + Allowed values for this property are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The platform_type of this MacsManagedCloudDatabaseHostInsightSummary. + :rtype: str + """ + return self._platform_type + + @platform_type.setter + def platform_type(self, platform_type): + """ + Sets the platform_type of this MacsManagedCloudDatabaseHostInsightSummary. + Platform type. + Supported platformType(s) for MACS-managed external host insight: [LINUX, SOLARIS, WINDOWS]. + Supported platformType(s) for MACS-managed cloud host insight: [LINUX]. + Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS, ZLINUX, WINDOWS, AIX, HP-UX]. + + + :param platform_type: The platform_type of this MacsManagedCloudDatabaseHostInsightSummary. + :type: str + """ + allowed_values = ["LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX"] + if not value_allowed_none_or_none_sentinel(platform_type, allowed_values): + platform_type = 'UNKNOWN_ENUM_VALUE' + self._platform_type = platform_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/macs_managed_cloud_database_insight.py b/src/oci/opsi/models/macs_managed_cloud_database_insight.py new file mode 100644 index 000000000..7e68d2deb --- /dev/null +++ b/src/oci/opsi/models/macs_managed_cloud_database_insight.py @@ -0,0 +1,469 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +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 MacsManagedCloudDatabaseInsight(DatabaseInsight): + """ + Database insight resource. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MacsManagedCloudDatabaseInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedCloudDatabaseInsight.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_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 MacsManagedCloudDatabaseInsight. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" + :type entity_source: str + + :param id: + The value to assign to the id property of this MacsManagedCloudDatabaseInsight. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this MacsManagedCloudDatabaseInsight. + :type compartment_id: str + + :param status: + The value to assign to the status property of this MacsManagedCloudDatabaseInsight. + 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 MacsManagedCloudDatabaseInsight. + :type database_type: str + + :param database_version: + The value to assign to the database_version property of this MacsManagedCloudDatabaseInsight. + :type database_version: str + + :param processor_count: + The value to assign to the processor_count property of this MacsManagedCloudDatabaseInsight. + :type processor_count: int + + :param freeform_tags: + The value to assign to the freeform_tags property of this MacsManagedCloudDatabaseInsight. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MacsManagedCloudDatabaseInsight. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this MacsManagedCloudDatabaseInsight. + :type system_tags: dict(str, dict(str, object)) + + :param time_created: + The value to assign to the time_created property of this MacsManagedCloudDatabaseInsight. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this MacsManagedCloudDatabaseInsight. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MacsManagedCloudDatabaseInsight. + 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 MacsManagedCloudDatabaseInsight. + :type lifecycle_details: str + + :param database_connection_status_details: + The value to assign to the database_connection_status_details property of this MacsManagedCloudDatabaseInsight. + :type database_connection_status_details: str + + :param management_agent_id: + The value to assign to the management_agent_id property of this MacsManagedCloudDatabaseInsight. + :type management_agent_id: str + + :param connection_details: + The value to assign to the connection_details property of this MacsManagedCloudDatabaseInsight. + :type connection_details: oci.opsi.models.ConnectionDetails + + :param connection_credential_details: + The value to assign to the connection_credential_details property of this MacsManagedCloudDatabaseInsight. + :type connection_credential_details: oci.opsi.models.CredentialDetails + + :param database_id: + The value to assign to the database_id property of this MacsManagedCloudDatabaseInsight. + :type database_id: str + + :param database_name: + The value to assign to the database_name property of this MacsManagedCloudDatabaseInsight. + :type database_name: str + + :param database_display_name: + The value to assign to the database_display_name property of this MacsManagedCloudDatabaseInsight. + :type database_display_name: str + + :param database_resource_type: + The value to assign to the database_resource_type property of this MacsManagedCloudDatabaseInsight. + :type database_resource_type: str + + :param db_additional_details: + The value to assign to the db_additional_details property of this MacsManagedCloudDatabaseInsight. + :type db_additional_details: object + + :param parent_id: + The value to assign to the parent_id property of this MacsManagedCloudDatabaseInsight. + :type parent_id: str + + :param root_id: + The value to assign to the root_id property of this MacsManagedCloudDatabaseInsight. + :type root_id: 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', + 'management_agent_id': 'str', + 'connection_details': 'ConnectionDetails', + 'connection_credential_details': 'CredentialDetails', + 'database_id': 'str', + 'database_name': 'str', + 'database_display_name': 'str', + 'database_resource_type': 'str', + 'db_additional_details': 'object', + 'parent_id': 'str', + 'root_id': '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', + 'management_agent_id': 'managementAgentId', + 'connection_details': 'connectionDetails', + 'connection_credential_details': 'connectionCredentialDetails', + 'database_id': 'databaseId', + 'database_name': 'databaseName', + 'database_display_name': 'databaseDisplayName', + 'database_resource_type': 'databaseResourceType', + 'db_additional_details': 'dbAdditionalDetails', + 'parent_id': 'parentId', + 'root_id': 'rootId' + } + + 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._management_agent_id = None + self._connection_details = None + self._connection_credential_details = None + self._database_id = None + self._database_name = None + self._database_display_name = None + self._database_resource_type = None + self._db_additional_details = None + self._parent_id = None + self._root_id = None + self._entity_source = 'MACS_MANAGED_CLOUD_DATABASE' + + @property + def management_agent_id(self): + """ + Gets the management_agent_id of this MacsManagedCloudDatabaseInsight. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this MacsManagedCloudDatabaseInsight. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this MacsManagedCloudDatabaseInsight. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this MacsManagedCloudDatabaseInsight. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def connection_details(self): + """ + Gets the connection_details of this MacsManagedCloudDatabaseInsight. + + :return: The connection_details of this MacsManagedCloudDatabaseInsight. + :rtype: oci.opsi.models.ConnectionDetails + """ + return self._connection_details + + @connection_details.setter + def connection_details(self, connection_details): + """ + Sets the connection_details of this MacsManagedCloudDatabaseInsight. + + :param connection_details: The connection_details of this MacsManagedCloudDatabaseInsight. + :type: oci.opsi.models.ConnectionDetails + """ + self._connection_details = connection_details + + @property + def connection_credential_details(self): + """ + Gets the connection_credential_details of this MacsManagedCloudDatabaseInsight. + + :return: The connection_credential_details of this MacsManagedCloudDatabaseInsight. + :rtype: oci.opsi.models.CredentialDetails + """ + return self._connection_credential_details + + @connection_credential_details.setter + def connection_credential_details(self, connection_credential_details): + """ + Sets the connection_credential_details of this MacsManagedCloudDatabaseInsight. + + :param connection_credential_details: The connection_credential_details of this MacsManagedCloudDatabaseInsight. + :type: oci.opsi.models.CredentialDetails + """ + self._connection_credential_details = connection_credential_details + + @property + def database_id(self): + """ + **[Required]** Gets the database_id of this MacsManagedCloudDatabaseInsight. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The database_id of this MacsManagedCloudDatabaseInsight. + :rtype: str + """ + return self._database_id + + @database_id.setter + def database_id(self, database_id): + """ + Sets the database_id of this MacsManagedCloudDatabaseInsight. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param database_id: The database_id of this MacsManagedCloudDatabaseInsight. + :type: str + """ + self._database_id = database_id + + @property + def database_name(self): + """ + **[Required]** Gets the database_name of this MacsManagedCloudDatabaseInsight. + Name of database + + + :return: The database_name of this MacsManagedCloudDatabaseInsight. + :rtype: str + """ + return self._database_name + + @database_name.setter + def database_name(self, database_name): + """ + Sets the database_name of this MacsManagedCloudDatabaseInsight. + Name of database + + + :param database_name: The database_name of this MacsManagedCloudDatabaseInsight. + :type: str + """ + self._database_name = database_name + + @property + def database_display_name(self): + """ + Gets the database_display_name of this MacsManagedCloudDatabaseInsight. + Display name of database + + + :return: The database_display_name of this MacsManagedCloudDatabaseInsight. + :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 MacsManagedCloudDatabaseInsight. + Display name of database + + + :param database_display_name: The database_display_name of this MacsManagedCloudDatabaseInsight. + :type: str + """ + self._database_display_name = database_display_name + + @property + def database_resource_type(self): + """ + **[Required]** Gets the database_resource_type of this MacsManagedCloudDatabaseInsight. + OCI database resource type + + + :return: The database_resource_type of this MacsManagedCloudDatabaseInsight. + :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 MacsManagedCloudDatabaseInsight. + OCI database resource type + + + :param database_resource_type: The database_resource_type of this MacsManagedCloudDatabaseInsight. + :type: str + """ + self._database_resource_type = database_resource_type + + @property + def db_additional_details(self): + """ + Gets the db_additional_details of this MacsManagedCloudDatabaseInsight. + Additional details of a database in JSON format. For autonomous databases, this is the AutonomousDatabase object serialized as a JSON string as defined in https://docs.cloud.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/. For EM, pass in null or an empty string. Note that this string needs to be escaped when specified in the curl command. + + + :return: The db_additional_details of this MacsManagedCloudDatabaseInsight. + :rtype: object + """ + return self._db_additional_details + + @db_additional_details.setter + def db_additional_details(self, db_additional_details): + """ + Sets the db_additional_details of this MacsManagedCloudDatabaseInsight. + Additional details of a database in JSON format. For autonomous databases, this is the AutonomousDatabase object serialized as a JSON string as defined in https://docs.cloud.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/. For EM, pass in null or an empty string. Note that this string needs to be escaped when specified in the curl command. + + + :param db_additional_details: The db_additional_details of this MacsManagedCloudDatabaseInsight. + :type: object + """ + self._db_additional_details = db_additional_details + + @property + def parent_id(self): + """ + Gets the parent_id of this MacsManagedCloudDatabaseInsight. + The `OCID`__ of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The parent_id of this MacsManagedCloudDatabaseInsight. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """ + Sets the parent_id of this MacsManagedCloudDatabaseInsight. + The `OCID`__ of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param parent_id: The parent_id of this MacsManagedCloudDatabaseInsight. + :type: str + """ + self._parent_id = parent_id + + @property + def root_id(self): + """ + Gets the root_id of this MacsManagedCloudDatabaseInsight. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The root_id of this MacsManagedCloudDatabaseInsight. + :rtype: str + """ + return self._root_id + + @root_id.setter + def root_id(self, root_id): + """ + Sets the root_id of this MacsManagedCloudDatabaseInsight. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param root_id: The root_id of this MacsManagedCloudDatabaseInsight. + :type: str + """ + self._root_id = root_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/macs_managed_cloud_database_insight_summary.py b/src/oci/opsi/models/macs_managed_cloud_database_insight_summary.py new file mode 100644 index 000000000..2db3b316e --- /dev/null +++ b/src/oci/opsi/models/macs_managed_cloud_database_insight_summary.py @@ -0,0 +1,315 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +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 MacsManagedCloudDatabaseInsightSummary(DatabaseInsightSummary): + """ + Summary of a database insight resource. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MacsManagedCloudDatabaseInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedCloudDatabaseInsightSummary.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_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 MacsManagedCloudDatabaseInsightSummary. + :type id: str + + :param database_id: + The value to assign to the database_id property of this MacsManagedCloudDatabaseInsightSummary. + :type database_id: str + + :param compartment_id: + The value to assign to the compartment_id property of this MacsManagedCloudDatabaseInsightSummary. + :type compartment_id: str + + :param database_name: + The value to assign to the database_name property of this MacsManagedCloudDatabaseInsightSummary. + :type database_name: str + + :param database_display_name: + The value to assign to the database_display_name property of this MacsManagedCloudDatabaseInsightSummary. + :type database_display_name: str + + :param database_type: + The value to assign to the database_type property of this MacsManagedCloudDatabaseInsightSummary. + :type database_type: str + + :param database_version: + The value to assign to the database_version property of this MacsManagedCloudDatabaseInsightSummary. + :type database_version: str + + :param database_host_names: + The value to assign to the database_host_names property of this MacsManagedCloudDatabaseInsightSummary. + :type database_host_names: list[str] + + :param freeform_tags: + The value to assign to the freeform_tags property of this MacsManagedCloudDatabaseInsightSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MacsManagedCloudDatabaseInsightSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this MacsManagedCloudDatabaseInsightSummary. + :type system_tags: dict(str, dict(str, object)) + + :param entity_source: + The value to assign to the entity_source property of this MacsManagedCloudDatabaseInsightSummary. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" + :type entity_source: str + + :param processor_count: + The value to assign to the processor_count property of this MacsManagedCloudDatabaseInsightSummary. + :type processor_count: int + + :param status: + The value to assign to the status property of this MacsManagedCloudDatabaseInsightSummary. + 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 MacsManagedCloudDatabaseInsightSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this MacsManagedCloudDatabaseInsightSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MacsManagedCloudDatabaseInsightSummary. + 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 MacsManagedCloudDatabaseInsightSummary. + :type lifecycle_details: str + + :param database_connection_status_details: + The value to assign to the database_connection_status_details property of this MacsManagedCloudDatabaseInsightSummary. + :type database_connection_status_details: str + + :param database_resource_type: + The value to assign to the database_resource_type property of this MacsManagedCloudDatabaseInsightSummary. + :type database_resource_type: str + + :param management_agent_id: + The value to assign to the management_agent_id property of this MacsManagedCloudDatabaseInsightSummary. + :type management_agent_id: str + + :param parent_id: + The value to assign to the parent_id property of this MacsManagedCloudDatabaseInsightSummary. + :type parent_id: str + + :param root_id: + The value to assign to the root_id property of this MacsManagedCloudDatabaseInsightSummary. + :type root_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', + 'management_agent_id': 'str', + 'parent_id': 'str', + 'root_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', + 'management_agent_id': 'managementAgentId', + 'parent_id': 'parentId', + 'root_id': 'rootId' + } + + 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._management_agent_id = None + self._parent_id = None + self._root_id = None + self._entity_source = 'MACS_MANAGED_CLOUD_DATABASE' + + @property + def database_resource_type(self): + """ + Gets the database_resource_type of this MacsManagedCloudDatabaseInsightSummary. + OCI database resource type + + + :return: The database_resource_type of this MacsManagedCloudDatabaseInsightSummary. + :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 MacsManagedCloudDatabaseInsightSummary. + OCI database resource type + + + :param database_resource_type: The database_resource_type of this MacsManagedCloudDatabaseInsightSummary. + :type: str + """ + self._database_resource_type = database_resource_type + + @property + def management_agent_id(self): + """ + Gets the management_agent_id of this MacsManagedCloudDatabaseInsightSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this MacsManagedCloudDatabaseInsightSummary. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this MacsManagedCloudDatabaseInsightSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this MacsManagedCloudDatabaseInsightSummary. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def parent_id(self): + """ + Gets the parent_id of this MacsManagedCloudDatabaseInsightSummary. + The `OCID`__ of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The parent_id of this MacsManagedCloudDatabaseInsightSummary. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """ + Sets the parent_id of this MacsManagedCloudDatabaseInsightSummary. + The `OCID`__ of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param parent_id: The parent_id of this MacsManagedCloudDatabaseInsightSummary. + :type: str + """ + self._parent_id = parent_id + + @property + def root_id(self): + """ + Gets the root_id of this MacsManagedCloudDatabaseInsightSummary. + The `OCID`__ of the root resource for a composite target. e.g. for ExaCS members the rootId will be the OCID of the Exadata Infrastructure resource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The root_id of this MacsManagedCloudDatabaseInsightSummary. + :rtype: str + """ + return self._root_id + + @root_id.setter + def root_id(self, root_id): + """ + Sets the root_id of this MacsManagedCloudDatabaseInsightSummary. + The `OCID`__ of the root resource for a composite target. e.g. for ExaCS members the rootId will be the OCID of the Exadata Infrastructure resource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param root_id: The root_id of this MacsManagedCloudDatabaseInsightSummary. + :type: str + """ + self._root_id = root_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/macs_managed_cloud_db_host_configuration_summary.py b/src/oci/opsi/models/macs_managed_cloud_db_host_configuration_summary.py new file mode 100644 index 000000000..ff099df65 --- /dev/null +++ b/src/oci/opsi/models/macs_managed_cloud_db_host_configuration_summary.py @@ -0,0 +1,282 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .host_configuration_summary import HostConfigurationSummary +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 MacsManagedCloudDbHostConfigurationSummary(HostConfigurationSummary): + """ + Configuration Summary of Cloud MACS-managed database host insight resource. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MacsManagedCloudDbHostConfigurationSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedCloudDbHostConfigurationSummary.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_DB_HOST`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param host_insight_id: + The value to assign to the host_insight_id property of this MacsManagedCloudDbHostConfigurationSummary. + :type host_insight_id: str + + :param entity_source: + The value to assign to the entity_source property of this MacsManagedCloudDbHostConfigurationSummary. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" + :type entity_source: str + + :param compartment_id: + The value to assign to the compartment_id property of this MacsManagedCloudDbHostConfigurationSummary. + :type compartment_id: str + + :param host_name: + The value to assign to the host_name property of this MacsManagedCloudDbHostConfigurationSummary. + :type host_name: str + + :param platform_type: + The value to assign to the platform_type property of this MacsManagedCloudDbHostConfigurationSummary. + Allowed values for this property are: "LINUX", "SOLARIS", "SUNOS", "ZLINUX", "WINDOWS", "AIX", "HP_UX" + :type platform_type: str + + :param platform_version: + The value to assign to the platform_version property of this MacsManagedCloudDbHostConfigurationSummary. + :type platform_version: str + + :param platform_vendor: + The value to assign to the platform_vendor property of this MacsManagedCloudDbHostConfigurationSummary. + :type platform_vendor: str + + :param total_cpus: + The value to assign to the total_cpus property of this MacsManagedCloudDbHostConfigurationSummary. + :type total_cpus: int + + :param total_memory_in_gbs: + The value to assign to the total_memory_in_gbs property of this MacsManagedCloudDbHostConfigurationSummary. + :type total_memory_in_gbs: float + + :param cpu_architecture: + The value to assign to the cpu_architecture property of this MacsManagedCloudDbHostConfigurationSummary. + :type cpu_architecture: str + + :param cpu_cache_in_mbs: + The value to assign to the cpu_cache_in_mbs property of this MacsManagedCloudDbHostConfigurationSummary. + :type cpu_cache_in_mbs: float + + :param cpu_vendor: + The value to assign to the cpu_vendor property of this MacsManagedCloudDbHostConfigurationSummary. + :type cpu_vendor: str + + :param cpu_frequency_in_mhz: + The value to assign to the cpu_frequency_in_mhz property of this MacsManagedCloudDbHostConfigurationSummary. + :type cpu_frequency_in_mhz: float + + :param cpu_implementation: + The value to assign to the cpu_implementation property of this MacsManagedCloudDbHostConfigurationSummary. + :type cpu_implementation: str + + :param cores_per_socket: + The value to assign to the cores_per_socket property of this MacsManagedCloudDbHostConfigurationSummary. + :type cores_per_socket: int + + :param total_sockets: + The value to assign to the total_sockets property of this MacsManagedCloudDbHostConfigurationSummary. + :type total_sockets: int + + :param threads_per_socket: + The value to assign to the threads_per_socket property of this MacsManagedCloudDbHostConfigurationSummary. + :type threads_per_socket: int + + :param is_hyper_threading_enabled: + The value to assign to the is_hyper_threading_enabled property of this MacsManagedCloudDbHostConfigurationSummary. + :type is_hyper_threading_enabled: bool + + :param defined_tags: + The value to assign to the defined_tags property of this MacsManagedCloudDbHostConfigurationSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param freeform_tags: + The value to assign to the freeform_tags property of this MacsManagedCloudDbHostConfigurationSummary. + :type freeform_tags: dict(str, str) + + :param management_agent_id: + The value to assign to the management_agent_id property of this MacsManagedCloudDbHostConfigurationSummary. + :type management_agent_id: str + + :param parent_id: + The value to assign to the parent_id property of this MacsManagedCloudDbHostConfigurationSummary. + :type parent_id: str + + :param exadata_details: + The value to assign to the exadata_details property of this MacsManagedCloudDbHostConfigurationSummary. + :type exadata_details: oci.opsi.models.ExadataDetails + + """ + self.swagger_types = { + 'host_insight_id': 'str', + 'entity_source': 'str', + 'compartment_id': 'str', + 'host_name': 'str', + 'platform_type': 'str', + 'platform_version': 'str', + 'platform_vendor': 'str', + 'total_cpus': 'int', + 'total_memory_in_gbs': 'float', + 'cpu_architecture': 'str', + 'cpu_cache_in_mbs': 'float', + 'cpu_vendor': 'str', + 'cpu_frequency_in_mhz': 'float', + 'cpu_implementation': 'str', + 'cores_per_socket': 'int', + 'total_sockets': 'int', + 'threads_per_socket': 'int', + 'is_hyper_threading_enabled': 'bool', + 'defined_tags': 'dict(str, dict(str, object))', + 'freeform_tags': 'dict(str, str)', + 'management_agent_id': 'str', + 'parent_id': 'str', + 'exadata_details': 'ExadataDetails' + } + + self.attribute_map = { + 'host_insight_id': 'hostInsightId', + 'entity_source': 'entitySource', + 'compartment_id': 'compartmentId', + 'host_name': 'hostName', + 'platform_type': 'platformType', + 'platform_version': 'platformVersion', + 'platform_vendor': 'platformVendor', + 'total_cpus': 'totalCpus', + 'total_memory_in_gbs': 'totalMemoryInGBs', + 'cpu_architecture': 'cpuArchitecture', + 'cpu_cache_in_mbs': 'cpuCacheInMBs', + 'cpu_vendor': 'cpuVendor', + 'cpu_frequency_in_mhz': 'cpuFrequencyInMhz', + 'cpu_implementation': 'cpuImplementation', + 'cores_per_socket': 'coresPerSocket', + 'total_sockets': 'totalSockets', + 'threads_per_socket': 'threadsPerSocket', + 'is_hyper_threading_enabled': 'isHyperThreadingEnabled', + 'defined_tags': 'definedTags', + 'freeform_tags': 'freeformTags', + 'management_agent_id': 'managementAgentId', + 'parent_id': 'parentId', + 'exadata_details': 'exadataDetails' + } + + self._host_insight_id = None + self._entity_source = None + self._compartment_id = None + self._host_name = None + self._platform_type = None + self._platform_version = None + self._platform_vendor = None + self._total_cpus = None + self._total_memory_in_gbs = None + self._cpu_architecture = None + self._cpu_cache_in_mbs = None + self._cpu_vendor = None + self._cpu_frequency_in_mhz = None + self._cpu_implementation = None + self._cores_per_socket = None + self._total_sockets = None + self._threads_per_socket = None + self._is_hyper_threading_enabled = None + self._defined_tags = None + self._freeform_tags = None + self._management_agent_id = None + self._parent_id = None + self._exadata_details = None + self._entity_source = 'MACS_MANAGED_CLOUD_DB_HOST' + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this MacsManagedCloudDbHostConfigurationSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this MacsManagedCloudDbHostConfigurationSummary. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this MacsManagedCloudDbHostConfigurationSummary. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this MacsManagedCloudDbHostConfigurationSummary. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def parent_id(self): + """ + **[Required]** Gets the parent_id of this MacsManagedCloudDbHostConfigurationSummary. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The parent_id of this MacsManagedCloudDbHostConfigurationSummary. + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """ + Sets the parent_id of this MacsManagedCloudDbHostConfigurationSummary. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param parent_id: The parent_id of this MacsManagedCloudDbHostConfigurationSummary. + :type: str + """ + self._parent_id = parent_id + + @property + def exadata_details(self): + """ + **[Required]** Gets the exadata_details of this MacsManagedCloudDbHostConfigurationSummary. + + :return: The exadata_details of this MacsManagedCloudDbHostConfigurationSummary. + :rtype: oci.opsi.models.ExadataDetails + """ + return self._exadata_details + + @exadata_details.setter + def exadata_details(self, exadata_details): + """ + Sets the exadata_details of this MacsManagedCloudDbHostConfigurationSummary. + + :param exadata_details: The exadata_details of this MacsManagedCloudDbHostConfigurationSummary. + :type: oci.opsi.models.ExadataDetails + """ + self._exadata_details = exadata_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/macs_managed_cloud_exadata_insight.py b/src/oci/opsi/models/macs_managed_cloud_exadata_insight.py new file mode 100644 index 000000000..abb721a6b --- /dev/null +++ b/src/oci/opsi/models/macs_managed_cloud_exadata_insight.py @@ -0,0 +1,278 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .exadata_insight import ExadataInsight +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 MacsManagedCloudExadataInsight(ExadataInsight): + """ + Cloud MACS-managed Exadata insight resource (ExaCC) (ExaCS will be supported in the future). + """ + + #: A constant which can be used with the exadata_infra_resource_type property of a MacsManagedCloudExadataInsight. + #: This constant has a value of "cloudExadataInfrastructure" + EXADATA_INFRA_RESOURCE_TYPE_CLOUD_EXADATA_INFRASTRUCTURE = "cloudExadataInfrastructure" + + #: A constant which can be used with the exadata_infra_resource_type property of a MacsManagedCloudExadataInsight. + #: This constant has a value of "exadataInfrastructure" + EXADATA_INFRA_RESOURCE_TYPE_EXADATA_INFRASTRUCTURE = "exadataInfrastructure" + + def __init__(self, **kwargs): + """ + Initializes a new MacsManagedCloudExadataInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedCloudExadataInsight.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_EXADATA`` 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 MacsManagedCloudExadataInsight. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type entity_source: str + + :param id: + The value to assign to the id property of this MacsManagedCloudExadataInsight. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this MacsManagedCloudExadataInsight. + :type compartment_id: str + + :param exadata_name: + The value to assign to the exadata_name property of this MacsManagedCloudExadataInsight. + :type exadata_name: str + + :param exadata_display_name: + The value to assign to the exadata_display_name property of this MacsManagedCloudExadataInsight. + :type exadata_display_name: str + + :param exadata_type: + The value to assign to the exadata_type property of this MacsManagedCloudExadataInsight. + Allowed values for this property are: "DBMACHINE", "EXACS", "EXACC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type exadata_type: str + + :param exadata_rack_type: + The value to assign to the exadata_rack_type property of this MacsManagedCloudExadataInsight. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type exadata_rack_type: str + + :param is_virtualized_exadata: + The value to assign to the is_virtualized_exadata property of this MacsManagedCloudExadataInsight. + :type is_virtualized_exadata: bool + + :param status: + The value to assign to the status property of this MacsManagedCloudExadataInsight. + Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this MacsManagedCloudExadataInsight. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MacsManagedCloudExadataInsight. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this MacsManagedCloudExadataInsight. + :type system_tags: dict(str, dict(str, object)) + + :param time_created: + The value to assign to the time_created property of this MacsManagedCloudExadataInsight. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this MacsManagedCloudExadataInsight. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MacsManagedCloudExadataInsight. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", '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 MacsManagedCloudExadataInsight. + :type lifecycle_details: str + + :param exadata_infra_id: + The value to assign to the exadata_infra_id property of this MacsManagedCloudExadataInsight. + :type exadata_infra_id: str + + :param exadata_infra_resource_type: + The value to assign to the exadata_infra_resource_type property of this MacsManagedCloudExadataInsight. + Allowed values for this property are: "cloudExadataInfrastructure", "exadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type exadata_infra_resource_type: str + + :param exadata_shape: + The value to assign to the exadata_shape property of this MacsManagedCloudExadataInsight. + :type exadata_shape: str + + """ + self.swagger_types = { + 'entity_source': 'str', + 'id': 'str', + 'compartment_id': 'str', + 'exadata_name': 'str', + 'exadata_display_name': 'str', + 'exadata_type': 'str', + 'exadata_rack_type': 'str', + 'is_virtualized_exadata': 'bool', + 'status': 'str', + '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', + 'exadata_infra_id': 'str', + 'exadata_infra_resource_type': 'str', + 'exadata_shape': 'str' + } + + self.attribute_map = { + 'entity_source': 'entitySource', + 'id': 'id', + 'compartment_id': 'compartmentId', + 'exadata_name': 'exadataName', + 'exadata_display_name': 'exadataDisplayName', + 'exadata_type': 'exadataType', + 'exadata_rack_type': 'exadataRackType', + 'is_virtualized_exadata': 'isVirtualizedExadata', + 'status': 'status', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'exadata_infra_id': 'exadataInfraId', + 'exadata_infra_resource_type': 'exadataInfraResourceType', + 'exadata_shape': 'exadataShape' + } + + self._entity_source = None + self._id = None + self._compartment_id = None + self._exadata_name = None + self._exadata_display_name = None + self._exadata_type = None + self._exadata_rack_type = None + self._is_virtualized_exadata = None + self._status = 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._exadata_infra_id = None + self._exadata_infra_resource_type = None + self._exadata_shape = None + self._entity_source = 'MACS_MANAGED_CLOUD_EXADATA' + + @property + def exadata_infra_id(self): + """ + **[Required]** Gets the exadata_infra_id of this MacsManagedCloudExadataInsight. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The exadata_infra_id of this MacsManagedCloudExadataInsight. + :rtype: str + """ + return self._exadata_infra_id + + @exadata_infra_id.setter + def exadata_infra_id(self, exadata_infra_id): + """ + Sets the exadata_infra_id of this MacsManagedCloudExadataInsight. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param exadata_infra_id: The exadata_infra_id of this MacsManagedCloudExadataInsight. + :type: str + """ + self._exadata_infra_id = exadata_infra_id + + @property + def exadata_infra_resource_type(self): + """ + **[Required]** Gets the exadata_infra_resource_type of this MacsManagedCloudExadataInsight. + OCI exadata infrastructure resource type + + Allowed values for this property are: "cloudExadataInfrastructure", "exadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The exadata_infra_resource_type of this MacsManagedCloudExadataInsight. + :rtype: str + """ + return self._exadata_infra_resource_type + + @exadata_infra_resource_type.setter + def exadata_infra_resource_type(self, exadata_infra_resource_type): + """ + Sets the exadata_infra_resource_type of this MacsManagedCloudExadataInsight. + OCI exadata infrastructure resource type + + + :param exadata_infra_resource_type: The exadata_infra_resource_type of this MacsManagedCloudExadataInsight. + :type: str + """ + allowed_values = ["cloudExadataInfrastructure", "exadataInfrastructure"] + if not value_allowed_none_or_none_sentinel(exadata_infra_resource_type, allowed_values): + exadata_infra_resource_type = 'UNKNOWN_ENUM_VALUE' + self._exadata_infra_resource_type = exadata_infra_resource_type + + @property + def exadata_shape(self): + """ + **[Required]** Gets the exadata_shape of this MacsManagedCloudExadataInsight. + The shape of the Exadata Infrastructure. + + + :return: The exadata_shape of this MacsManagedCloudExadataInsight. + :rtype: str + """ + return self._exadata_shape + + @exadata_shape.setter + def exadata_shape(self, exadata_shape): + """ + Sets the exadata_shape of this MacsManagedCloudExadataInsight. + The shape of the Exadata Infrastructure. + + + :param exadata_shape: The exadata_shape of this MacsManagedCloudExadataInsight. + :type: str + """ + self._exadata_shape = exadata_shape + + 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/macs_managed_cloud_exadata_insight_summary.py b/src/oci/opsi/models/macs_managed_cloud_exadata_insight_summary.py new file mode 100644 index 000000000..d984d1461 --- /dev/null +++ b/src/oci/opsi/models/macs_managed_cloud_exadata_insight_summary.py @@ -0,0 +1,271 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .exadata_insight_summary import ExadataInsightSummary +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 MacsManagedCloudExadataInsightSummary(ExadataInsightSummary): + """ + Summary of a Cloud MACS-managed Exadata insight resource (ExaCC). + """ + + #: A constant which can be used with the exadata_infra_resource_type property of a MacsManagedCloudExadataInsightSummary. + #: This constant has a value of "cloudExadataInfrastructure" + EXADATA_INFRA_RESOURCE_TYPE_CLOUD_EXADATA_INFRASTRUCTURE = "cloudExadataInfrastructure" + + #: A constant which can be used with the exadata_infra_resource_type property of a MacsManagedCloudExadataInsightSummary. + #: This constant has a value of "exadataInfrastructure" + EXADATA_INFRA_RESOURCE_TYPE_EXADATA_INFRASTRUCTURE = "exadataInfrastructure" + + def __init__(self, **kwargs): + """ + Initializes a new MacsManagedCloudExadataInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.MacsManagedCloudExadataInsightSummary.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_EXADATA`` 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 MacsManagedCloudExadataInsightSummary. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type entity_source: str + + :param id: + The value to assign to the id property of this MacsManagedCloudExadataInsightSummary. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this MacsManagedCloudExadataInsightSummary. + :type compartment_id: str + + :param exadata_name: + The value to assign to the exadata_name property of this MacsManagedCloudExadataInsightSummary. + :type exadata_name: str + + :param exadata_display_name: + The value to assign to the exadata_display_name property of this MacsManagedCloudExadataInsightSummary. + :type exadata_display_name: str + + :param exadata_type: + The value to assign to the exadata_type property of this MacsManagedCloudExadataInsightSummary. + Allowed values for this property are: "DBMACHINE", "EXACS", "EXACC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type exadata_type: str + + :param exadata_rack_type: + The value to assign to the exadata_rack_type property of this MacsManagedCloudExadataInsightSummary. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type exadata_rack_type: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this MacsManagedCloudExadataInsightSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MacsManagedCloudExadataInsightSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this MacsManagedCloudExadataInsightSummary. + :type system_tags: dict(str, dict(str, object)) + + :param status: + The value to assign to the status property of this MacsManagedCloudExadataInsightSummary. + Allowed values for this property are: "DISABLED", "ENABLED", "TERMINATED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + :param time_created: + The value to assign to the time_created property of this MacsManagedCloudExadataInsightSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this MacsManagedCloudExadataInsightSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MacsManagedCloudExadataInsightSummary. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", '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 MacsManagedCloudExadataInsightSummary. + :type lifecycle_details: str + + :param exadata_infra_id: + The value to assign to the exadata_infra_id property of this MacsManagedCloudExadataInsightSummary. + :type exadata_infra_id: str + + :param exadata_infra_resource_type: + The value to assign to the exadata_infra_resource_type property of this MacsManagedCloudExadataInsightSummary. + Allowed values for this property are: "cloudExadataInfrastructure", "exadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type exadata_infra_resource_type: str + + :param exadata_shape: + The value to assign to the exadata_shape property of this MacsManagedCloudExadataInsightSummary. + :type exadata_shape: str + + """ + self.swagger_types = { + 'entity_source': 'str', + 'id': 'str', + 'compartment_id': 'str', + 'exadata_name': 'str', + 'exadata_display_name': 'str', + 'exadata_type': 'str', + 'exadata_rack_type': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))', + 'status': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'exadata_infra_id': 'str', + 'exadata_infra_resource_type': 'str', + 'exadata_shape': 'str' + } + + self.attribute_map = { + 'entity_source': 'entitySource', + 'id': 'id', + 'compartment_id': 'compartmentId', + 'exadata_name': 'exadataName', + 'exadata_display_name': 'exadataDisplayName', + 'exadata_type': 'exadataType', + 'exadata_rack_type': 'exadataRackType', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags', + 'status': 'status', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'exadata_infra_id': 'exadataInfraId', + 'exadata_infra_resource_type': 'exadataInfraResourceType', + 'exadata_shape': 'exadataShape' + } + + self._entity_source = None + self._id = None + self._compartment_id = None + self._exadata_name = None + self._exadata_display_name = None + self._exadata_type = None + self._exadata_rack_type = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + self._status = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._exadata_infra_id = None + self._exadata_infra_resource_type = None + self._exadata_shape = None + self._entity_source = 'MACS_MANAGED_CLOUD_EXADATA' + + @property + def exadata_infra_id(self): + """ + **[Required]** Gets the exadata_infra_id of this MacsManagedCloudExadataInsightSummary. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The exadata_infra_id of this MacsManagedCloudExadataInsightSummary. + :rtype: str + """ + return self._exadata_infra_id + + @exadata_infra_id.setter + def exadata_infra_id(self, exadata_infra_id): + """ + Sets the exadata_infra_id of this MacsManagedCloudExadataInsightSummary. + The `OCID`__ of the Exadata Infrastructure. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param exadata_infra_id: The exadata_infra_id of this MacsManagedCloudExadataInsightSummary. + :type: str + """ + self._exadata_infra_id = exadata_infra_id + + @property + def exadata_infra_resource_type(self): + """ + **[Required]** Gets the exadata_infra_resource_type of this MacsManagedCloudExadataInsightSummary. + OCI exadata infrastructure resource type + + Allowed values for this property are: "cloudExadataInfrastructure", "exadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The exadata_infra_resource_type of this MacsManagedCloudExadataInsightSummary. + :rtype: str + """ + return self._exadata_infra_resource_type + + @exadata_infra_resource_type.setter + def exadata_infra_resource_type(self, exadata_infra_resource_type): + """ + Sets the exadata_infra_resource_type of this MacsManagedCloudExadataInsightSummary. + OCI exadata infrastructure resource type + + + :param exadata_infra_resource_type: The exadata_infra_resource_type of this MacsManagedCloudExadataInsightSummary. + :type: str + """ + allowed_values = ["cloudExadataInfrastructure", "exadataInfrastructure"] + if not value_allowed_none_or_none_sentinel(exadata_infra_resource_type, allowed_values): + exadata_infra_resource_type = 'UNKNOWN_ENUM_VALUE' + self._exadata_infra_resource_type = exadata_infra_resource_type + + @property + def exadata_shape(self): + """ + **[Required]** Gets the exadata_shape of this MacsManagedCloudExadataInsightSummary. + The shape of the Exadata Infrastructure. + + + :return: The exadata_shape of this MacsManagedCloudExadataInsightSummary. + :rtype: str + """ + return self._exadata_shape + + @exadata_shape.setter + def exadata_shape(self, exadata_shape): + """ + Sets the exadata_shape of this MacsManagedCloudExadataInsightSummary. + The shape of the Exadata Infrastructure. + + + :param exadata_shape: The exadata_shape of this MacsManagedCloudExadataInsightSummary. + :type: str + """ + self._exadata_shape = exadata_shape + + 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/macs_managed_cloud_host_configuration_summary.py b/src/oci/opsi/models/macs_managed_cloud_host_configuration_summary.py index a06c7a86a..9313f118f 100644 --- a/src/oci/opsi/models/macs_managed_cloud_host_configuration_summary.py +++ b/src/oci/opsi/models/macs_managed_cloud_host_configuration_summary.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MacsManagedCloudHostConfigurationSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/macs_managed_cloud_host_insight.py b/src/oci/opsi/models/macs_managed_cloud_host_insight.py index f9294c0ff..3b87b1d36 100644 --- a/src/oci/opsi/models/macs_managed_cloud_host_insight.py +++ b/src/oci/opsi/models/macs_managed_cloud_host_insight.py @@ -51,7 +51,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MacsManagedCloudHostInsight. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str diff --git a/src/oci/opsi/models/macs_managed_cloud_host_insight_summary.py b/src/oci/opsi/models/macs_managed_cloud_host_insight_summary.py index 24bc2c24f..be001a83e 100644 --- a/src/oci/opsi/models/macs_managed_cloud_host_insight_summary.py +++ b/src/oci/opsi/models/macs_managed_cloud_host_insight_summary.py @@ -51,7 +51,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MacsManagedCloudHostInsightSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str 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 db5c3e033..296c2341c 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 @@ -27,7 +27,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_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 41a3e1697..af56350e7 100644 --- a/src/oci/opsi/models/macs_managed_external_database_insight.py +++ b/src/oci/opsi/models/macs_managed_external_database_insight.py @@ -23,7 +23,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param id: 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 c26912bf8..7ac1eb54b 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 @@ -67,7 +67,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param processor_count: diff --git a/src/oci/opsi/models/macs_managed_external_host_configuration_summary.py b/src/oci/opsi/models/macs_managed_external_host_configuration_summary.py index ca38d3a5a..d942f8abe 100644 --- a/src/oci/opsi/models/macs_managed_external_host_configuration_summary.py +++ b/src/oci/opsi/models/macs_managed_external_host_configuration_summary.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MacsManagedExternalHostConfigurationSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/macs_managed_external_host_insight.py b/src/oci/opsi/models/macs_managed_external_host_insight.py index 3e67e299c..66299a8a4 100644 --- a/src/oci/opsi/models/macs_managed_external_host_insight.py +++ b/src/oci/opsi/models/macs_managed_external_host_insight.py @@ -51,7 +51,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MacsManagedExternalHostInsight. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str diff --git a/src/oci/opsi/models/macs_managed_external_host_insight_summary.py b/src/oci/opsi/models/macs_managed_external_host_insight_summary.py index df5d3c0f6..641d77b79 100644 --- a/src/oci/opsi/models/macs_managed_external_host_insight_summary.py +++ b/src/oci/opsi/models/macs_managed_external_host_insight_summary.py @@ -51,7 +51,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MacsManagedExternalHostInsightSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str diff --git a/src/oci/opsi/models/mds_my_sql_database_insight.py b/src/oci/opsi/models/mds_my_sql_database_insight.py index af43dc60d..b7dcee48c 100644 --- a/src/oci/opsi/models/mds_my_sql_database_insight.py +++ b/src/oci/opsi/models/mds_my_sql_database_insight.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MdsMySqlDatabaseInsight. - Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param id: diff --git a/src/oci/opsi/models/mds_my_sql_database_insight_summary.py b/src/oci/opsi/models/mds_my_sql_database_insight_summary.py index 22fe86e13..2aa517a6e 100644 --- a/src/oci/opsi/models/mds_my_sql_database_insight_summary.py +++ b/src/oci/opsi/models/mds_my_sql_database_insight_summary.py @@ -67,7 +67,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MdsMySqlDatabaseInsightSummary. - Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param processor_count: diff --git a/src/oci/opsi/models/mds_mysql_database_configuration_summary.py b/src/oci/opsi/models/mds_mysql_database_configuration_summary.py index 5910b4ea5..eb2054b5d 100644 --- a/src/oci/opsi/models/mds_mysql_database_configuration_summary.py +++ b/src/oci/opsi/models/mds_mysql_database_configuration_summary.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this MdsMysqlDatabaseConfigurationSummary. - Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/pe_comanaged_database_insight.py b/src/oci/opsi/models/pe_comanaged_database_insight.py index 99b83e05f..3934ef667 100644 --- a/src/oci/opsi/models/pe_comanaged_database_insight.py +++ b/src/oci/opsi/models/pe_comanaged_database_insight.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :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", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param id: diff --git a/src/oci/opsi/models/pe_comanaged_database_insight_summary.py b/src/oci/opsi/models/pe_comanaged_database_insight_summary.py index eb2218a5a..be9c4b4b5 100644 --- a/src/oci/opsi/models/pe_comanaged_database_insight_summary.py +++ b/src/oci/opsi/models/pe_comanaged_database_insight_summary.py @@ -67,7 +67,7 @@ def __init__(self, **kwargs): :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", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param processor_count: diff --git a/src/oci/opsi/models/pe_comanaged_exadata_insight.py b/src/oci/opsi/models/pe_comanaged_exadata_insight.py index d8118d967..22701c2d5 100644 --- a/src/oci/opsi/models/pe_comanaged_exadata_insight.py +++ b/src/oci/opsi/models/pe_comanaged_exadata_insight.py @@ -19,6 +19,10 @@ class PeComanagedExadataInsight(ExadataInsight): #: This constant has a value of "cloudExadataInfrastructure" EXADATA_INFRA_RESOURCE_TYPE_CLOUD_EXADATA_INFRASTRUCTURE = "cloudExadataInfrastructure" + #: A constant which can be used with the exadata_infra_resource_type property of a PeComanagedExadataInsight. + #: This constant has a value of "exadataInfrastructure" + EXADATA_INFRA_RESOURCE_TYPE_EXADATA_INFRASTRUCTURE = "exadataInfrastructure" + def __init__(self, **kwargs): """ Initializes a new PeComanagedExadataInsight object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.PeComanagedExadataInsight.entity_source` attribute @@ -27,7 +31,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this PeComanagedExadataInsight. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -55,7 +59,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this PeComanagedExadataInsight. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type exadata_rack_type: str @@ -105,7 +109,7 @@ def __init__(self, **kwargs): :param exadata_infra_resource_type: The value to assign to the exadata_infra_resource_type property of this PeComanagedExadataInsight. - Allowed values for this property are: "cloudExadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "cloudExadataInfrastructure", "exadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type exadata_infra_resource_type: str @@ -213,7 +217,7 @@ def exadata_infra_resource_type(self): **[Required]** Gets the exadata_infra_resource_type of this PeComanagedExadataInsight. OCI exadata infrastructure resource type - Allowed values for this property are: "cloudExadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "cloudExadataInfrastructure", "exadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -232,7 +236,7 @@ def exadata_infra_resource_type(self, exadata_infra_resource_type): :param exadata_infra_resource_type: The exadata_infra_resource_type of this PeComanagedExadataInsight. :type: str """ - allowed_values = ["cloudExadataInfrastructure"] + allowed_values = ["cloudExadataInfrastructure", "exadataInfrastructure"] if not value_allowed_none_or_none_sentinel(exadata_infra_resource_type, allowed_values): exadata_infra_resource_type = 'UNKNOWN_ENUM_VALUE' self._exadata_infra_resource_type = exadata_infra_resource_type diff --git a/src/oci/opsi/models/pe_comanaged_exadata_insight_summary.py b/src/oci/opsi/models/pe_comanaged_exadata_insight_summary.py index d50204a42..598cad169 100644 --- a/src/oci/opsi/models/pe_comanaged_exadata_insight_summary.py +++ b/src/oci/opsi/models/pe_comanaged_exadata_insight_summary.py @@ -19,6 +19,10 @@ class PeComanagedExadataInsightSummary(ExadataInsightSummary): #: This constant has a value of "cloudExadataInfrastructure" EXADATA_INFRA_RESOURCE_TYPE_CLOUD_EXADATA_INFRASTRUCTURE = "cloudExadataInfrastructure" + #: A constant which can be used with the exadata_infra_resource_type property of a PeComanagedExadataInsightSummary. + #: This constant has a value of "exadataInfrastructure" + EXADATA_INFRA_RESOURCE_TYPE_EXADATA_INFRASTRUCTURE = "exadataInfrastructure" + def __init__(self, **kwargs): """ Initializes a new PeComanagedExadataInsightSummary object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.PeComanagedExadataInsightSummary.entity_source` attribute @@ -27,7 +31,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this PeComanagedExadataInsightSummary. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str @@ -55,7 +59,7 @@ def __init__(self, **kwargs): :param exadata_rack_type: The value to assign to the exadata_rack_type property of this PeComanagedExadataInsightSummary. - Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "FULL", "HALF", "QUARTER", "EIGHTH", "FLEX", "BASE", "ELASTIC", "ELASTIC_BASE", "ELASTIC_LARGE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type exadata_rack_type: str @@ -101,7 +105,7 @@ def __init__(self, **kwargs): :param exadata_infra_resource_type: The value to assign to the exadata_infra_resource_type property of this PeComanagedExadataInsightSummary. - Allowed values for this property are: "cloudExadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "cloudExadataInfrastructure", "exadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type exadata_infra_resource_type: str @@ -206,7 +210,7 @@ def exadata_infra_resource_type(self): **[Required]** Gets the exadata_infra_resource_type of this PeComanagedExadataInsightSummary. OCI exadata infrastructure resource type - Allowed values for this property are: "cloudExadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "cloudExadataInfrastructure", "exadataInfrastructure", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -225,7 +229,7 @@ def exadata_infra_resource_type(self, exadata_infra_resource_type): :param exadata_infra_resource_type: The exadata_infra_resource_type of this PeComanagedExadataInsightSummary. :type: str """ - allowed_values = ["cloudExadataInfrastructure"] + allowed_values = ["cloudExadataInfrastructure", "exadataInfrastructure"] if not value_allowed_none_or_none_sentinel(exadata_infra_resource_type, allowed_values): exadata_infra_resource_type = 'UNKNOWN_ENUM_VALUE' self._exadata_infra_resource_type = exadata_infra_resource_type diff --git a/src/oci/opsi/models/pe_comanaged_host_configuration_summary.py b/src/oci/opsi/models/pe_comanaged_host_configuration_summary.py index 2ba2f3220..ac378aab2 100644 --- a/src/oci/opsi/models/pe_comanaged_host_configuration_summary.py +++ b/src/oci/opsi/models/pe_comanaged_host_configuration_summary.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this PeComanagedHostConfigurationSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/pe_comanaged_host_insight.py b/src/oci/opsi/models/pe_comanaged_host_insight.py index c696780e3..fefdcc9a2 100644 --- a/src/oci/opsi/models/pe_comanaged_host_insight.py +++ b/src/oci/opsi/models/pe_comanaged_host_insight.py @@ -51,7 +51,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this PeComanagedHostInsight. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str diff --git a/src/oci/opsi/models/pe_comanaged_host_insight_summary.py b/src/oci/opsi/models/pe_comanaged_host_insight_summary.py index f46f4b4fd..c36e7bdc0 100644 --- a/src/oci/opsi/models/pe_comanaged_host_insight_summary.py +++ b/src/oci/opsi/models/pe_comanaged_host_insight_summary.py @@ -51,7 +51,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this PeComanagedHostInsightSummary. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type entity_source: str 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 index d5d289fb5..acc6fa269 100644 --- 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 @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :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", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param compartment_id: diff --git a/src/oci/opsi/models/test_macs_managed_cloud_database_insight_connection_details.py b/src/oci/opsi/models/test_macs_managed_cloud_database_insight_connection_details.py new file mode 100644 index 000000000..468f4504d --- /dev/null +++ b/src/oci/opsi/models/test_macs_managed_cloud_database_insight_connection_details.py @@ -0,0 +1,130 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + + +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 TestMacsManagedCloudDatabaseInsightConnectionDetails(object): + """ + Connection details of a MACS-managed cloud database . + """ + + def __init__(self, **kwargs): + """ + Initializes a new TestMacsManagedCloudDatabaseInsightConnectionDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param management_agent_id: + The value to assign to the management_agent_id property of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :type management_agent_id: str + + :param connection_details: + The value to assign to the connection_details property of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :type connection_details: oci.opsi.models.ConnectionDetails + + :param connection_credential_details: + The value to assign to the connection_credential_details property of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :type connection_credential_details: oci.opsi.models.CredentialDetails + + """ + self.swagger_types = { + 'management_agent_id': 'str', + 'connection_details': 'ConnectionDetails', + 'connection_credential_details': 'CredentialDetails' + } + + self.attribute_map = { + 'management_agent_id': 'managementAgentId', + 'connection_details': 'connectionDetails', + 'connection_credential_details': 'connectionCredentialDetails' + } + + self._management_agent_id = None + self._connection_details = None + self._connection_credential_details = None + + @property + def management_agent_id(self): + """ + **[Required]** Gets the management_agent_id of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The management_agent_id of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :rtype: str + """ + return self._management_agent_id + + @management_agent_id.setter + def management_agent_id(self, management_agent_id): + """ + Sets the management_agent_id of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + The `OCID`__ of the Management Agent + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param management_agent_id: The management_agent_id of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :type: str + """ + self._management_agent_id = management_agent_id + + @property + def connection_details(self): + """ + **[Required]** Gets the connection_details of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + + :return: The connection_details of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :rtype: oci.opsi.models.ConnectionDetails + """ + return self._connection_details + + @connection_details.setter + def connection_details(self, connection_details): + """ + Sets the connection_details of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + + :param connection_details: The connection_details of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :type: oci.opsi.models.ConnectionDetails + """ + self._connection_details = connection_details + + @property + def connection_credential_details(self): + """ + **[Required]** Gets the connection_credential_details of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + + :return: The connection_credential_details of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :rtype: oci.opsi.models.CredentialDetails + """ + return self._connection_credential_details + + @connection_credential_details.setter + def connection_credential_details(self, connection_credential_details): + """ + Sets the connection_credential_details of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + + :param connection_credential_details: The connection_credential_details of this TestMacsManagedCloudDatabaseInsightConnectionDetails. + :type: oci.opsi.models.CredentialDetails + """ + self._connection_credential_details = connection_credential_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/update_autonomous_database_insight_details.py b/src/oci/opsi/models/update_autonomous_database_insight_details.py index 611bd0fc9..82610e3b4 100644 --- a/src/oci/opsi/models/update_autonomous_database_insight_details.py +++ b/src/oci/opsi/models/update_autonomous_database_insight_details.py @@ -23,7 +23,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_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 cab0c5978..a12a89a4b 100644 --- a/src/oci/opsi/models/update_database_insight_details.py +++ b/src/oci/opsi/models/update_database_insight_details.py @@ -35,6 +35,10 @@ class UpdateDatabaseInsightDetails(object): #: This constant has a value of "MDS_MYSQL_DATABASE_SYSTEM" ENTITY_SOURCE_MDS_MYSQL_DATABASE_SYSTEM = "MDS_MYSQL_DATABASE_SYSTEM" + #: A constant which can be used with the entity_source property of a UpdateDatabaseInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_DATABASE" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DATABASE = "MACS_MANAGED_CLOUD_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 @@ -45,12 +49,13 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.UpdatePeComanagedDatabaseInsightDetails` * :class:`~oci.opsi.models.UpdateAutonomousDatabaseInsightDetails` * :class:`~oci.opsi.models.UpdateMdsMySqlDatabaseInsight` + * :class:`~oci.opsi.models.UpdateMacsManagedCloudDatabaseInsightDetails` 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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param freeform_tags: @@ -100,6 +105,9 @@ def get_subtype(object_dictionary): if type == 'MDS_MYSQL_DATABASE_SYSTEM': return 'UpdateMdsMySqlDatabaseInsight' + + if type == 'MACS_MANAGED_CLOUD_DATABASE': + return 'UpdateMacsManagedCloudDatabaseInsightDetails' else: return 'UpdateDatabaseInsightDetails' @@ -109,7 +117,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :return: The entity_source of this UpdateDatabaseInsightDetails. @@ -127,7 +135,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM"] + allowed_values = ["AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" 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 18e5765d8..9a8c5e026 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 @@ -23,7 +23,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param freeform_tags: diff --git a/src/oci/opsi/models/update_em_managed_external_exadata_insight_details.py b/src/oci/opsi/models/update_em_managed_external_exadata_insight_details.py index 58fdba1ef..926eac92a 100644 --- a/src/oci/opsi/models/update_em_managed_external_exadata_insight_details.py +++ b/src/oci/opsi/models/update_em_managed_external_exadata_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this UpdateEmManagedExternalExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param freeform_tags: diff --git a/src/oci/opsi/models/update_em_managed_external_host_insight_details.py b/src/oci/opsi/models/update_em_managed_external_host_insight_details.py index f32998f31..bd3b8ba12 100644 --- a/src/oci/opsi/models/update_em_managed_external_host_insight_details.py +++ b/src/oci/opsi/models/update_em_managed_external_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this UpdateEmManagedExternalHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param freeform_tags: diff --git a/src/oci/opsi/models/update_exadata_insight_details.py b/src/oci/opsi/models/update_exadata_insight_details.py index ddcdd7946..1758d8e4e 100644 --- a/src/oci/opsi/models/update_exadata_insight_details.py +++ b/src/oci/opsi/models/update_exadata_insight_details.py @@ -23,19 +23,24 @@ class UpdateExadataInsightDetails(object): #: This constant has a value of "PE_COMANAGED_EXADATA" ENTITY_SOURCE_PE_COMANAGED_EXADATA = "PE_COMANAGED_EXADATA" + #: A constant which can be used with the entity_source property of a UpdateExadataInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_EXADATA" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_EXADATA = "MACS_MANAGED_CLOUD_EXADATA" + def __init__(self, **kwargs): """ Initializes a new UpdateExadataInsightDetails 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.UpdatePeComanagedExadataInsightDetails` + * :class:`~oci.opsi.models.UpdateMacsManagedCloudExadataInsightDetails` * :class:`~oci.opsi.models.UpdateEmManagedExternalExadataInsightDetails` 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 UpdateExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param freeform_tags: @@ -74,6 +79,9 @@ def get_subtype(object_dictionary): if type == 'PE_COMANAGED_EXADATA': return 'UpdatePeComanagedExadataInsightDetails' + if type == 'MACS_MANAGED_CLOUD_EXADATA': + return 'UpdateMacsManagedCloudExadataInsightDetails' + if type == 'EM_MANAGED_EXTERNAL_EXADATA': return 'UpdateEmManagedExternalExadataInsightDetails' else: @@ -85,7 +93,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this UpdateExadataInsightDetails. Source of the Exadata system. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :return: The entity_source of this UpdateExadataInsightDetails. @@ -103,7 +111,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this UpdateExadataInsightDetails. :type: str """ - allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA"] + allowed_values = ["EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" diff --git a/src/oci/opsi/models/update_host_insight_details.py b/src/oci/opsi/models/update_host_insight_details.py index 9aeff5e59..d6c2f6ee3 100644 --- a/src/oci/opsi/models/update_host_insight_details.py +++ b/src/oci/opsi/models/update_host_insight_details.py @@ -31,11 +31,16 @@ class UpdateHostInsightDetails(object): #: This constant has a value of "PE_COMANAGED_HOST" ENTITY_SOURCE_PE_COMANAGED_HOST = "PE_COMANAGED_HOST" + #: A constant which can be used with the entity_source property of a UpdateHostInsightDetails. + #: This constant has a value of "MACS_MANAGED_CLOUD_DB_HOST" + ENTITY_SOURCE_MACS_MANAGED_CLOUD_DB_HOST = "MACS_MANAGED_CLOUD_DB_HOST" + def __init__(self, **kwargs): """ Initializes a new UpdateHostInsightDetails 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.UpdateMacsManagedCloudDatabaseHostInsightDetails` * :class:`~oci.opsi.models.UpdateEmManagedExternalHostInsightDetails` * :class:`~oci.opsi.models.UpdateMacsManagedExternalHostInsightDetails` * :class:`~oci.opsi.models.UpdateMacsManagedCloudHostInsightDetails` @@ -45,7 +50,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this UpdateHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param freeform_tags: @@ -81,6 +86,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['entitySource'] + if type == 'MACS_MANAGED_CLOUD_DB_HOST': + return 'UpdateMacsManagedCloudDatabaseHostInsightDetails' + if type == 'EM_MANAGED_EXTERNAL_HOST': return 'UpdateEmManagedExternalHostInsightDetails' @@ -101,7 +109,7 @@ def entity_source(self): **[Required]** Gets the entity_source of this UpdateHostInsightDetails. Source of the host entity. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :return: The entity_source of this UpdateHostInsightDetails. @@ -119,7 +127,7 @@ def entity_source(self, entity_source): :param entity_source: The entity_source of this UpdateHostInsightDetails. :type: str """ - allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST"] + allowed_values = ["MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST"] if not value_allowed_none_or_none_sentinel(entity_source, allowed_values): raise ValueError( f"Invalid value for `entity_source`, must be None or one of {allowed_values}" diff --git a/src/oci/opsi/models/update_macs_managed_cloud_database_host_insight_details.py b/src/oci/opsi/models/update_macs_managed_cloud_database_host_insight_details.py new file mode 100644 index 000000000..b8ad03c4c --- /dev/null +++ b/src/oci/opsi/models/update_macs_managed_cloud_database_host_insight_details.py @@ -0,0 +1,65 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .update_host_insight_details import UpdateHostInsightDetails +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 UpdateMacsManagedCloudDatabaseHostInsightDetails(UpdateHostInsightDetails): + """ + The information to be updated. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateMacsManagedCloudDatabaseHostInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.UpdateMacsManagedCloudDatabaseHostInsightDetails.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_DB_HOST`` 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 UpdateMacsManagedCloudDatabaseHostInsightDetails. + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" + :type entity_source: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateMacsManagedCloudDatabaseHostInsightDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateMacsManagedCloudDatabaseHostInsightDetails. + :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 = 'MACS_MANAGED_CLOUD_DB_HOST' + + 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_macs_managed_cloud_database_insight_details.py b/src/oci/opsi/models/update_macs_managed_cloud_database_insight_details.py new file mode 100644 index 000000000..fc991c369 --- /dev/null +++ b/src/oci/opsi/models/update_macs_managed_cloud_database_insight_details.py @@ -0,0 +1,65 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +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 UpdateMacsManagedCloudDatabaseInsightDetails(UpdateDatabaseInsightDetails): + """ + The freeformTags and definedTags to be updated. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateMacsManagedCloudDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.UpdateMacsManagedCloudDatabaseInsightDetails.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_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 UpdateMacsManagedCloudDatabaseInsightDetails. + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" + :type entity_source: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateMacsManagedCloudDatabaseInsightDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateMacsManagedCloudDatabaseInsightDetails. + :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 = 'MACS_MANAGED_CLOUD_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/update_macs_managed_cloud_exadata_insight_details.py b/src/oci/opsi/models/update_macs_managed_cloud_exadata_insight_details.py new file mode 100644 index 000000000..65bb74ec6 --- /dev/null +++ b/src/oci/opsi/models/update_macs_managed_cloud_exadata_insight_details.py @@ -0,0 +1,65 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200630 + +from .update_exadata_insight_details import UpdateExadataInsightDetails +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 UpdateMacsManagedCloudExadataInsightDetails(UpdateExadataInsightDetails): + """ + The information to be updated. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateMacsManagedCloudExadataInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.UpdateMacsManagedCloudExadataInsightDetails.entity_source` attribute + of this class is ``MACS_MANAGED_CLOUD_EXADATA`` 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 UpdateMacsManagedCloudExadataInsightDetails. + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" + :type entity_source: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateMacsManagedCloudExadataInsightDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateMacsManagedCloudExadataInsightDetails. + :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 = 'MACS_MANAGED_CLOUD_EXADATA' + + 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_macs_managed_cloud_host_insight_details.py b/src/oci/opsi/models/update_macs_managed_cloud_host_insight_details.py index c9a0a7e62..694578db2 100644 --- a/src/oci/opsi/models/update_macs_managed_cloud_host_insight_details.py +++ b/src/oci/opsi/models/update_macs_managed_cloud_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this UpdateMacsManagedCloudHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :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 1a055b589..a60e40637 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 @@ -23,7 +23,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", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param freeform_tags: diff --git a/src/oci/opsi/models/update_macs_managed_external_host_insight_details.py b/src/oci/opsi/models/update_macs_managed_external_host_insight_details.py index e884dc0a8..afa69f7e1 100644 --- a/src/oci/opsi/models/update_macs_managed_external_host_insight_details.py +++ b/src/oci/opsi/models/update_macs_managed_external_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this UpdateMacsManagedExternalHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param freeform_tags: diff --git a/src/oci/opsi/models/update_mds_my_sql_database_insight.py b/src/oci/opsi/models/update_mds_my_sql_database_insight.py index def67824c..f69a2fac4 100644 --- a/src/oci/opsi/models/update_mds_my_sql_database_insight.py +++ b/src/oci/opsi/models/update_mds_my_sql_database_insight.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this UpdateMdsMySqlDatabaseInsight. - Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param freeform_tags: 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 index df0edf6dc..e30fd83b0 100644 --- a/src/oci/opsi/models/update_pe_comanaged_database_insight_details.py +++ b/src/oci/opsi/models/update_pe_comanaged_database_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :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", "MDS_MYSQL_DATABASE_SYSTEM" + Allowed values for this property are: "AUTONOMOUS_DATABASE", "EM_MANAGED_EXTERNAL_DATABASE", "MACS_MANAGED_EXTERNAL_DATABASE", "PE_COMANAGED_DATABASE", "MDS_MYSQL_DATABASE_SYSTEM", "MACS_MANAGED_CLOUD_DATABASE" :type entity_source: str :param freeform_tags: diff --git a/src/oci/opsi/models/update_pe_comanaged_exadata_insight_details.py b/src/oci/opsi/models/update_pe_comanaged_exadata_insight_details.py index c2bea6d04..e773b1ff9 100644 --- a/src/oci/opsi/models/update_pe_comanaged_exadata_insight_details.py +++ b/src/oci/opsi/models/update_pe_comanaged_exadata_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this UpdatePeComanagedExadataInsightDetails. - Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA" + Allowed values for this property are: "EM_MANAGED_EXTERNAL_EXADATA", "PE_COMANAGED_EXADATA", "MACS_MANAGED_CLOUD_EXADATA" :type entity_source: str :param freeform_tags: diff --git a/src/oci/opsi/models/update_pe_comanaged_host_insight_details.py b/src/oci/opsi/models/update_pe_comanaged_host_insight_details.py index c87e5f7e9..0b97cae8e 100644 --- a/src/oci/opsi/models/update_pe_comanaged_host_insight_details.py +++ b/src/oci/opsi/models/update_pe_comanaged_host_insight_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param entity_source: The value to assign to the entity_source property of this UpdatePeComanagedHostInsightDetails. - Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST" + Allowed values for this property are: "MACS_MANAGED_EXTERNAL_HOST", "EM_MANAGED_EXTERNAL_HOST", "MACS_MANAGED_CLOUD_HOST", "PE_COMANAGED_HOST", "MACS_MANAGED_CLOUD_DB_HOST" :type entity_source: str :param freeform_tags: diff --git a/src/oci/opsi/models/work_request.py b/src/oci/opsi/models/work_request.py index 9553b8fbe..dc627ace6 100644 --- a/src/oci/opsi/models/work_request.py +++ b/src/oci/opsi/models/work_request.py @@ -259,6 +259,14 @@ class WorkRequest(object): #: This constant has a value of "DISABLE_AWRHUB_SOURCE" OPERATION_TYPE_DISABLE_AWRHUB_SOURCE = "DISABLE_AWRHUB_SOURCE" + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CHANGE_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS" + OPERATION_TYPE_CHANGE_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS = "CHANGE_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "TEST_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS" + OPERATION_TYPE_TEST_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS = "TEST_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS" + #: A constant which can be used with the status property of a WorkRequest. #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" @@ -294,7 +302,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", "UPDATE_PRIVATE_ENDPOINT", "CREATE_PRIVATE_ENDPOINT", "MOVE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PE_COMANAGED_DATABASE_INSIGHT_DETAILS", "UPDATE_OPSI_CONFIGURATION", "CREATE_OPSI_CONFIGURATION", "MOVE_OPSI_CONFIGURATION", "DELETE_OPSI_CONFIGURATION", "ENABLE_ADB_ADVANCED_FEATURES", "DISABLE_ADB_ADVANCED_FEATURES", "UPDATE_ADB_ADVANCED_FEATURES", "CREATE_NEWS_REPORT", "ENABLE_NEWS_REPORT", "DISABLE_NEWS_REPORT", "UPDATE_NEWS_REPORT", "MOVE_NEWS_REPORT", "DELETE_NEWS_REPORT", "CREATE_AWRHUB_SOURCE", "DELETE_AWRHUB_SOURCE", "UPDATE_AWRHUB_SOURCE", "MOVE_AWRHUB_SOURCE", "ENABLE_AWRHUB_SOURCE", "DISABLE_AWRHUB_SOURCE", '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", "CHANGE_PE_COMANAGED_DATABASE_INSIGHT_DETAILS", "UPDATE_OPSI_CONFIGURATION", "CREATE_OPSI_CONFIGURATION", "MOVE_OPSI_CONFIGURATION", "DELETE_OPSI_CONFIGURATION", "ENABLE_ADB_ADVANCED_FEATURES", "DISABLE_ADB_ADVANCED_FEATURES", "UPDATE_ADB_ADVANCED_FEATURES", "CREATE_NEWS_REPORT", "ENABLE_NEWS_REPORT", "DISABLE_NEWS_REPORT", "UPDATE_NEWS_REPORT", "MOVE_NEWS_REPORT", "DELETE_NEWS_REPORT", "CREATE_AWRHUB_SOURCE", "DELETE_AWRHUB_SOURCE", "UPDATE_AWRHUB_SOURCE", "MOVE_AWRHUB_SOURCE", "ENABLE_AWRHUB_SOURCE", "DISABLE_AWRHUB_SOURCE", "CHANGE_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS", "TEST_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -373,7 +381,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", "UPDATE_PRIVATE_ENDPOINT", "CREATE_PRIVATE_ENDPOINT", "MOVE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PE_COMANAGED_DATABASE_INSIGHT_DETAILS", "UPDATE_OPSI_CONFIGURATION", "CREATE_OPSI_CONFIGURATION", "MOVE_OPSI_CONFIGURATION", "DELETE_OPSI_CONFIGURATION", "ENABLE_ADB_ADVANCED_FEATURES", "DISABLE_ADB_ADVANCED_FEATURES", "UPDATE_ADB_ADVANCED_FEATURES", "CREATE_NEWS_REPORT", "ENABLE_NEWS_REPORT", "DISABLE_NEWS_REPORT", "UPDATE_NEWS_REPORT", "MOVE_NEWS_REPORT", "DELETE_NEWS_REPORT", "CREATE_AWRHUB_SOURCE", "DELETE_AWRHUB_SOURCE", "UPDATE_AWRHUB_SOURCE", "MOVE_AWRHUB_SOURCE", "ENABLE_AWRHUB_SOURCE", "DISABLE_AWRHUB_SOURCE", '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", "CHANGE_PE_COMANAGED_DATABASE_INSIGHT_DETAILS", "UPDATE_OPSI_CONFIGURATION", "CREATE_OPSI_CONFIGURATION", "MOVE_OPSI_CONFIGURATION", "DELETE_OPSI_CONFIGURATION", "ENABLE_ADB_ADVANCED_FEATURES", "DISABLE_ADB_ADVANCED_FEATURES", "UPDATE_ADB_ADVANCED_FEATURES", "CREATE_NEWS_REPORT", "ENABLE_NEWS_REPORT", "DISABLE_NEWS_REPORT", "UPDATE_NEWS_REPORT", "MOVE_NEWS_REPORT", "DELETE_NEWS_REPORT", "CREATE_AWRHUB_SOURCE", "DELETE_AWRHUB_SOURCE", "UPDATE_AWRHUB_SOURCE", "MOVE_AWRHUB_SOURCE", "ENABLE_AWRHUB_SOURCE", "DISABLE_AWRHUB_SOURCE", "CHANGE_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS", "TEST_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -392,7 +400,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", "UPDATE_PRIVATE_ENDPOINT", "CREATE_PRIVATE_ENDPOINT", "MOVE_PRIVATE_ENDPOINT", "DELETE_PRIVATE_ENDPOINT", "CHANGE_PE_COMANAGED_DATABASE_INSIGHT_DETAILS", "UPDATE_OPSI_CONFIGURATION", "CREATE_OPSI_CONFIGURATION", "MOVE_OPSI_CONFIGURATION", "DELETE_OPSI_CONFIGURATION", "ENABLE_ADB_ADVANCED_FEATURES", "DISABLE_ADB_ADVANCED_FEATURES", "UPDATE_ADB_ADVANCED_FEATURES", "CREATE_NEWS_REPORT", "ENABLE_NEWS_REPORT", "DISABLE_NEWS_REPORT", "UPDATE_NEWS_REPORT", "MOVE_NEWS_REPORT", "DELETE_NEWS_REPORT", "CREATE_AWRHUB_SOURCE", "DELETE_AWRHUB_SOURCE", "UPDATE_AWRHUB_SOURCE", "MOVE_AWRHUB_SOURCE", "ENABLE_AWRHUB_SOURCE", "DISABLE_AWRHUB_SOURCE"] + 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", "CHANGE_PE_COMANAGED_DATABASE_INSIGHT_DETAILS", "UPDATE_OPSI_CONFIGURATION", "CREATE_OPSI_CONFIGURATION", "MOVE_OPSI_CONFIGURATION", "DELETE_OPSI_CONFIGURATION", "ENABLE_ADB_ADVANCED_FEATURES", "DISABLE_ADB_ADVANCED_FEATURES", "UPDATE_ADB_ADVANCED_FEATURES", "CREATE_NEWS_REPORT", "ENABLE_NEWS_REPORT", "DISABLE_NEWS_REPORT", "UPDATE_NEWS_REPORT", "MOVE_NEWS_REPORT", "DELETE_NEWS_REPORT", "CREATE_AWRHUB_SOURCE", "DELETE_AWRHUB_SOURCE", "UPDATE_AWRHUB_SOURCE", "MOVE_AWRHUB_SOURCE", "ENABLE_AWRHUB_SOURCE", "DISABLE_AWRHUB_SOURCE", "CHANGE_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS", "TEST_MACS_MANAGED_CLOUD_DATABASE_INSIGHT_CONNECTION_DETAILS"] 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 20ba0557f..eb25b9554 100644 --- a/src/oci/opsi/operations_insights_client.py +++ b/src/oci/opsi/operations_insights_client.py @@ -948,6 +948,126 @@ def change_host_insight_compartment(self, host_insight_id, change_host_insight_c api_reference_link=api_reference_link, required_arguments=required_arguments) + def change_macs_managed_cloud_database_insight_connection(self, database_insight_id, change_macs_managed_cloud_database_insight_connection_details, **kwargs): + """ + Change the connection details of a Cloud MACS-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.ChangeMacsManagedCloudDatabaseInsightConnectionDetails change_macs_managed_cloud_database_insight_connection_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 uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use change_macs_managed_cloud_database_insight_connection API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['databaseInsightId'] + resource_path = "/databaseInsights/{databaseInsightId}/actions/changeMacsManagedCloudDatabaseInsightConnectionDetails" + method = "POST" + operation_name = "change_macs_managed_cloud_database_insight_connection" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/ChangeMacsManagedCloudDatabaseInsightConnection" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"change_macs_managed_cloud_database_insight_connection got unknown kwargs: {extra_kwargs!r}") + + 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(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing), + "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 is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_macs_managed_cloud_database_insight_connection_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_macs_managed_cloud_database_insight_connection_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def change_news_report_compartment(self, news_report_id, change_news_report_compartment_details, **kwargs): """ Moves a news report resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource. @@ -10966,7 +11086,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param int limit: (optional) For list pagination. The maximum number of results per page, or items to @@ -11087,7 +11207,7 @@ def list_database_configurations(self, **kwargs): f"list_database_configurations got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -11204,7 +11324,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -11325,7 +11445,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", "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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -11660,6 +11780,9 @@ def list_exadata_configurations(self, **kwargs): Currently, only existence (\"true\" at the end) is supported. Absence (\"false\" at the end) is not supported. Multiple values for different tag names are interpreted as \"AND\". + :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. @@ -11704,6 +11827,7 @@ def list_exadata_configurations(self, **kwargs): "freeform_tag_equals", "defined_tag_exists", "freeform_tag_exists", + "compartment_id_in_subtree", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] @@ -11736,7 +11860,8 @@ def list_exadata_configurations(self, **kwargs): "definedTagEquals": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_equals", missing), 'multi'), "freeformTagEquals": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_equals", missing), 'multi'), "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), - "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') + "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), + "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} @@ -12072,7 +12197,7 @@ def list_host_configurations(self, **kwargs): :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -12262,7 +12387,7 @@ def list_host_insights(self, **kwargs): :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param list[str] platform_type: (optional) Filter by one or more platform types. @@ -12537,7 +12662,7 @@ def list_hosted_entities(self, compartment_id, id, **kwargs): :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -19363,7 +19488,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -19521,7 +19646,7 @@ def summarize_database_insight_resource_capacity_trend(self, compartment_id, res f"summarize_database_insight_resource_capacity_trend got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -19657,7 +19782,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -19831,7 +19956,7 @@ def summarize_database_insight_resource_forecast_trend(self, compartment_id, res f"summarize_database_insight_resource_forecast_trend got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -19969,7 +20094,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -20137,7 +20262,7 @@ def summarize_database_insight_resource_statistics(self, compartment_id, resourc f"summarize_database_insight_resource_statistics got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -20270,7 +20395,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -20398,7 +20523,7 @@ def summarize_database_insight_resource_usage(self, compartment_id, resource_met f"summarize_database_insight_resource_usage got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -20509,7 +20634,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -20645,7 +20770,7 @@ def summarize_database_insight_resource_usage_trend(self, compartment_id, resour f"summarize_database_insight_resource_usage_trend got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -20770,7 +20895,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -20906,7 +21031,7 @@ def summarize_database_insight_resource_utilization_insight(self, compartment_id f"summarize_database_insight_resource_utilization_insight got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -21463,6 +21588,9 @@ def summarize_exadata_insight_resource_capacity_trend_aggregated(self, resource_ Currently, only existence (\"true\" at the end) is supported. Absence (\"false\" at the end) is not supported. Multiple values for different tag names are interpreted as \"AND\". + :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. @@ -21511,6 +21639,7 @@ def summarize_exadata_insight_resource_capacity_trend_aggregated(self, resource_ "freeform_tag_equals", "defined_tag_exists", "freeform_tag_exists", + "compartment_id_in_subtree", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] @@ -21549,7 +21678,8 @@ def summarize_exadata_insight_resource_capacity_trend_aggregated(self, resource_ "definedTagEquals": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_equals", missing), 'multi'), "freeformTagEquals": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_equals", missing), 'multi'), "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), - "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') + "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), + "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} @@ -21980,6 +22110,9 @@ def summarize_exadata_insight_resource_forecast_trend_aggregated(self, resource_ Currently, only existence (\"true\" at the end) is supported. Absence (\"false\" at the end) is not supported. Multiple values for different tag names are interpreted as \"AND\". + :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. @@ -22031,6 +22164,7 @@ def summarize_exadata_insight_resource_forecast_trend_aggregated(self, resource_ "freeform_tag_equals", "defined_tag_exists", "freeform_tag_exists", + "compartment_id_in_subtree", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] @@ -22072,7 +22206,8 @@ def summarize_exadata_insight_resource_forecast_trend_aggregated(self, resource_ "definedTagEquals": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_equals", missing), 'multi'), "freeformTagEquals": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_equals", missing), 'multi'), "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), - "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') + "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), + "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} @@ -22432,6 +22567,9 @@ def summarize_exadata_insight_resource_usage(self, compartment_id, resource_type Currently, only existence (\"true\" at the end) is supported. Absence (\"false\" at the end) is not supported. Multiple values for different tag names are interpreted as \"AND\". + :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. @@ -22481,6 +22619,7 @@ def summarize_exadata_insight_resource_usage(self, compartment_id, resource_type "freeform_tag_equals", "defined_tag_exists", "freeform_tag_exists", + "compartment_id_in_subtree", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] @@ -22521,7 +22660,8 @@ def summarize_exadata_insight_resource_usage(self, compartment_id, resource_type "definedTagEquals": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_equals", missing), 'multi'), "freeformTagEquals": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_equals", missing), 'multi'), "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), - "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') + "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), + "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} @@ -22658,6 +22798,9 @@ def summarize_exadata_insight_resource_usage_aggregated(self, compartment_id, re Currently, only existence (\"true\" at the end) is supported. Absence (\"false\" at the end) is not supported. Multiple values for different tag names are interpreted as \"AND\". + :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. @@ -22704,6 +22847,7 @@ def summarize_exadata_insight_resource_usage_aggregated(self, compartment_id, re "freeform_tag_equals", "defined_tag_exists", "freeform_tag_exists", + "compartment_id_in_subtree", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] @@ -22727,7 +22871,8 @@ def summarize_exadata_insight_resource_usage_aggregated(self, compartment_id, re "definedTagEquals": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_equals", missing), 'multi'), "freeformTagEquals": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_equals", missing), 'multi'), "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), - "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') + "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), + "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} @@ -22871,6 +23016,9 @@ def summarize_exadata_insight_resource_utilization_insight(self, compartment_id, Currently, only existence (\"true\" at the end) is supported. Absence (\"false\" at the end) is not supported. Multiple values for different tag names are interpreted as \"AND\". + :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. @@ -22919,6 +23067,7 @@ def summarize_exadata_insight_resource_utilization_insight(self, compartment_id, "freeform_tag_equals", "defined_tag_exists", "freeform_tag_exists", + "compartment_id_in_subtree", "opc_request_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] @@ -22944,7 +23093,8 @@ def summarize_exadata_insight_resource_utilization_insight(self, compartment_id, "definedTagEquals": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_equals", missing), 'multi'), "freeformTagEquals": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_equals", missing), 'multi'), "definedTagExists": self.base_client.generate_collection_format_param(kwargs.get("defined_tag_exists", missing), 'multi'), - "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi') + "freeformTagExists": self.base_client.generate_collection_format_param(kwargs.get("freeform_tag_exists", missing), 'multi'), + "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} @@ -23762,7 +23912,7 @@ def summarize_host_insight_resource_capacity_trend(self, compartment_id, resourc :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -24071,7 +24221,7 @@ def summarize_host_insight_resource_forecast_trend(self, compartment_id, resourc :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -24396,7 +24546,7 @@ def summarize_host_insight_resource_statistics(self, compartment_id, resource_me :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -24676,7 +24826,7 @@ def summarize_host_insight_resource_usage(self, compartment_id, resource_metric, :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -24928,7 +25078,7 @@ def summarize_host_insight_resource_usage_trend(self, compartment_id, resource_m :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -25188,7 +25338,7 @@ def summarize_host_insight_resource_utilization_insight(self, compartment_id, re :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -25595,7 +25745,7 @@ def summarize_host_insight_top_processes_usage(self, compartment_id, id, resourc :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -25792,7 +25942,7 @@ def summarize_host_insight_top_processes_usage_trend(self, compartment_id, id, r :param list[str] host_type: (optional) Filter by one or more host types. - Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST + Possible values are CLOUD-HOST, EXTERNAL-HOST, COMANAGED-VM-HOST, COMANAGED-BM-HOST, COMANAGED-EXACS-HOST, COMANAGED-EXACC-HOST :param str host_id: (optional) Optional `OCID`__ of the host (Compute Id) @@ -26046,7 +26196,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -26187,7 +26337,7 @@ def summarize_sql_insights(self, compartment_id, **kwargs): f"summarize_sql_insights got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -26572,7 +26722,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", "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", "MDS-MYSQL" + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL" :param list[str] database_id: (optional) Optional list of database `OCIDs`__ of the associated DBaaS entity. @@ -26747,7 +26897,7 @@ def summarize_sql_statistics(self, compartment_id, **kwargs): f"summarize_sql_statistics got unknown kwargs: {extra_kwargs!r}") if 'database_type' in kwargs: - 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", "MDS-MYSQL"] + 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", "COMANAGED-EXACC-CDB", "COMANAGED-EXACC-PDB", "COMANAGED-EXACC-NONCDB", "MDS-MYSQL"] for database_type_item in kwargs['database_type']: if database_type_item not in database_type_allowed_values: raise ValueError( @@ -27204,6 +27354,124 @@ def summarize_sql_statistics_time_series_by_plan(self, compartment_id, sql_ident api_reference_link=api_reference_link, required_arguments=required_arguments) + def test_macs_managed_cloud_database_insight_connection(self, test_macs_managed_cloud_database_insight_connection_details, **kwargs): + """ + Test the connection details of a Cloud MACS-managed database. + + + :param oci.opsi.models.TestMacsManagedCloudDatabaseInsightConnectionDetails test_macs_managed_cloud_database_insight_connection_details: (required) + The database connection information for the Cloud MACS-managed database. + + :param str database_id: (optional) + Optional `OCID`__ of the associated DBaaS entity. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :param str id: (optional) + `OCID`__ of the database insight resource. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + :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 uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use test_macs_managed_cloud_database_insight_connection API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/databaseInsights/actions/testMacsManagedCloudDatabaseInsightConnectionDetails" + method = "POST" + operation_name = "test_macs_managed_cloud_database_insight_connection" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/operations-insights/20200630/DatabaseInsights/TestMacsManagedCloudDatabaseInsightConnection" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "database_id", + "id", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"test_macs_managed_cloud_database_insight_connection got unknown kwargs: {extra_kwargs!r}") + + query_params = { + "databaseId": kwargs.get("database_id", missing), + "id": kwargs.get("id", 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), + "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 is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + body=test_macs_managed_cloud_database_insight_connection_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + body=test_macs_managed_cloud_database_insight_connection_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def update_awr_hub(self, awr_hub_id, update_awr_hub_details, **kwargs): """ Updates the configuration of a hub . diff --git a/src/oci/opsi/operations_insights_client_composite_operations.py b/src/oci/opsi/operations_insights_client_composite_operations.py index cfe17a5c3..8db55fc7b 100644 --- a/src/oci/opsi/operations_insights_client_composite_operations.py +++ b/src/oci/opsi/operations_insights_client_composite_operations.py @@ -319,6 +319,48 @@ 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_macs_managed_cloud_database_insight_connection_and_wait_for_state(self, database_insight_id, change_macs_managed_cloud_database_insight_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.opsi.OperationsInsightsClient.change_macs_managed_cloud_database_insight_connection` 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.ChangeMacsManagedCloudDatabaseInsightConnectionDetails change_macs_managed_cloud_database_insight_connection_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_macs_managed_cloud_database_insight_connection` + + :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_macs_managed_cloud_database_insight_connection(database_insight_id, change_macs_managed_cloud_database_insight_connection_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def change_news_report_compartment_and_wait_for_state(self, news_report_id, change_news_report_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.opsi.OperationsInsightsClient.change_news_report_compartment` and waits for the :py:class:`~oci.opsi.models.WorkRequest` @@ -1924,6 +1966,45 @@ def rotate_operations_insights_warehouse_wallet_and_wait_for_state(self, operati except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def test_macs_managed_cloud_database_insight_connection_and_wait_for_state(self, test_macs_managed_cloud_database_insight_connection_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.opsi.OperationsInsightsClient.test_macs_managed_cloud_database_insight_connection` and waits for the :py:class:`~oci.opsi.models.WorkRequest` + to enter the given state(s). + + :param oci.opsi.models.TestMacsManagedCloudDatabaseInsightConnectionDetails test_macs_managed_cloud_database_insight_connection_details: (required) + The database connection information for the Cloud MACS-managed database. + + :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.test_macs_managed_cloud_database_insight_connection` + + :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.test_macs_managed_cloud_database_insight_connection(test_macs_managed_cloud_database_insight_connection_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + if 'opc-work-request-id' not in operation_result.headers: + return operation_result + wait_for_resource_id = operation_result.headers['opc-work-request-id'] + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_work_request(wait_for_resource_id), + evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_awr_hub_and_wait_for_state(self, awr_hub_id, update_awr_hub_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.opsi.OperationsInsightsClient.update_awr_hub` and waits for the :py:class:`~oci.opsi.models.WorkRequest` diff --git a/src/oci/os_management_hub/models/event_content.py b/src/oci/os_management_hub/models/event_content.py index ead5217ae..213a80928 100644 --- a/src/oci/os_management_hub/models/event_content.py +++ b/src/oci/os_management_hub/models/event_content.py @@ -35,7 +35,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this EventContent. - Allowed values for this property are: "KERNEL", "EXPLOIT_ATTEMPT" + Allowed values for this property are: "KERNEL", "EXPLOIT_ATTEMPT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str """ @@ -73,7 +74,8 @@ def type(self): * `KERNEL` - Used to identify a kernel oops/crash content * `EXPLOIT_ATTEMPT` - Used to identify a known exploit detection content - Allowed values for this property are: "KERNEL", "EXPLOIT_ATTEMPT" + Allowed values for this property are: "KERNEL", "EXPLOIT_ATTEMPT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this EventContent. @@ -95,9 +97,7 @@ def type(self, type): """ allowed_values = ["KERNEL", "EXPLOIT_ATTEMPT"] if not value_allowed_none_or_none_sentinel(type, allowed_values): - raise ValueError( - f"Invalid value for `type`, must be None or one of {allowed_values}" - ) + type = 'UNKNOWN_ENUM_VALUE' self._type = type def __repr__(self): diff --git a/src/oci/os_management_hub/models/exploit_attempt_event_content.py b/src/oci/os_management_hub/models/exploit_attempt_event_content.py index 41b0012f8..d2aa8f5d2 100644 --- a/src/oci/os_management_hub/models/exploit_attempt_event_content.py +++ b/src/oci/os_management_hub/models/exploit_attempt_event_content.py @@ -23,7 +23,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this ExploitAttemptEventContent. - Allowed values for this property are: "KERNEL", "EXPLOIT_ATTEMPT" + Allowed values for this property are: "KERNEL", "EXPLOIT_ATTEMPT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param exploit_detection_log_content: diff --git a/src/oci/os_management_hub/models/package_summary.py b/src/oci/os_management_hub/models/package_summary.py index c92fc429e..b8157e377 100644 --- a/src/oci/os_management_hub/models/package_summary.py +++ b/src/oci/os_management_hub/models/package_summary.py @@ -76,7 +76,8 @@ def __init__(self, **kwargs): :param architecture: The value to assign to the architecture property of this PackageSummary. - Allowed values for this property are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC" + Allowed values for this property are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type architecture: str :param software_sources: @@ -85,7 +86,8 @@ def __init__(self, **kwargs): :param package_classification: The value to assign to the package_classification property of this PackageSummary. - Allowed values for this property are: "INSTALLED", "AVAILABLE", "UPDATABLE" + Allowed values for this property are: "INSTALLED", "AVAILABLE", "UPDATABLE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type package_classification: str """ @@ -238,7 +240,8 @@ def architecture(self): Gets the architecture of this PackageSummary. The architecture for which this package was built. - Allowed values for this property are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC" + Allowed values for this property are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The architecture of this PackageSummary. @@ -258,9 +261,7 @@ def architecture(self, architecture): """ allowed_values = ["X86_64", "AARCH64", "I686", "NOARCH", "SRC"] if not value_allowed_none_or_none_sentinel(architecture, allowed_values): - raise ValueError( - f"Invalid value for `architecture`, must be None or one of {allowed_values}" - ) + architecture = 'UNKNOWN_ENUM_VALUE' self._architecture = architecture @property @@ -293,7 +294,8 @@ def package_classification(self): **[Required]** Gets the package_classification of this PackageSummary. Status of the software package. - Allowed values for this property are: "INSTALLED", "AVAILABLE", "UPDATABLE" + Allowed values for this property are: "INSTALLED", "AVAILABLE", "UPDATABLE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The package_classification of this PackageSummary. @@ -313,9 +315,7 @@ def package_classification(self, package_classification): """ allowed_values = ["INSTALLED", "AVAILABLE", "UPDATABLE"] if not value_allowed_none_or_none_sentinel(package_classification, allowed_values): - raise ValueError( - f"Invalid value for `package_classification`, must be None or one of {allowed_values}" - ) + package_classification = 'UNKNOWN_ENUM_VALUE' self._package_classification = package_classification def __repr__(self): diff --git a/src/oci/service_mesh/models/traffic_rule_target.py b/src/oci/service_mesh/models/traffic_rule_target.py index 52327a5a6..7db975ea8 100644 --- a/src/oci/service_mesh/models/traffic_rule_target.py +++ b/src/oci/service_mesh/models/traffic_rule_target.py @@ -35,7 +35,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this TrafficRuleTarget. - Allowed values for this property are: "VIRTUAL_DEPLOYMENT", "VIRTUAL_SERVICE" + Allowed values for this property are: "VIRTUAL_DEPLOYMENT", "VIRTUAL_SERVICE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str """ @@ -71,7 +72,8 @@ def type(self): **[Required]** Gets the type of this TrafficRuleTarget. Type of the traffic target. - Allowed values for this property are: "VIRTUAL_DEPLOYMENT", "VIRTUAL_SERVICE" + Allowed values for this property are: "VIRTUAL_DEPLOYMENT", "VIRTUAL_SERVICE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this TrafficRuleTarget. @@ -91,9 +93,7 @@ def type(self, type): """ allowed_values = ["VIRTUAL_DEPLOYMENT", "VIRTUAL_SERVICE"] if not value_allowed_none_or_none_sentinel(type, allowed_values): - raise ValueError( - f"Invalid value for `type`, must be None or one of {allowed_values}" - ) + type = 'UNKNOWN_ENUM_VALUE' self._type = type def __repr__(self): diff --git a/src/oci/version.py b/src/oci/version.py index 6a48ef820..15eb0fb77 100644 --- a/src/oci/version.py +++ b/src/oci/version.py @@ -2,4 +2,4 @@ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -__version__ = "2.134.0" +__version__ = "2.135.0" diff --git a/src/oci/vn_monitoring/models/topology.py b/src/oci/vn_monitoring/models/topology.py index 0c57e560a..61ef6b7a5 100644 --- a/src/oci/vn_monitoring/models/topology.py +++ b/src/oci/vn_monitoring/models/topology.py @@ -45,7 +45,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this Topology. - Allowed values for this property are: "NETWORKING", "VCN", "SUBNET", "PATH" + Allowed values for this property are: "NETWORKING", "VCN", "SUBNET", "PATH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param entities: @@ -115,7 +116,8 @@ def type(self): **[Required]** Gets the type of this Topology. Type of the topology object. - Allowed values for this property are: "NETWORKING", "VCN", "SUBNET", "PATH" + Allowed values for this property are: "NETWORKING", "VCN", "SUBNET", "PATH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this Topology. @@ -135,9 +137,7 @@ def type(self, type): """ allowed_values = ["NETWORKING", "VCN", "SUBNET", "PATH"] if not value_allowed_none_or_none_sentinel(type, allowed_values): - raise ValueError( - f"Invalid value for `type`, must be None or one of {allowed_values}" - ) + type = 'UNKNOWN_ENUM_VALUE' self._type = type @property diff --git a/src/oci/waf/models/protection_rule.py b/src/oci/waf/models/protection_rule.py index e12b85300..61916404e 100644 --- a/src/oci/waf/models/protection_rule.py +++ b/src/oci/waf/models/protection_rule.py @@ -26,7 +26,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this ProtectionRule. - Allowed values for this property are: "ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING" + Allowed values for this property are: "ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param name: @@ -35,7 +36,8 @@ def __init__(self, **kwargs): :param condition_language: The value to assign to the condition_language property of this ProtectionRule. - Allowed values for this property are: "JMESPATH" + Allowed values for this property are: "JMESPATH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type condition_language: str :param condition: diff --git a/src/oci/waf/models/request_rate_limiting_rule.py b/src/oci/waf/models/request_rate_limiting_rule.py index 9870a0d9f..d73d55ee6 100644 --- a/src/oci/waf/models/request_rate_limiting_rule.py +++ b/src/oci/waf/models/request_rate_limiting_rule.py @@ -26,7 +26,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this RequestRateLimitingRule. - Allowed values for this property are: "ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING" + Allowed values for this property are: "ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param name: @@ -35,7 +36,8 @@ def __init__(self, **kwargs): :param condition_language: The value to assign to the condition_language property of this RequestRateLimitingRule. - Allowed values for this property are: "JMESPATH" + Allowed values for this property are: "JMESPATH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type condition_language: str :param condition: diff --git a/src/oci/waf/models/web_app_firewall_policy_rule.py b/src/oci/waf/models/web_app_firewall_policy_rule.py index fd1a1c11a..fba74c76c 100644 --- a/src/oci/waf/models/web_app_firewall_policy_rule.py +++ b/src/oci/waf/models/web_app_firewall_policy_rule.py @@ -44,7 +44,8 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this WebAppFirewallPolicyRule. - Allowed values for this property are: "ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING" + Allowed values for this property are: "ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str :param name: @@ -53,7 +54,8 @@ def __init__(self, **kwargs): :param condition_language: The value to assign to the condition_language property of this WebAppFirewallPolicyRule. - Allowed values for this property are: "JMESPATH" + Allowed values for this property are: "JMESPATH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type condition_language: str :param condition: @@ -112,7 +114,8 @@ def type(self): **[Required]** Gets the type of this WebAppFirewallPolicyRule. Type of WebAppFirewallPolicyRule. - Allowed values for this property are: "ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING" + Allowed values for this property are: "ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The type of this WebAppFirewallPolicyRule. @@ -132,9 +135,7 @@ def type(self, type): """ allowed_values = ["ACCESS_CONTROL", "PROTECTION", "REQUEST_RATE_LIMITING"] if not value_allowed_none_or_none_sentinel(type, allowed_values): - raise ValueError( - f"Invalid value for `type`, must be None or one of {allowed_values}" - ) + type = 'UNKNOWN_ENUM_VALUE' self._type = type @property @@ -169,7 +170,8 @@ def condition_language(self): * **JMESPATH** an extended JMESPath language syntax. - Allowed values for this property are: "JMESPATH" + Allowed values for this property are: "JMESPATH", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The condition_language of this WebAppFirewallPolicyRule. @@ -191,9 +193,7 @@ def condition_language(self, condition_language): """ allowed_values = ["JMESPATH"] if not value_allowed_none_or_none_sentinel(condition_language, allowed_values): - raise ValueError( - f"Invalid value for `condition_language`, must be None or one of {allowed_values}" - ) + condition_language = 'UNKNOWN_ENUM_VALUE' self._condition_language = condition_language @property