diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fcd435ef6..dcdf99204 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,23 @@ Change Log All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. +==================== +2.135.2 - 2024-10-08 +==================== + +Added +----- +* Support for OCI Secure Desktops service +* Support for window preferences on cloud automation tooling updates on ExaCC and ExaCS VM clusters in the Database service +* Support for maintenance windows in the Stack Monitoring service +* Renamed service OCI Container Engine to OCI Kubernetes Engine +* Support for password as an optional parameter on creating admin users in the Fusion Apps as a Service +* Support for IAM credentials for autonomous databases in the Operations Insights service + +Security +------- +* The upper bound for `cryptography` dependency has changed to versions less than `46.0.0` + ==================== 2.135.1 - 2024-10-01 ==================== diff --git a/docs/api/core.rst b/docs/api/core.rst index 7b8bd278c..4a47bf370 100644 --- a/docs/api/core.rst +++ b/docs/api/core.rst @@ -415,6 +415,7 @@ Core Services oci.core.models.Ipv6 oci.core.models.Ipv6AddressIpv6SubnetCidrPairDetails oci.core.models.LaunchAttachIScsiVolumeDetails + oci.core.models.LaunchAttachParavirtualizedVolumeDetails oci.core.models.LaunchAttachVolumeDetails oci.core.models.LaunchCreateVolumeDetails oci.core.models.LaunchCreateVolumeFromAttributes diff --git a/docs/api/core/models/oci.core.models.LaunchAttachParavirtualizedVolumeDetails.rst b/docs/api/core/models/oci.core.models.LaunchAttachParavirtualizedVolumeDetails.rst new file mode 100644 index 000000000..bba4e0716 --- /dev/null +++ b/docs/api/core/models/oci.core.models.LaunchAttachParavirtualizedVolumeDetails.rst @@ -0,0 +1,11 @@ +LaunchAttachParavirtualizedVolumeDetails +======================================== + +.. currentmodule:: oci.core.models + +.. autoclass:: LaunchAttachParavirtualizedVolumeDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops.rst b/docs/api/desktops.rst index ec65527dd..0964de683 100644 --- a/docs/api/desktops.rst +++ b/docs/api/desktops.rst @@ -19,7 +19,10 @@ Desktops :template: autosummary/model_class.rst oci.desktops.models.ChangeDesktopPoolCompartmentDetails + oci.desktops.models.CreateDesktopPoolDesktopSessionLifecycleActions oci.desktops.models.CreateDesktopPoolDetails + oci.desktops.models.CreateDesktopPoolPrivateAccessDetails + oci.desktops.models.CreateDesktopPoolShapeConfigDetails oci.desktops.models.Desktop oci.desktops.models.DesktopAvailabilityPolicy oci.desktops.models.DesktopCollection @@ -30,13 +33,19 @@ Desktops oci.desktops.models.DesktopPoolCollection oci.desktops.models.DesktopPoolDesktopCollection oci.desktops.models.DesktopPoolDesktopSummary + oci.desktops.models.DesktopPoolPrivateAccessDetails + oci.desktops.models.DesktopPoolShapeConfig oci.desktops.models.DesktopPoolSummary oci.desktops.models.DesktopPoolVolumeCollection oci.desktops.models.DesktopPoolVolumeSummary oci.desktops.models.DesktopSchedule + oci.desktops.models.DesktopSessionLifecycleActions oci.desktops.models.DesktopSummary + oci.desktops.models.DisconnectConfig oci.desktops.models.HostingOptions + oci.desktops.models.InactivityConfig oci.desktops.models.UpdateDesktopDetails + oci.desktops.models.UpdateDesktopPoolDesktopSessionLifecycleActions oci.desktops.models.UpdateDesktopPoolDetails oci.desktops.models.WorkRequest oci.desktops.models.WorkRequestError diff --git a/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolDesktopSessionLifecycleActions.rst b/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolDesktopSessionLifecycleActions.rst new file mode 100644 index 000000000..74b7cf455 --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolDesktopSessionLifecycleActions.rst @@ -0,0 +1,11 @@ +CreateDesktopPoolDesktopSessionLifecycleActions +=============================================== + +.. currentmodule:: oci.desktops.models + +.. autoclass:: CreateDesktopPoolDesktopSessionLifecycleActions + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolPrivateAccessDetails.rst b/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolPrivateAccessDetails.rst new file mode 100644 index 000000000..8d3d8b4b7 --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolPrivateAccessDetails.rst @@ -0,0 +1,11 @@ +CreateDesktopPoolPrivateAccessDetails +===================================== + +.. currentmodule:: oci.desktops.models + +.. autoclass:: CreateDesktopPoolPrivateAccessDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolShapeConfigDetails.rst b/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolShapeConfigDetails.rst new file mode 100644 index 000000000..eed359b28 --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.CreateDesktopPoolShapeConfigDetails.rst @@ -0,0 +1,11 @@ +CreateDesktopPoolShapeConfigDetails +=================================== + +.. currentmodule:: oci.desktops.models + +.. autoclass:: CreateDesktopPoolShapeConfigDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops/models/oci.desktops.models.DesktopPoolPrivateAccessDetails.rst b/docs/api/desktops/models/oci.desktops.models.DesktopPoolPrivateAccessDetails.rst new file mode 100644 index 000000000..247864cb9 --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.DesktopPoolPrivateAccessDetails.rst @@ -0,0 +1,11 @@ +DesktopPoolPrivateAccessDetails +=============================== + +.. currentmodule:: oci.desktops.models + +.. autoclass:: DesktopPoolPrivateAccessDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops/models/oci.desktops.models.DesktopPoolShapeConfig.rst b/docs/api/desktops/models/oci.desktops.models.DesktopPoolShapeConfig.rst new file mode 100644 index 000000000..288be7562 --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.DesktopPoolShapeConfig.rst @@ -0,0 +1,11 @@ +DesktopPoolShapeConfig +====================== + +.. currentmodule:: oci.desktops.models + +.. autoclass:: DesktopPoolShapeConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops/models/oci.desktops.models.DesktopSessionLifecycleActions.rst b/docs/api/desktops/models/oci.desktops.models.DesktopSessionLifecycleActions.rst new file mode 100644 index 000000000..eba0eaad8 --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.DesktopSessionLifecycleActions.rst @@ -0,0 +1,11 @@ +DesktopSessionLifecycleActions +============================== + +.. currentmodule:: oci.desktops.models + +.. autoclass:: DesktopSessionLifecycleActions + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops/models/oci.desktops.models.DisconnectConfig.rst b/docs/api/desktops/models/oci.desktops.models.DisconnectConfig.rst new file mode 100644 index 000000000..684d674a0 --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.DisconnectConfig.rst @@ -0,0 +1,11 @@ +DisconnectConfig +================ + +.. currentmodule:: oci.desktops.models + +.. autoclass:: DisconnectConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops/models/oci.desktops.models.InactivityConfig.rst b/docs/api/desktops/models/oci.desktops.models.InactivityConfig.rst new file mode 100644 index 000000000..65438e226 --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.InactivityConfig.rst @@ -0,0 +1,11 @@ +InactivityConfig +================ + +.. currentmodule:: oci.desktops.models + +.. autoclass:: InactivityConfig + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/desktops/models/oci.desktops.models.UpdateDesktopPoolDesktopSessionLifecycleActions.rst b/docs/api/desktops/models/oci.desktops.models.UpdateDesktopPoolDesktopSessionLifecycleActions.rst new file mode 100644 index 000000000..4a8a026be --- /dev/null +++ b/docs/api/desktops/models/oci.desktops.models.UpdateDesktopPoolDesktopSessionLifecycleActions.rst @@ -0,0 +1,11 @@ +UpdateDesktopPoolDesktopSessionLifecycleActions +=============================================== + +.. currentmodule:: oci.desktops.models + +.. autoclass:: UpdateDesktopPoolDesktopSessionLifecycleActions + :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 86e24debc..65b5dbb58 100644 --- a/docs/api/opsi.rst +++ b/docs/api/opsi.rst @@ -112,6 +112,7 @@ Opsi oci.opsi.models.ConfigurationItemUnitDetails oci.opsi.models.ConfigurationItemsCollection oci.opsi.models.ConnectionDetails + oci.opsi.models.CreateAutonomousDatabaseInsightDetails oci.opsi.models.CreateAwrHubDetails oci.opsi.models.CreateAwrHubSourceDetails oci.opsi.models.CreateBasicConfigurationItemDetails @@ -140,6 +141,7 @@ Opsi oci.opsi.models.CreatePeComanagedDatabaseInsightDetails oci.opsi.models.CreatePeComanagedExadataInsightDetails oci.opsi.models.CreatePeComanagedExadataVmclusterDetails + oci.opsi.models.CredentialByIam oci.opsi.models.CredentialByVault oci.opsi.models.CredentialDetails oci.opsi.models.CredentialsBySource @@ -187,6 +189,7 @@ Opsi oci.opsi.models.EmManagedExternalHostInsight oci.opsi.models.EmManagedExternalHostInsightSummary oci.opsi.models.EnableAutonomousDatabaseInsightAdvancedFeaturesDetails + oci.opsi.models.EnableAutonomousDatabaseInsightDetails oci.opsi.models.EnableDatabaseInsightDetails oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails oci.opsi.models.EnableEmManagedExternalExadataInsightDetails diff --git a/docs/api/opsi/models/oci.opsi.models.CreateAutonomousDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.CreateAutonomousDatabaseInsightDetails.rst new file mode 100644 index 000000000..50319a144 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.CreateAutonomousDatabaseInsightDetails.rst @@ -0,0 +1,11 @@ +CreateAutonomousDatabaseInsightDetails +====================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: CreateAutonomousDatabaseInsightDetails + :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.CredentialByIam.rst b/docs/api/opsi/models/oci.opsi.models.CredentialByIam.rst new file mode 100644 index 000000000..35d1f12c3 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.CredentialByIam.rst @@ -0,0 +1,11 @@ +CredentialByIam +=============== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: CredentialByIam + :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.EnableAutonomousDatabaseInsightDetails.rst b/docs/api/opsi/models/oci.opsi.models.EnableAutonomousDatabaseInsightDetails.rst new file mode 100644 index 000000000..736265f28 --- /dev/null +++ b/docs/api/opsi/models/oci.opsi.models.EnableAutonomousDatabaseInsightDetails.rst @@ -0,0 +1,11 @@ +EnableAutonomousDatabaseInsightDetails +====================================== + +.. currentmodule:: oci.opsi.models + +.. autoclass:: EnableAutonomousDatabaseInsightDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring.rst b/docs/api/stack_monitoring.rst index af3bc5796..5af472433 100644 --- a/docs/api/stack_monitoring.rst +++ b/docs/api/stack_monitoring.rst @@ -46,6 +46,8 @@ Stack Monitoring oci.stack_monitoring.models.CreateDiscoveryJobDetails oci.stack_monitoring.models.CreateLicenseAutoAssignConfigDetails oci.stack_monitoring.models.CreateLicenseEnterpriseExtensibilityConfigDetails + oci.stack_monitoring.models.CreateMaintenanceWindowDetails + oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails oci.stack_monitoring.models.CreateMetricExtensionDetails oci.stack_monitoring.models.CreateMonitoredResourceDetails oci.stack_monitoring.models.CreateMonitoredResourceTaskDetails @@ -75,6 +77,10 @@ Stack Monitoring oci.stack_monitoring.models.LicenseAutoAssignConfigSummary oci.stack_monitoring.models.LicenseEnterpriseExtensibilityConfigDetails oci.stack_monitoring.models.LicenseEnterpriseExtensibilityConfigSummary + oci.stack_monitoring.models.MaintenanceWindow + oci.stack_monitoring.models.MaintenanceWindowCollection + oci.stack_monitoring.models.MaintenanceWindowSchedule + oci.stack_monitoring.models.MaintenanceWindowSummary oci.stack_monitoring.models.ManageLicenseDetails oci.stack_monitoring.models.Metric oci.stack_monitoring.models.MetricData @@ -91,6 +97,7 @@ Stack Monitoring oci.stack_monitoring.models.MonitoredResourceAssociationsCollection oci.stack_monitoring.models.MonitoredResourceCollection oci.stack_monitoring.models.MonitoredResourceCredential + oci.stack_monitoring.models.MonitoredResourceDetails oci.stack_monitoring.models.MonitoredResourceMemberSummary oci.stack_monitoring.models.MonitoredResourceMembersCollection oci.stack_monitoring.models.MonitoredResourceProperty @@ -104,6 +111,7 @@ Stack Monitoring oci.stack_monitoring.models.MonitoredResourceTypesCollection oci.stack_monitoring.models.MonitoredResourcesCountAggregation oci.stack_monitoring.models.MonitoredResourcesCountAggregationCollection + oci.stack_monitoring.models.OneTimeMaintenanceWindowSchedule oci.stack_monitoring.models.OsCommandQueryProperties oci.stack_monitoring.models.OsCommandUpdateQueryProperties oci.stack_monitoring.models.PlainTextCredentials @@ -114,6 +122,7 @@ Stack Monitoring oci.stack_monitoring.models.ProcessSetSpecificationDetails oci.stack_monitoring.models.ProcessSetSummary oci.stack_monitoring.models.PropertyDetails + oci.stack_monitoring.models.RecurrentMaintenanceWindowSchedule oci.stack_monitoring.models.ResourceTypeMetadataDetails oci.stack_monitoring.models.ScriptFileDetails oci.stack_monitoring.models.SearchAssociatedResourcesDetails @@ -135,6 +144,7 @@ Stack Monitoring oci.stack_monitoring.models.UpdateConfigDetails oci.stack_monitoring.models.UpdateLicenseAutoAssignConfigDetails oci.stack_monitoring.models.UpdateLicenseEnterpriseExtensibilityConfigDetails + oci.stack_monitoring.models.UpdateMaintenanceWindowDetails oci.stack_monitoring.models.UpdateMetricExtensionDetails oci.stack_monitoring.models.UpdateMonitoredResourceDetails oci.stack_monitoring.models.UpdateMonitoredResourceTaskDetails diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.CreateMaintenanceWindowDetails.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.CreateMaintenanceWindowDetails.rst new file mode 100644 index 000000000..7fc6bfc36 --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.CreateMaintenanceWindowDetails.rst @@ -0,0 +1,11 @@ +CreateMaintenanceWindowDetails +============================== + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: CreateMaintenanceWindowDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails.rst new file mode 100644 index 000000000..39702a08c --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails.rst @@ -0,0 +1,11 @@ +CreateMaintenanceWindowResourceDetails +====================================== + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: CreateMaintenanceWindowResourceDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindow.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindow.rst new file mode 100644 index 000000000..9123f33db --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindow.rst @@ -0,0 +1,11 @@ +MaintenanceWindow +================= + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: MaintenanceWindow + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowCollection.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowCollection.rst new file mode 100644 index 000000000..7207b3d10 --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowCollection.rst @@ -0,0 +1,11 @@ +MaintenanceWindowCollection +=========================== + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: MaintenanceWindowCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowSchedule.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowSchedule.rst new file mode 100644 index 000000000..318fcec8b --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowSchedule.rst @@ -0,0 +1,11 @@ +MaintenanceWindowSchedule +========================= + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: MaintenanceWindowSchedule + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowSummary.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowSummary.rst new file mode 100644 index 000000000..13f328956 --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MaintenanceWindowSummary.rst @@ -0,0 +1,11 @@ +MaintenanceWindowSummary +======================== + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: MaintenanceWindowSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MonitoredResourceDetails.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MonitoredResourceDetails.rst new file mode 100644 index 000000000..a8b96e6ee --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.MonitoredResourceDetails.rst @@ -0,0 +1,11 @@ +MonitoredResourceDetails +======================== + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: MonitoredResourceDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.OneTimeMaintenanceWindowSchedule.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.OneTimeMaintenanceWindowSchedule.rst new file mode 100644 index 000000000..646c12aad --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.OneTimeMaintenanceWindowSchedule.rst @@ -0,0 +1,11 @@ +OneTimeMaintenanceWindowSchedule +================================ + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: OneTimeMaintenanceWindowSchedule + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.RecurrentMaintenanceWindowSchedule.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.RecurrentMaintenanceWindowSchedule.rst new file mode 100644 index 000000000..c9f559879 --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.RecurrentMaintenanceWindowSchedule.rst @@ -0,0 +1,11 @@ +RecurrentMaintenanceWindowSchedule +================================== + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: RecurrentMaintenanceWindowSchedule + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/stack_monitoring/models/oci.stack_monitoring.models.UpdateMaintenanceWindowDetails.rst b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.UpdateMaintenanceWindowDetails.rst new file mode 100644 index 000000000..10e17e91e --- /dev/null +++ b/docs/api/stack_monitoring/models/oci.stack_monitoring.models.UpdateMaintenanceWindowDetails.rst @@ -0,0 +1,11 @@ +UpdateMaintenanceWindowDetails +============================== + +.. currentmodule:: oci.stack_monitoring.models + +.. autoclass:: UpdateMaintenanceWindowDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 6289c1904..e15c345f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ autodocsumm==0.1.11 certifi coverage==4.5.2 -cryptography>=3.2.1,<43.0.0 +cryptography>=3.2.1,<46.0.0 flake8>=3.6.0,<6 mock==2.0.0 pyOpenSSL>=17.5.0,<25.0.0 diff --git a/setup.py b/setup.py index 81a9e4a67..2d1ed6918 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ def open_relative(*path): requires = [ "certifi", "configparser==4.0.2 ; python_version < '3'", - "cryptography>=3.2.1,<43.0.0", + "cryptography>=3.2.1,<46.0.0", "pyOpenSSL>=17.5.0,<25.0.0", "python-dateutil>=2.5.3,<3.0.0", "pytz>=2016.10", diff --git a/src/oci/container_engine/container_engine_client.py b/src/oci/container_engine/container_engine_client.py index f8426240c..5afecd40e 100644 --- a/src/oci/container_engine/container_engine_client.py +++ b/src/oci/container_engine/container_engine_client.py @@ -22,9 +22,9 @@ class ContainerEngineClient(object): """ - API for the Container Engine for Kubernetes service. Use this API to build, deploy, + API for the Kubernetes Engine service (also known as the Container Engine for Kubernetes service). Use this API to build, deploy, and manage cloud-native applications. For more information, see - [Overview of Container Engine for Kubernetes](/iaas/Content/ContEng/Concepts/contengoverview.htm). + [Overview of Kubernetes Engine](/iaas/Content/ContEng/Concepts/contengoverview.htm). """ def __init__(self, config, **kwargs): @@ -161,7 +161,7 @@ def cluster_migrate_to_native_vcn(self, cluster_id, cluster_migrate_to_native_vc resource_path = "/clusters/{clusterId}/actions/migrateToNativeVcn" method = "POST" operation_name = "cluster_migrate_to_native_vcn" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/ClusterMigrateToNativeVcn" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -271,7 +271,7 @@ def complete_credential_rotation(self, cluster_id, **kwargs): resource_path = "/clusters/{clusterId}/actions/completeCredentialRotation" method = "POST" operation_name = "complete_credential_rotation" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CompleteCredentialRotation" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -377,7 +377,7 @@ def create_cluster(self, create_cluster_details, **kwargs): resource_path = "/clusters" method = "POST" operation_name = "create_cluster" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CreateCluster" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -470,7 +470,7 @@ def create_kubeconfig(self, cluster_id, **kwargs): resource_path = "/clusters/{clusterId}/kubeconfig/content" method = "POST" operation_name = "create_kubeconfig" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CreateKubeconfig" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -576,7 +576,7 @@ def create_node_pool(self, create_node_pool_details, **kwargs): resource_path = "/nodePools" method = "POST" operation_name = "create_node_pool" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/CreateNodePool" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -670,7 +670,7 @@ def create_virtual_node_pool(self, create_virtual_node_pool_details, **kwargs): resource_path = "/virtualNodePools" method = "POST" operation_name = "create_virtual_node_pool" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/CreateVirtualNodePool" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -767,7 +767,7 @@ def create_workload_mapping(self, cluster_id, create_workload_mapping_details, * resource_path = "/clusters/{clusterId}/workloadMappings" method = "POST" operation_name = "create_workload_mapping" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/CreateWorkloadMapping" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -876,7 +876,7 @@ def delete_cluster(self, cluster_id, **kwargs): resource_path = "/clusters/{clusterId}" method = "DELETE" operation_name = "delete_cluster" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/DeleteCluster" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -993,7 +993,7 @@ def delete_node(self, node_pool_id, node_id, **kwargs): resource_path = "/nodePools/{nodePoolId}/node/{nodeId}" method = "DELETE" operation_name = "delete_node" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/DeleteNode" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1117,7 +1117,7 @@ def delete_node_pool(self, node_pool_id, **kwargs): resource_path = "/nodePools/{nodePoolId}" method = "DELETE" operation_name = "delete_node_pool" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/DeleteNodePool" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1209,11 +1209,11 @@ def delete_virtual_node_pool(self, virtual_node_pool_id, **kwargs): Oracle about a particular request, please provide the request ID. :param str override_eviction_grace_duration_vnp: (optional) - Duration after which Sk8s will give up eviction of the pods on the node. + Duration after which SKE will give up eviction of the pods on the node. PT0M will indicate you want to delete the virtual node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M :param bool is_force_deletion_after_override_grace_duration_vnp: (optional) - If the underlying compute instance should be deleted if you cannot evict all the pods in grace period + If the underlying virtual node should be force deleted if all the pods are not evicted in the evictionGraceDuration. :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. @@ -1238,7 +1238,7 @@ def delete_virtual_node_pool(self, virtual_node_pool_id, **kwargs): resource_path = "/virtualNodePools/{virtualNodePoolId}" method = "DELETE" operation_name = "delete_virtual_node_pool" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/DeleteVirtualNodePool" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1352,7 +1352,7 @@ def delete_work_request(self, work_request_id, **kwargs): resource_path = "/workRequests/{workRequestId}" method = "DELETE" operation_name = "delete_work_request" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/DeleteWorkRequest" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1459,7 +1459,7 @@ def delete_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): resource_path = "/clusters/{clusterId}/workloadMappings/{workloadMappingId}" method = "DELETE" operation_name = "delete_workload_mapping" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/DeleteWorkloadMapping" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1570,7 +1570,7 @@ def disable_addon(self, cluster_id, addon_name, is_remove_existing_add_on, **kwa resource_path = "/clusters/{clusterId}/addons/{addonName}" method = "DELETE" operation_name = "disable_addon" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/DisableAddon" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1680,7 +1680,7 @@ def get_addon(self, cluster_id, addon_name, **kwargs): resource_path = "/clusters/{clusterId}/addons/{addonName}" method = "GET" operation_name = "get_addon" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/GetAddon" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1780,7 +1780,7 @@ def get_cluster(self, cluster_id, **kwargs): resource_path = "/clusters/{clusterId}" method = "GET" operation_name = "get_cluster" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/GetCluster" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1879,7 +1879,7 @@ def get_cluster_migrate_to_native_vcn_status(self, cluster_id, **kwargs): resource_path = "/clusters/{clusterId}/migrateToNativeVcnStatus" method = "GET" operation_name = "get_cluster_migrate_to_native_vcn_status" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterMigrateToNativeVcnStatus/GetClusterMigrateToNativeVcnStatus" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -1981,7 +1981,7 @@ def get_cluster_options(self, cluster_option_id, **kwargs): resource_path = "/clusterOptions/{clusterOptionId}" method = "GET" operation_name = "get_cluster_options" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterOptions/GetClusterOptions" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2088,7 +2088,7 @@ def get_credential_rotation_status(self, cluster_id, **kwargs): resource_path = "/clusters/{clusterId}/credentialRotationStatus" method = "GET" operation_name = "get_credential_rotation_status" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/CredentialRotationStatus/GetCredentialRotationStatus" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2187,7 +2187,7 @@ def get_node_pool(self, node_pool_id, **kwargs): resource_path = "/nodePools/{nodePoolId}" method = "GET" operation_name = "get_node_pool" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/GetNodePool" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2289,7 +2289,7 @@ def get_node_pool_options(self, node_pool_option_id, **kwargs): resource_path = "/nodePoolOptions/{nodePoolOptionId}" method = "GET" operation_name = "get_node_pool_options" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolOptions/GetNodePoolOptions" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2399,7 +2399,7 @@ def get_virtual_node(self, virtual_node_pool_id, virtual_node_id, **kwargs): resource_path = "/virtualNodePools/{virtualNodePoolId}/virtualNodes/{virtualNodeId}" method = "GET" operation_name = "get_virtual_node" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/GetVirtualNode" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2499,7 +2499,7 @@ def get_virtual_node_pool(self, virtual_node_pool_id, **kwargs): resource_path = "/virtualNodePools/{virtualNodePoolId}" method = "GET" operation_name = "get_virtual_node_pool" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/GetVirtualNodePool" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2598,7 +2598,7 @@ def get_work_request(self, work_request_id, **kwargs): resource_path = "/workRequests/{workRequestId}" method = "GET" operation_name = "get_work_request" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/GetWorkRequest" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2700,7 +2700,7 @@ def get_workload_mapping(self, cluster_id, workload_mapping_id, **kwargs): resource_path = "/clusters/{clusterId}/workloadMappings/{workloadMappingId}" method = "GET" operation_name = "get_workload_mapping" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/GetWorkloadMapping" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2812,7 +2812,7 @@ def install_addon(self, cluster_id, install_addon_details, **kwargs): resource_path = "/clusters/{clusterId}/addons" method = "POST" operation_name = "install_addon" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/InstallAddon" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -2942,7 +2942,7 @@ def list_addon_options(self, kubernetes_version, **kwargs): resource_path = "/addonOptions" method = "GET" operation_name = "list_addon_options" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/AddonOptionSummary/ListAddonOptions" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3083,7 +3083,7 @@ def list_addons(self, cluster_id, **kwargs): resource_path = "/clusters/{clusterId}/addons" method = "GET" operation_name = "list_addons" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/ListAddons" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3184,7 +3184,9 @@ def list_clusters(self, compartment_id, **kwargs): The OCID of the compartment. :param list[str] lifecycle_state: (optional) - A cluster lifecycle state to filter on. Can have multiple parameters of this name. + A cluster lifecycle state to filter on. Can have multiple parameters of this name. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm Allowed values are: "CREATING", "ACTIVE", "FAILED", "DELETING", "DELETED", "UPDATING" @@ -3241,7 +3243,7 @@ def list_clusters(self, compartment_id, **kwargs): resource_path = "/clusters" method = "GET" operation_name = "list_clusters" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterSummary/ListClusters" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3376,7 +3378,9 @@ def list_node_pools(self, compartment_id, **kwargs): Oracle about a particular request, please provide the request ID. :param list[str] lifecycle_state: (optional) - A list of nodepool lifecycle states on which to filter on, matching any of the list items (OR logic). eg. [ACTIVE, DELETING] + A list of nodepool lifecycle states on which to filter on, matching any of the list items (OR logic). eg. `ACTIVE, DELETING]. For more information, see [Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm Allowed values are: "DELETED", "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", "INACTIVE", "NEEDS_ATTENTION" @@ -3403,7 +3407,7 @@ def list_node_pools(self, compartment_id, **kwargs): resource_path = "/nodePools" method = "GET" operation_name = "list_node_pools" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolSummary/ListNodePools" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3562,7 +3566,7 @@ def list_pod_shapes(self, compartment_id, **kwargs): resource_path = "/podShapes" method = "GET" operation_name = "list_pod_shapes" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/PodShapeSummary/ListPodShapes" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3716,7 +3720,7 @@ def list_virtual_node_pools(self, compartment_id, **kwargs): resource_path = "/virtualNodePools" method = "GET" operation_name = "list_virtual_node_pools" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePoolSummary/ListVirtualNodePools" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -3872,7 +3876,7 @@ def list_virtual_nodes(self, virtual_node_pool_id, **kwargs): resource_path = "/virtualNodePools/{virtualNodePoolId}/virtualNodes" method = "GET" operation_name = "list_virtual_nodes" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/ListVirtualNodes" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4004,7 +4008,7 @@ def list_work_request_errors(self, compartment_id, work_request_id, **kwargs): resource_path = "/workRequests/{workRequestId}/errors" method = "GET" operation_name = "list_work_request_errors" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestError/ListWorkRequestErrors" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4113,7 +4117,7 @@ def list_work_request_logs(self, compartment_id, work_request_id, **kwargs): resource_path = "/workRequests/{workRequestId}/logs" method = "GET" operation_name = "list_work_request_logs" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestLogEntry/ListWorkRequestLogs" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4256,7 +4260,7 @@ def list_work_requests(self, compartment_id, **kwargs): resource_path = "/workRequests" method = "GET" operation_name = "list_work_requests" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestSummary/ListWorkRequests" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4410,7 +4414,7 @@ def list_workload_mappings(self, cluster_id, **kwargs): resource_path = "/clusters/{clusterId}/workloadMappings" method = "GET" operation_name = "list_workload_mappings" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMappingSummary/ListWorkloadMappings" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4549,7 +4553,7 @@ def start_credential_rotation(self, cluster_id, start_credential_rotation_detail resource_path = "/clusters/{clusterId}/actions/startCredentialRotation" method = "POST" operation_name = "start_credential_rotation" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/StartCredentialRotation" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4664,7 +4668,7 @@ def update_addon(self, cluster_id, addon_name, update_addon_details, **kwargs): resource_path = "/clusters/{clusterId}/addons/{addonName}" method = "PUT" operation_name = "update_addon" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateAddon" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4774,7 +4778,7 @@ def update_cluster(self, cluster_id, update_cluster_details, **kwargs): resource_path = "/clusters/{clusterId}" method = "PUT" operation_name = "update_cluster" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateCluster" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4883,7 +4887,7 @@ def update_cluster_endpoint_config(self, cluster_id, update_cluster_endpoint_con resource_path = "/clusters/{clusterId}/actions/updateEndpointConfig" method = "POST" operation_name = "update_cluster_endpoint_config" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateClusterEndpointConfig" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -4999,7 +5003,7 @@ def update_node_pool(self, node_pool_id, update_node_pool_details, **kwargs): resource_path = "/nodePools/{nodePoolId}" method = "PUT" operation_name = "update_node_pool" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/UpdateNodePool" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5118,7 +5122,7 @@ def update_virtual_node_pool(self, virtual_node_pool_id, update_virtual_node_poo resource_path = "/virtualNodePools/{virtualNodePoolId}" method = "PUT" operation_name = "update_virtual_node_pool" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/UpdateVirtualNodePool" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ @@ -5230,7 +5234,7 @@ def update_workload_mapping(self, cluster_id, workload_mapping_id, update_worklo resource_path = "/clusters/{clusterId}/workloadMappings/{workloadMappingId}" method = "PUT" operation_name = "update_workload_mapping" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkloadMapping/UpdateWorkloadMapping" + api_reference_link = "" # Don't accept unknown kwargs expected_kwargs = [ diff --git a/src/oci/container_engine/models/cluster.py b/src/oci/container_engine/models/cluster.py index 2ccd48818..2e83a99c7 100644 --- a/src/oci/container_engine/models/cluster.py +++ b/src/oci/container_engine/models/cluster.py @@ -507,7 +507,9 @@ def metadata(self, metadata): def lifecycle_state(self): """ Gets the lifecycle_state of this Cluster. - The state of the cluster masters. + The state of the cluster masters. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm Allowed values for this property are: "CREATING", "ACTIVE", "FAILED", "DELETING", "DELETED", "UPDATING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -522,7 +524,9 @@ def lifecycle_state(self): def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this Cluster. - The state of the cluster masters. + The state of the cluster masters. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm :param lifecycle_state: The lifecycle_state of this Cluster. diff --git a/src/oci/container_engine/models/cluster_summary.py b/src/oci/container_engine/models/cluster_summary.py index bc78daefe..e5b392c01 100644 --- a/src/oci/container_engine/models/cluster_summary.py +++ b/src/oci/container_engine/models/cluster_summary.py @@ -476,7 +476,9 @@ def metadata(self, metadata): def lifecycle_state(self): """ Gets the lifecycle_state of this ClusterSummary. - The state of the cluster masters. + The state of the cluster masters. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm Allowed values for this property are: "CREATING", "ACTIVE", "FAILED", "DELETING", "DELETED", "UPDATING", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -491,7 +493,9 @@ def lifecycle_state(self): def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this ClusterSummary. - The state of the cluster masters. + The state of the cluster masters. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm :param lifecycle_state: The lifecycle_state of this ClusterSummary. diff --git a/src/oci/container_engine/models/node.py b/src/oci/container_engine/models/node.py index 63bd39ce1..6cc92b715 100644 --- a/src/oci/container_engine/models/node.py +++ b/src/oci/container_engine/models/node.py @@ -497,7 +497,9 @@ def system_tags(self, system_tags): def lifecycle_state(self): """ Gets the lifecycle_state of this Node. - The state of the node. + The state of the node. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm Allowed values for this property are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILING", "INACTIVE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -512,7 +514,9 @@ def lifecycle_state(self): def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this Node. - The state of the node. + The state of the node. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm :param lifecycle_state: The lifecycle_state of this Node. diff --git a/src/oci/container_engine/models/node_pool.py b/src/oci/container_engine/models/node_pool.py index d8a3d5b8a..375d466ae 100644 --- a/src/oci/container_engine/models/node_pool.py +++ b/src/oci/container_engine/models/node_pool.py @@ -265,7 +265,9 @@ def id(self, id): def lifecycle_state(self): """ Gets the lifecycle_state of this NodePool. - The state of the nodepool. + The state of the nodepool. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm Allowed values for this property are: "DELETED", "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", "INACTIVE", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -280,7 +282,9 @@ def lifecycle_state(self): def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this NodePool. - The state of the nodepool. + The state of the nodepool. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm :param lifecycle_state: The lifecycle_state of this NodePool. diff --git a/src/oci/container_engine/models/node_pool_summary.py b/src/oci/container_engine/models/node_pool_summary.py index b21c7b140..966c1e907 100644 --- a/src/oci/container_engine/models/node_pool_summary.py +++ b/src/oci/container_engine/models/node_pool_summary.py @@ -251,7 +251,9 @@ def id(self, id): def lifecycle_state(self): """ Gets the lifecycle_state of this NodePoolSummary. - The state of the nodepool. + The state of the nodepool. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm Allowed values for this property are: "DELETED", "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED", "INACTIVE", "NEEDS_ATTENTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -266,7 +268,9 @@ def lifecycle_state(self): def lifecycle_state(self, lifecycle_state): """ Sets the lifecycle_state of this NodePoolSummary. - The state of the nodepool. + The state of the nodepool. For more information, see `Monitoring Clusters`__ + + __ https://docs.cloud.oracle.com/Content/ContEng/Tasks/contengmonitoringclusters.htm :param lifecycle_state: The lifecycle_state of this NodePoolSummary. diff --git a/src/oci/container_engine/models/start_credential_rotation_details.py b/src/oci/container_engine/models/start_credential_rotation_details.py index 1fd2e8990..d53fec2c2 100644 --- a/src/oci/container_engine/models/start_credential_rotation_details.py +++ b/src/oci/container_engine/models/start_credential_rotation_details.py @@ -39,7 +39,7 @@ def __init__(self, **kwargs): def auto_completion_delay_duration(self): """ **[Required]** Gets the auto_completion_delay_duration of this StartCredentialRotationDetails. - The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days. + The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 90 days. :return: The auto_completion_delay_duration of this StartCredentialRotationDetails. @@ -51,7 +51,7 @@ def auto_completion_delay_duration(self): def auto_completion_delay_duration(self, auto_completion_delay_duration): """ Sets the auto_completion_delay_duration of this StartCredentialRotationDetails. - The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 14 days. + The duration in days(in ISO 8601 notation eg. P5D) after which the old credentials should be retired. Maximum delay duration is 90 days. :param auto_completion_delay_duration: The auto_completion_delay_duration of this StartCredentialRotationDetails. diff --git a/src/oci/container_engine/models/work_request.py b/src/oci/container_engine/models/work_request.py index 7447aea6e..582b26d6c 100644 --- a/src/oci/container_engine/models/work_request.py +++ b/src/oci/container_engine/models/work_request.py @@ -27,6 +27,10 @@ class WorkRequest(object): #: This constant has a value of "CLUSTER_DELETE" OPERATION_TYPE_CLUSTER_DELETE = "CLUSTER_DELETE" + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CREATE_NAMESPACE" + OPERATION_TYPE_CREATE_NAMESPACE = "CREATE_NAMESPACE" + #: A constant which can be used with the operation_type property of a WorkRequest. #: This constant has a value of "NODEPOOL_CREATE" OPERATION_TYPE_NODEPOOL_CREATE = "NODEPOOL_CREATE" @@ -118,7 +122,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: "CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "CREATE_NAMESPACE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -210,7 +214,7 @@ def operation_type(self): Gets the operation_type of this WorkRequest. The type of work the work request is doing. - Allowed values for this property are: "CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "CREATE_NAMESPACE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -229,7 +233,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequest. :type: str """ - allowed_values = ["CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON"] + allowed_values = ["CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "CREATE_NAMESPACE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON"] 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/container_engine/models/work_request_summary.py b/src/oci/container_engine/models/work_request_summary.py index 87eb98dc7..58a81b03e 100644 --- a/src/oci/container_engine/models/work_request_summary.py +++ b/src/oci/container_engine/models/work_request_summary.py @@ -27,6 +27,10 @@ class WorkRequestSummary(object): #: This constant has a value of "CLUSTER_DELETE" OPERATION_TYPE_CLUSTER_DELETE = "CLUSTER_DELETE" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "CREATE_NAMESPACE" + OPERATION_TYPE_CREATE_NAMESPACE = "CREATE_NAMESPACE" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. #: This constant has a value of "NODEPOOL_CREATE" OPERATION_TYPE_NODEPOOL_CREATE = "NODEPOOL_CREATE" @@ -118,7 +122,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: "CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "CREATE_NAMESPACE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -210,7 +214,7 @@ def operation_type(self): Gets the operation_type of this WorkRequestSummary. The type of work the work request is doing. - Allowed values for this property are: "CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "CREATE_NAMESPACE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -229,7 +233,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequestSummary. :type: str """ - allowed_values = ["CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON"] + allowed_values = ["CLUSTER_CREATE", "CLUSTER_UPDATE", "CLUSTER_DELETE", "CREATE_NAMESPACE", "NODEPOOL_CREATE", "NODEPOOL_UPDATE", "NODEPOOL_DELETE", "NODEPOOL_RECONCILE", "NODEPOOL_CYCLING", "WORKREQUEST_CANCEL", "VIRTUALNODEPOOL_CREATE", "VIRTUALNODEPOOL_UPDATE", "VIRTUALNODEPOOL_DELETE", "VIRTUALNODE_DELETE", "ENABLE_ADDON", "UPDATE_ADDON", "DISABLE_ADDON", "RECONCILE_ADDON"] 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/container_engine/models/workload_mapping.py b/src/oci/container_engine/models/workload_mapping.py index 7fededa84..0e36ce166 100644 --- a/src/oci/container_engine/models/workload_mapping.py +++ b/src/oci/container_engine/models/workload_mapping.py @@ -82,6 +82,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this WorkloadMapping. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this WorkloadMapping. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -92,7 +96,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'lifecycle_state': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -104,7 +109,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'lifecycle_state': 'lifecycleState', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -116,6 +122,7 @@ def __init__(self, **kwargs): self._lifecycle_state = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -355,6 +362,32 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this WorkloadMapping. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this WorkloadMapping. + :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 WorkloadMapping. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this WorkloadMapping. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/container_engine/models/workload_mapping_summary.py b/src/oci/container_engine/models/workload_mapping_summary.py index a313b2741..4b91ae746 100644 --- a/src/oci/container_engine/models/workload_mapping_summary.py +++ b/src/oci/container_engine/models/workload_mapping_summary.py @@ -82,6 +82,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this WorkloadMappingSummary. :type defined_tags: dict(str, dict(str, object)) + :param system_tags: + The value to assign to the system_tags property of this WorkloadMappingSummary. + :type system_tags: dict(str, dict(str, object)) + """ self.swagger_types = { 'id': 'str', @@ -92,7 +96,8 @@ def __init__(self, **kwargs): 'time_created': 'datetime', 'lifecycle_state': 'str', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' } self.attribute_map = { @@ -104,7 +109,8 @@ def __init__(self, **kwargs): 'time_created': 'timeCreated', 'lifecycle_state': 'lifecycleState', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' } self._id = None @@ -116,6 +122,7 @@ def __init__(self, **kwargs): self._lifecycle_state = None self._freeform_tags = None self._defined_tags = None + self._system_tags = None @property def id(self): @@ -355,6 +362,32 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def system_tags(self): + """ + Gets the system_tags of this WorkloadMappingSummary. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this WorkloadMappingSummary. + :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 WorkloadMappingSummary. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this WorkloadMappingSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/core/models/__init__.py b/src/oci/core/models/__init__.py index e26b5350a..e69006f2a 100644 --- a/src/oci/core/models/__init__.py +++ b/src/oci/core/models/__init__.py @@ -397,6 +397,7 @@ from .ipv6 import Ipv6 from .ipv6_address_ipv6_subnet_cidr_pair_details import Ipv6AddressIpv6SubnetCidrPairDetails from .launch_attach_i_scsi_volume_details import LaunchAttachIScsiVolumeDetails +from .launch_attach_paravirtualized_volume_details import LaunchAttachParavirtualizedVolumeDetails from .launch_attach_volume_details import LaunchAttachVolumeDetails from .launch_create_volume_details import LaunchCreateVolumeDetails from .launch_create_volume_from_attributes import LaunchCreateVolumeFromAttributes @@ -1002,6 +1003,7 @@ "Ipv6": Ipv6, "Ipv6AddressIpv6SubnetCidrPairDetails": Ipv6AddressIpv6SubnetCidrPairDetails, "LaunchAttachIScsiVolumeDetails": LaunchAttachIScsiVolumeDetails, + "LaunchAttachParavirtualizedVolumeDetails": LaunchAttachParavirtualizedVolumeDetails, "LaunchAttachVolumeDetails": LaunchAttachVolumeDetails, "LaunchCreateVolumeDetails": LaunchCreateVolumeDetails, "LaunchCreateVolumeFromAttributes": LaunchCreateVolumeFromAttributes, diff --git a/src/oci/core/models/launch_attach_paravirtualized_volume_details.py b/src/oci/core/models/launch_attach_paravirtualized_volume_details.py new file mode 100644 index 000000000..d1fea4499 --- /dev/null +++ b/src/oci/core/models/launch_attach_paravirtualized_volume_details.py @@ -0,0 +1,123 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20160918 + +from .launch_attach_volume_details import LaunchAttachVolumeDetails +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 LaunchAttachParavirtualizedVolumeDetails(LaunchAttachVolumeDetails): + """ + Details specific to PV type volume attachments. + """ + + def __init__(self, **kwargs): + """ + Initializes a new LaunchAttachParavirtualizedVolumeDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.core.models.LaunchAttachParavirtualizedVolumeDetails.type` attribute + of this class is ``paravirtualized`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param device: + The value to assign to the device property of this LaunchAttachParavirtualizedVolumeDetails. + :type device: str + + :param display_name: + The value to assign to the display_name property of this LaunchAttachParavirtualizedVolumeDetails. + :type display_name: str + + :param is_read_only: + The value to assign to the is_read_only property of this LaunchAttachParavirtualizedVolumeDetails. + :type is_read_only: bool + + :param is_shareable: + The value to assign to the is_shareable property of this LaunchAttachParavirtualizedVolumeDetails. + :type is_shareable: bool + + :param type: + The value to assign to the type property of this LaunchAttachParavirtualizedVolumeDetails. + :type type: str + + :param volume_id: + The value to assign to the volume_id property of this LaunchAttachParavirtualizedVolumeDetails. + :type volume_id: str + + :param launch_create_volume_details: + The value to assign to the launch_create_volume_details property of this LaunchAttachParavirtualizedVolumeDetails. + :type launch_create_volume_details: oci.core.models.LaunchCreateVolumeDetails + + :param is_pv_encryption_in_transit_enabled: + The value to assign to the is_pv_encryption_in_transit_enabled property of this LaunchAttachParavirtualizedVolumeDetails. + :type is_pv_encryption_in_transit_enabled: bool + + """ + self.swagger_types = { + 'device': 'str', + 'display_name': 'str', + 'is_read_only': 'bool', + 'is_shareable': 'bool', + 'type': 'str', + 'volume_id': 'str', + 'launch_create_volume_details': 'LaunchCreateVolumeDetails', + 'is_pv_encryption_in_transit_enabled': 'bool' + } + + self.attribute_map = { + 'device': 'device', + 'display_name': 'displayName', + 'is_read_only': 'isReadOnly', + 'is_shareable': 'isShareable', + 'type': 'type', + 'volume_id': 'volumeId', + 'launch_create_volume_details': 'launchCreateVolumeDetails', + 'is_pv_encryption_in_transit_enabled': 'isPvEncryptionInTransitEnabled' + } + + self._device = None + self._display_name = None + self._is_read_only = None + self._is_shareable = None + self._type = None + self._volume_id = None + self._launch_create_volume_details = None + self._is_pv_encryption_in_transit_enabled = None + self._type = 'paravirtualized' + + @property + def is_pv_encryption_in_transit_enabled(self): + """ + Gets the is_pv_encryption_in_transit_enabled of this LaunchAttachParavirtualizedVolumeDetails. + Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false. + + + :return: The is_pv_encryption_in_transit_enabled of this LaunchAttachParavirtualizedVolumeDetails. + :rtype: bool + """ + return self._is_pv_encryption_in_transit_enabled + + @is_pv_encryption_in_transit_enabled.setter + def is_pv_encryption_in_transit_enabled(self, is_pv_encryption_in_transit_enabled): + """ + Sets the is_pv_encryption_in_transit_enabled of this LaunchAttachParavirtualizedVolumeDetails. + Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false. + + + :param is_pv_encryption_in_transit_enabled: The is_pv_encryption_in_transit_enabled of this LaunchAttachParavirtualizedVolumeDetails. + :type: bool + """ + self._is_pv_encryption_in_transit_enabled = is_pv_encryption_in_transit_enabled + + 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/core/models/launch_attach_volume_details.py b/src/oci/core/models/launch_attach_volume_details.py index 639a7c85c..ac19aa839 100644 --- a/src/oci/core/models/launch_attach_volume_details.py +++ b/src/oci/core/models/launch_attach_volume_details.py @@ -20,6 +20,7 @@ def __init__(self, **kwargs): Initializes a new LaunchAttachVolumeDetails 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.core.models.LaunchAttachParavirtualizedVolumeDetails` * :class:`~oci.core.models.LaunchAttachIScsiVolumeDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): @@ -89,6 +90,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['type'] + if type == 'paravirtualized': + return 'LaunchAttachParavirtualizedVolumeDetails' + if type == 'iscsi': return 'LaunchAttachIScsiVolumeDetails' else: diff --git a/src/oci/database/models/cloud_vm_cluster.py b/src/oci/database/models/cloud_vm_cluster.py index 4dc055b31..d5b8385b4 100644 --- a/src/oci/database/models/cloud_vm_cluster.py +++ b/src/oci/database/models/cloud_vm_cluster.py @@ -274,6 +274,10 @@ def __init__(self, **kwargs): The value to assign to the file_system_configuration_details property of this CloudVmCluster. :type file_system_configuration_details: list[oci.database.models.FileSystemConfigurationDetail] + :param cloud_automation_update_details: + The value to assign to the cloud_automation_update_details property of this CloudVmCluster. + :type cloud_automation_update_details: oci.database.models.CloudAutomationUpdateDetails + """ self.swagger_types = { 'iorm_config_cache': 'ExadataIormConfig', @@ -326,7 +330,8 @@ def __init__(self, **kwargs): 'scan_listener_port_tcp_ssl': 'int', 'data_collection_options': 'DataCollectionOptions', 'gi_software_image_id': 'str', - 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]' + 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]', + 'cloud_automation_update_details': 'CloudAutomationUpdateDetails' } self.attribute_map = { @@ -380,7 +385,8 @@ def __init__(self, **kwargs): 'scan_listener_port_tcp_ssl': 'scanListenerPortTcpSsl', 'data_collection_options': 'dataCollectionOptions', 'gi_software_image_id': 'giSoftwareImageId', - 'file_system_configuration_details': 'fileSystemConfigurationDetails' + 'file_system_configuration_details': 'fileSystemConfigurationDetails', + 'cloud_automation_update_details': 'cloudAutomationUpdateDetails' } self._iorm_config_cache = None @@ -434,6 +440,7 @@ def __init__(self, **kwargs): self._data_collection_options = None self._gi_software_image_id = None self._file_system_configuration_details = None + self._cloud_automation_update_details = None @property def iorm_config_cache(self): @@ -1807,6 +1814,26 @@ def file_system_configuration_details(self, file_system_configuration_details): """ self._file_system_configuration_details = file_system_configuration_details + @property + def cloud_automation_update_details(self): + """ + Gets the cloud_automation_update_details of this CloudVmCluster. + + :return: The cloud_automation_update_details of this CloudVmCluster. + :rtype: oci.database.models.CloudAutomationUpdateDetails + """ + return self._cloud_automation_update_details + + @cloud_automation_update_details.setter + def cloud_automation_update_details(self, cloud_automation_update_details): + """ + Sets the cloud_automation_update_details of this CloudVmCluster. + + :param cloud_automation_update_details: The cloud_automation_update_details of this CloudVmCluster. + :type: oci.database.models.CloudAutomationUpdateDetails + """ + self._cloud_automation_update_details = cloud_automation_update_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/cloud_vm_cluster_summary.py b/src/oci/database/models/cloud_vm_cluster_summary.py index 3849d68b6..7bff49f57 100644 --- a/src/oci/database/models/cloud_vm_cluster_summary.py +++ b/src/oci/database/models/cloud_vm_cluster_summary.py @@ -270,6 +270,10 @@ def __init__(self, **kwargs): The value to assign to the file_system_configuration_details property of this CloudVmClusterSummary. :type file_system_configuration_details: list[oci.database.models.FileSystemConfigurationDetail] + :param cloud_automation_update_details: + The value to assign to the cloud_automation_update_details property of this CloudVmClusterSummary. + :type cloud_automation_update_details: oci.database.models.CloudAutomationUpdateDetails + """ self.swagger_types = { 'id': 'str', @@ -321,7 +325,8 @@ def __init__(self, **kwargs): 'scan_listener_port_tcp_ssl': 'int', 'data_collection_options': 'DataCollectionOptions', 'gi_software_image_id': 'str', - 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]' + 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]', + 'cloud_automation_update_details': 'CloudAutomationUpdateDetails' } self.attribute_map = { @@ -374,7 +379,8 @@ def __init__(self, **kwargs): 'scan_listener_port_tcp_ssl': 'scanListenerPortTcpSsl', 'data_collection_options': 'dataCollectionOptions', 'gi_software_image_id': 'giSoftwareImageId', - 'file_system_configuration_details': 'fileSystemConfigurationDetails' + 'file_system_configuration_details': 'fileSystemConfigurationDetails', + 'cloud_automation_update_details': 'cloudAutomationUpdateDetails' } self._id = None @@ -427,6 +433,7 @@ def __init__(self, **kwargs): self._data_collection_options = None self._gi_software_image_id = None self._file_system_configuration_details = None + self._cloud_automation_update_details = None @property def id(self): @@ -1780,6 +1787,26 @@ def file_system_configuration_details(self, file_system_configuration_details): """ self._file_system_configuration_details = file_system_configuration_details + @property + def cloud_automation_update_details(self): + """ + Gets the cloud_automation_update_details of this CloudVmClusterSummary. + + :return: The cloud_automation_update_details of this CloudVmClusterSummary. + :rtype: oci.database.models.CloudAutomationUpdateDetails + """ + return self._cloud_automation_update_details + + @cloud_automation_update_details.setter + def cloud_automation_update_details(self, cloud_automation_update_details): + """ + Sets the cloud_automation_update_details of this CloudVmClusterSummary. + + :param cloud_automation_update_details: The cloud_automation_update_details of this CloudVmClusterSummary. + :type: oci.database.models.CloudAutomationUpdateDetails + """ + self._cloud_automation_update_details = cloud_automation_update_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/create_cloud_vm_cluster_details.py b/src/oci/database/models/create_cloud_vm_cluster_details.py index 49c358413..d183a6be1 100644 --- a/src/oci/database/models/create_cloud_vm_cluster_details.py +++ b/src/oci/database/models/create_cloud_vm_cluster_details.py @@ -161,6 +161,10 @@ def __init__(self, **kwargs): The value to assign to the file_system_configuration_details property of this CreateCloudVmClusterDetails. :type file_system_configuration_details: list[oci.database.models.FileSystemConfigurationDetail] + :param cloud_automation_update_details: + The value to assign to the cloud_automation_update_details property of this CreateCloudVmClusterDetails. + :type cloud_automation_update_details: oci.database.models.CloudAutomationUpdateDetails + """ self.swagger_types = { 'compartment_id': 'str', @@ -195,7 +199,8 @@ def __init__(self, **kwargs): 'security_attributes': 'dict(str, dict(str, object))', 'data_collection_options': 'DataCollectionOptions', 'system_version': 'str', - 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]' + 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]', + 'cloud_automation_update_details': 'CloudAutomationUpdateDetails' } self.attribute_map = { @@ -231,7 +236,8 @@ def __init__(self, **kwargs): 'security_attributes': 'securityAttributes', 'data_collection_options': 'dataCollectionOptions', 'system_version': 'systemVersion', - 'file_system_configuration_details': 'fileSystemConfigurationDetails' + 'file_system_configuration_details': 'fileSystemConfigurationDetails', + 'cloud_automation_update_details': 'cloudAutomationUpdateDetails' } self._compartment_id = None @@ -267,6 +273,7 @@ def __init__(self, **kwargs): self._data_collection_options = None self._system_version = None self._file_system_configuration_details = None + self._cloud_automation_update_details = None @property def compartment_id(self): @@ -1167,6 +1174,26 @@ def file_system_configuration_details(self, file_system_configuration_details): """ self._file_system_configuration_details = file_system_configuration_details + @property + def cloud_automation_update_details(self): + """ + Gets the cloud_automation_update_details of this CreateCloudVmClusterDetails. + + :return: The cloud_automation_update_details of this CreateCloudVmClusterDetails. + :rtype: oci.database.models.CloudAutomationUpdateDetails + """ + return self._cloud_automation_update_details + + @cloud_automation_update_details.setter + def cloud_automation_update_details(self, cloud_automation_update_details): + """ + Sets the cloud_automation_update_details of this CreateCloudVmClusterDetails. + + :param cloud_automation_update_details: The cloud_automation_update_details of this CreateCloudVmClusterDetails. + :type: oci.database.models.CloudAutomationUpdateDetails + """ + self._cloud_automation_update_details = cloud_automation_update_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/create_vm_cluster_details.py b/src/oci/database/models/create_vm_cluster_details.py index 69bf77480..33904f257 100644 --- a/src/oci/database/models/create_vm_cluster_details.py +++ b/src/oci/database/models/create_vm_cluster_details.py @@ -118,6 +118,10 @@ def __init__(self, **kwargs): The value to assign to the file_system_configuration_details property of this CreateVmClusterDetails. :type file_system_configuration_details: list[oci.database.models.FileSystemConfigurationDetail] + :param cloud_automation_update_details: + The value to assign to the cloud_automation_update_details property of this CreateVmClusterDetails. + :type cloud_automation_update_details: oci.database.models.CloudAutomationUpdateDetails + """ self.swagger_types = { 'compartment_id': 'str', @@ -141,7 +145,8 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'data_collection_options': 'DataCollectionOptions', 'system_version': 'str', - 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]' + 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]', + 'cloud_automation_update_details': 'CloudAutomationUpdateDetails' } self.attribute_map = { @@ -166,7 +171,8 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'data_collection_options': 'dataCollectionOptions', 'system_version': 'systemVersion', - 'file_system_configuration_details': 'fileSystemConfigurationDetails' + 'file_system_configuration_details': 'fileSystemConfigurationDetails', + 'cloud_automation_update_details': 'cloudAutomationUpdateDetails' } self._compartment_id = None @@ -191,6 +197,7 @@ def __init__(self, **kwargs): self._data_collection_options = None self._system_version = None self._file_system_configuration_details = None + self._cloud_automation_update_details = None @property def compartment_id(self): @@ -755,6 +762,26 @@ def file_system_configuration_details(self, file_system_configuration_details): """ self._file_system_configuration_details = file_system_configuration_details + @property + def cloud_automation_update_details(self): + """ + Gets the cloud_automation_update_details of this CreateVmClusterDetails. + + :return: The cloud_automation_update_details of this CreateVmClusterDetails. + :rtype: oci.database.models.CloudAutomationUpdateDetails + """ + return self._cloud_automation_update_details + + @cloud_automation_update_details.setter + def cloud_automation_update_details(self, cloud_automation_update_details): + """ + Sets the cloud_automation_update_details of this CreateVmClusterDetails. + + :param cloud_automation_update_details: The cloud_automation_update_details of this CreateVmClusterDetails. + :type: oci.database.models.CloudAutomationUpdateDetails + """ + self._cloud_automation_update_details = cloud_automation_update_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/update_cloud_vm_cluster_details.py b/src/oci/database/models/update_cloud_vm_cluster_details.py index a4b66dd9f..2331a5eab 100644 --- a/src/oci/database/models/update_cloud_vm_cluster_details.py +++ b/src/oci/database/models/update_cloud_vm_cluster_details.py @@ -101,6 +101,10 @@ def __init__(self, **kwargs): The value to assign to the file_system_configuration_details property of this UpdateCloudVmClusterDetails. :type file_system_configuration_details: list[oci.database.models.FileSystemConfigurationDetail] + :param cloud_automation_update_details: + The value to assign to the cloud_automation_update_details property of this UpdateCloudVmClusterDetails. + :type cloud_automation_update_details: oci.database.models.CloudAutomationUpdateDetails + """ self.swagger_types = { 'display_name': 'str', @@ -120,7 +124,8 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'security_attributes': 'dict(str, dict(str, object))', 'data_collection_options': 'DataCollectionOptions', - 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]' + 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]', + 'cloud_automation_update_details': 'CloudAutomationUpdateDetails' } self.attribute_map = { @@ -141,7 +146,8 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'security_attributes': 'securityAttributes', 'data_collection_options': 'dataCollectionOptions', - 'file_system_configuration_details': 'fileSystemConfigurationDetails' + 'file_system_configuration_details': 'fileSystemConfigurationDetails', + 'cloud_automation_update_details': 'cloudAutomationUpdateDetails' } self._display_name = None @@ -162,6 +168,7 @@ def __init__(self, **kwargs): self._security_attributes = None self._data_collection_options = None self._file_system_configuration_details = None + self._cloud_automation_update_details = None @property def display_name(self): @@ -634,6 +641,26 @@ def file_system_configuration_details(self, file_system_configuration_details): """ self._file_system_configuration_details = file_system_configuration_details + @property + def cloud_automation_update_details(self): + """ + Gets the cloud_automation_update_details of this UpdateCloudVmClusterDetails. + + :return: The cloud_automation_update_details of this UpdateCloudVmClusterDetails. + :rtype: oci.database.models.CloudAutomationUpdateDetails + """ + return self._cloud_automation_update_details + + @cloud_automation_update_details.setter + def cloud_automation_update_details(self, cloud_automation_update_details): + """ + Sets the cloud_automation_update_details of this UpdateCloudVmClusterDetails. + + :param cloud_automation_update_details: The cloud_automation_update_details of this UpdateCloudVmClusterDetails. + :type: oci.database.models.CloudAutomationUpdateDetails + """ + self._cloud_automation_update_details = cloud_automation_update_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/update_vm_cluster_details.py b/src/oci/database/models/update_vm_cluster_details.py index a8f8c04f9..ae31e11df 100644 --- a/src/oci/database/models/update_vm_cluster_details.py +++ b/src/oci/database/models/update_vm_cluster_details.py @@ -86,6 +86,10 @@ def __init__(self, **kwargs): The value to assign to the file_system_configuration_details property of this UpdateVmClusterDetails. :type file_system_configuration_details: list[oci.database.models.FileSystemConfigurationDetail] + :param cloud_automation_update_details: + The value to assign to the cloud_automation_update_details property of this UpdateVmClusterDetails. + :type cloud_automation_update_details: oci.database.models.CloudAutomationUpdateDetails + """ self.swagger_types = { 'cpu_core_count': 'int', @@ -101,7 +105,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', 'data_collection_options': 'DataCollectionOptions', - 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]' + 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]', + 'cloud_automation_update_details': 'CloudAutomationUpdateDetails' } self.attribute_map = { @@ -118,7 +123,8 @@ def __init__(self, **kwargs): 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', 'data_collection_options': 'dataCollectionOptions', - 'file_system_configuration_details': 'fileSystemConfigurationDetails' + 'file_system_configuration_details': 'fileSystemConfigurationDetails', + 'cloud_automation_update_details': 'cloudAutomationUpdateDetails' } self._cpu_core_count = None @@ -135,6 +141,7 @@ def __init__(self, **kwargs): self._defined_tags = None self._data_collection_options = None self._file_system_configuration_details = None + self._cloud_automation_update_details = None @property def cpu_core_count(self): @@ -483,6 +490,26 @@ def file_system_configuration_details(self, file_system_configuration_details): """ self._file_system_configuration_details = file_system_configuration_details + @property + def cloud_automation_update_details(self): + """ + Gets the cloud_automation_update_details of this UpdateVmClusterDetails. + + :return: The cloud_automation_update_details of this UpdateVmClusterDetails. + :rtype: oci.database.models.CloudAutomationUpdateDetails + """ + return self._cloud_automation_update_details + + @cloud_automation_update_details.setter + def cloud_automation_update_details(self, cloud_automation_update_details): + """ + Sets the cloud_automation_update_details of this UpdateVmClusterDetails. + + :param cloud_automation_update_details: The cloud_automation_update_details of this UpdateVmClusterDetails. + :type: oci.database.models.CloudAutomationUpdateDetails + """ + self._cloud_automation_update_details = cloud_automation_update_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/vm_cluster.py b/src/oci/database/models/vm_cluster.py index b3011b375..da19327b6 100644 --- a/src/oci/database/models/vm_cluster.py +++ b/src/oci/database/models/vm_cluster.py @@ -180,6 +180,10 @@ def __init__(self, **kwargs): The value to assign to the file_system_configuration_details property of this VmCluster. :type file_system_configuration_details: list[oci.database.models.FileSystemConfigurationDetail] + :param cloud_automation_update_details: + The value to assign to the cloud_automation_update_details property of this VmCluster. + :type cloud_automation_update_details: oci.database.models.CloudAutomationUpdateDetails + """ self.swagger_types = { 'id': 'str', @@ -211,7 +215,8 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'data_collection_options': 'DataCollectionOptions', 'gi_software_image_id': 'str', - 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]' + 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]', + 'cloud_automation_update_details': 'CloudAutomationUpdateDetails' } self.attribute_map = { @@ -244,7 +249,8 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'data_collection_options': 'dataCollectionOptions', 'gi_software_image_id': 'giSoftwareImageId', - 'file_system_configuration_details': 'fileSystemConfigurationDetails' + 'file_system_configuration_details': 'fileSystemConfigurationDetails', + 'cloud_automation_update_details': 'cloudAutomationUpdateDetails' } self._id = None @@ -277,6 +283,7 @@ def __init__(self, **kwargs): self._data_collection_options = None self._gi_software_image_id = None self._file_system_configuration_details = None + self._cloud_automation_update_details = None @property def id(self): @@ -1050,6 +1057,26 @@ def file_system_configuration_details(self, file_system_configuration_details): """ self._file_system_configuration_details = file_system_configuration_details + @property + def cloud_automation_update_details(self): + """ + Gets the cloud_automation_update_details of this VmCluster. + + :return: The cloud_automation_update_details of this VmCluster. + :rtype: oci.database.models.CloudAutomationUpdateDetails + """ + return self._cloud_automation_update_details + + @cloud_automation_update_details.setter + def cloud_automation_update_details(self, cloud_automation_update_details): + """ + Sets the cloud_automation_update_details of this VmCluster. + + :param cloud_automation_update_details: The cloud_automation_update_details of this VmCluster. + :type: oci.database.models.CloudAutomationUpdateDetails + """ + self._cloud_automation_update_details = cloud_automation_update_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database/models/vm_cluster_summary.py b/src/oci/database/models/vm_cluster_summary.py index de9cc13dc..1fdaf6dd8 100644 --- a/src/oci/database/models/vm_cluster_summary.py +++ b/src/oci/database/models/vm_cluster_summary.py @@ -180,6 +180,10 @@ def __init__(self, **kwargs): The value to assign to the file_system_configuration_details property of this VmClusterSummary. :type file_system_configuration_details: list[oci.database.models.FileSystemConfigurationDetail] + :param cloud_automation_update_details: + The value to assign to the cloud_automation_update_details property of this VmClusterSummary. + :type cloud_automation_update_details: oci.database.models.CloudAutomationUpdateDetails + """ self.swagger_types = { 'id': 'str', @@ -211,7 +215,8 @@ def __init__(self, **kwargs): 'defined_tags': 'dict(str, dict(str, object))', 'data_collection_options': 'DataCollectionOptions', 'gi_software_image_id': 'str', - 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]' + 'file_system_configuration_details': 'list[FileSystemConfigurationDetail]', + 'cloud_automation_update_details': 'CloudAutomationUpdateDetails' } self.attribute_map = { @@ -244,7 +249,8 @@ def __init__(self, **kwargs): 'defined_tags': 'definedTags', 'data_collection_options': 'dataCollectionOptions', 'gi_software_image_id': 'giSoftwareImageId', - 'file_system_configuration_details': 'fileSystemConfigurationDetails' + 'file_system_configuration_details': 'fileSystemConfigurationDetails', + 'cloud_automation_update_details': 'cloudAutomationUpdateDetails' } self._id = None @@ -277,6 +283,7 @@ def __init__(self, **kwargs): self._data_collection_options = None self._gi_software_image_id = None self._file_system_configuration_details = None + self._cloud_automation_update_details = None @property def id(self): @@ -1050,6 +1057,26 @@ def file_system_configuration_details(self, file_system_configuration_details): """ self._file_system_configuration_details = file_system_configuration_details + @property + def cloud_automation_update_details(self): + """ + Gets the cloud_automation_update_details of this VmClusterSummary. + + :return: The cloud_automation_update_details of this VmClusterSummary. + :rtype: oci.database.models.CloudAutomationUpdateDetails + """ + return self._cloud_automation_update_details + + @cloud_automation_update_details.setter + def cloud_automation_update_details(self, cloud_automation_update_details): + """ + Sets the cloud_automation_update_details of this VmClusterSummary. + + :param cloud_automation_update_details: The cloud_automation_update_details of this VmClusterSummary. + :type: oci.database.models.CloudAutomationUpdateDetails + """ + self._cloud_automation_update_details = cloud_automation_update_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/desktops/desktop_service_client.py b/src/oci/desktops/desktop_service_client.py index 312fa5dfa..ddf67223a 100644 --- a/src/oci/desktops/desktop_service_client.py +++ b/src/oci/desktops/desktop_service_client.py @@ -2239,6 +2239,9 @@ def stop_desktop(self, desktop_id, **kwargs): :param str opc_retry_token: (optional) A token that uniquely identifies a request. + :param bool is_soft_stop: (optional) + Force a STOP(power off) of the desktop if set to false + :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. @@ -2270,7 +2273,8 @@ def stop_desktop(self, desktop_id, **kwargs): "retry_strategy", "opc_request_id", "if_match", - "opc_retry_token" + "opc_retry_token", + "is_soft_stop" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -2287,6 +2291,11 @@ def stop_desktop(self, desktop_id, **kwargs): if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + query_params = { + "isSoftStop": kwargs.get("is_soft_stop", 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", @@ -2313,6 +2322,7 @@ def stop_desktop(self, desktop_id, **kwargs): resource_path=resource_path, method=method, path_params=path_params, + query_params=query_params, header_params=header_params, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, @@ -2323,6 +2333,7 @@ def stop_desktop(self, desktop_id, **kwargs): resource_path=resource_path, method=method, path_params=path_params, + query_params=query_params, header_params=header_params, allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, diff --git a/src/oci/desktops/models/__init__.py b/src/oci/desktops/models/__init__.py index b69540306..1fb567dab 100644 --- a/src/oci/desktops/models/__init__.py +++ b/src/oci/desktops/models/__init__.py @@ -7,7 +7,10 @@ from __future__ import absolute_import from .change_desktop_pool_compartment_details import ChangeDesktopPoolCompartmentDetails +from .create_desktop_pool_desktop_session_lifecycle_actions import CreateDesktopPoolDesktopSessionLifecycleActions from .create_desktop_pool_details import CreateDesktopPoolDetails +from .create_desktop_pool_private_access_details import CreateDesktopPoolPrivateAccessDetails +from .create_desktop_pool_shape_config_details import CreateDesktopPoolShapeConfigDetails from .desktop import Desktop from .desktop_availability_policy import DesktopAvailabilityPolicy from .desktop_collection import DesktopCollection @@ -18,13 +21,19 @@ from .desktop_pool_collection import DesktopPoolCollection from .desktop_pool_desktop_collection import DesktopPoolDesktopCollection from .desktop_pool_desktop_summary import DesktopPoolDesktopSummary +from .desktop_pool_private_access_details import DesktopPoolPrivateAccessDetails +from .desktop_pool_shape_config import DesktopPoolShapeConfig from .desktop_pool_summary import DesktopPoolSummary from .desktop_pool_volume_collection import DesktopPoolVolumeCollection from .desktop_pool_volume_summary import DesktopPoolVolumeSummary from .desktop_schedule import DesktopSchedule +from .desktop_session_lifecycle_actions import DesktopSessionLifecycleActions from .desktop_summary import DesktopSummary +from .disconnect_config import DisconnectConfig from .hosting_options import HostingOptions +from .inactivity_config import InactivityConfig from .update_desktop_details import UpdateDesktopDetails +from .update_desktop_pool_desktop_session_lifecycle_actions import UpdateDesktopPoolDesktopSessionLifecycleActions from .update_desktop_pool_details import UpdateDesktopPoolDetails from .work_request import WorkRequest from .work_request_error import WorkRequestError @@ -38,7 +47,10 @@ # Maps type names to classes for desktops services. desktops_type_mapping = { "ChangeDesktopPoolCompartmentDetails": ChangeDesktopPoolCompartmentDetails, + "CreateDesktopPoolDesktopSessionLifecycleActions": CreateDesktopPoolDesktopSessionLifecycleActions, "CreateDesktopPoolDetails": CreateDesktopPoolDetails, + "CreateDesktopPoolPrivateAccessDetails": CreateDesktopPoolPrivateAccessDetails, + "CreateDesktopPoolShapeConfigDetails": CreateDesktopPoolShapeConfigDetails, "Desktop": Desktop, "DesktopAvailabilityPolicy": DesktopAvailabilityPolicy, "DesktopCollection": DesktopCollection, @@ -49,13 +61,19 @@ "DesktopPoolCollection": DesktopPoolCollection, "DesktopPoolDesktopCollection": DesktopPoolDesktopCollection, "DesktopPoolDesktopSummary": DesktopPoolDesktopSummary, + "DesktopPoolPrivateAccessDetails": DesktopPoolPrivateAccessDetails, + "DesktopPoolShapeConfig": DesktopPoolShapeConfig, "DesktopPoolSummary": DesktopPoolSummary, "DesktopPoolVolumeCollection": DesktopPoolVolumeCollection, "DesktopPoolVolumeSummary": DesktopPoolVolumeSummary, "DesktopSchedule": DesktopSchedule, + "DesktopSessionLifecycleActions": DesktopSessionLifecycleActions, "DesktopSummary": DesktopSummary, + "DisconnectConfig": DisconnectConfig, "HostingOptions": HostingOptions, + "InactivityConfig": InactivityConfig, "UpdateDesktopDetails": UpdateDesktopDetails, + "UpdateDesktopPoolDesktopSessionLifecycleActions": UpdateDesktopPoolDesktopSessionLifecycleActions, "UpdateDesktopPoolDetails": UpdateDesktopPoolDetails, "WorkRequest": WorkRequest, "WorkRequestError": WorkRequestError, diff --git a/src/oci/desktops/models/create_desktop_pool_desktop_session_lifecycle_actions.py b/src/oci/desktops/models/create_desktop_pool_desktop_session_lifecycle_actions.py new file mode 100644 index 000000000..2fca8bfc3 --- /dev/null +++ b/src/oci/desktops/models/create_desktop_pool_desktop_session_lifecycle_actions.py @@ -0,0 +1,95 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220618 + + +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 CreateDesktopPoolDesktopSessionLifecycleActions(object): + """ + The details of action to be triggered in case of inactivity or disconnect + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateDesktopPoolDesktopSessionLifecycleActions object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param inactivity: + The value to assign to the inactivity property of this CreateDesktopPoolDesktopSessionLifecycleActions. + :type inactivity: oci.desktops.models.InactivityConfig + + :param disconnect: + The value to assign to the disconnect property of this CreateDesktopPoolDesktopSessionLifecycleActions. + :type disconnect: oci.desktops.models.DisconnectConfig + + """ + self.swagger_types = { + 'inactivity': 'InactivityConfig', + 'disconnect': 'DisconnectConfig' + } + + self.attribute_map = { + 'inactivity': 'inactivity', + 'disconnect': 'disconnect' + } + + self._inactivity = None + self._disconnect = None + + @property + def inactivity(self): + """ + Gets the inactivity of this CreateDesktopPoolDesktopSessionLifecycleActions. + + :return: The inactivity of this CreateDesktopPoolDesktopSessionLifecycleActions. + :rtype: oci.desktops.models.InactivityConfig + """ + return self._inactivity + + @inactivity.setter + def inactivity(self, inactivity): + """ + Sets the inactivity of this CreateDesktopPoolDesktopSessionLifecycleActions. + + :param inactivity: The inactivity of this CreateDesktopPoolDesktopSessionLifecycleActions. + :type: oci.desktops.models.InactivityConfig + """ + self._inactivity = inactivity + + @property + def disconnect(self): + """ + Gets the disconnect of this CreateDesktopPoolDesktopSessionLifecycleActions. + + :return: The disconnect of this CreateDesktopPoolDesktopSessionLifecycleActions. + :rtype: oci.desktops.models.DisconnectConfig + """ + return self._disconnect + + @disconnect.setter + def disconnect(self, disconnect): + """ + Sets the disconnect of this CreateDesktopPoolDesktopSessionLifecycleActions. + + :param disconnect: The disconnect of this CreateDesktopPoolDesktopSessionLifecycleActions. + :type: oci.desktops.models.DisconnectConfig + """ + self._disconnect = disconnect + + 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/desktops/models/create_desktop_pool_details.py b/src/oci/desktops/models/create_desktop_pool_details.py index ed6001b71..fee157c44 100644 --- a/src/oci/desktops/models/create_desktop_pool_details.py +++ b/src/oci/desktops/models/create_desktop_pool_details.py @@ -15,6 +15,18 @@ class CreateDesktopPoolDetails(object): Provides the configuration information used to create the desktop pool. """ + #: A constant which can be used with the use_dedicated_vm_host property of a CreateDesktopPoolDetails. + #: This constant has a value of "TRUE" + USE_DEDICATED_VM_HOST_TRUE = "TRUE" + + #: A constant which can be used with the use_dedicated_vm_host property of a CreateDesktopPoolDetails. + #: This constant has a value of "FALSE" + USE_DEDICATED_VM_HOST_FALSE = "FALSE" + + #: A constant which can be used with the use_dedicated_vm_host property of a CreateDesktopPoolDetails. + #: This constant has a value of "AUTO" + USE_DEDICATED_VM_HOST_AUTO = "AUTO" + def __init__(self, **kwargs): """ Initializes a new CreateDesktopPoolDetails object with values from keyword arguments. @@ -44,6 +56,15 @@ def __init__(self, **kwargs): The value to assign to the shape_name property of this CreateDesktopPoolDetails. :type shape_name: str + :param shape_config: + The value to assign to the shape_config property of this CreateDesktopPoolDetails. + :type shape_config: oci.desktops.models.CreateDesktopPoolShapeConfigDetails + + :param use_dedicated_vm_host: + The value to assign to the use_dedicated_vm_host property of this CreateDesktopPoolDetails. + Allowed values for this property are: "TRUE", "FALSE", "AUTO" + :type use_dedicated_vm_host: str + :param is_storage_enabled: The value to assign to the is_storage_enabled property of this CreateDesktopPoolDetails. :type is_storage_enabled: bool @@ -72,6 +93,10 @@ def __init__(self, **kwargs): The value to assign to the network_configuration property of this CreateDesktopPoolDetails. :type network_configuration: oci.desktops.models.DesktopNetworkConfiguration + :param session_lifecycle_actions: + The value to assign to the session_lifecycle_actions property of this CreateDesktopPoolDetails. + :type session_lifecycle_actions: oci.desktops.models.CreateDesktopPoolDesktopSessionLifecycleActions + :param time_start_scheduled: The value to assign to the time_start_scheduled property of this CreateDesktopPoolDetails. :type time_start_scheduled: datetime @@ -104,6 +129,10 @@ def __init__(self, **kwargs): The value to assign to the nsg_ids property of this CreateDesktopPoolDetails. :type nsg_ids: list[str] + :param private_access_details: + The value to assign to the private_access_details property of this CreateDesktopPoolDetails. + :type private_access_details: oci.desktops.models.CreateDesktopPoolPrivateAccessDetails + """ self.swagger_types = { 'compartment_id': 'str', @@ -112,6 +141,8 @@ def __init__(self, **kwargs): 'maximum_size': 'int', 'standby_size': 'int', 'shape_name': 'str', + 'shape_config': 'CreateDesktopPoolShapeConfigDetails', + 'use_dedicated_vm_host': 'str', 'is_storage_enabled': 'bool', 'storage_size_in_gbs': 'int', 'storage_backup_policy_id': 'str', @@ -119,6 +150,7 @@ def __init__(self, **kwargs): 'availability_policy': 'DesktopAvailabilityPolicy', 'image': 'DesktopImage', 'network_configuration': 'DesktopNetworkConfiguration', + 'session_lifecycle_actions': 'CreateDesktopPoolDesktopSessionLifecycleActions', 'time_start_scheduled': 'datetime', 'time_stop_scheduled': 'datetime', 'contact_details': 'str', @@ -126,7 +158,8 @@ def __init__(self, **kwargs): 'availability_domain': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', - 'nsg_ids': 'list[str]' + 'nsg_ids': 'list[str]', + 'private_access_details': 'CreateDesktopPoolPrivateAccessDetails' } self.attribute_map = { @@ -136,6 +169,8 @@ def __init__(self, **kwargs): 'maximum_size': 'maximumSize', 'standby_size': 'standbySize', 'shape_name': 'shapeName', + 'shape_config': 'shapeConfig', + 'use_dedicated_vm_host': 'useDedicatedVmHost', 'is_storage_enabled': 'isStorageEnabled', 'storage_size_in_gbs': 'storageSizeInGBs', 'storage_backup_policy_id': 'storageBackupPolicyId', @@ -143,6 +178,7 @@ def __init__(self, **kwargs): 'availability_policy': 'availabilityPolicy', 'image': 'image', 'network_configuration': 'networkConfiguration', + 'session_lifecycle_actions': 'sessionLifecycleActions', 'time_start_scheduled': 'timeStartScheduled', 'time_stop_scheduled': 'timeStopScheduled', 'contact_details': 'contactDetails', @@ -150,7 +186,8 @@ def __init__(self, **kwargs): 'availability_domain': 'availabilityDomain', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', - 'nsg_ids': 'nsgIds' + 'nsg_ids': 'nsgIds', + 'private_access_details': 'privateAccessDetails' } self._compartment_id = None @@ -159,6 +196,8 @@ def __init__(self, **kwargs): self._maximum_size = None self._standby_size = None self._shape_name = None + self._shape_config = None + self._use_dedicated_vm_host = None self._is_storage_enabled = None self._storage_size_in_gbs = None self._storage_backup_policy_id = None @@ -166,6 +205,7 @@ def __init__(self, **kwargs): self._availability_policy = None self._image = None self._network_configuration = None + self._session_lifecycle_actions = None self._time_start_scheduled = None self._time_stop_scheduled = None self._contact_details = None @@ -174,6 +214,7 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._nsg_ids = None + self._private_access_details = None @property def compartment_id(self): @@ -321,6 +362,57 @@ def shape_name(self, shape_name): """ self._shape_name = shape_name + @property + def shape_config(self): + """ + Gets the shape_config of this CreateDesktopPoolDetails. + + :return: The shape_config of this CreateDesktopPoolDetails. + :rtype: oci.desktops.models.CreateDesktopPoolShapeConfigDetails + """ + return self._shape_config + + @shape_config.setter + def shape_config(self, shape_config): + """ + Sets the shape_config of this CreateDesktopPoolDetails. + + :param shape_config: The shape_config of this CreateDesktopPoolDetails. + :type: oci.desktops.models.CreateDesktopPoolShapeConfigDetails + """ + self._shape_config = shape_config + + @property + def use_dedicated_vm_host(self): + """ + Gets the use_dedicated_vm_host of this CreateDesktopPoolDetails. + Indicates whether the desktop pool uses dedicated virtual machine hosts. + + Allowed values for this property are: "TRUE", "FALSE", "AUTO" + + + :return: The use_dedicated_vm_host of this CreateDesktopPoolDetails. + :rtype: str + """ + return self._use_dedicated_vm_host + + @use_dedicated_vm_host.setter + def use_dedicated_vm_host(self, use_dedicated_vm_host): + """ + Sets the use_dedicated_vm_host of this CreateDesktopPoolDetails. + Indicates whether the desktop pool uses dedicated virtual machine hosts. + + + :param use_dedicated_vm_host: The use_dedicated_vm_host of this CreateDesktopPoolDetails. + :type: str + """ + allowed_values = ["TRUE", "FALSE", "AUTO"] + if not value_allowed_none_or_none_sentinel(use_dedicated_vm_host, allowed_values): + raise ValueError( + f"Invalid value for `use_dedicated_vm_host`, must be None or one of {allowed_values}" + ) + self._use_dedicated_vm_host = use_dedicated_vm_host + @property def is_storage_enabled(self): """ @@ -473,6 +565,26 @@ def network_configuration(self, network_configuration): """ self._network_configuration = network_configuration + @property + def session_lifecycle_actions(self): + """ + Gets the session_lifecycle_actions of this CreateDesktopPoolDetails. + + :return: The session_lifecycle_actions of this CreateDesktopPoolDetails. + :rtype: oci.desktops.models.CreateDesktopPoolDesktopSessionLifecycleActions + """ + return self._session_lifecycle_actions + + @session_lifecycle_actions.setter + def session_lifecycle_actions(self, session_lifecycle_actions): + """ + Sets the session_lifecycle_actions of this CreateDesktopPoolDetails. + + :param session_lifecycle_actions: The session_lifecycle_actions of this CreateDesktopPoolDetails. + :type: oci.desktops.models.CreateDesktopPoolDesktopSessionLifecycleActions + """ + self._session_lifecycle_actions = session_lifecycle_actions + @property def time_start_scheduled(self): """ @@ -661,7 +773,7 @@ def defined_tags(self, defined_tags): def nsg_ids(self): """ Gets the nsg_ids of this CreateDesktopPoolDetails. - A list of network security groups for the desktop pool. + A list of network security groups for the private access. :return: The nsg_ids of this CreateDesktopPoolDetails. @@ -673,7 +785,7 @@ def nsg_ids(self): def nsg_ids(self, nsg_ids): """ Sets the nsg_ids of this CreateDesktopPoolDetails. - A list of network security groups for the desktop pool. + A list of network security groups for the private access. :param nsg_ids: The nsg_ids of this CreateDesktopPoolDetails. @@ -681,6 +793,26 @@ def nsg_ids(self, nsg_ids): """ self._nsg_ids = nsg_ids + @property + def private_access_details(self): + """ + Gets the private_access_details of this CreateDesktopPoolDetails. + + :return: The private_access_details of this CreateDesktopPoolDetails. + :rtype: oci.desktops.models.CreateDesktopPoolPrivateAccessDetails + """ + return self._private_access_details + + @private_access_details.setter + def private_access_details(self, private_access_details): + """ + Sets the private_access_details of this CreateDesktopPoolDetails. + + :param private_access_details: The private_access_details of this CreateDesktopPoolDetails. + :type: oci.desktops.models.CreateDesktopPoolPrivateAccessDetails + """ + self._private_access_details = private_access_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/desktops/models/create_desktop_pool_private_access_details.py b/src/oci/desktops/models/create_desktop_pool_private_access_details.py new file mode 100644 index 000000000..fcbd80f56 --- /dev/null +++ b/src/oci/desktops/models/create_desktop_pool_private_access_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: 20220618 + + +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 CreateDesktopPoolPrivateAccessDetails(object): + """ + The details of the desktop's private access network connectivity to be set up for the desktop pool. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateDesktopPoolPrivateAccessDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param subnet_id: + The value to assign to the subnet_id property of this CreateDesktopPoolPrivateAccessDetails. + :type subnet_id: str + + :param nsg_ids: + The value to assign to the nsg_ids property of this CreateDesktopPoolPrivateAccessDetails. + :type nsg_ids: list[str] + + :param private_ip: + The value to assign to the private_ip property of this CreateDesktopPoolPrivateAccessDetails. + :type private_ip: str + + """ + self.swagger_types = { + 'subnet_id': 'str', + 'nsg_ids': 'list[str]', + 'private_ip': 'str' + } + + self.attribute_map = { + 'subnet_id': 'subnetId', + 'nsg_ids': 'nsgIds', + 'private_ip': 'privateIp' + } + + self._subnet_id = None + self._nsg_ids = None + self._private_ip = None + + @property + def subnet_id(self): + """ + **[Required]** Gets the subnet_id of this CreateDesktopPoolPrivateAccessDetails. + The `OCID`__ of the subnet in the customer VCN where the + connectivity will be established. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The subnet_id of this CreateDesktopPoolPrivateAccessDetails. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """ + Sets the subnet_id of this CreateDesktopPoolPrivateAccessDetails. + The `OCID`__ of the subnet in the customer VCN where the + connectivity will be established. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param subnet_id: The subnet_id of this CreateDesktopPoolPrivateAccessDetails. + :type: str + """ + self._subnet_id = subnet_id + + @property + def nsg_ids(self): + """ + Gets the nsg_ids of this CreateDesktopPoolPrivateAccessDetails. + A list of network security groups for the private access. + + + :return: The nsg_ids of this CreateDesktopPoolPrivateAccessDetails. + :rtype: list[str] + """ + return self._nsg_ids + + @nsg_ids.setter + def nsg_ids(self, nsg_ids): + """ + Sets the nsg_ids of this CreateDesktopPoolPrivateAccessDetails. + A list of network security groups for the private access. + + + :param nsg_ids: The nsg_ids of this CreateDesktopPoolPrivateAccessDetails. + :type: list[str] + """ + self._nsg_ids = nsg_ids + + @property + def private_ip(self): + """ + Gets the private_ip of this CreateDesktopPoolPrivateAccessDetails. + The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC. If not provided, it will + be auto-assigned with an available IPv4 address from the subnet. + + + :return: The private_ip of this CreateDesktopPoolPrivateAccessDetails. + :rtype: str + """ + return self._private_ip + + @private_ip.setter + def private_ip(self, private_ip): + """ + Sets the private_ip of this CreateDesktopPoolPrivateAccessDetails. + The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC. If not provided, it will + be auto-assigned with an available IPv4 address from the subnet. + + + :param private_ip: The private_ip of this CreateDesktopPoolPrivateAccessDetails. + :type: str + """ + self._private_ip = private_ip + + 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/desktops/models/create_desktop_pool_shape_config_details.py b/src/oci/desktops/models/create_desktop_pool_shape_config_details.py new file mode 100644 index 000000000..d45b5fe39 --- /dev/null +++ b/src/oci/desktops/models/create_desktop_pool_shape_config_details.py @@ -0,0 +1,170 @@ +# 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: 20220618 + + +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 CreateDesktopPoolShapeConfigDetails(object): + """ + The compute instance shape configuration requested for each desktop in the desktop pool. + """ + + #: A constant which can be used with the baseline_ocpu_utilization property of a CreateDesktopPoolShapeConfigDetails. + #: This constant has a value of "BASELINE_1_8" + BASELINE_OCPU_UTILIZATION_BASELINE_1_8 = "BASELINE_1_8" + + #: A constant which can be used with the baseline_ocpu_utilization property of a CreateDesktopPoolShapeConfigDetails. + #: This constant has a value of "BASELINE_1_2" + BASELINE_OCPU_UTILIZATION_BASELINE_1_2 = "BASELINE_1_2" + + #: A constant which can be used with the baseline_ocpu_utilization property of a CreateDesktopPoolShapeConfigDetails. + #: This constant has a value of "BASELINE_1_1" + BASELINE_OCPU_UTILIZATION_BASELINE_1_1 = "BASELINE_1_1" + + def __init__(self, **kwargs): + """ + Initializes a new CreateDesktopPoolShapeConfigDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param ocpus: + The value to assign to the ocpus property of this CreateDesktopPoolShapeConfigDetails. + :type ocpus: int + + :param memory_in_gbs: + The value to assign to the memory_in_gbs property of this CreateDesktopPoolShapeConfigDetails. + :type memory_in_gbs: int + + :param baseline_ocpu_utilization: + The value to assign to the baseline_ocpu_utilization property of this CreateDesktopPoolShapeConfigDetails. + Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1" + :type baseline_ocpu_utilization: str + + """ + self.swagger_types = { + 'ocpus': 'int', + 'memory_in_gbs': 'int', + 'baseline_ocpu_utilization': 'str' + } + + self.attribute_map = { + 'ocpus': 'ocpus', + 'memory_in_gbs': 'memoryInGBs', + 'baseline_ocpu_utilization': 'baselineOcpuUtilization' + } + + self._ocpus = None + self._memory_in_gbs = None + self._baseline_ocpu_utilization = None + + @property + def ocpus(self): + """ + Gets the ocpus of this CreateDesktopPoolShapeConfigDetails. + The total number of OCPUs available for each desktop compute instance in the desktop pool. + + + :return: The ocpus of this CreateDesktopPoolShapeConfigDetails. + :rtype: int + """ + return self._ocpus + + @ocpus.setter + def ocpus(self, ocpus): + """ + Sets the ocpus of this CreateDesktopPoolShapeConfigDetails. + The total number of OCPUs available for each desktop compute instance in the desktop pool. + + + :param ocpus: The ocpus of this CreateDesktopPoolShapeConfigDetails. + :type: int + """ + self._ocpus = ocpus + + @property + def memory_in_gbs(self): + """ + Gets the memory_in_gbs of this CreateDesktopPoolShapeConfigDetails. + The total amount of memory available in gigabytes for each desktop compute instance in the desktop pool. + + + :return: The memory_in_gbs of this CreateDesktopPoolShapeConfigDetails. + :rtype: int + """ + return self._memory_in_gbs + + @memory_in_gbs.setter + def memory_in_gbs(self, memory_in_gbs): + """ + Sets the memory_in_gbs of this CreateDesktopPoolShapeConfigDetails. + The total amount of memory available in gigabytes for each desktop compute instance in the desktop pool. + + + :param memory_in_gbs: The memory_in_gbs of this CreateDesktopPoolShapeConfigDetails. + :type: int + """ + self._memory_in_gbs = memory_in_gbs + + @property + def baseline_ocpu_utilization(self): + """ + Gets the baseline_ocpu_utilization of this CreateDesktopPoolShapeConfigDetails. + The baseline OCPU utilization for a subcore burstable VM instance used for each desktop compute instance in + the desktop pool. + Leave this attribute blank for a non-burstable instance, or explicitly specify non-burstable with + `BASELINE_1_1`. + + The following values are supported: + - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. + - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. + - `BASELINE_1_1` - baseline usage is the entire OCPU. This represents a non-burstable instance. + + Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1" + + + :return: The baseline_ocpu_utilization of this CreateDesktopPoolShapeConfigDetails. + :rtype: str + """ + return self._baseline_ocpu_utilization + + @baseline_ocpu_utilization.setter + def baseline_ocpu_utilization(self, baseline_ocpu_utilization): + """ + Sets the baseline_ocpu_utilization of this CreateDesktopPoolShapeConfigDetails. + The baseline OCPU utilization for a subcore burstable VM instance used for each desktop compute instance in + the desktop pool. + Leave this attribute blank for a non-burstable instance, or explicitly specify non-burstable with + `BASELINE_1_1`. + + The following values are supported: + - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. + - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. + - `BASELINE_1_1` - baseline usage is the entire OCPU. This represents a non-burstable instance. + + + :param baseline_ocpu_utilization: The baseline_ocpu_utilization of this CreateDesktopPoolShapeConfigDetails. + :type: str + """ + allowed_values = ["BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"] + if not value_allowed_none_or_none_sentinel(baseline_ocpu_utilization, allowed_values): + raise ValueError( + f"Invalid value for `baseline_ocpu_utilization`, must be None or one of {allowed_values}" + ) + self._baseline_ocpu_utilization = baseline_ocpu_utilization + + 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/desktops/models/desktop_image.py b/src/oci/desktops/models/desktop_image.py index 412616a79..75b24a69e 100644 --- a/src/oci/desktops/models/desktop_image.py +++ b/src/oci/desktops/models/desktop_image.py @@ -28,19 +28,26 @@ def __init__(self, **kwargs): The value to assign to the image_name property of this DesktopImage. :type image_name: str + :param operating_system: + The value to assign to the operating_system property of this DesktopImage. + :type operating_system: str + """ self.swagger_types = { 'image_id': 'str', - 'image_name': 'str' + 'image_name': 'str', + 'operating_system': 'str' } self.attribute_map = { 'image_id': 'imageId', - 'image_name': 'imageName' + 'image_name': 'imageName', + 'operating_system': 'operatingSystem' } self._image_id = None self._image_name = None + self._operating_system = None @property def image_id(self): @@ -90,6 +97,30 @@ def image_name(self, image_name): """ self._image_name = image_name + @property + def operating_system(self): + """ + Gets the operating_system of this DesktopImage. + The operating system of the desktop image, e.g. \"Oracle Linux\", \"Windows\". + + + :return: The operating_system of this DesktopImage. + :rtype: str + """ + return self._operating_system + + @operating_system.setter + def operating_system(self, operating_system): + """ + Sets the operating_system of this DesktopImage. + The operating system of the desktop image, e.g. \"Oracle Linux\", \"Windows\". + + + :param operating_system: The operating_system of this DesktopImage. + :type: str + """ + self._operating_system = operating_system + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/desktops/models/desktop_network_configuration.py b/src/oci/desktops/models/desktop_network_configuration.py index 2647502e9..e40d84028 100644 --- a/src/oci/desktops/models/desktop_network_configuration.py +++ b/src/oci/desktops/models/desktop_network_configuration.py @@ -46,7 +46,9 @@ def __init__(self, **kwargs): def vcn_id(self): """ **[Required]** Gets the vcn_id of this DesktopNetworkConfiguration. - The OCID of the VCN used by the desktop pool. + The `OCID`__ of the customer VCN. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The vcn_id of this DesktopNetworkConfiguration. @@ -58,7 +60,9 @@ def vcn_id(self): def vcn_id(self, vcn_id): """ Sets the vcn_id of this DesktopNetworkConfiguration. - The OCID of the VCN used by the desktop pool. + The `OCID`__ of the customer VCN. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param vcn_id: The vcn_id of this DesktopNetworkConfiguration. @@ -70,7 +74,10 @@ def vcn_id(self, vcn_id): def subnet_id(self): """ **[Required]** Gets the subnet_id of this DesktopNetworkConfiguration. - The OCID of the subnet to use for the desktop pool. + The `OCID`__ of the subnet in the customer VCN where the + connectivity will be established. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :return: The subnet_id of this DesktopNetworkConfiguration. @@ -82,7 +89,10 @@ def subnet_id(self): def subnet_id(self, subnet_id): """ Sets the subnet_id of this DesktopNetworkConfiguration. - The OCID of the subnet to use for the desktop pool. + The `OCID`__ of the subnet in the customer VCN where the + connectivity will be established. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm :param subnet_id: The subnet_id of this DesktopNetworkConfiguration. diff --git a/src/oci/desktops/models/desktop_pool.py b/src/oci/desktops/models/desktop_pool.py index 2c5d5bdf9..6ff8b872f 100644 --- a/src/oci/desktops/models/desktop_pool.py +++ b/src/oci/desktops/models/desktop_pool.py @@ -43,6 +43,18 @@ class DesktopPool(object): #: This constant has a value of "FAILED" LIFECYCLE_STATE_FAILED = "FAILED" + #: A constant which can be used with the use_dedicated_vm_host property of a DesktopPool. + #: This constant has a value of "TRUE" + USE_DEDICATED_VM_HOST_TRUE = "TRUE" + + #: A constant which can be used with the use_dedicated_vm_host property of a DesktopPool. + #: This constant has a value of "FALSE" + USE_DEDICATED_VM_HOST_FALSE = "FALSE" + + #: A constant which can be used with the use_dedicated_vm_host property of a DesktopPool. + #: This constant has a value of "AUTO" + USE_DEDICATED_VM_HOST_AUTO = "AUTO" + def __init__(self, **kwargs): """ Initializes a new DesktopPool object with values from keyword arguments. @@ -86,6 +98,16 @@ def __init__(self, **kwargs): The value to assign to the shape_name property of this DesktopPool. :type shape_name: str + :param shape_config: + The value to assign to the shape_config property of this DesktopPool. + :type shape_config: oci.desktops.models.DesktopPoolShapeConfig + + :param use_dedicated_vm_host: + The value to assign to the use_dedicated_vm_host property of this DesktopPool. + Allowed values for this property are: "TRUE", "FALSE", "AUTO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type use_dedicated_vm_host: str + :param is_storage_enabled: The value to assign to the is_storage_enabled property of this DesktopPool. :type is_storage_enabled: bool @@ -114,6 +136,10 @@ def __init__(self, **kwargs): The value to assign to the network_configuration property of this DesktopPool. :type network_configuration: oci.desktops.models.DesktopNetworkConfiguration + :param session_lifecycle_actions: + The value to assign to the session_lifecycle_actions property of this DesktopPool. + :type session_lifecycle_actions: oci.desktops.models.DesktopSessionLifecycleActions + :param time_start_scheduled: The value to assign to the time_start_scheduled property of this DesktopPool. :type time_start_scheduled: datetime @@ -146,6 +172,10 @@ def __init__(self, **kwargs): The value to assign to the nsg_ids property of this DesktopPool. :type nsg_ids: list[str] + :param private_access_details: + The value to assign to the private_access_details property of this DesktopPool. + :type private_access_details: oci.desktops.models.DesktopPoolPrivateAccessDetails + """ self.swagger_types = { 'id': 'str', @@ -157,6 +187,8 @@ def __init__(self, **kwargs): 'maximum_size': 'int', 'standby_size': 'int', 'shape_name': 'str', + 'shape_config': 'DesktopPoolShapeConfig', + 'use_dedicated_vm_host': 'str', 'is_storage_enabled': 'bool', 'storage_size_in_gbs': 'int', 'storage_backup_policy_id': 'str', @@ -164,6 +196,7 @@ def __init__(self, **kwargs): 'availability_policy': 'DesktopAvailabilityPolicy', 'image': 'DesktopImage', 'network_configuration': 'DesktopNetworkConfiguration', + 'session_lifecycle_actions': 'DesktopSessionLifecycleActions', 'time_start_scheduled': 'datetime', 'time_stop_scheduled': 'datetime', 'contact_details': 'str', @@ -171,7 +204,8 @@ def __init__(self, **kwargs): 'availability_domain': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))', - 'nsg_ids': 'list[str]' + 'nsg_ids': 'list[str]', + 'private_access_details': 'DesktopPoolPrivateAccessDetails' } self.attribute_map = { @@ -184,6 +218,8 @@ def __init__(self, **kwargs): 'maximum_size': 'maximumSize', 'standby_size': 'standbySize', 'shape_name': 'shapeName', + 'shape_config': 'shapeConfig', + 'use_dedicated_vm_host': 'useDedicatedVmHost', 'is_storage_enabled': 'isStorageEnabled', 'storage_size_in_gbs': 'storageSizeInGBs', 'storage_backup_policy_id': 'storageBackupPolicyId', @@ -191,6 +227,7 @@ def __init__(self, **kwargs): 'availability_policy': 'availabilityPolicy', 'image': 'image', 'network_configuration': 'networkConfiguration', + 'session_lifecycle_actions': 'sessionLifecycleActions', 'time_start_scheduled': 'timeStartScheduled', 'time_stop_scheduled': 'timeStopScheduled', 'contact_details': 'contactDetails', @@ -198,7 +235,8 @@ def __init__(self, **kwargs): 'availability_domain': 'availabilityDomain', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags', - 'nsg_ids': 'nsgIds' + 'nsg_ids': 'nsgIds', + 'private_access_details': 'privateAccessDetails' } self._id = None @@ -210,6 +248,8 @@ def __init__(self, **kwargs): self._maximum_size = None self._standby_size = None self._shape_name = None + self._shape_config = None + self._use_dedicated_vm_host = None self._is_storage_enabled = None self._storage_size_in_gbs = None self._storage_backup_policy_id = None @@ -217,6 +257,7 @@ def __init__(self, **kwargs): self._availability_policy = None self._image = None self._network_configuration = None + self._session_lifecycle_actions = None self._time_start_scheduled = None self._time_stop_scheduled = None self._contact_details = None @@ -225,6 +266,7 @@ def __init__(self, **kwargs): self._freeform_tags = None self._defined_tags = None self._nsg_ids = None + self._private_access_details = None @property def id(self): @@ -450,6 +492,56 @@ def shape_name(self, shape_name): """ self._shape_name = shape_name + @property + def shape_config(self): + """ + Gets the shape_config of this DesktopPool. + + :return: The shape_config of this DesktopPool. + :rtype: oci.desktops.models.DesktopPoolShapeConfig + """ + return self._shape_config + + @shape_config.setter + def shape_config(self, shape_config): + """ + Sets the shape_config of this DesktopPool. + + :param shape_config: The shape_config of this DesktopPool. + :type: oci.desktops.models.DesktopPoolShapeConfig + """ + self._shape_config = shape_config + + @property + def use_dedicated_vm_host(self): + """ + Gets the use_dedicated_vm_host of this DesktopPool. + Indicates whether the desktop pool uses dedicated virtual machine hosts. + + Allowed values for this property are: "TRUE", "FALSE", "AUTO", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The use_dedicated_vm_host of this DesktopPool. + :rtype: str + """ + return self._use_dedicated_vm_host + + @use_dedicated_vm_host.setter + def use_dedicated_vm_host(self, use_dedicated_vm_host): + """ + Sets the use_dedicated_vm_host of this DesktopPool. + Indicates whether the desktop pool uses dedicated virtual machine hosts. + + + :param use_dedicated_vm_host: The use_dedicated_vm_host of this DesktopPool. + :type: str + """ + allowed_values = ["TRUE", "FALSE", "AUTO"] + if not value_allowed_none_or_none_sentinel(use_dedicated_vm_host, allowed_values): + use_dedicated_vm_host = 'UNKNOWN_ENUM_VALUE' + self._use_dedicated_vm_host = use_dedicated_vm_host + @property def is_storage_enabled(self): """ @@ -602,6 +694,26 @@ def network_configuration(self, network_configuration): """ self._network_configuration = network_configuration + @property + def session_lifecycle_actions(self): + """ + Gets the session_lifecycle_actions of this DesktopPool. + + :return: The session_lifecycle_actions of this DesktopPool. + :rtype: oci.desktops.models.DesktopSessionLifecycleActions + """ + return self._session_lifecycle_actions + + @session_lifecycle_actions.setter + def session_lifecycle_actions(self, session_lifecycle_actions): + """ + Sets the session_lifecycle_actions of this DesktopPool. + + :param session_lifecycle_actions: The session_lifecycle_actions of this DesktopPool. + :type: oci.desktops.models.DesktopSessionLifecycleActions + """ + self._session_lifecycle_actions = session_lifecycle_actions + @property def time_start_scheduled(self): """ @@ -790,7 +902,7 @@ def defined_tags(self, defined_tags): def nsg_ids(self): """ Gets the nsg_ids of this DesktopPool. - A list of network security groups for the desktop pool. + A list of network security groups for the network. :return: The nsg_ids of this DesktopPool. @@ -802,7 +914,7 @@ def nsg_ids(self): def nsg_ids(self, nsg_ids): """ Sets the nsg_ids of this DesktopPool. - A list of network security groups for the desktop pool. + A list of network security groups for the network. :param nsg_ids: The nsg_ids of this DesktopPool. @@ -810,6 +922,26 @@ def nsg_ids(self, nsg_ids): """ self._nsg_ids = nsg_ids + @property + def private_access_details(self): + """ + Gets the private_access_details of this DesktopPool. + + :return: The private_access_details of this DesktopPool. + :rtype: oci.desktops.models.DesktopPoolPrivateAccessDetails + """ + return self._private_access_details + + @private_access_details.setter + def private_access_details(self, private_access_details): + """ + Sets the private_access_details of this DesktopPool. + + :param private_access_details: The private_access_details of this DesktopPool. + :type: oci.desktops.models.DesktopPoolPrivateAccessDetails + """ + self._private_access_details = private_access_details + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/desktops/models/desktop_pool_private_access_details.py b/src/oci/desktops/models/desktop_pool_private_access_details.py new file mode 100644 index 000000000..1d8c1d707 --- /dev/null +++ b/src/oci/desktops/models/desktop_pool_private_access_details.py @@ -0,0 +1,212 @@ +# 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: 20220618 + + +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 DesktopPoolPrivateAccessDetails(object): + """ + The details of the desktop's private access network connectivity that were used to create the pool. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DesktopPoolPrivateAccessDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param vcn_id: + The value to assign to the vcn_id property of this DesktopPoolPrivateAccessDetails. + :type vcn_id: str + + :param endpoint_fqdn: + The value to assign to the endpoint_fqdn property of this DesktopPoolPrivateAccessDetails. + :type endpoint_fqdn: str + + :param subnet_id: + The value to assign to the subnet_id property of this DesktopPoolPrivateAccessDetails. + :type subnet_id: str + + :param nsg_ids: + The value to assign to the nsg_ids property of this DesktopPoolPrivateAccessDetails. + :type nsg_ids: list[str] + + :param private_ip: + The value to assign to the private_ip property of this DesktopPoolPrivateAccessDetails. + :type private_ip: str + + """ + self.swagger_types = { + 'vcn_id': 'str', + 'endpoint_fqdn': 'str', + 'subnet_id': 'str', + 'nsg_ids': 'list[str]', + 'private_ip': 'str' + } + + self.attribute_map = { + 'vcn_id': 'vcnId', + 'endpoint_fqdn': 'endpointFqdn', + 'subnet_id': 'subnetId', + 'nsg_ids': 'nsgIds', + 'private_ip': 'privateIp' + } + + self._vcn_id = None + self._endpoint_fqdn = None + self._subnet_id = None + self._nsg_ids = None + self._private_ip = None + + @property + def vcn_id(self): + """ + **[Required]** Gets the vcn_id of this DesktopPoolPrivateAccessDetails. + The `OCID`__ of the customer VCN. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The vcn_id of this DesktopPoolPrivateAccessDetails. + :rtype: str + """ + return self._vcn_id + + @vcn_id.setter + def vcn_id(self, vcn_id): + """ + Sets the vcn_id of this DesktopPoolPrivateAccessDetails. + The `OCID`__ of the customer VCN. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param vcn_id: The vcn_id of this DesktopPoolPrivateAccessDetails. + :type: str + """ + self._vcn_id = vcn_id + + @property + def endpoint_fqdn(self): + """ + Gets the endpoint_fqdn of this DesktopPoolPrivateAccessDetails. + The three-label FQDN to use for the private endpoint. The customer VCN's DNS records are + updated with this FQDN. This enables the customer to use the FQDN instead of the private endpoint's + private IP address to access the service (for example,\u00A0xyz.oraclecloud.com). + + + :return: The endpoint_fqdn of this DesktopPoolPrivateAccessDetails. + :rtype: str + """ + return self._endpoint_fqdn + + @endpoint_fqdn.setter + def endpoint_fqdn(self, endpoint_fqdn): + """ + Sets the endpoint_fqdn of this DesktopPoolPrivateAccessDetails. + The three-label FQDN to use for the private endpoint. The customer VCN's DNS records are + updated with this FQDN. This enables the customer to use the FQDN instead of the private endpoint's + private IP address to access the service (for example,\u00A0xyz.oraclecloud.com). + + + :param endpoint_fqdn: The endpoint_fqdn of this DesktopPoolPrivateAccessDetails. + :type: str + """ + self._endpoint_fqdn = endpoint_fqdn + + @property + def subnet_id(self): + """ + **[Required]** Gets the subnet_id of this DesktopPoolPrivateAccessDetails. + The `OCID`__ of the subnet in the customer VCN where the + connectivity will be established. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The subnet_id of this DesktopPoolPrivateAccessDetails. + :rtype: str + """ + return self._subnet_id + + @subnet_id.setter + def subnet_id(self, subnet_id): + """ + Sets the subnet_id of this DesktopPoolPrivateAccessDetails. + The `OCID`__ of the subnet in the customer VCN where the + connectivity will be established. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param subnet_id: The subnet_id of this DesktopPoolPrivateAccessDetails. + :type: str + """ + self._subnet_id = subnet_id + + @property + def nsg_ids(self): + """ + Gets the nsg_ids of this DesktopPoolPrivateAccessDetails. + A list of network security groups for the private access. + + + :return: The nsg_ids of this DesktopPoolPrivateAccessDetails. + :rtype: list[str] + """ + return self._nsg_ids + + @nsg_ids.setter + def nsg_ids(self, nsg_ids): + """ + Sets the nsg_ids of this DesktopPoolPrivateAccessDetails. + A list of network security groups for the private access. + + + :param nsg_ids: The nsg_ids of this DesktopPoolPrivateAccessDetails. + :type: list[str] + """ + self._nsg_ids = nsg_ids + + @property + def private_ip(self): + """ + Gets the private_ip of this DesktopPoolPrivateAccessDetails. + The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC. If not provided, it will + be auto-assigned with an available IPv4 address from the subnet. + + + :return: The private_ip of this DesktopPoolPrivateAccessDetails. + :rtype: str + """ + return self._private_ip + + @private_ip.setter + def private_ip(self, private_ip): + """ + Sets the private_ip of this DesktopPoolPrivateAccessDetails. + The IPv4 address from the provided OCI subnet which needs to be assigned to the VNIC. If not provided, it will + be auto-assigned with an available IPv4 address from the subnet. + + + :param private_ip: The private_ip of this DesktopPoolPrivateAccessDetails. + :type: str + """ + self._private_ip = private_ip + + 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/desktops/models/desktop_pool_shape_config.py b/src/oci/desktops/models/desktop_pool_shape_config.py new file mode 100644 index 000000000..a6069b47f --- /dev/null +++ b/src/oci/desktops/models/desktop_pool_shape_config.py @@ -0,0 +1,170 @@ +# 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: 20220618 + + +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 DesktopPoolShapeConfig(object): + """ + The shape configuration used for each desktop compute instance in the desktop pool. + """ + + #: A constant which can be used with the baseline_ocpu_utilization property of a DesktopPoolShapeConfig. + #: This constant has a value of "BASELINE_1_8" + BASELINE_OCPU_UTILIZATION_BASELINE_1_8 = "BASELINE_1_8" + + #: A constant which can be used with the baseline_ocpu_utilization property of a DesktopPoolShapeConfig. + #: This constant has a value of "BASELINE_1_2" + BASELINE_OCPU_UTILIZATION_BASELINE_1_2 = "BASELINE_1_2" + + #: A constant which can be used with the baseline_ocpu_utilization property of a DesktopPoolShapeConfig. + #: This constant has a value of "BASELINE_1_1" + BASELINE_OCPU_UTILIZATION_BASELINE_1_1 = "BASELINE_1_1" + + def __init__(self, **kwargs): + """ + Initializes a new DesktopPoolShapeConfig object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param ocpus: + The value to assign to the ocpus property of this DesktopPoolShapeConfig. + :type ocpus: int + + :param memory_in_gbs: + The value to assign to the memory_in_gbs property of this DesktopPoolShapeConfig. + :type memory_in_gbs: int + + :param baseline_ocpu_utilization: + The value to assign to the baseline_ocpu_utilization property of this DesktopPoolShapeConfig. + Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type baseline_ocpu_utilization: str + + """ + self.swagger_types = { + 'ocpus': 'int', + 'memory_in_gbs': 'int', + 'baseline_ocpu_utilization': 'str' + } + + self.attribute_map = { + 'ocpus': 'ocpus', + 'memory_in_gbs': 'memoryInGBs', + 'baseline_ocpu_utilization': 'baselineOcpuUtilization' + } + + self._ocpus = None + self._memory_in_gbs = None + self._baseline_ocpu_utilization = None + + @property + def ocpus(self): + """ + Gets the ocpus of this DesktopPoolShapeConfig. + The total number of OCPUs available for each desktop compute instance in the desktop pool. + + + :return: The ocpus of this DesktopPoolShapeConfig. + :rtype: int + """ + return self._ocpus + + @ocpus.setter + def ocpus(self, ocpus): + """ + Sets the ocpus of this DesktopPoolShapeConfig. + The total number of OCPUs available for each desktop compute instance in the desktop pool. + + + :param ocpus: The ocpus of this DesktopPoolShapeConfig. + :type: int + """ + self._ocpus = ocpus + + @property + def memory_in_gbs(self): + """ + Gets the memory_in_gbs of this DesktopPoolShapeConfig. + The total amount of memory available in gigabytes for each desktop compute instance in the desktop pool. + + + :return: The memory_in_gbs of this DesktopPoolShapeConfig. + :rtype: int + """ + return self._memory_in_gbs + + @memory_in_gbs.setter + def memory_in_gbs(self, memory_in_gbs): + """ + Sets the memory_in_gbs of this DesktopPoolShapeConfig. + The total amount of memory available in gigabytes for each desktop compute instance in the desktop pool. + + + :param memory_in_gbs: The memory_in_gbs of this DesktopPoolShapeConfig. + :type: int + """ + self._memory_in_gbs = memory_in_gbs + + @property + def baseline_ocpu_utilization(self): + """ + Gets the baseline_ocpu_utilization of this DesktopPoolShapeConfig. + The baseline OCPU utilization for a subcore burstable VM instance used for each desktop compute instance in + the desktop pool. + Leave this attribute blank for a non-burstable instance, or explicitly specify non-burstable with + `BASELINE_1_1`. + + The following values are supported: + - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. + - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. + - `BASELINE_1_1` - baseline usage is the entire OCPU. This represents a non-burstable instance. + + Allowed values for this property are: "BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The baseline_ocpu_utilization of this DesktopPoolShapeConfig. + :rtype: str + """ + return self._baseline_ocpu_utilization + + @baseline_ocpu_utilization.setter + def baseline_ocpu_utilization(self, baseline_ocpu_utilization): + """ + Sets the baseline_ocpu_utilization of this DesktopPoolShapeConfig. + The baseline OCPU utilization for a subcore burstable VM instance used for each desktop compute instance in + the desktop pool. + Leave this attribute blank for a non-burstable instance, or explicitly specify non-burstable with + `BASELINE_1_1`. + + The following values are supported: + - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. + - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. + - `BASELINE_1_1` - baseline usage is the entire OCPU. This represents a non-burstable instance. + + + :param baseline_ocpu_utilization: The baseline_ocpu_utilization of this DesktopPoolShapeConfig. + :type: str + """ + allowed_values = ["BASELINE_1_8", "BASELINE_1_2", "BASELINE_1_1"] + if not value_allowed_none_or_none_sentinel(baseline_ocpu_utilization, allowed_values): + baseline_ocpu_utilization = 'UNKNOWN_ENUM_VALUE' + self._baseline_ocpu_utilization = baseline_ocpu_utilization + + 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/desktops/models/desktop_session_lifecycle_actions.py b/src/oci/desktops/models/desktop_session_lifecycle_actions.py new file mode 100644 index 000000000..509564944 --- /dev/null +++ b/src/oci/desktops/models/desktop_session_lifecycle_actions.py @@ -0,0 +1,95 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220618 + + +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 DesktopSessionLifecycleActions(object): + """ + Action to be triggered on inactivity or disconnect + """ + + def __init__(self, **kwargs): + """ + Initializes a new DesktopSessionLifecycleActions object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param inactivity: + The value to assign to the inactivity property of this DesktopSessionLifecycleActions. + :type inactivity: oci.desktops.models.InactivityConfig + + :param disconnect: + The value to assign to the disconnect property of this DesktopSessionLifecycleActions. + :type disconnect: oci.desktops.models.DisconnectConfig + + """ + self.swagger_types = { + 'inactivity': 'InactivityConfig', + 'disconnect': 'DisconnectConfig' + } + + self.attribute_map = { + 'inactivity': 'inactivity', + 'disconnect': 'disconnect' + } + + self._inactivity = None + self._disconnect = None + + @property + def inactivity(self): + """ + Gets the inactivity of this DesktopSessionLifecycleActions. + + :return: The inactivity of this DesktopSessionLifecycleActions. + :rtype: oci.desktops.models.InactivityConfig + """ + return self._inactivity + + @inactivity.setter + def inactivity(self, inactivity): + """ + Sets the inactivity of this DesktopSessionLifecycleActions. + + :param inactivity: The inactivity of this DesktopSessionLifecycleActions. + :type: oci.desktops.models.InactivityConfig + """ + self._inactivity = inactivity + + @property + def disconnect(self): + """ + Gets the disconnect of this DesktopSessionLifecycleActions. + + :return: The disconnect of this DesktopSessionLifecycleActions. + :rtype: oci.desktops.models.DisconnectConfig + """ + return self._disconnect + + @disconnect.setter + def disconnect(self, disconnect): + """ + Sets the disconnect of this DesktopSessionLifecycleActions. + + :param disconnect: The disconnect of this DesktopSessionLifecycleActions. + :type: oci.desktops.models.DisconnectConfig + """ + self._disconnect = disconnect + + 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/desktops/models/disconnect_config.py b/src/oci/desktops/models/disconnect_config.py new file mode 100644 index 000000000..dbcfa4793 --- /dev/null +++ b/src/oci/desktops/models/disconnect_config.py @@ -0,0 +1,121 @@ +# 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: 20220618 + + +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 DisconnectConfig(object): + """ + Action and grace period for disconnect + """ + + #: A constant which can be used with the action property of a DisconnectConfig. + #: This constant has a value of "NONE" + ACTION_NONE = "NONE" + + #: A constant which can be used with the action property of a DisconnectConfig. + #: This constant has a value of "STOP" + ACTION_STOP = "STOP" + + def __init__(self, **kwargs): + """ + Initializes a new DisconnectConfig object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param action: + The value to assign to the action property of this DisconnectConfig. + Allowed values for this property are: "NONE", "STOP", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type action: str + + :param grace_period_in_minutes: + The value to assign to the grace_period_in_minutes property of this DisconnectConfig. + :type grace_period_in_minutes: int + + """ + self.swagger_types = { + 'action': 'str', + 'grace_period_in_minutes': 'int' + } + + self.attribute_map = { + 'action': 'action', + 'grace_period_in_minutes': 'gracePeriodInMinutes' + } + + self._action = None + self._grace_period_in_minutes = None + + @property + def action(self): + """ + **[Required]** Gets the action of this DisconnectConfig. + a disconnect action to be triggered + + Allowed values for this property are: "NONE", "STOP", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The action of this DisconnectConfig. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this DisconnectConfig. + a disconnect action to be triggered + + + :param action: The action of this DisconnectConfig. + :type: str + """ + allowed_values = ["NONE", "STOP"] + if not value_allowed_none_or_none_sentinel(action, allowed_values): + action = 'UNKNOWN_ENUM_VALUE' + self._action = action + + @property + def grace_period_in_minutes(self): + """ + Gets the grace_period_in_minutes of this DisconnectConfig. + The period of time (in minutes) after disconnect before any action occurs. + If the value is not provided, a default value is used. + + + :return: The grace_period_in_minutes of this DisconnectConfig. + :rtype: int + """ + return self._grace_period_in_minutes + + @grace_period_in_minutes.setter + def grace_period_in_minutes(self, grace_period_in_minutes): + """ + Sets the grace_period_in_minutes of this DisconnectConfig. + The period of time (in minutes) after disconnect before any action occurs. + If the value is not provided, a default value is used. + + + :param grace_period_in_minutes: The grace_period_in_minutes of this DisconnectConfig. + :type: int + """ + self._grace_period_in_minutes = grace_period_in_minutes + + 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/desktops/models/inactivity_config.py b/src/oci/desktops/models/inactivity_config.py new file mode 100644 index 000000000..33b10c063 --- /dev/null +++ b/src/oci/desktops/models/inactivity_config.py @@ -0,0 +1,121 @@ +# 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: 20220618 + + +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 InactivityConfig(object): + """ + Action and grace period for inactivity + """ + + #: A constant which can be used with the action property of a InactivityConfig. + #: This constant has a value of "NONE" + ACTION_NONE = "NONE" + + #: A constant which can be used with the action property of a InactivityConfig. + #: This constant has a value of "DISCONNECT" + ACTION_DISCONNECT = "DISCONNECT" + + def __init__(self, **kwargs): + """ + Initializes a new InactivityConfig object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param action: + The value to assign to the action property of this InactivityConfig. + Allowed values for this property are: "NONE", "DISCONNECT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type action: str + + :param grace_period_in_minutes: + The value to assign to the grace_period_in_minutes property of this InactivityConfig. + :type grace_period_in_minutes: int + + """ + self.swagger_types = { + 'action': 'str', + 'grace_period_in_minutes': 'int' + } + + self.attribute_map = { + 'action': 'action', + 'grace_period_in_minutes': 'gracePeriodInMinutes' + } + + self._action = None + self._grace_period_in_minutes = None + + @property + def action(self): + """ + **[Required]** Gets the action of this InactivityConfig. + an inactivity action to be triggered + + Allowed values for this property are: "NONE", "DISCONNECT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The action of this InactivityConfig. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this InactivityConfig. + an inactivity action to be triggered + + + :param action: The action of this InactivityConfig. + :type: str + """ + allowed_values = ["NONE", "DISCONNECT"] + if not value_allowed_none_or_none_sentinel(action, allowed_values): + action = 'UNKNOWN_ENUM_VALUE' + self._action = action + + @property + def grace_period_in_minutes(self): + """ + Gets the grace_period_in_minutes of this InactivityConfig. + The period of time (in minutes) during which the session must remain inactive before any action occurs. + If the value is not provided, a default value is used. + + + :return: The grace_period_in_minutes of this InactivityConfig. + :rtype: int + """ + return self._grace_period_in_minutes + + @grace_period_in_minutes.setter + def grace_period_in_minutes(self, grace_period_in_minutes): + """ + Sets the grace_period_in_minutes of this InactivityConfig. + The period of time (in minutes) during which the session must remain inactive before any action occurs. + If the value is not provided, a default value is used. + + + :param grace_period_in_minutes: The grace_period_in_minutes of this InactivityConfig. + :type: int + """ + self._grace_period_in_minutes = grace_period_in_minutes + + 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/desktops/models/update_desktop_pool_desktop_session_lifecycle_actions.py b/src/oci/desktops/models/update_desktop_pool_desktop_session_lifecycle_actions.py new file mode 100644 index 000000000..cef72a9a0 --- /dev/null +++ b/src/oci/desktops/models/update_desktop_pool_desktop_session_lifecycle_actions.py @@ -0,0 +1,95 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220618 + + +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 UpdateDesktopPoolDesktopSessionLifecycleActions(object): + """ + The update details of action to be triggered in case of inactivity or disconnect + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateDesktopPoolDesktopSessionLifecycleActions object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param inactivity: + The value to assign to the inactivity property of this UpdateDesktopPoolDesktopSessionLifecycleActions. + :type inactivity: oci.desktops.models.InactivityConfig + + :param disconnect: + The value to assign to the disconnect property of this UpdateDesktopPoolDesktopSessionLifecycleActions. + :type disconnect: oci.desktops.models.DisconnectConfig + + """ + self.swagger_types = { + 'inactivity': 'InactivityConfig', + 'disconnect': 'DisconnectConfig' + } + + self.attribute_map = { + 'inactivity': 'inactivity', + 'disconnect': 'disconnect' + } + + self._inactivity = None + self._disconnect = None + + @property + def inactivity(self): + """ + Gets the inactivity of this UpdateDesktopPoolDesktopSessionLifecycleActions. + + :return: The inactivity of this UpdateDesktopPoolDesktopSessionLifecycleActions. + :rtype: oci.desktops.models.InactivityConfig + """ + return self._inactivity + + @inactivity.setter + def inactivity(self, inactivity): + """ + Sets the inactivity of this UpdateDesktopPoolDesktopSessionLifecycleActions. + + :param inactivity: The inactivity of this UpdateDesktopPoolDesktopSessionLifecycleActions. + :type: oci.desktops.models.InactivityConfig + """ + self._inactivity = inactivity + + @property + def disconnect(self): + """ + Gets the disconnect of this UpdateDesktopPoolDesktopSessionLifecycleActions. + + :return: The disconnect of this UpdateDesktopPoolDesktopSessionLifecycleActions. + :rtype: oci.desktops.models.DisconnectConfig + """ + return self._disconnect + + @disconnect.setter + def disconnect(self, disconnect): + """ + Sets the disconnect of this UpdateDesktopPoolDesktopSessionLifecycleActions. + + :param disconnect: The disconnect of this UpdateDesktopPoolDesktopSessionLifecycleActions. + :type: oci.desktops.models.DisconnectConfig + """ + self._disconnect = disconnect + + 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/desktops/models/update_desktop_pool_details.py b/src/oci/desktops/models/update_desktop_pool_details.py index 273b2f7df..df3b1b702 100644 --- a/src/oci/desktops/models/update_desktop_pool_details.py +++ b/src/oci/desktops/models/update_desktop_pool_details.py @@ -64,6 +64,10 @@ def __init__(self, **kwargs): The value to assign to the defined_tags property of this UpdateDesktopPoolDetails. :type defined_tags: dict(str, dict(str, object)) + :param session_lifecycle_actions: + The value to assign to the session_lifecycle_actions property of this UpdateDesktopPoolDetails. + :type session_lifecycle_actions: oci.desktops.models.UpdateDesktopPoolDesktopSessionLifecycleActions + """ self.swagger_types = { 'display_name': 'str', @@ -76,7 +80,8 @@ def __init__(self, **kwargs): 'time_start_scheduled': 'datetime', 'time_stop_scheduled': 'datetime', 'freeform_tags': 'dict(str, str)', - 'defined_tags': 'dict(str, dict(str, object))' + 'defined_tags': 'dict(str, dict(str, object))', + 'session_lifecycle_actions': 'UpdateDesktopPoolDesktopSessionLifecycleActions' } self.attribute_map = { @@ -90,7 +95,8 @@ def __init__(self, **kwargs): 'time_start_scheduled': 'timeStartScheduled', 'time_stop_scheduled': 'timeStopScheduled', 'freeform_tags': 'freeformTags', - 'defined_tags': 'definedTags' + 'defined_tags': 'definedTags', + 'session_lifecycle_actions': 'sessionLifecycleActions' } self._display_name = None @@ -104,6 +110,7 @@ def __init__(self, **kwargs): self._time_stop_scheduled = None self._freeform_tags = None self._defined_tags = None + self._session_lifecycle_actions = None @property def display_name(self): @@ -379,6 +386,26 @@ def defined_tags(self, defined_tags): """ self._defined_tags = defined_tags + @property + def session_lifecycle_actions(self): + """ + Gets the session_lifecycle_actions of this UpdateDesktopPoolDetails. + + :return: The session_lifecycle_actions of this UpdateDesktopPoolDetails. + :rtype: oci.desktops.models.UpdateDesktopPoolDesktopSessionLifecycleActions + """ + return self._session_lifecycle_actions + + @session_lifecycle_actions.setter + def session_lifecycle_actions(self, session_lifecycle_actions): + """ + Sets the session_lifecycle_actions of this UpdateDesktopPoolDetails. + + :param session_lifecycle_actions: The session_lifecycle_actions of this UpdateDesktopPoolDetails. + :type: oci.desktops.models.UpdateDesktopPoolDesktopSessionLifecycleActions + """ + self._session_lifecycle_actions = session_lifecycle_actions + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/fusion_apps/fusion_applications_client.py b/src/oci/fusion_apps/fusion_applications_client.py index a134ac5a6..79dcd4e12 100644 --- a/src/oci/fusion_apps/fusion_applications_client.py +++ b/src/oci/fusion_apps/fusion_applications_client.py @@ -4413,7 +4413,7 @@ def list_work_requests(self, compartment_id, **kwargs): def reset_fusion_environment_password(self, reset_fusion_environment_password_details, fusion_environment_id, admin_username, **kwargs): """ - Resets the password of the Fusion Environment Administrator. + Reset FusionEnvironment admin password. This API will be deprecated on Mon, 15 Jan 2024 01:00:00 GMT. Users can reset password themselves, FAaaS will no longer provide an API for this. :param oci.fusion_apps.models.ResetFusionEnvironmentPasswordDetails reset_fusion_environment_password_details: (required) diff --git a/src/oci/fusion_apps/models/create_fusion_environment_admin_user_details.py b/src/oci/fusion_apps/models/create_fusion_environment_admin_user_details.py index f6a687601..3bd684e9a 100644 --- a/src/oci/fusion_apps/models/create_fusion_environment_admin_user_details.py +++ b/src/oci/fusion_apps/models/create_fusion_environment_admin_user_details.py @@ -90,7 +90,7 @@ def username(self, username): @property def password(self): """ - **[Required]** Gets the password of this CreateFusionEnvironmentAdminUserDetails. + Gets the password of this CreateFusionEnvironmentAdminUserDetails. The password for the administrator. diff --git a/src/oci/load_balancer/models/connection_configuration.py b/src/oci/load_balancer/models/connection_configuration.py index 84903e743..1c134fcf1 100644 --- a/src/oci/load_balancer/models/connection_configuration.py +++ b/src/oci/load_balancer/models/connection_configuration.py @@ -15,6 +15,10 @@ class ConnectionConfiguration(object): Configuration details for the connection between the client and backend servers. """ + #: A constant which can be used with the backend_tcp_proxy_protocol_options property of a ConnectionConfiguration. + #: This constant has a value of "PP2_TYPE_AUTHORITY" + BACKEND_TCP_PROXY_PROTOCOL_OPTIONS_PP2_TYPE_AUTHORITY = "PP2_TYPE_AUTHORITY" + def __init__(self, **kwargs): """ Initializes a new ConnectionConfiguration object with values from keyword arguments. @@ -28,19 +32,28 @@ def __init__(self, **kwargs): The value to assign to the backend_tcp_proxy_protocol_version property of this ConnectionConfiguration. :type backend_tcp_proxy_protocol_version: int + :param backend_tcp_proxy_protocol_options: + The value to assign to the backend_tcp_proxy_protocol_options property of this ConnectionConfiguration. + Allowed values for items in this list are: "PP2_TYPE_AUTHORITY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type backend_tcp_proxy_protocol_options: list[str] + """ self.swagger_types = { 'idle_timeout': 'int', - 'backend_tcp_proxy_protocol_version': 'int' + 'backend_tcp_proxy_protocol_version': 'int', + 'backend_tcp_proxy_protocol_options': 'list[str]' } self.attribute_map = { 'idle_timeout': 'idleTimeout', - 'backend_tcp_proxy_protocol_version': 'backendTcpProxyProtocolVersion' + 'backend_tcp_proxy_protocol_version': 'backendTcpProxyProtocolVersion', + 'backend_tcp_proxy_protocol_options': 'backendTcpProxyProtocolOptions' } self._idle_timeout = None self._backend_tcp_proxy_protocol_version = None + self._backend_tcp_proxy_protocol_options = None @property def idle_timeout(self): @@ -110,6 +123,38 @@ def backend_tcp_proxy_protocol_version(self, backend_tcp_proxy_protocol_version) """ self._backend_tcp_proxy_protocol_version = backend_tcp_proxy_protocol_version + @property + def backend_tcp_proxy_protocol_options(self): + """ + Gets the backend_tcp_proxy_protocol_options of this ConnectionConfiguration. + An array that represents the PPV2 Options that can be enabled on TCP Listeners. + Example: [\"PP2_TYPE_AUTHORITY\"] + + Allowed values for items in this list are: "PP2_TYPE_AUTHORITY", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The backend_tcp_proxy_protocol_options of this ConnectionConfiguration. + :rtype: list[str] + """ + return self._backend_tcp_proxy_protocol_options + + @backend_tcp_proxy_protocol_options.setter + def backend_tcp_proxy_protocol_options(self, backend_tcp_proxy_protocol_options): + """ + Sets the backend_tcp_proxy_protocol_options of this ConnectionConfiguration. + An array that represents the PPV2 Options that can be enabled on TCP Listeners. + Example: [\"PP2_TYPE_AUTHORITY\"] + + + :param backend_tcp_proxy_protocol_options: The backend_tcp_proxy_protocol_options of this ConnectionConfiguration. + :type: list[str] + """ + allowed_values = ["PP2_TYPE_AUTHORITY"] + if backend_tcp_proxy_protocol_options: + backend_tcp_proxy_protocol_options[:] = ['UNKNOWN_ENUM_VALUE' if not value_allowed_none_or_none_sentinel(x, allowed_values) else x for x in backend_tcp_proxy_protocol_options] + self._backend_tcp_proxy_protocol_options = backend_tcp_proxy_protocol_options + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/opsi/models/__init__.py b/src/oci/opsi/models/__init__.py index ebebbb3fb..a7b669de9 100644 --- a/src/oci/opsi/models/__init__.py +++ b/src/oci/opsi/models/__init__.py @@ -100,6 +100,7 @@ from .configuration_item_unit_details import ConfigurationItemUnitDetails from .configuration_items_collection import ConfigurationItemsCollection from .connection_details import ConnectionDetails +from .create_autonomous_database_insight_details import CreateAutonomousDatabaseInsightDetails from .create_awr_hub_details import CreateAwrHubDetails from .create_awr_hub_source_details import CreateAwrHubSourceDetails from .create_basic_configuration_item_details import CreateBasicConfigurationItemDetails @@ -128,6 +129,7 @@ from .create_pe_comanaged_database_insight_details import CreatePeComanagedDatabaseInsightDetails from .create_pe_comanaged_exadata_insight_details import CreatePeComanagedExadataInsightDetails from .create_pe_comanaged_exadata_vmcluster_details import CreatePeComanagedExadataVmclusterDetails +from .credential_by_iam import CredentialByIam from .credential_by_vault import CredentialByVault from .credential_details import CredentialDetails from .credentials_by_source import CredentialsBySource @@ -175,6 +177,7 @@ from .em_managed_external_host_insight import EmManagedExternalHostInsight from .em_managed_external_host_insight_summary import EmManagedExternalHostInsightSummary from .enable_autonomous_database_insight_advanced_features_details import EnableAutonomousDatabaseInsightAdvancedFeaturesDetails +from .enable_autonomous_database_insight_details import EnableAutonomousDatabaseInsightDetails from .enable_database_insight_details import EnableDatabaseInsightDetails from .enable_em_managed_external_database_insight_details import EnableEmManagedExternalDatabaseInsightDetails from .enable_em_managed_external_exadata_insight_details import EnableEmManagedExternalExadataInsightDetails @@ -586,6 +589,7 @@ "ConfigurationItemUnitDetails": ConfigurationItemUnitDetails, "ConfigurationItemsCollection": ConfigurationItemsCollection, "ConnectionDetails": ConnectionDetails, + "CreateAutonomousDatabaseInsightDetails": CreateAutonomousDatabaseInsightDetails, "CreateAwrHubDetails": CreateAwrHubDetails, "CreateAwrHubSourceDetails": CreateAwrHubSourceDetails, "CreateBasicConfigurationItemDetails": CreateBasicConfigurationItemDetails, @@ -614,6 +618,7 @@ "CreatePeComanagedDatabaseInsightDetails": CreatePeComanagedDatabaseInsightDetails, "CreatePeComanagedExadataInsightDetails": CreatePeComanagedExadataInsightDetails, "CreatePeComanagedExadataVmclusterDetails": CreatePeComanagedExadataVmclusterDetails, + "CredentialByIam": CredentialByIam, "CredentialByVault": CredentialByVault, "CredentialDetails": CredentialDetails, "CredentialsBySource": CredentialsBySource, @@ -661,6 +666,7 @@ "EmManagedExternalHostInsight": EmManagedExternalHostInsight, "EmManagedExternalHostInsightSummary": EmManagedExternalHostInsightSummary, "EnableAutonomousDatabaseInsightAdvancedFeaturesDetails": EnableAutonomousDatabaseInsightAdvancedFeaturesDetails, + "EnableAutonomousDatabaseInsightDetails": EnableAutonomousDatabaseInsightDetails, "EnableDatabaseInsightDetails": EnableDatabaseInsightDetails, "EnableEmManagedExternalDatabaseInsightDetails": EnableEmManagedExternalDatabaseInsightDetails, "EnableEmManagedExternalExadataInsightDetails": EnableEmManagedExternalExadataInsightDetails, diff --git a/src/oci/opsi/models/create_autonomous_database_insight_details.py b/src/oci/opsi/models/create_autonomous_database_insight_details.py new file mode 100644 index 000000000..e53537883 --- /dev/null +++ b/src/oci/opsi/models/create_autonomous_database_insight_details.py @@ -0,0 +1,291 @@ +# 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 CreateAutonomousDatabaseInsightDetails(CreateDatabaseInsightDetails): + """ + The information about database to be analyzed. When isAdvancedFeaturesEnabled is set to false, parameters connectionDetails, credentialDetails and opsiPrivateEndpoint are optional. Otherwise, connectionDetails and crendetialDetails are required to enable full OPSI service features. If the Autonomouse Database is configured with private, restricted or dedicated access, opsiPrivateEndpoint parameter is required. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateAutonomousDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CreateAutonomousDatabaseInsightDetails.entity_source` attribute + of this class is ``AUTONOMOUS_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 CreateAutonomousDatabaseInsightDetails. + 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 CreateAutonomousDatabaseInsightDetails. + :type compartment_id: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateAutonomousDatabaseInsightDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateAutonomousDatabaseInsightDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param database_id: + The value to assign to the database_id property of this CreateAutonomousDatabaseInsightDetails. + :type database_id: str + + :param database_resource_type: + The value to assign to the database_resource_type property of this CreateAutonomousDatabaseInsightDetails. + :type database_resource_type: str + + :param is_advanced_features_enabled: + The value to assign to the is_advanced_features_enabled property of this CreateAutonomousDatabaseInsightDetails. + :type is_advanced_features_enabled: bool + + :param connection_details: + The value to assign to the connection_details property of this CreateAutonomousDatabaseInsightDetails. + :type connection_details: oci.opsi.models.ConnectionDetails + + :param credential_details: + The value to assign to the credential_details property of this CreateAutonomousDatabaseInsightDetails. + :type credential_details: oci.opsi.models.CredentialDetails + + :param opsi_private_endpoint_id: + The value to assign to the opsi_private_endpoint_id property of this CreateAutonomousDatabaseInsightDetails. + :type opsi_private_endpoint_id: str + + :param system_tags: + The value to assign to the system_tags property of this CreateAutonomousDatabaseInsightDetails. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'entity_source': 'str', + 'compartment_id': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'database_id': 'str', + 'database_resource_type': 'str', + 'is_advanced_features_enabled': 'bool', + 'connection_details': 'ConnectionDetails', + 'credential_details': 'CredentialDetails', + 'opsi_private_endpoint_id': 'str', + 'system_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'entity_source': 'entitySource', + 'compartment_id': 'compartmentId', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'database_id': 'databaseId', + 'database_resource_type': 'databaseResourceType', + 'is_advanced_features_enabled': 'isAdvancedFeaturesEnabled', + 'connection_details': 'connectionDetails', + 'credential_details': 'credentialDetails', + 'opsi_private_endpoint_id': 'opsiPrivateEndpointId', + 'system_tags': 'systemTags' + } + + self._entity_source = None + self._compartment_id = None + self._freeform_tags = None + self._defined_tags = None + self._database_id = None + self._database_resource_type = None + self._is_advanced_features_enabled = None + self._connection_details = None + self._credential_details = None + self._opsi_private_endpoint_id = None + self._system_tags = None + self._entity_source = 'AUTONOMOUS_DATABASE' + + @property + def database_id(self): + """ + **[Required]** Gets the database_id of this CreateAutonomousDatabaseInsightDetails. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The database_id of this CreateAutonomousDatabaseInsightDetails. + :rtype: str + """ + return self._database_id + + @database_id.setter + def database_id(self, database_id): + """ + Sets the database_id of this CreateAutonomousDatabaseInsightDetails. + The `OCID`__ of the database. + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param database_id: The database_id of this CreateAutonomousDatabaseInsightDetails. + :type: str + """ + self._database_id = database_id + + @property + def database_resource_type(self): + """ + **[Required]** Gets the database_resource_type of this CreateAutonomousDatabaseInsightDetails. + OCI database resource type + + + :return: The database_resource_type of this CreateAutonomousDatabaseInsightDetails. + :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 CreateAutonomousDatabaseInsightDetails. + OCI database resource type + + + :param database_resource_type: The database_resource_type of this CreateAutonomousDatabaseInsightDetails. + :type: str + """ + self._database_resource_type = database_resource_type + + @property + def is_advanced_features_enabled(self): + """ + **[Required]** Gets the is_advanced_features_enabled of this CreateAutonomousDatabaseInsightDetails. + Flag is to identify if advanced features for autonomous database is enabled or not + + + :return: The is_advanced_features_enabled of this CreateAutonomousDatabaseInsightDetails. + :rtype: bool + """ + return self._is_advanced_features_enabled + + @is_advanced_features_enabled.setter + def is_advanced_features_enabled(self, is_advanced_features_enabled): + """ + Sets the is_advanced_features_enabled of this CreateAutonomousDatabaseInsightDetails. + Flag is to identify if advanced features for autonomous database is enabled or not + + + :param is_advanced_features_enabled: The is_advanced_features_enabled of this CreateAutonomousDatabaseInsightDetails. + :type: bool + """ + self._is_advanced_features_enabled = is_advanced_features_enabled + + @property + def connection_details(self): + """ + Gets the connection_details of this CreateAutonomousDatabaseInsightDetails. + + :return: The connection_details of this CreateAutonomousDatabaseInsightDetails. + :rtype: oci.opsi.models.ConnectionDetails + """ + return self._connection_details + + @connection_details.setter + def connection_details(self, connection_details): + """ + Sets the connection_details of this CreateAutonomousDatabaseInsightDetails. + + :param connection_details: The connection_details of this CreateAutonomousDatabaseInsightDetails. + :type: oci.opsi.models.ConnectionDetails + """ + self._connection_details = connection_details + + @property + def credential_details(self): + """ + Gets the credential_details of this CreateAutonomousDatabaseInsightDetails. + + :return: The credential_details of this CreateAutonomousDatabaseInsightDetails. + :rtype: oci.opsi.models.CredentialDetails + """ + return self._credential_details + + @credential_details.setter + def credential_details(self, credential_details): + """ + Sets the credential_details of this CreateAutonomousDatabaseInsightDetails. + + :param credential_details: The credential_details of this CreateAutonomousDatabaseInsightDetails. + :type: oci.opsi.models.CredentialDetails + """ + self._credential_details = credential_details + + @property + def opsi_private_endpoint_id(self): + """ + Gets the opsi_private_endpoint_id of this CreateAutonomousDatabaseInsightDetails. + The `OCID`__ of the OPSI private endpoint + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The opsi_private_endpoint_id of this CreateAutonomousDatabaseInsightDetails. + :rtype: str + """ + return self._opsi_private_endpoint_id + + @opsi_private_endpoint_id.setter + def opsi_private_endpoint_id(self, opsi_private_endpoint_id): + """ + Sets the opsi_private_endpoint_id of this CreateAutonomousDatabaseInsightDetails. + The `OCID`__ of the OPSI private endpoint + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param opsi_private_endpoint_id: The opsi_private_endpoint_id of this CreateAutonomousDatabaseInsightDetails. + :type: str + """ + self._opsi_private_endpoint_id = opsi_private_endpoint_id + + @property + def system_tags(self): + """ + Gets the system_tags of this CreateAutonomousDatabaseInsightDetails. + 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 CreateAutonomousDatabaseInsightDetails. + :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 CreateAutonomousDatabaseInsightDetails. + 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 CreateAutonomousDatabaseInsightDetails. + :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_database_insight_details.py b/src/oci/opsi/models/create_database_insight_details.py index e03a91c71..8609695a2 100644 --- a/src/oci/opsi/models/create_database_insight_details.py +++ b/src/oci/opsi/models/create_database_insight_details.py @@ -37,6 +37,7 @@ def __init__(self, **kwargs): to a service operations then you should favor using a subclass over the base class: * :class:`~oci.opsi.models.CreateMacsManagedCloudDatabaseInsightDetails` + * :class:`~oci.opsi.models.CreateAutonomousDatabaseInsightDetails` * :class:`~oci.opsi.models.CreateMdsMySqlDatabaseInsightDetails` * :class:`~oci.opsi.models.CreateEmManagedExternalDatabaseInsightDetails` * :class:`~oci.opsi.models.CreatePeComanagedDatabaseInsightDetails` @@ -91,6 +92,9 @@ def get_subtype(object_dictionary): if type == 'MACS_MANAGED_CLOUD_DATABASE': return 'CreateMacsManagedCloudDatabaseInsightDetails' + if type == 'AUTONOMOUS_DATABASE': + return 'CreateAutonomousDatabaseInsightDetails' + if type == 'MDS_MYSQL_DATABASE_SYSTEM': return 'CreateMdsMySqlDatabaseInsightDetails' diff --git a/src/oci/opsi/models/credential_by_iam.py b/src/oci/opsi/models/credential_by_iam.py new file mode 100644 index 000000000..04f4ccaa6 --- /dev/null +++ b/src/oci/opsi/models/credential_by_iam.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 .credential_details import CredentialDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class CredentialByIam(CredentialDetails): + """ + IAM Credential Details to connect to the database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CredentialByIam object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.CredentialByIam.credential_type` attribute + of this class is ``CREDENTIALS_BY_IAM`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param credential_source_name: + The value to assign to the credential_source_name property of this CredentialByIam. + :type credential_source_name: str + + :param credential_type: + The value to assign to the credential_type property of this CredentialByIam. + Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", "CREDENTIALS_BY_IAM" + :type credential_type: str + + """ + self.swagger_types = { + 'credential_source_name': 'str', + 'credential_type': 'str' + } + + self.attribute_map = { + 'credential_source_name': 'credentialSourceName', + 'credential_type': 'credentialType' + } + + self._credential_source_name = None + self._credential_type = None + self._credential_type = 'CREDENTIALS_BY_IAM' + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/opsi/models/credential_by_vault.py b/src/oci/opsi/models/credential_by_vault.py index bf1c62e67..493d32075 100644 --- a/src/oci/opsi/models/credential_by_vault.py +++ b/src/oci/opsi/models/credential_by_vault.py @@ -31,7 +31,7 @@ def __init__(self, **kwargs): :param credential_type: The value to assign to the credential_type property of this CredentialByVault. - Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", "CREDENTIALS_BY_IAM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type credential_type: str diff --git a/src/oci/opsi/models/credential_details.py b/src/oci/opsi/models/credential_details.py index b911aed19..c4baeeff5 100644 --- a/src/oci/opsi/models/credential_details.py +++ b/src/oci/opsi/models/credential_details.py @@ -23,6 +23,10 @@ class CredentialDetails(object): #: This constant has a value of "CREDENTIALS_BY_VAULT" CREDENTIAL_TYPE_CREDENTIALS_BY_VAULT = "CREDENTIALS_BY_VAULT" + #: A constant which can be used with the credential_type property of a CredentialDetails. + #: This constant has a value of "CREDENTIALS_BY_IAM" + CREDENTIAL_TYPE_CREDENTIALS_BY_IAM = "CREDENTIALS_BY_IAM" + def __init__(self, **kwargs): """ Initializes a new CredentialDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -30,6 +34,7 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.CredentialsBySource` * :class:`~oci.opsi.models.CredentialByVault` + * :class:`~oci.opsi.models.CredentialByIam` The following keyword arguments are supported (corresponding to the getters/setters of this class): @@ -39,7 +44,7 @@ def __init__(self, **kwargs): :param credential_type: The value to assign to the credential_type property of this CredentialDetails. - Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", "CREDENTIALS_BY_IAM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type credential_type: str @@ -70,6 +75,9 @@ def get_subtype(object_dictionary): if type == 'CREDENTIALS_BY_VAULT': return 'CredentialByVault' + + if type == 'CREDENTIALS_BY_IAM': + return 'CredentialByIam' else: return 'CredentialDetails' @@ -101,9 +109,9 @@ def credential_source_name(self, credential_source_name): def credential_type(self): """ **[Required]** Gets the credential_type of this CredentialDetails. - Credential type. + CREDENTIALS_BY_SOURCE is supplied via the External Database Service. CREDENTIALS_BY_VAULT is supplied by secret service to connection PE_COMANAGED_DATABASE and ADB as well. CREDENTIALS_BY_IAM is used db-token to connect only for Autonomous Database. - Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", "CREDENTIALS_BY_IAM", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -116,13 +124,13 @@ def credential_type(self): def credential_type(self, credential_type): """ Sets the credential_type of this CredentialDetails. - Credential type. + CREDENTIALS_BY_SOURCE is supplied via the External Database Service. CREDENTIALS_BY_VAULT is supplied by secret service to connection PE_COMANAGED_DATABASE and ADB as well. CREDENTIALS_BY_IAM is used db-token to connect only for Autonomous Database. :param credential_type: The credential_type of this CredentialDetails. :type: str """ - allowed_values = ["CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT"] + allowed_values = ["CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", "CREDENTIALS_BY_IAM"] if not value_allowed_none_or_none_sentinel(credential_type, allowed_values): credential_type = 'UNKNOWN_ENUM_VALUE' self._credential_type = credential_type diff --git a/src/oci/opsi/models/credentials_by_source.py b/src/oci/opsi/models/credentials_by_source.py index 203d7de1b..67a7eed41 100644 --- a/src/oci/opsi/models/credentials_by_source.py +++ b/src/oci/opsi/models/credentials_by_source.py @@ -27,7 +27,7 @@ def __init__(self, **kwargs): :param credential_type: The value to assign to the credential_type property of this CredentialsBySource. - Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT" + Allowed values for this property are: "CREDENTIALS_BY_SOURCE", "CREDENTIALS_BY_VAULT", "CREDENTIALS_BY_IAM" :type credential_type: str """ diff --git a/src/oci/opsi/models/enable_autonomous_database_insight_details.py b/src/oci/opsi/models/enable_autonomous_database_insight_details.py new file mode 100644 index 000000000..281ce293b --- /dev/null +++ b/src/oci/opsi/models/enable_autonomous_database_insight_details.py @@ -0,0 +1,301 @@ +# 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 EnableAutonomousDatabaseInsightDetails(EnableDatabaseInsightDetails): + """ + The information about database to be analyzed. When isAdvancedFeaturesEnabled is set to false, parameters connectionDetails, credentialDetails and opsiPrivateEndpoint are optional. Otherwise, connectionDetails and crendetialDetails are required to enable full OPSI service features. If the Autonomouse Database is configured with private, restricted or dedicated access, opsiPrivateEndpoint parameter is required. + """ + + def __init__(self, **kwargs): + """ + Initializes a new EnableAutonomousDatabaseInsightDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.opsi.models.EnableAutonomousDatabaseInsightDetails.entity_source` attribute + of this class is ``AUTONOMOUS_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 EnableAutonomousDatabaseInsightDetails. + 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 database_resource_type: + The value to assign to the database_resource_type property of this EnableAutonomousDatabaseInsightDetails. + :type database_resource_type: str + + :param is_advanced_features_enabled: + The value to assign to the is_advanced_features_enabled property of this EnableAutonomousDatabaseInsightDetails. + :type is_advanced_features_enabled: bool + + :param connection_details: + The value to assign to the connection_details property of this EnableAutonomousDatabaseInsightDetails. + :type connection_details: oci.opsi.models.ConnectionDetails + + :param credential_details: + The value to assign to the credential_details property of this EnableAutonomousDatabaseInsightDetails. + :type credential_details: oci.opsi.models.CredentialDetails + + :param opsi_private_endpoint_id: + The value to assign to the opsi_private_endpoint_id property of this EnableAutonomousDatabaseInsightDetails. + :type opsi_private_endpoint_id: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this EnableAutonomousDatabaseInsightDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this EnableAutonomousDatabaseInsightDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this EnableAutonomousDatabaseInsightDetails. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'entity_source': 'str', + 'database_resource_type': 'str', + 'is_advanced_features_enabled': 'bool', + 'connection_details': 'ConnectionDetails', + 'credential_details': 'CredentialDetails', + 'opsi_private_endpoint_id': 'str', + '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', + 'database_resource_type': 'databaseResourceType', + 'is_advanced_features_enabled': 'isAdvancedFeaturesEnabled', + 'connection_details': 'connectionDetails', + 'credential_details': 'credentialDetails', + 'opsi_private_endpoint_id': 'opsiPrivateEndpointId', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._entity_source = None + self._database_resource_type = None + self._is_advanced_features_enabled = None + self._connection_details = None + self._credential_details = None + self._opsi_private_endpoint_id = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + self._entity_source = 'AUTONOMOUS_DATABASE' + + @property + def database_resource_type(self): + """ + Gets the database_resource_type of this EnableAutonomousDatabaseInsightDetails. + OCI database resource type + + + :return: The database_resource_type of this EnableAutonomousDatabaseInsightDetails. + :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 EnableAutonomousDatabaseInsightDetails. + OCI database resource type + + + :param database_resource_type: The database_resource_type of this EnableAutonomousDatabaseInsightDetails. + :type: str + """ + self._database_resource_type = database_resource_type + + @property + def is_advanced_features_enabled(self): + """ + **[Required]** Gets the is_advanced_features_enabled of this EnableAutonomousDatabaseInsightDetails. + Flag is to identify if advanced features for autonomous database is enabled or not + + + :return: The is_advanced_features_enabled of this EnableAutonomousDatabaseInsightDetails. + :rtype: bool + """ + return self._is_advanced_features_enabled + + @is_advanced_features_enabled.setter + def is_advanced_features_enabled(self, is_advanced_features_enabled): + """ + Sets the is_advanced_features_enabled of this EnableAutonomousDatabaseInsightDetails. + Flag is to identify if advanced features for autonomous database is enabled or not + + + :param is_advanced_features_enabled: The is_advanced_features_enabled of this EnableAutonomousDatabaseInsightDetails. + :type: bool + """ + self._is_advanced_features_enabled = is_advanced_features_enabled + + @property + def connection_details(self): + """ + Gets the connection_details of this EnableAutonomousDatabaseInsightDetails. + + :return: The connection_details of this EnableAutonomousDatabaseInsightDetails. + :rtype: oci.opsi.models.ConnectionDetails + """ + return self._connection_details + + @connection_details.setter + def connection_details(self, connection_details): + """ + Sets the connection_details of this EnableAutonomousDatabaseInsightDetails. + + :param connection_details: The connection_details of this EnableAutonomousDatabaseInsightDetails. + :type: oci.opsi.models.ConnectionDetails + """ + self._connection_details = connection_details + + @property + def credential_details(self): + """ + Gets the credential_details of this EnableAutonomousDatabaseInsightDetails. + + :return: The credential_details of this EnableAutonomousDatabaseInsightDetails. + :rtype: oci.opsi.models.CredentialDetails + """ + return self._credential_details + + @credential_details.setter + def credential_details(self, credential_details): + """ + Sets the credential_details of this EnableAutonomousDatabaseInsightDetails. + + :param credential_details: The credential_details of this EnableAutonomousDatabaseInsightDetails. + :type: oci.opsi.models.CredentialDetails + """ + self._credential_details = credential_details + + @property + def opsi_private_endpoint_id(self): + """ + Gets the opsi_private_endpoint_id of this EnableAutonomousDatabaseInsightDetails. + The `OCID`__ of the OPSI private endpoint + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :return: The opsi_private_endpoint_id of this EnableAutonomousDatabaseInsightDetails. + :rtype: str + """ + return self._opsi_private_endpoint_id + + @opsi_private_endpoint_id.setter + def opsi_private_endpoint_id(self, opsi_private_endpoint_id): + """ + Sets the opsi_private_endpoint_id of this EnableAutonomousDatabaseInsightDetails. + The `OCID`__ of the OPSI private endpoint + + __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm + + + :param opsi_private_endpoint_id: The opsi_private_endpoint_id of this EnableAutonomousDatabaseInsightDetails. + :type: str + """ + self._opsi_private_endpoint_id = opsi_private_endpoint_id + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this EnableAutonomousDatabaseInsightDetails. + 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 EnableAutonomousDatabaseInsightDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this EnableAutonomousDatabaseInsightDetails. + 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 EnableAutonomousDatabaseInsightDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this EnableAutonomousDatabaseInsightDetails. + 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 EnableAutonomousDatabaseInsightDetails. + :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 EnableAutonomousDatabaseInsightDetails. + 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 EnableAutonomousDatabaseInsightDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this EnableAutonomousDatabaseInsightDetails. + 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 EnableAutonomousDatabaseInsightDetails. + :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 EnableAutonomousDatabaseInsightDetails. + 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 EnableAutonomousDatabaseInsightDetails. + :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_database_insight_details.py b/src/oci/opsi/models/enable_database_insight_details.py index a9db1a54b..ac3acc63a 100644 --- a/src/oci/opsi/models/enable_database_insight_details.py +++ b/src/oci/opsi/models/enable_database_insight_details.py @@ -38,6 +38,7 @@ def __init__(self, **kwargs): * :class:`~oci.opsi.models.EnableEmManagedExternalDatabaseInsightDetails` * :class:`~oci.opsi.models.EnableMdsMySqlDatabaseInsightDetails` + * :class:`~oci.opsi.models.EnableAutonomousDatabaseInsightDetails` * :class:`~oci.opsi.models.EnableMacsManagedCloudDatabaseInsightDetails` * :class:`~oci.opsi.models.EnablePeComanagedDatabaseInsightDetails` @@ -73,6 +74,9 @@ def get_subtype(object_dictionary): if type == 'MDS_MYSQL_DATABASE_SYSTEM': return 'EnableMdsMySqlDatabaseInsightDetails' + if type == 'AUTONOMOUS_DATABASE': + return 'EnableAutonomousDatabaseInsightDetails' + if type == 'MACS_MANAGED_CLOUD_DATABASE': return 'EnableMacsManagedCloudDatabaseInsightDetails' diff --git a/src/oci/stack_monitoring/models/__init__.py b/src/oci/stack_monitoring/models/__init__.py index b8269efd4..653aa2b8f 100644 --- a/src/oci/stack_monitoring/models/__init__.py +++ b/src/oci/stack_monitoring/models/__init__.py @@ -34,6 +34,8 @@ from .create_discovery_job_details import CreateDiscoveryJobDetails from .create_license_auto_assign_config_details import CreateLicenseAutoAssignConfigDetails from .create_license_enterprise_extensibility_config_details import CreateLicenseEnterpriseExtensibilityConfigDetails +from .create_maintenance_window_details import CreateMaintenanceWindowDetails +from .create_maintenance_window_resource_details import CreateMaintenanceWindowResourceDetails from .create_metric_extension_details import CreateMetricExtensionDetails from .create_monitored_resource_details import CreateMonitoredResourceDetails from .create_monitored_resource_task_details import CreateMonitoredResourceTaskDetails @@ -63,6 +65,10 @@ from .license_auto_assign_config_summary import LicenseAutoAssignConfigSummary from .license_enterprise_extensibility_config_details import LicenseEnterpriseExtensibilityConfigDetails from .license_enterprise_extensibility_config_summary import LicenseEnterpriseExtensibilityConfigSummary +from .maintenance_window import MaintenanceWindow +from .maintenance_window_collection import MaintenanceWindowCollection +from .maintenance_window_schedule import MaintenanceWindowSchedule +from .maintenance_window_summary import MaintenanceWindowSummary from .manage_license_details import ManageLicenseDetails from .metric import Metric from .metric_data import MetricData @@ -79,6 +85,7 @@ from .monitored_resource_associations_collection import MonitoredResourceAssociationsCollection from .monitored_resource_collection import MonitoredResourceCollection from .monitored_resource_credential import MonitoredResourceCredential +from .monitored_resource_details import MonitoredResourceDetails from .monitored_resource_member_summary import MonitoredResourceMemberSummary from .monitored_resource_members_collection import MonitoredResourceMembersCollection from .monitored_resource_property import MonitoredResourceProperty @@ -92,6 +99,7 @@ from .monitored_resource_types_collection import MonitoredResourceTypesCollection from .monitored_resources_count_aggregation import MonitoredResourcesCountAggregation from .monitored_resources_count_aggregation_collection import MonitoredResourcesCountAggregationCollection +from .one_time_maintenance_window_schedule import OneTimeMaintenanceWindowSchedule from .os_command_query_properties import OsCommandQueryProperties from .os_command_update_query_properties import OsCommandUpdateQueryProperties from .plain_text_credentials import PlainTextCredentials @@ -102,6 +110,7 @@ from .process_set_specification_details import ProcessSetSpecificationDetails from .process_set_summary import ProcessSetSummary from .property_details import PropertyDetails +from .recurrent_maintenance_window_schedule import RecurrentMaintenanceWindowSchedule from .resource_type_metadata_details import ResourceTypeMetadataDetails from .script_file_details import ScriptFileDetails from .search_associated_resources_details import SearchAssociatedResourcesDetails @@ -123,6 +132,7 @@ from .update_config_details import UpdateConfigDetails from .update_license_auto_assign_config_details import UpdateLicenseAutoAssignConfigDetails from .update_license_enterprise_extensibility_config_details import UpdateLicenseEnterpriseExtensibilityConfigDetails +from .update_maintenance_window_details import UpdateMaintenanceWindowDetails from .update_metric_extension_details import UpdateMetricExtensionDetails from .update_monitored_resource_details import UpdateMonitoredResourceDetails from .update_monitored_resource_task_details import UpdateMonitoredResourceTaskDetails @@ -167,6 +177,8 @@ "CreateDiscoveryJobDetails": CreateDiscoveryJobDetails, "CreateLicenseAutoAssignConfigDetails": CreateLicenseAutoAssignConfigDetails, "CreateLicenseEnterpriseExtensibilityConfigDetails": CreateLicenseEnterpriseExtensibilityConfigDetails, + "CreateMaintenanceWindowDetails": CreateMaintenanceWindowDetails, + "CreateMaintenanceWindowResourceDetails": CreateMaintenanceWindowResourceDetails, "CreateMetricExtensionDetails": CreateMetricExtensionDetails, "CreateMonitoredResourceDetails": CreateMonitoredResourceDetails, "CreateMonitoredResourceTaskDetails": CreateMonitoredResourceTaskDetails, @@ -196,6 +208,10 @@ "LicenseAutoAssignConfigSummary": LicenseAutoAssignConfigSummary, "LicenseEnterpriseExtensibilityConfigDetails": LicenseEnterpriseExtensibilityConfigDetails, "LicenseEnterpriseExtensibilityConfigSummary": LicenseEnterpriseExtensibilityConfigSummary, + "MaintenanceWindow": MaintenanceWindow, + "MaintenanceWindowCollection": MaintenanceWindowCollection, + "MaintenanceWindowSchedule": MaintenanceWindowSchedule, + "MaintenanceWindowSummary": MaintenanceWindowSummary, "ManageLicenseDetails": ManageLicenseDetails, "Metric": Metric, "MetricData": MetricData, @@ -212,6 +228,7 @@ "MonitoredResourceAssociationsCollection": MonitoredResourceAssociationsCollection, "MonitoredResourceCollection": MonitoredResourceCollection, "MonitoredResourceCredential": MonitoredResourceCredential, + "MonitoredResourceDetails": MonitoredResourceDetails, "MonitoredResourceMemberSummary": MonitoredResourceMemberSummary, "MonitoredResourceMembersCollection": MonitoredResourceMembersCollection, "MonitoredResourceProperty": MonitoredResourceProperty, @@ -225,6 +242,7 @@ "MonitoredResourceTypesCollection": MonitoredResourceTypesCollection, "MonitoredResourcesCountAggregation": MonitoredResourcesCountAggregation, "MonitoredResourcesCountAggregationCollection": MonitoredResourcesCountAggregationCollection, + "OneTimeMaintenanceWindowSchedule": OneTimeMaintenanceWindowSchedule, "OsCommandQueryProperties": OsCommandQueryProperties, "OsCommandUpdateQueryProperties": OsCommandUpdateQueryProperties, "PlainTextCredentials": PlainTextCredentials, @@ -235,6 +253,7 @@ "ProcessSetSpecificationDetails": ProcessSetSpecificationDetails, "ProcessSetSummary": ProcessSetSummary, "PropertyDetails": PropertyDetails, + "RecurrentMaintenanceWindowSchedule": RecurrentMaintenanceWindowSchedule, "ResourceTypeMetadataDetails": ResourceTypeMetadataDetails, "ScriptFileDetails": ScriptFileDetails, "SearchAssociatedResourcesDetails": SearchAssociatedResourcesDetails, @@ -256,6 +275,7 @@ "UpdateConfigDetails": UpdateConfigDetails, "UpdateLicenseAutoAssignConfigDetails": UpdateLicenseAutoAssignConfigDetails, "UpdateLicenseEnterpriseExtensibilityConfigDetails": UpdateLicenseEnterpriseExtensibilityConfigDetails, + "UpdateMaintenanceWindowDetails": UpdateMaintenanceWindowDetails, "UpdateMetricExtensionDetails": UpdateMetricExtensionDetails, "UpdateMonitoredResourceDetails": UpdateMonitoredResourceDetails, "UpdateMonitoredResourceTaskDetails": UpdateMonitoredResourceTaskDetails, diff --git a/src/oci/stack_monitoring/models/create_maintenance_window_details.py b/src/oci/stack_monitoring/models/create_maintenance_window_details.py new file mode 100644 index 000000000..7ddb290b2 --- /dev/null +++ b/src/oci/stack_monitoring/models/create_maintenance_window_details.py @@ -0,0 +1,196 @@ +# 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: 20210330 + + +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 CreateMaintenanceWindowDetails(object): + """ + Infomation to create a new Maintenance Window. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateMaintenanceWindowDetails 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 CreateMaintenanceWindowDetails. + :type name: str + + :param description: + The value to assign to the description property of this CreateMaintenanceWindowDetails. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this CreateMaintenanceWindowDetails. + :type compartment_id: str + + :param resources: + The value to assign to the resources property of this CreateMaintenanceWindowDetails. + :type resources: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + + :param schedule: + The value to assign to the schedule property of this CreateMaintenanceWindowDetails. + :type schedule: oci.stack_monitoring.models.MaintenanceWindowSchedule + + """ + self.swagger_types = { + 'name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'resources': 'list[CreateMaintenanceWindowResourceDetails]', + 'schedule': 'MaintenanceWindowSchedule' + } + + self.attribute_map = { + 'name': 'name', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'resources': 'resources', + 'schedule': 'schedule' + } + + self._name = None + self._description = None + self._compartment_id = None + self._resources = None + self._schedule = None + + @property + def name(self): + """ + **[Required]** Gets the name of this CreateMaintenanceWindowDetails. + Maintenance Window name. + + + :return: The name of this CreateMaintenanceWindowDetails. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this CreateMaintenanceWindowDetails. + Maintenance Window name. + + + :param name: The name of this CreateMaintenanceWindowDetails. + :type: str + """ + self._name = name + + @property + def description(self): + """ + Gets the description of this CreateMaintenanceWindowDetails. + Maintenance Window description. + + + :return: The description of this CreateMaintenanceWindowDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateMaintenanceWindowDetails. + Maintenance Window description. + + + :param description: The description of this CreateMaintenanceWindowDetails. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateMaintenanceWindowDetails. + Compartment Identifier `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this CreateMaintenanceWindowDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateMaintenanceWindowDetails. + Compartment Identifier `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this CreateMaintenanceWindowDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def resources(self): + """ + **[Required]** Gets the resources of this CreateMaintenanceWindowDetails. + List of resource Ids which are part of the Maintenance Window + + + :return: The resources of this CreateMaintenanceWindowDetails. + :rtype: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this CreateMaintenanceWindowDetails. + List of resource Ids which are part of the Maintenance Window + + + :param resources: The resources of this CreateMaintenanceWindowDetails. + :type: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + """ + self._resources = resources + + @property + def schedule(self): + """ + **[Required]** Gets the schedule of this CreateMaintenanceWindowDetails. + + :return: The schedule of this CreateMaintenanceWindowDetails. + :rtype: oci.stack_monitoring.models.MaintenanceWindowSchedule + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this CreateMaintenanceWindowDetails. + + :param schedule: The schedule of this CreateMaintenanceWindowDetails. + :type: oci.stack_monitoring.models.MaintenanceWindowSchedule + """ + self._schedule = schedule + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/stack_monitoring/models/create_maintenance_window_resource_details.py b/src/oci/stack_monitoring/models/create_maintenance_window_resource_details.py new file mode 100644 index 000000000..3e3616b47 --- /dev/null +++ b/src/oci/stack_monitoring/models/create_maintenance_window_resource_details.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: 20210330 + + +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 CreateMaintenanceWindowResourceDetails(object): + """ + List of resource IDs that are part of the Maintenance Window. + """ + + def __init__(self, **kwargs): + """ + Initializes a new CreateMaintenanceWindowResourceDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param resource_id: + The value to assign to the resource_id property of this CreateMaintenanceWindowResourceDetails. + :type resource_id: str + + :param are_members_included: + The value to assign to the are_members_included property of this CreateMaintenanceWindowResourceDetails. + :type are_members_included: bool + + """ + self.swagger_types = { + 'resource_id': 'str', + 'are_members_included': 'bool' + } + + self.attribute_map = { + 'resource_id': 'resourceId', + 'are_members_included': 'areMembersIncluded' + } + + self._resource_id = None + self._are_members_included = None + + @property + def resource_id(self): + """ + **[Required]** Gets the resource_id of this CreateMaintenanceWindowResourceDetails. + The `OCID`__ of monitored resource + part of the Maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The resource_id of this CreateMaintenanceWindowResourceDetails. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """ + Sets the resource_id of this CreateMaintenanceWindowResourceDetails. + The `OCID`__ of monitored resource + part of the Maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param resource_id: The resource_id of this CreateMaintenanceWindowResourceDetails. + :type: str + """ + self._resource_id = resource_id + + @property + def are_members_included(self): + """ + Gets the are_members_included of this CreateMaintenanceWindowResourceDetails. + Flag to indicate if the members of the resource has to be include in the + Maintenance Window. + + + :return: The are_members_included of this CreateMaintenanceWindowResourceDetails. + :rtype: bool + """ + return self._are_members_included + + @are_members_included.setter + def are_members_included(self, are_members_included): + """ + Sets the are_members_included of this CreateMaintenanceWindowResourceDetails. + Flag to indicate if the members of the resource has to be include in the + Maintenance Window. + + + :param are_members_included: The are_members_included of this CreateMaintenanceWindowResourceDetails. + :type: bool + """ + self._are_members_included = are_members_included + + 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/stack_monitoring/models/maintenance_window.py b/src/oci/stack_monitoring/models/maintenance_window.py new file mode 100644 index 000000000..03fcf5ea4 --- /dev/null +++ b/src/oci/stack_monitoring/models/maintenance_window.py @@ -0,0 +1,439 @@ +# 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: 20210330 + + +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 MaintenanceWindow(object): + """ + Maintenance Window object. It contains all the information of the Maintenance window. + Used in the Create and Get operations. + """ + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindow. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindow. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindow. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindow. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindow. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindow. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + #: A constant which can be used with the lifecycle_details property of a MaintenanceWindow. + #: This constant has a value of "IN_PROGRESS" + LIFECYCLE_DETAILS_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the lifecycle_details property of a MaintenanceWindow. + #: This constant has a value of "SCHEDULED" + LIFECYCLE_DETAILS_SCHEDULED = "SCHEDULED" + + #: A constant which can be used with the lifecycle_details property of a MaintenanceWindow. + #: This constant has a value of "COMPLETED" + LIFECYCLE_DETAILS_COMPLETED = "COMPLETED" + + def __init__(self, **kwargs): + """ + Initializes a new MaintenanceWindow 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 MaintenanceWindow. + :type id: str + + :param name: + The value to assign to the name property of this MaintenanceWindow. + :type name: str + + :param description: + The value to assign to the description property of this MaintenanceWindow. + :type description: str + + :param compartment_id: + The value to assign to the compartment_id property of this MaintenanceWindow. + :type compartment_id: str + + :param resources: + The value to assign to the resources property of this MaintenanceWindow. + :type resources: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + + :param resources_details: + The value to assign to the resources_details property of this MaintenanceWindow. + :type resources_details: list[oci.stack_monitoring.models.MonitoredResourceDetails] + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MaintenanceWindow. + 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 MaintenanceWindow. + Allowed values for this property are: "IN_PROGRESS", "SCHEDULED", "COMPLETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type lifecycle_details: str + + :param schedule: + The value to assign to the schedule property of this MaintenanceWindow. + :type schedule: oci.stack_monitoring.models.MaintenanceWindowSchedule + + :param time_created: + The value to assign to the time_created property of this MaintenanceWindow. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this MaintenanceWindow. + :type time_updated: datetime + + """ + self.swagger_types = { + 'id': 'str', + 'name': 'str', + 'description': 'str', + 'compartment_id': 'str', + 'resources': 'list[CreateMaintenanceWindowResourceDetails]', + 'resources_details': 'list[MonitoredResourceDetails]', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'schedule': 'MaintenanceWindowSchedule', + 'time_created': 'datetime', + 'time_updated': 'datetime' + } + + self.attribute_map = { + 'id': 'id', + 'name': 'name', + 'description': 'description', + 'compartment_id': 'compartmentId', + 'resources': 'resources', + 'resources_details': 'resourcesDetails', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'schedule': 'schedule', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated' + } + + self._id = None + self._name = None + self._description = None + self._compartment_id = None + self._resources = None + self._resources_details = None + self._lifecycle_state = None + self._lifecycle_details = None + self._schedule = None + self._time_created = None + self._time_updated = None + + @property + def id(self): + """ + **[Required]** Gets the id of this MaintenanceWindow. + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The id of this MaintenanceWindow. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this MaintenanceWindow. + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param id: The id of this MaintenanceWindow. + :type: str + """ + self._id = id + + @property + def name(self): + """ + **[Required]** Gets the name of this MaintenanceWindow. + Maintenance Window name. + + + :return: The name of this MaintenanceWindow. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this MaintenanceWindow. + Maintenance Window name. + + + :param name: The name of this MaintenanceWindow. + :type: str + """ + self._name = name + + @property + def description(self): + """ + Gets the description of this MaintenanceWindow. + Maintenance Window description. + + + :return: The description of this MaintenanceWindow. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this MaintenanceWindow. + Maintenance Window description. + + + :param description: The description of this MaintenanceWindow. + :type: str + """ + self._description = description + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this MaintenanceWindow. + Compartment Identifier `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this MaintenanceWindow. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this MaintenanceWindow. + Compartment Identifier `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this MaintenanceWindow. + :type: str + """ + self._compartment_id = compartment_id + + @property + def resources(self): + """ + Gets the resources of this MaintenanceWindow. + List of resource Ids which are part of the Maintenance Window + + + :return: The resources of this MaintenanceWindow. + :rtype: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this MaintenanceWindow. + List of resource Ids which are part of the Maintenance Window + + + :param resources: The resources of this MaintenanceWindow. + :type: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + """ + self._resources = resources + + @property + def resources_details(self): + """ + Gets the resources_details of this MaintenanceWindow. + List of resource details that are part of the Maintenance Window. + + + :return: The resources_details of this MaintenanceWindow. + :rtype: list[oci.stack_monitoring.models.MonitoredResourceDetails] + """ + return self._resources_details + + @resources_details.setter + def resources_details(self, resources_details): + """ + Sets the resources_details of this MaintenanceWindow. + List of resource details that are part of the Maintenance Window. + + + :param resources_details: The resources_details of this MaintenanceWindow. + :type: list[oci.stack_monitoring.models.MonitoredResourceDetails] + """ + self._resources_details = resources_details + + @property + def lifecycle_state(self): + """ + Gets the lifecycle_state of this MaintenanceWindow. + Lifecycle state of the monitored resource. + + 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 MaintenanceWindow. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this MaintenanceWindow. + Lifecycle state of the monitored resource. + + + :param lifecycle_state: The lifecycle_state of this MaintenanceWindow. + :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 MaintenanceWindow. + Lifecycle Details of the Maintenance Window. + + Allowed values for this property are: "IN_PROGRESS", "SCHEDULED", "COMPLETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_details of this MaintenanceWindow. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this MaintenanceWindow. + Lifecycle Details of the Maintenance Window. + + + :param lifecycle_details: The lifecycle_details of this MaintenanceWindow. + :type: str + """ + allowed_values = ["IN_PROGRESS", "SCHEDULED", "COMPLETED"] + if not value_allowed_none_or_none_sentinel(lifecycle_details, allowed_values): + lifecycle_details = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_details = lifecycle_details + + @property + def schedule(self): + """ + Gets the schedule of this MaintenanceWindow. + + :return: The schedule of this MaintenanceWindow. + :rtype: oci.stack_monitoring.models.MaintenanceWindowSchedule + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this MaintenanceWindow. + + :param schedule: The schedule of this MaintenanceWindow. + :type: oci.stack_monitoring.models.MaintenanceWindowSchedule + """ + self._schedule = schedule + + @property + def time_created(self): + """ + Gets the time_created of this MaintenanceWindow. + The time the the maintenance window was created. An RFC3339 formatted datetime string + + + :return: The time_created of this MaintenanceWindow. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this MaintenanceWindow. + The time the the maintenance window was created. An RFC3339 formatted datetime string + + + :param time_created: The time_created of this MaintenanceWindow. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this MaintenanceWindow. + The time the the mainteance window was updated. An RFC3339 formatted datetime string + + + :return: The time_updated of this MaintenanceWindow. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this MaintenanceWindow. + The time the the mainteance window was updated. An RFC3339 formatted datetime string + + + :param time_updated: The time_updated of this MaintenanceWindow. + :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/stack_monitoring/models/maintenance_window_collection.py b/src/oci/stack_monitoring/models/maintenance_window_collection.py new file mode 100644 index 000000000..9b5642bdb --- /dev/null +++ b/src/oci/stack_monitoring/models/maintenance_window_collection.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20210330 + + +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 MaintenanceWindowCollection(object): + """ + Result of List of maintenance window. Contains MaintenanceWindowSummary items and other data. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MaintenanceWindowCollection 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 MaintenanceWindowCollection. + :type items: list[oci.stack_monitoring.models.MaintenanceWindowSummary] + + """ + self.swagger_types = { + 'items': 'list[MaintenanceWindowSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this MaintenanceWindowCollection. + List of maintenance window. + + + :return: The items of this MaintenanceWindowCollection. + :rtype: list[oci.stack_monitoring.models.MaintenanceWindowSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this MaintenanceWindowCollection. + List of maintenance window. + + + :param items: The items of this MaintenanceWindowCollection. + :type: list[oci.stack_monitoring.models.MaintenanceWindowSummary] + """ + 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/stack_monitoring/models/maintenance_window_schedule.py b/src/oci/stack_monitoring/models/maintenance_window_schedule.py new file mode 100644 index 000000000..da964eaee --- /dev/null +++ b/src/oci/stack_monitoring/models/maintenance_window_schedule.py @@ -0,0 +1,109 @@ +# 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: 20210330 + + +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 MaintenanceWindowSchedule(object): + """ + Schedule information of the Maintenance Window + """ + + #: A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule. + #: This constant has a value of "ONE_TIME" + SCHEDULE_TYPE_ONE_TIME = "ONE_TIME" + + #: A constant which can be used with the schedule_type property of a MaintenanceWindowSchedule. + #: This constant has a value of "RECURRENT" + SCHEDULE_TYPE_RECURRENT = "RECURRENT" + + def __init__(self, **kwargs): + """ + Initializes a new MaintenanceWindowSchedule 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.stack_monitoring.models.RecurrentMaintenanceWindowSchedule` + * :class:`~oci.stack_monitoring.models.OneTimeMaintenanceWindowSchedule` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param schedule_type: + The value to assign to the schedule_type property of this MaintenanceWindowSchedule. + Allowed values for this property are: "ONE_TIME", "RECURRENT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type schedule_type: str + + """ + self.swagger_types = { + 'schedule_type': 'str' + } + + self.attribute_map = { + 'schedule_type': 'scheduleType' + } + + self._schedule_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['scheduleType'] + + if type == 'RECURRENT': + return 'RecurrentMaintenanceWindowSchedule' + + if type == 'ONE_TIME': + return 'OneTimeMaintenanceWindowSchedule' + else: + return 'MaintenanceWindowSchedule' + + @property + def schedule_type(self): + """ + **[Required]** Gets the schedule_type of this MaintenanceWindowSchedule. + Property to identify the type of the Maintenance Window. + + Allowed values for this property are: "ONE_TIME", "RECURRENT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The schedule_type of this MaintenanceWindowSchedule. + :rtype: str + """ + return self._schedule_type + + @schedule_type.setter + def schedule_type(self, schedule_type): + """ + Sets the schedule_type of this MaintenanceWindowSchedule. + Property to identify the type of the Maintenance Window. + + + :param schedule_type: The schedule_type of this MaintenanceWindowSchedule. + :type: str + """ + allowed_values = ["ONE_TIME", "RECURRENT"] + if not value_allowed_none_or_none_sentinel(schedule_type, allowed_values): + schedule_type = 'UNKNOWN_ENUM_VALUE' + self._schedule_type = schedule_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/stack_monitoring/models/maintenance_window_summary.py b/src/oci/stack_monitoring/models/maintenance_window_summary.py new file mode 100644 index 000000000..79ed5fd9b --- /dev/null +++ b/src/oci/stack_monitoring/models/maintenance_window_summary.py @@ -0,0 +1,519 @@ +# 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: 20210330 + + +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 MaintenanceWindowSummary(object): + """ + General information of a Maintenance Window + """ + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindowSummary. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindowSummary. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindowSummary. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindowSummary. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindowSummary. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a MaintenanceWindowSummary. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + #: A constant which can be used with the lifecycle_details property of a MaintenanceWindowSummary. + #: This constant has a value of "IN_PROGRESS" + LIFECYCLE_DETAILS_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the lifecycle_details property of a MaintenanceWindowSummary. + #: This constant has a value of "SCHEDULED" + LIFECYCLE_DETAILS_SCHEDULED = "SCHEDULED" + + #: A constant which can be used with the lifecycle_details property of a MaintenanceWindowSummary. + #: This constant has a value of "COMPLETED" + LIFECYCLE_DETAILS_COMPLETED = "COMPLETED" + + #: A constant which can be used with the operation_type property of a MaintenanceWindowSummary. + #: This constant has a value of "UPDATE" + OPERATION_TYPE_UPDATE = "UPDATE" + + #: A constant which can be used with the operation_type property of a MaintenanceWindowSummary. + #: This constant has a value of "CREATE" + OPERATION_TYPE_CREATE = "CREATE" + + #: A constant which can be used with the operation_type property of a MaintenanceWindowSummary. + #: This constant has a value of "DELETE" + OPERATION_TYPE_DELETE = "DELETE" + + #: A constant which can be used with the operation_type property of a MaintenanceWindowSummary. + #: This constant has a value of "STOP" + OPERATION_TYPE_STOP = "STOP" + + #: A constant which can be used with the operation_status property of a MaintenanceWindowSummary. + #: This constant has a value of "IN_PROGRESS" + OPERATION_STATUS_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the operation_status property of a MaintenanceWindowSummary. + #: This constant has a value of "FAILED" + OPERATION_STATUS_FAILED = "FAILED" + + #: A constant which can be used with the operation_status property of a MaintenanceWindowSummary. + #: This constant has a value of "SUCCEEDED" + OPERATION_STATUS_SUCCEEDED = "SUCCEEDED" + + def __init__(self, **kwargs): + """ + Initializes a new MaintenanceWindowSummary 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 MaintenanceWindowSummary. + :type id: str + + :param name: + The value to assign to the name property of this MaintenanceWindowSummary. + :type name: str + + :param compartment_id: + The value to assign to the compartment_id property of this MaintenanceWindowSummary. + :type compartment_id: str + + :param number_of_resources: + The value to assign to the number_of_resources property of this MaintenanceWindowSummary. + :type number_of_resources: int + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this MaintenanceWindowSummary. + 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 MaintenanceWindowSummary. + Allowed values for this property are: "IN_PROGRESS", "SCHEDULED", "COMPLETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type lifecycle_details: str + + :param operation_type: + The value to assign to the operation_type property of this MaintenanceWindowSummary. + Allowed values for this property are: "UPDATE", "CREATE", "DELETE", "STOP", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type operation_type: str + + :param operation_status: + The value to assign to the operation_status property of this MaintenanceWindowSummary. + Allowed values for this property are: "IN_PROGRESS", "FAILED", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type operation_status: str + + :param schedule: + The value to assign to the schedule property of this MaintenanceWindowSummary. + :type schedule: oci.stack_monitoring.models.MaintenanceWindowSchedule + + :param freeform_tags: + The value to assign to the freeform_tags property of this MaintenanceWindowSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this MaintenanceWindowSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this MaintenanceWindowSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'name': 'str', + 'compartment_id': 'str', + 'number_of_resources': 'int', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'operation_type': 'str', + 'operation_status': 'str', + 'schedule': 'MaintenanceWindowSchedule', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'id': 'id', + 'name': 'name', + 'compartment_id': 'compartmentId', + 'number_of_resources': 'numberOfResources', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'operation_type': 'operationType', + 'operation_status': 'operationStatus', + 'schedule': 'schedule', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._name = None + self._compartment_id = None + self._number_of_resources = None + self._lifecycle_state = None + self._lifecycle_details = None + self._operation_type = None + self._operation_status = None + self._schedule = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this MaintenanceWindowSummary. + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The id of this MaintenanceWindowSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this MaintenanceWindowSummary. + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param id: The id of this MaintenanceWindowSummary. + :type: str + """ + self._id = id + + @property + def name(self): + """ + **[Required]** Gets the name of this MaintenanceWindowSummary. + Maintenance Window name. + + + :return: The name of this MaintenanceWindowSummary. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this MaintenanceWindowSummary. + Maintenance Window name. + + + :param name: The name of this MaintenanceWindowSummary. + :type: str + """ + self._name = name + + @property + def compartment_id(self): + """ + Gets the compartment_id of this MaintenanceWindowSummary. + Compartment Identifier `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this MaintenanceWindowSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this MaintenanceWindowSummary. + Compartment Identifier `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this MaintenanceWindowSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def number_of_resources(self): + """ + Gets the number_of_resources of this MaintenanceWindowSummary. + Number of resources of the Maintenance window. + + + :return: The number_of_resources of this MaintenanceWindowSummary. + :rtype: int + """ + return self._number_of_resources + + @number_of_resources.setter + def number_of_resources(self, number_of_resources): + """ + Sets the number_of_resources of this MaintenanceWindowSummary. + Number of resources of the Maintenance window. + + + :param number_of_resources: The number_of_resources of this MaintenanceWindowSummary. + :type: int + """ + self._number_of_resources = number_of_resources + + @property + def lifecycle_state(self): + """ + Gets the lifecycle_state of this MaintenanceWindowSummary. + Lifecycle state of the monitored resource. + + 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 MaintenanceWindowSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this MaintenanceWindowSummary. + Lifecycle state of the monitored resource. + + + :param lifecycle_state: The lifecycle_state of this MaintenanceWindowSummary. + :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 MaintenanceWindowSummary. + Lifecycle Details of the Maintenance Window. + + Allowed values for this property are: "IN_PROGRESS", "SCHEDULED", "COMPLETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_details of this MaintenanceWindowSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this MaintenanceWindowSummary. + Lifecycle Details of the Maintenance Window. + + + :param lifecycle_details: The lifecycle_details of this MaintenanceWindowSummary. + :type: str + """ + allowed_values = ["IN_PROGRESS", "SCHEDULED", "COMPLETED"] + if not value_allowed_none_or_none_sentinel(lifecycle_details, allowed_values): + lifecycle_details = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_details = lifecycle_details + + @property + def operation_type(self): + """ + Gets the operation_type of this MaintenanceWindowSummary. + The name of the most recent operation of the Maintenance window. + + Allowed values for this property are: "UPDATE", "CREATE", "DELETE", "STOP", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The operation_type of this MaintenanceWindowSummary. + :rtype: str + """ + return self._operation_type + + @operation_type.setter + def operation_type(self, operation_type): + """ + Sets the operation_type of this MaintenanceWindowSummary. + The name of the most recent operation of the Maintenance window. + + + :param operation_type: The operation_type of this MaintenanceWindowSummary. + :type: str + """ + allowed_values = ["UPDATE", "CREATE", "DELETE", "STOP"] + if not value_allowed_none_or_none_sentinel(operation_type, allowed_values): + operation_type = 'UNKNOWN_ENUM_VALUE' + self._operation_type = operation_type + + @property + def operation_status(self): + """ + Gets the operation_status of this MaintenanceWindowSummary. + Status of the most recent operation of the Maintenance Window. + + Allowed values for this property are: "IN_PROGRESS", "FAILED", "SUCCEEDED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The operation_status of this MaintenanceWindowSummary. + :rtype: str + """ + return self._operation_status + + @operation_status.setter + def operation_status(self, operation_status): + """ + Sets the operation_status of this MaintenanceWindowSummary. + Status of the most recent operation of the Maintenance Window. + + + :param operation_status: The operation_status of this MaintenanceWindowSummary. + :type: str + """ + allowed_values = ["IN_PROGRESS", "FAILED", "SUCCEEDED"] + if not value_allowed_none_or_none_sentinel(operation_status, allowed_values): + operation_status = 'UNKNOWN_ENUM_VALUE' + self._operation_status = operation_status + + @property + def schedule(self): + """ + Gets the schedule of this MaintenanceWindowSummary. + + :return: The schedule of this MaintenanceWindowSummary. + :rtype: oci.stack_monitoring.models.MaintenanceWindowSchedule + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this MaintenanceWindowSummary. + + :param schedule: The schedule of this MaintenanceWindowSummary. + :type: oci.stack_monitoring.models.MaintenanceWindowSchedule + """ + self._schedule = schedule + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this MaintenanceWindowSummary. + 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 MaintenanceWindowSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this MaintenanceWindowSummary. + 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 MaintenanceWindowSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this MaintenanceWindowSummary. + 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 MaintenanceWindowSummary. + :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 MaintenanceWindowSummary. + 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 MaintenanceWindowSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this MaintenanceWindowSummary. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this MaintenanceWindowSummary. + :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 MaintenanceWindowSummary. + Usage of system tag keys. These predefined keys are scoped to namespaces. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this MaintenanceWindowSummary. + :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/stack_monitoring/models/monitored_resource_details.py b/src/oci/stack_monitoring/models/monitored_resource_details.py new file mode 100644 index 000000000..a6e9b1c95 --- /dev/null +++ b/src/oci/stack_monitoring/models/monitored_resource_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: 20210330 + + +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 MonitoredResourceDetails(object): + """ + Details of the Resource that are part of the Maintenance Window. + """ + + def __init__(self, **kwargs): + """ + Initializes a new MonitoredResourceDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param resource_id: + The value to assign to the resource_id property of this MonitoredResourceDetails. + :type resource_id: str + + :param name: + The value to assign to the name property of this MonitoredResourceDetails. + :type name: str + + :param type: + The value to assign to the type property of this MonitoredResourceDetails. + :type type: str + + :param number_of_members: + The value to assign to the number_of_members property of this MonitoredResourceDetails. + :type number_of_members: int + + """ + self.swagger_types = { + 'resource_id': 'str', + 'name': 'str', + 'type': 'str', + 'number_of_members': 'int' + } + + self.attribute_map = { + 'resource_id': 'resourceId', + 'name': 'name', + 'type': 'type', + 'number_of_members': 'numberOfMembers' + } + + self._resource_id = None + self._name = None + self._type = None + self._number_of_members = None + + @property + def resource_id(self): + """ + **[Required]** Gets the resource_id of this MonitoredResourceDetails. + The `OCID`__ of monitored resource + part of the Maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The resource_id of this MonitoredResourceDetails. + :rtype: str + """ + return self._resource_id + + @resource_id.setter + def resource_id(self, resource_id): + """ + Sets the resource_id of this MonitoredResourceDetails. + The `OCID`__ of monitored resource + part of the Maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param resource_id: The resource_id of this MonitoredResourceDetails. + :type: str + """ + self._resource_id = resource_id + + @property + def name(self): + """ + **[Required]** Gets the name of this MonitoredResourceDetails. + Name of the monitored resource + + + :return: The name of this MonitoredResourceDetails. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this MonitoredResourceDetails. + Name of the monitored resource + + + :param name: The name of this MonitoredResourceDetails. + :type: str + """ + self._name = name + + @property + def type(self): + """ + **[Required]** Gets the type of this MonitoredResourceDetails. + Type of the monitored resource + + + :return: The type of this MonitoredResourceDetails. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this MonitoredResourceDetails. + Type of the monitored resource + + + :param type: The type of this MonitoredResourceDetails. + :type: str + """ + self._type = type + + @property + def number_of_members(self): + """ + Gets the number_of_members of this MonitoredResourceDetails. + Number of members of the resource + + + :return: The number_of_members of this MonitoredResourceDetails. + :rtype: int + """ + return self._number_of_members + + @number_of_members.setter + def number_of_members(self, number_of_members): + """ + Sets the number_of_members of this MonitoredResourceDetails. + Number of members of the resource + + + :param number_of_members: The number_of_members of this MonitoredResourceDetails. + :type: int + """ + self._number_of_members = number_of_members + + 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/stack_monitoring/models/one_time_maintenance_window_schedule.py b/src/oci/stack_monitoring/models/one_time_maintenance_window_schedule.py new file mode 100644 index 000000000..cb2da9ddc --- /dev/null +++ b/src/oci/stack_monitoring/models/one_time_maintenance_window_schedule.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: 20210330 + +from .maintenance_window_schedule import MaintenanceWindowSchedule +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 OneTimeMaintenanceWindowSchedule(MaintenanceWindowSchedule): + """ + Schedule information for the Maintenance Window that is executed only once. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OneTimeMaintenanceWindowSchedule object with values from keyword arguments. The default value of the :py:attr:`~oci.stack_monitoring.models.OneTimeMaintenanceWindowSchedule.schedule_type` attribute + of this class is ``ONE_TIME`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param schedule_type: + The value to assign to the schedule_type property of this OneTimeMaintenanceWindowSchedule. + Allowed values for this property are: "ONE_TIME", "RECURRENT" + :type schedule_type: str + + :param time_maintenance_window_start: + The value to assign to the time_maintenance_window_start property of this OneTimeMaintenanceWindowSchedule. + :type time_maintenance_window_start: datetime + + :param time_maintenance_window_end: + The value to assign to the time_maintenance_window_end property of this OneTimeMaintenanceWindowSchedule. + :type time_maintenance_window_end: datetime + + """ + self.swagger_types = { + 'schedule_type': 'str', + 'time_maintenance_window_start': 'datetime', + 'time_maintenance_window_end': 'datetime' + } + + self.attribute_map = { + 'schedule_type': 'scheduleType', + 'time_maintenance_window_start': 'timeMaintenanceWindowStart', + 'time_maintenance_window_end': 'timeMaintenanceWindowEnd' + } + + self._schedule_type = None + self._time_maintenance_window_start = None + self._time_maintenance_window_end = None + self._schedule_type = 'ONE_TIME' + + @property + def time_maintenance_window_start(self): + """ + Gets the time_maintenance_window_start of this OneTimeMaintenanceWindowSchedule. + Start time of Maintenance window. A RFC3339 formatted datetime string + + + :return: The time_maintenance_window_start of this OneTimeMaintenanceWindowSchedule. + :rtype: datetime + """ + return self._time_maintenance_window_start + + @time_maintenance_window_start.setter + def time_maintenance_window_start(self, time_maintenance_window_start): + """ + Sets the time_maintenance_window_start of this OneTimeMaintenanceWindowSchedule. + Start time of Maintenance window. A RFC3339 formatted datetime string + + + :param time_maintenance_window_start: The time_maintenance_window_start of this OneTimeMaintenanceWindowSchedule. + :type: datetime + """ + self._time_maintenance_window_start = time_maintenance_window_start + + @property + def time_maintenance_window_end(self): + """ + Gets the time_maintenance_window_end of this OneTimeMaintenanceWindowSchedule. + Start time of Maintenance window. A RFC3339 formatted datetime string + + + :return: The time_maintenance_window_end of this OneTimeMaintenanceWindowSchedule. + :rtype: datetime + """ + return self._time_maintenance_window_end + + @time_maintenance_window_end.setter + def time_maintenance_window_end(self, time_maintenance_window_end): + """ + Sets the time_maintenance_window_end of this OneTimeMaintenanceWindowSchedule. + Start time of Maintenance window. A RFC3339 formatted datetime string + + + :param time_maintenance_window_end: The time_maintenance_window_end of this OneTimeMaintenanceWindowSchedule. + :type: datetime + """ + self._time_maintenance_window_end = time_maintenance_window_end + + 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/stack_monitoring/models/recurrent_maintenance_window_schedule.py b/src/oci/stack_monitoring/models/recurrent_maintenance_window_schedule.py new file mode 100644 index 000000000..3c064f64f --- /dev/null +++ b/src/oci/stack_monitoring/models/recurrent_maintenance_window_schedule.py @@ -0,0 +1,191 @@ +# 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: 20210330 + +from .maintenance_window_schedule import MaintenanceWindowSchedule +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 RecurrentMaintenanceWindowSchedule(MaintenanceWindowSchedule): + """ + Schedule information for the Maintenance Window that is executed multiple times. + """ + + def __init__(self, **kwargs): + """ + Initializes a new RecurrentMaintenanceWindowSchedule object with values from keyword arguments. The default value of the :py:attr:`~oci.stack_monitoring.models.RecurrentMaintenanceWindowSchedule.schedule_type` attribute + of this class is ``RECURRENT`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param schedule_type: + The value to assign to the schedule_type property of this RecurrentMaintenanceWindowSchedule. + Allowed values for this property are: "ONE_TIME", "RECURRENT" + :type schedule_type: str + + :param time_maintenance_window_start: + The value to assign to the time_maintenance_window_start property of this RecurrentMaintenanceWindowSchedule. + :type time_maintenance_window_start: datetime + + :param time_maintenance_window_end: + The value to assign to the time_maintenance_window_end property of this RecurrentMaintenanceWindowSchedule. + :type time_maintenance_window_end: datetime + + :param maintenance_window_recurrences: + The value to assign to the maintenance_window_recurrences property of this RecurrentMaintenanceWindowSchedule. + :type maintenance_window_recurrences: str + + :param maintenance_window_duration: + The value to assign to the maintenance_window_duration property of this RecurrentMaintenanceWindowSchedule. + :type maintenance_window_duration: str + + """ + self.swagger_types = { + 'schedule_type': 'str', + 'time_maintenance_window_start': 'datetime', + 'time_maintenance_window_end': 'datetime', + 'maintenance_window_recurrences': 'str', + 'maintenance_window_duration': 'str' + } + + self.attribute_map = { + 'schedule_type': 'scheduleType', + 'time_maintenance_window_start': 'timeMaintenanceWindowStart', + 'time_maintenance_window_end': 'timeMaintenanceWindowEnd', + 'maintenance_window_recurrences': 'maintenanceWindowRecurrences', + 'maintenance_window_duration': 'maintenanceWindowDuration' + } + + self._schedule_type = None + self._time_maintenance_window_start = None + self._time_maintenance_window_end = None + self._maintenance_window_recurrences = None + self._maintenance_window_duration = None + self._schedule_type = 'RECURRENT' + + @property + def time_maintenance_window_start(self): + """ + Gets the time_maintenance_window_start of this RecurrentMaintenanceWindowSchedule. + Start time of Maintenance window. A RFC3339 formatted datetime string + + + :return: The time_maintenance_window_start of this RecurrentMaintenanceWindowSchedule. + :rtype: datetime + """ + return self._time_maintenance_window_start + + @time_maintenance_window_start.setter + def time_maintenance_window_start(self, time_maintenance_window_start): + """ + Sets the time_maintenance_window_start of this RecurrentMaintenanceWindowSchedule. + Start time of Maintenance window. A RFC3339 formatted datetime string + + + :param time_maintenance_window_start: The time_maintenance_window_start of this RecurrentMaintenanceWindowSchedule. + :type: datetime + """ + self._time_maintenance_window_start = time_maintenance_window_start + + @property + def time_maintenance_window_end(self): + """ + Gets the time_maintenance_window_end of this RecurrentMaintenanceWindowSchedule. + Start time of Maintenance window. A RFC3339 formatted datetime string + + + :return: The time_maintenance_window_end of this RecurrentMaintenanceWindowSchedule. + :rtype: datetime + """ + return self._time_maintenance_window_end + + @time_maintenance_window_end.setter + def time_maintenance_window_end(self, time_maintenance_window_end): + """ + Sets the time_maintenance_window_end of this RecurrentMaintenanceWindowSchedule. + Start time of Maintenance window. A RFC3339 formatted datetime string + + + :param time_maintenance_window_end: The time_maintenance_window_end of this RecurrentMaintenanceWindowSchedule. + :type: datetime + """ + self._time_maintenance_window_end = time_maintenance_window_end + + @property + def maintenance_window_recurrences(self): + """ + **[Required]** Gets the maintenance_window_recurrences of this RecurrentMaintenanceWindowSchedule. + A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. + Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 + FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. + BYDAY: Comma separated days for Weekly Maintenance Window. + BYHOUR: Specifies the start hour of each recurrence after `timeMaintenanceWindowStart` value. + BYMINUTE: Specifies the start minute of each reccurrence after `timeMaintenanceWindowStart` value. The default value is 00 + BYSECOND: Specifies the start second of each reccurrence after `timeMaintenanceWindowStart` value. The default value is 00 + Other Rules are not supported. + + + :return: The maintenance_window_recurrences of this RecurrentMaintenanceWindowSchedule. + :rtype: str + """ + return self._maintenance_window_recurrences + + @maintenance_window_recurrences.setter + def maintenance_window_recurrences(self, maintenance_window_recurrences): + """ + Sets the maintenance_window_recurrences of this RecurrentMaintenanceWindowSchedule. + A RFC5545 formatted recurrence string which represents the Maintenance Window Recurrence. + Please refer this for details:https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10 + FREQ: Frequency of the Maintenance Window. The supported values are: DAILY and WEEKLY. + BYDAY: Comma separated days for Weekly Maintenance Window. + BYHOUR: Specifies the start hour of each recurrence after `timeMaintenanceWindowStart` value. + BYMINUTE: Specifies the start minute of each reccurrence after `timeMaintenanceWindowStart` value. The default value is 00 + BYSECOND: Specifies the start second of each reccurrence after `timeMaintenanceWindowStart` value. The default value is 00 + Other Rules are not supported. + + + :param maintenance_window_recurrences: The maintenance_window_recurrences of this RecurrentMaintenanceWindowSchedule. + :type: str + """ + self._maintenance_window_recurrences = maintenance_window_recurrences + + @property + def maintenance_window_duration(self): + """ + Gets the maintenance_window_duration of this RecurrentMaintenanceWindowSchedule. + Duration time of each recurrence of each Maintenance Window. + It must be specified as a string in ISO 8601 extended format. + + + :return: The maintenance_window_duration of this RecurrentMaintenanceWindowSchedule. + :rtype: str + """ + return self._maintenance_window_duration + + @maintenance_window_duration.setter + def maintenance_window_duration(self, maintenance_window_duration): + """ + Sets the maintenance_window_duration of this RecurrentMaintenanceWindowSchedule. + Duration time of each recurrence of each Maintenance Window. + It must be specified as a string in ISO 8601 extended format. + + + :param maintenance_window_duration: The maintenance_window_duration of this RecurrentMaintenanceWindowSchedule. + :type: str + """ + self._maintenance_window_duration = maintenance_window_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/stack_monitoring/models/update_maintenance_window_details.py b/src/oci/stack_monitoring/models/update_maintenance_window_details.py new file mode 100644 index 000000000..9654868c3 --- /dev/null +++ b/src/oci/stack_monitoring/models/update_maintenance_window_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: 20210330 + + +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 UpdateMaintenanceWindowDetails(object): + """ + Infomation to create a new Maintenance Window. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateMaintenanceWindowDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param description: + The value to assign to the description property of this UpdateMaintenanceWindowDetails. + :type description: str + + :param resources: + The value to assign to the resources property of this UpdateMaintenanceWindowDetails. + :type resources: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + + :param schedule: + The value to assign to the schedule property of this UpdateMaintenanceWindowDetails. + :type schedule: oci.stack_monitoring.models.MaintenanceWindowSchedule + + """ + self.swagger_types = { + 'description': 'str', + 'resources': 'list[CreateMaintenanceWindowResourceDetails]', + 'schedule': 'MaintenanceWindowSchedule' + } + + self.attribute_map = { + 'description': 'description', + 'resources': 'resources', + 'schedule': 'schedule' + } + + self._description = None + self._resources = None + self._schedule = None + + @property + def description(self): + """ + Gets the description of this UpdateMaintenanceWindowDetails. + Maintenance Window description. + + + :return: The description of this UpdateMaintenanceWindowDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this UpdateMaintenanceWindowDetails. + Maintenance Window description. + + + :param description: The description of this UpdateMaintenanceWindowDetails. + :type: str + """ + self._description = description + + @property + def resources(self): + """ + Gets the resources of this UpdateMaintenanceWindowDetails. + List of resource Ids which are part of the Maintenance Window + + + :return: The resources of this UpdateMaintenanceWindowDetails. + :rtype: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this UpdateMaintenanceWindowDetails. + List of resource Ids which are part of the Maintenance Window + + + :param resources: The resources of this UpdateMaintenanceWindowDetails. + :type: list[oci.stack_monitoring.models.CreateMaintenanceWindowResourceDetails] + """ + self._resources = resources + + @property + def schedule(self): + """ + Gets the schedule of this UpdateMaintenanceWindowDetails. + + :return: The schedule of this UpdateMaintenanceWindowDetails. + :rtype: oci.stack_monitoring.models.MaintenanceWindowSchedule + """ + return self._schedule + + @schedule.setter + def schedule(self, schedule): + """ + Sets the schedule of this UpdateMaintenanceWindowDetails. + + :param schedule: The schedule of this UpdateMaintenanceWindowDetails. + :type: oci.stack_monitoring.models.MaintenanceWindowSchedule + """ + self._schedule = schedule + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/stack_monitoring/models/work_request.py b/src/oci/stack_monitoring/models/work_request.py index 00b945b11..4fb31391d 100644 --- a/src/oci/stack_monitoring/models/work_request.py +++ b/src/oci/stack_monitoring/models/work_request.py @@ -71,6 +71,22 @@ class WorkRequest(object): #: This constant has a value of "IMPORT_RESOURCES" OPERATION_TYPE_IMPORT_RESOURCES = "IMPORT_RESOURCES" + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "CREATE_MAINTENANCE_WINDOW" + OPERATION_TYPE_CREATE_MAINTENANCE_WINDOW = "CREATE_MAINTENANCE_WINDOW" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "UPDATE_MAINTENANCE_WINDOW" + OPERATION_TYPE_UPDATE_MAINTENANCE_WINDOW = "UPDATE_MAINTENANCE_WINDOW" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "DELETE_MAINTENANCE_WINDOW" + OPERATION_TYPE_DELETE_MAINTENANCE_WINDOW = "DELETE_MAINTENANCE_WINDOW" + + #: A constant which can be used with the operation_type property of a WorkRequest. + #: This constant has a value of "STOP_MAINTENANCE_WINDOW" + OPERATION_TYPE_STOP_MAINTENANCE_WINDOW = "STOP_MAINTENANCE_WINDOW" + #: A constant which can be used with the status property of a WorkRequest. #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" @@ -106,7 +122,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_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", "CREATE_MAINTENANCE_WINDOW", "UPDATE_MAINTENANCE_WINDOW", "DELETE_MAINTENANCE_WINDOW", "STOP_MAINTENANCE_WINDOW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -185,7 +201,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_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", "CREATE_MAINTENANCE_WINDOW", "UPDATE_MAINTENANCE_WINDOW", "DELETE_MAINTENANCE_WINDOW", "STOP_MAINTENANCE_WINDOW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -204,7 +220,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequest. :type: str """ - allowed_values = ["CREATE_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES"] + allowed_values = ["CREATE_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", "CREATE_MAINTENANCE_WINDOW", "UPDATE_MAINTENANCE_WINDOW", "DELETE_MAINTENANCE_WINDOW", "STOP_MAINTENANCE_WINDOW"] 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/stack_monitoring/models/work_request_summary.py b/src/oci/stack_monitoring/models/work_request_summary.py index 80f5b53c1..e93ebd9a2 100644 --- a/src/oci/stack_monitoring/models/work_request_summary.py +++ b/src/oci/stack_monitoring/models/work_request_summary.py @@ -71,6 +71,22 @@ class WorkRequestSummary(object): #: This constant has a value of "IMPORT_RESOURCES" OPERATION_TYPE_IMPORT_RESOURCES = "IMPORT_RESOURCES" + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "CREATE_MAINTENANCE_WINDOW" + OPERATION_TYPE_CREATE_MAINTENANCE_WINDOW = "CREATE_MAINTENANCE_WINDOW" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "UPDATE_MAINTENANCE_WINDOW" + OPERATION_TYPE_UPDATE_MAINTENANCE_WINDOW = "UPDATE_MAINTENANCE_WINDOW" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "DELETE_MAINTENANCE_WINDOW" + OPERATION_TYPE_DELETE_MAINTENANCE_WINDOW = "DELETE_MAINTENANCE_WINDOW" + + #: A constant which can be used with the operation_type property of a WorkRequestSummary. + #: This constant has a value of "STOP_MAINTENANCE_WINDOW" + OPERATION_TYPE_STOP_MAINTENANCE_WINDOW = "STOP_MAINTENANCE_WINDOW" + #: A constant which can be used with the status property of a WorkRequestSummary. #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" @@ -106,7 +122,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_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", "CREATE_MAINTENANCE_WINDOW", "UPDATE_MAINTENANCE_WINDOW", "DELETE_MAINTENANCE_WINDOW", "STOP_MAINTENANCE_WINDOW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type operation_type: str @@ -185,7 +201,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_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATE_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", "CREATE_MAINTENANCE_WINDOW", "UPDATE_MAINTENANCE_WINDOW", "DELETE_MAINTENANCE_WINDOW", "STOP_MAINTENANCE_WINDOW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -204,7 +220,7 @@ def operation_type(self, operation_type): :param operation_type: The operation_type of this WorkRequestSummary. :type: str """ - allowed_values = ["CREATE_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES"] + allowed_values = ["CREATE_RESOURCES", "UPDATE_RESOURCES", "DELETE_RESOURCES", "MOVE_RESOURCES", "ENABLE_EXTERNAL_DATABASE", "DISABLE_EXTERNAL_DATABASE", "ADD_SOURCES_TO_AGENT", "ENABLE_METRIC_EXTENSION", "DISABLE_METRIC_EXTENSION", "TEST_METRIC_EXTENSION", "BULK_ADD_RESOURCES", "BULK_DELETE_RESOURCES", "UPDATE_AND_PROPAGATE_TAGS", "IMPORT_RESOURCES", "CREATE_MAINTENANCE_WINDOW", "UPDATE_MAINTENANCE_WINDOW", "DELETE_MAINTENANCE_WINDOW", "STOP_MAINTENANCE_WINDOW"] 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/stack_monitoring/stack_monitoring_client.py b/src/oci/stack_monitoring/stack_monitoring_client.py index 6be1adbca..66b443928 100644 --- a/src/oci/stack_monitoring/stack_monitoring_client.py +++ b/src/oci/stack_monitoring/stack_monitoring_client.py @@ -1144,6 +1144,106 @@ def create_discovery_job(self, create_discovery_job_details, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def create_maintenance_window(self, create_maintenance_window_details, **kwargs): + """ + Creates a new Maintenance Window for the given resources. It will create also the + Alarms Suppression for each alarm that the resource migth trigger. + + + :param oci.stack_monitoring.models.CreateMaintenanceWindowDetails create_maintenance_window_details: (required) + Details to create the Maintenance Window + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + 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. + + :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.stack_monitoring.models.MaintenanceWindow` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_maintenance_window API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/maintenanceWindows" + method = "POST" + operation_name = "create_maintenance_window" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/CreateMaintenanceWindow" + + # 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_maintenance_window 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_maintenance_window_details, + response_type="MaintenanceWindow", + 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_maintenance_window_details, + response_type="MaintenanceWindow", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def create_metric_extension(self, create_metric_extension_details, **kwargs): """ Creates a new metric extension resource for a given compartment @@ -1963,6 +2063,112 @@ def delete_discovery_job(self, discovery_job_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def delete_maintenance_window(self, maintenance_window_id, **kwargs): + """ + Deletes a maintenance window by identifier + + + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + particular request, please provide the request ID. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_maintenance_window API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maintenanceWindowId'] + resource_path = "/maintenanceWindows/{maintenanceWindowId}" + method = "DELETE" + operation_name = "delete_maintenance_window" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/DeleteMaintenanceWindow" + + # 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_maintenance_window got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maintenanceWindowId": maintenance_window_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def delete_metric_extension(self, metric_extension_id, **kwargs): """ Deletes a metric extension by identifier @@ -3410,13 +3616,15 @@ def get_discovery_job(self, discovery_job_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) - def get_metric_extension(self, metric_extension_id, **kwargs): + def get_maintenance_window(self, maintenance_window_id, **kwargs): """ - Gets a Metric Extension by identifier + Get maintenance window for the given identifier `OCID`__. + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param str metric_extension_id: (required) - The `OCID`__ of the metric extension resource. + + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm @@ -3436,18 +3644,18 @@ def get_metric_extension(self, metric_extension_id, **kwargs): allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MetricExtension` + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MaintenanceWindow` :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use get_metric_extension API. + Click `here `__ to see an example of how to use get_maintenance_window API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['metricExtensionId'] - resource_path = "/metricExtensions/{metricExtensionId}" + required_arguments = ['maintenanceWindowId'] + resource_path = "/maintenanceWindows/{maintenanceWindowId}" method = "GET" - operation_name = "get_metric_extension" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/GetMetricExtension" + operation_name = "get_maintenance_window" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/GetMaintenanceWindow" # Don't accept unknown kwargs expected_kwargs = [ @@ -3458,10 +3666,10 @@ def get_metric_extension(self, metric_extension_id, **kwargs): extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"get_metric_extension got unknown kwargs: {extra_kwargs!r}") + f"get_maintenance_window got unknown kwargs: {extra_kwargs!r}") path_params = { - "metricExtensionId": metric_extension_id + "maintenanceWindowId": maintenance_window_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -3494,7 +3702,7 @@ def get_metric_extension(self, metric_extension_id, **kwargs): method=method, path_params=path_params, header_params=header_params, - response_type="MetricExtension", + response_type="MaintenanceWindow", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -3505,21 +3713,19 @@ def get_metric_extension(self, metric_extension_id, **kwargs): method=method, path_params=path_params, header_params=header_params, - response_type="MetricExtension", + response_type="MaintenanceWindow", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def get_monitored_resource(self, monitored_resource_id, **kwargs): + def get_metric_extension(self, metric_extension_id, **kwargs): """ - Get monitored resource for the given identifier `OCID`__. - - __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + Gets a Metric Extension by identifier - :param str monitored_resource_id: (required) - The `OCID`__ of monitored resource. + :param str metric_extension_id: (required) + The `OCID`__ of the metric extension resource. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm @@ -3539,18 +3745,18 @@ def get_monitored_resource(self, monitored_resource_id, **kwargs): allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoredResource` + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MetricExtension` :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use get_monitored_resource API. + Click `here `__ to see an example of how to use get_metric_extension API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['monitoredResourceId'] - resource_path = "/monitoredResources/{monitoredResourceId}" + required_arguments = ['metricExtensionId'] + resource_path = "/metricExtensions/{metricExtensionId}" method = "GET" - operation_name = "get_monitored_resource" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/GetMonitoredResource" + operation_name = "get_metric_extension" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MetricExtension/GetMetricExtension" # Don't accept unknown kwargs expected_kwargs = [ @@ -3561,10 +3767,10 @@ def get_monitored_resource(self, monitored_resource_id, **kwargs): extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"get_monitored_resource got unknown kwargs: {extra_kwargs!r}") + f"get_metric_extension got unknown kwargs: {extra_kwargs!r}") path_params = { - "monitoredResourceId": monitored_resource_id + "metricExtensionId": metric_extension_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -3597,7 +3803,7 @@ def get_monitored_resource(self, monitored_resource_id, **kwargs): method=method, path_params=path_params, header_params=header_params, - response_type="MonitoredResource", + response_type="MetricExtension", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -3608,21 +3814,21 @@ def get_monitored_resource(self, monitored_resource_id, **kwargs): method=method, path_params=path_params, header_params=header_params, - response_type="MonitoredResource", + response_type="MetricExtension", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): + def get_monitored_resource(self, monitored_resource_id, **kwargs): """ - Gets stack monitoring resource task details by identifier `OCID`__. + Get monitored resource for the given identifier `OCID`__. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm - :param str monitored_resource_task_id: (required) - The `OCID`__ of stack monitoring resource task. + :param str monitored_resource_id: (required) + The `OCID`__ of monitored resource. __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm @@ -3642,18 +3848,18 @@ def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. By default, the response will not allow control characters in strings - :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoredResourceTask` + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.stack_monitoring.models.MonitoredResource` :rtype: :class:`~oci.response.Response` :example: - Click `here `__ to see an example of how to use get_monitored_resource_task API. + Click `here `__ to see an example of how to use get_monitored_resource API. """ # Required path and query arguments. These are in camelCase to replace values in service endpoints. - required_arguments = ['monitoredResourceTaskId'] - resource_path = "/monitoredResourceTasks/{monitoredResourceTaskId}" + required_arguments = ['monitoredResourceId'] + resource_path = "/monitoredResources/{monitoredResourceId}" method = "GET" - operation_name = "get_monitored_resource_task" - api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResourceTask/GetMonitoredResourceTask" + operation_name = "get_monitored_resource" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResource/GetMonitoredResource" # Don't accept unknown kwargs expected_kwargs = [ @@ -3664,10 +3870,10 @@ def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: raise ValueError( - f"get_monitored_resource_task got unknown kwargs: {extra_kwargs!r}") + f"get_monitored_resource got unknown kwargs: {extra_kwargs!r}") path_params = { - "monitoredResourceTaskId": monitored_resource_task_id + "monitoredResourceId": monitored_resource_id } path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} @@ -3700,7 +3906,7 @@ def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): method=method, path_params=path_params, header_params=header_params, - response_type="MonitoredResourceTask", + response_type="MonitoredResource", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, @@ -3711,13 +3917,116 @@ def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): method=method, path_params=path_params, header_params=header_params, - response_type="MonitoredResourceTask", + response_type="MonitoredResource", allow_control_chars=kwargs.get('allow_control_chars'), operation_name=operation_name, api_reference_link=api_reference_link, required_arguments=required_arguments) - def get_monitored_resource_type(self, monitored_resource_type_id, **kwargs): + def get_monitored_resource_task(self, monitored_resource_task_id, **kwargs): + """ + Gets stack monitoring resource task details by identifier `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param str monitored_resource_task_id: (required) + The `OCID`__ of stack monitoring resource task. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + particular request, please provide the request ID. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.stack_monitoring.models.MonitoredResourceTask` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_monitored_resource_task API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['monitoredResourceTaskId'] + resource_path = "/monitoredResourceTasks/{monitoredResourceTaskId}" + method = "GET" + operation_name = "get_monitored_resource_task" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MonitoredResourceTask/GetMonitoredResourceTask" + + # 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_monitored_resource_task got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "monitoredResourceTaskId": monitored_resource_task_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="MonitoredResourceTask", + 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="MonitoredResourceTask", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_monitored_resource_type(self, monitored_resource_type_id, **kwargs): """ Gets a monitored resource type by identifier `OCID`__. @@ -4676,6 +4985,180 @@ def list_discovery_jobs(self, compartment_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def list_maintenance_windows(self, compartment_id, **kwargs): + """ + Returns a list of maintenance windows. + + + :param str compartment_id: (required) + The ID of the compartment in which data is listed. + + :param str name: (optional) + A filter to return maintenance windows that match exact resource name. + + :param str lifecycle_details: (optional) + A filter to return maintenance windows with matching lifecycleDetails. + + Allowed values are: "IN_PROGRESS", "SCHEDULED", "COMPLETED" + + :param str status: (optional) + A filter to return only maintenance windows with matching lifecycleState. + + Allowed values are: "CREATING", "UPDATING", "INACTIVE", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION" + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. + Default order for timeCreated is descending. Default order for mainteance window name is ascending. + + Allowed values are: "NAME", "START_TIME", "END_TIME", "TIME_CREATED", "TIME_UPDATED" + + :param str sort_order: (optional) + The sort order to use, either ascending (`ASC`) or descending (`DESC`). + + Allowed values are: "ASC", "DESC" + + :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 opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + particular request, please provide the request ID. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation 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.stack_monitoring.models.MaintenanceWindowCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_maintenance_windows API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/maintenanceWindows" + method = "GET" + operation_name = "list_maintenance_windows" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/ListMaintenanceWindows" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "name", + "lifecycle_details", + "status", + "sort_by", + "sort_order", + "limit", + "page", + "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_maintenance_windows got unknown kwargs: {extra_kwargs!r}") + + if 'lifecycle_details' in kwargs: + lifecycle_details_allowed_values = ["IN_PROGRESS", "SCHEDULED", "COMPLETED"] + if kwargs['lifecycle_details'] not in lifecycle_details_allowed_values: + raise ValueError( + f"Invalid value for `lifecycle_details`, must be one of { lifecycle_details_allowed_values }" + ) + + if 'status' in kwargs: + status_allowed_values = ["CREATING", "UPDATING", "INACTIVE", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"] + if kwargs['status'] not in status_allowed_values: + raise ValueError( + f"Invalid value for `status`, must be one of { status_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["NAME", "START_TIME", "END_TIME", "TIME_CREATED", "TIME_UPDATED"] + 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 = { + "compartmentId": compartment_id, + "name": kwargs.get("name", missing), + "lifecycleDetails": kwargs.get("lifecycle_details", missing), + "status": kwargs.get("status", missing), + "sortBy": kwargs.get("sort_by", missing), + "sortOrder": kwargs.get("sort_order", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", 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="MaintenanceWindowCollection", + 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="MaintenanceWindowCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def list_metric_extensions(self, compartment_id, **kwargs): """ Returns a list of metric extensions @@ -6424,14 +6907,120 @@ def request_monitored_resources_summarized_count(self, compartment_id, **kwargs) api_reference_link=api_reference_link, required_arguments=required_arguments) - def search_associated_resources(self, search_associated_resources_details, **kwargs): + def retry_failed_maintenance_window_operation(self, maintenance_window_id, **kwargs): """ - List all associated resources recursively up-to a specified level, - for the monitored resources of type specified. + Retry the last failed operation. The operation failed will be the most recent one. It won't apply for previous failed operations. - :param oci.stack_monitoring.models.SearchAssociatedResourcesDetails search_associated_resources_details: (required) - Search Criteria for the listing the monitored resources for given type and compartmentId. + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + particular request, please provide the request ID. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use retry_failed_maintenance_window_operation API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maintenanceWindowId'] + resource_path = "/maintenanceWindows/{maintenanceWindowId}/actions/retryFailedOperation" + method = "POST" + operation_name = "retry_failed_maintenance_window_operation" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/RetryFailedMaintenanceWindowOperation" + + # 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"retry_failed_maintenance_window_operation got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maintenanceWindowId": maintenance_window_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def search_associated_resources(self, search_associated_resources_details, **kwargs): + """ + List all associated resources recursively up-to a specified level, + for the monitored resources of type specified. + + + :param oci.stack_monitoring.models.SearchAssociatedResourcesDetails search_associated_resources_details: (required) + Search Criteria for the listing the monitored resources for given type and compartmentId. :param list[str] fields: (optional) Partial response refers to an optimization technique offered @@ -7056,6 +7645,112 @@ def search_monitored_resources(self, search_monitored_resources_details, **kwarg api_reference_link=api_reference_link, required_arguments=required_arguments) + def stop_maintenance_window(self, maintenance_window_id, **kwargs): + """ + Stop a maintenance window before the end time is reached. + + + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + For optimistic concurrency control. In the PUT or DELETE call + for a resource, set the `if-match` parameter to the value of the + etag from a previous GET or POST response for that resource. + The resource will be updated or deleted only if the etag you + provide matches the resource's current etag value. + + :param str opc_request_id: (optional) + Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + particular request, please provide the request ID. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use stop_maintenance_window API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maintenanceWindowId'] + resource_path = "/maintenanceWindows/{maintenanceWindowId}/actions/stop" + method = "POST" + operation_name = "stop_maintenance_window" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/StopMaintenanceWindow" + + # 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"stop_maintenance_window got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maintenanceWindowId": maintenance_window_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def test_metric_extension(self, metric_extension_id, test_metric_extension_details, **kwargs): """ Performs test of Metric Extension on a specific resource Id @@ -7533,6 +8228,119 @@ def update_config(self, config_id, update_config_details, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def update_maintenance_window(self, maintenance_window_id, update_maintenance_window_details, **kwargs): + """ + Update maintenance window by the given identifier `OCID`__. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.stack_monitoring.models.UpdateMaintenanceWindowDetails update_maintenance_window_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. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_maintenance_window API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['maintenanceWindowId'] + resource_path = "/maintenanceWindows/{maintenanceWindowId}" + method = "PUT" + operation_name = "update_maintenance_window" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/stack-monitoring/20210330/MaintenanceWindow/UpdateMaintenanceWindow" + + # 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_maintenance_window got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "maintenanceWindowId": maintenance_window_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_maintenance_window_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_maintenance_window_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_metric_extension(self, metric_extension_id, update_metric_extension_details, **kwargs): """ Updates the Metric Extension diff --git a/src/oci/stack_monitoring/stack_monitoring_client_composite_operations.py b/src/oci/stack_monitoring/stack_monitoring_client_composite_operations.py index 5ecc29c1e..245d7ed63 100644 --- a/src/oci/stack_monitoring/stack_monitoring_client_composite_operations.py +++ b/src/oci/stack_monitoring/stack_monitoring_client_composite_operations.py @@ -195,6 +195,45 @@ def create_discovery_job_and_wait_for_state(self, create_discovery_job_details, except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_maintenance_window_and_wait_for_state(self, create_maintenance_window_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_maintenance_window` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest` + to enter the given state(s). + + :param oci.stack_monitoring.models.CreateMaintenanceWindowDetails create_maintenance_window_details: (required) + Details to create the Maintenance Window + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_maintenance_window` + + :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_maintenance_window(create_maintenance_window_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_metric_extension_and_wait_for_state(self, create_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon @@ -576,6 +615,55 @@ def delete_discovery_job_and_wait_for_state(self, discovery_job_id, wait_for_sta except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def delete_maintenance_window_and_wait_for_state(self, maintenance_window_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_maintenance_window` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest` + to enter the given state(s). + + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_maintenance_window` + + :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_maintenance_window(maintenance_window_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_metric_extension_and_wait_for_state(self, metric_extension_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon @@ -979,6 +1067,88 @@ def publish_metric_extension_and_wait_for_state(self, metric_extension_id, wait_ except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def retry_failed_maintenance_window_operation_and_wait_for_state(self, maintenance_window_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.retry_failed_maintenance_window_operation` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest` + to enter the given state(s). + + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.retry_failed_maintenance_window_operation` + + :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.retry_failed_maintenance_window_operation(maintenance_window_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 stop_maintenance_window_and_wait_for_state(self, maintenance_window_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.stop_maintenance_window` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest` + to enter the given state(s). + + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.stop_maintenance_window` + + :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.stop_maintenance_window(maintenance_window_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 test_metric_extension_and_wait_for_state(self, metric_extension_id, test_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.test_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest` @@ -1157,6 +1327,50 @@ def update_config_and_wait_for_state(self, config_id, update_config_details, wai except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def update_maintenance_window_and_wait_for_state(self, maintenance_window_id, update_maintenance_window_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_maintenance_window` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest` + to enter the given state(s). + + :param str maintenance_window_id: (required) + The `OCID`__ of maintenance window. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.stack_monitoring.models.UpdateMaintenanceWindowDetails update_maintenance_window_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.stack_monitoring.models.WorkRequest.status` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_maintenance_window` + + :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_maintenance_window(maintenance_window_id, update_maintenance_window_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_metric_extension_and_wait_for_state(self, metric_extension_id, update_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon diff --git a/src/oci/version.py b/src/oci/version.py index 49ec7390c..78fcb10ab 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.135.1" +__version__ = "2.135.2" diff --git a/src/oci/zpr/zpr_client.py b/src/oci/zpr/zpr_client.py index 2104d4f2c..9c536d28b 100644 --- a/src/oci/zpr/zpr_client.py +++ b/src/oci/zpr/zpr_client.py @@ -100,8 +100,7 @@ def __init__(self, config, **kwargs): 'regional_client': True, 'service_endpoint': kwargs.get('service_endpoint'), 'base_path': '/20240301', - 'service_endpoint_template': 'https://{service}.{region}.oci.{secondLevelDomain}', - 'endpoint_service_name': '${endpoint-template-prefix}', + 'service_endpoint_template': 'https://zpr.{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),